:root {
    --global-background-color: #222222;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Space Mono', serif;
    background-color: var(--global-background-color);
}

.hero-image {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: linear-gradient(transparent 0%, transparent 70%, var(--global-background-color) 100%), url("../images/photography/spiderweb.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: white;
    font-family: 'Tenor Sans';
    font-weight: 600;
}

.hero-text h2 {
    font-size: 4vw;
    margin-bottom: -6vw;
}

.hero-text h1 {
    font-size: 8vw;
    margin-bottom: 0;
}

.hero-text p {
    font-size: 1.5vw;
}

.fa-arrow-circle-down {
    color: white;
    font-size: 5rem;
    text-decoration: none;
    transition-duration: 0.4s;
}

.fa-arrow-circle-down:hover {
    transform: scale(1.2);
}

.parallax-section {
    position: relative;
    height: 300vh;
    display: flex;
}

.sticky-half {
    width: 50%;
    position: sticky;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0;
    height: 100vh;
    color: white;
}

.sticky-half.left {
    left: 0;
    order: 0;
}
.sticky-half.right {
    right: 0;
    order: 1;
}

.parallax-section h2 {
    margin-top: auto;
    font-size: 5vw;
    color:white;
    margin-bottom: 0.25em;
}

.parallax-section button {
    background-color: white;
    border: none;
    font-family: inherit;
    font-size: 1vw;
    border-radius: 3em;
    padding-inline: 2vw;
    padding-block: .75vw;
    transition-duration: 0.4s;
}

.parallax-section button>a {
    color: black;
    text-decoration: none;
}

.parallax-section button:hover {
    transform: scale(1.2);
}

.parallax-section nav {
    margin-top: auto;
    display: flex;
    justify-content: center;
    width: 100%;
    font-size: 1vw;
}

.parallax-section nav > ul {
    list-style-type: none;
    display: flex;
}

.parallax-section nav li:not(:last-child)::after {
    content: "/";
    margin: 1em;
}

.parallax-section nav a {
    color: white;
    text-decoration: none;
}

.scrolling-half {
    display: flex;
    flex-direction: column;
    width: 50%;
    position: relative;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
}

.scrolling-half.left {
    left: 0;
    order: 0;
}

.scrolling-half.right {
    right: 0;
    order: 1;
}

.scrolling-half:before {
    content: '';
    position: absolute;
    width: 50%;
    height: 300%; /* Adjust the value for more or less parallax effect */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.parallax-image {
    position: relative;
    width: 100%;
    height: 33.333%; /* Divide by the number of images to evenly distribute space */
}

.parallax-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 30% 70%;
}

#astro img{
    object-position: 50% 50%;
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2vw;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
}

#about {
    height: auto;
}

#about p {
    padding: 0.5rem;
    text-align: justify;
    font-family: 'Ubuntu';
    font-size: 2rem;
    line-height: 150%;
}

#about-text {
    padding: 2.5vw 5vw 20vw;
    z-index: 998;
}

#about > .scrolling-half {
    background-image: linear-gradient(var(--global-background-color) 0%, white 25%, white 75%, var(--global-background-color) 100%);
    color: black;
}

#portrait {
    width: 50%;
    height: auto;
    display: block;
    object-fit: cover;
    align-self: center;
    margin-top: 15%;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-position: center top;
    z-index: 998;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.fade-in-up.visible {
    opacity: 1;
    animation: fadeInUp 1.5s ease-in-out;
}

@media (max-width: 899px) {
    .hero-image {
        background-position-y: 80%;
    }

    .hero-text h2 {
        font-size: 5.5vw;
    }

    .hero-text h1 {
        font-size: 11vw;
    }

    .hero-text p {
        font-size: 3vw;
    }

    .fa-arrow-circle-down {
        font-size: 10vw;
    }

    .parallax-section {
        flex-direction: column;
        height: auto;
    }

    .parallax-section h2 {
        font-size: 7vw;
        margin-top: 3vw;
    }

    .parallax-section button {
        font-size: 5vw;
        padding-inline: 3vw;
    }

    .parallax-section nav {
        display: none;
    }

    .parallax-image {
        height: 100vw;
        margin-bottom: 2.5%;
    }

    .parallax-image img {
        border-radius: 20px;
    }

    .sticky-half.right,
    .sticky-half.left {
        width: 100%;
        height: auto;
        top: 0%;
        z-index: 999;
        order: 0;
        background-color: linear-gradient(rgba(34, 34, 34, 0.9) 0%, rgba(34, 34, 34, 0.9) 50%, transparent 50%);
        padding: 1% 0% 1%;
        border-radius: 0 0 20px 20px;
    }

    .scrolling-half.right,
    .scrolling-half.left {
        width: 100%;
        order: 1;
    }

    .overlay {
        opacity: 0;
        transition: opacity 1s ease-in-out;
        border-radius: 20px;
        font-size: 5vw;
    }

    .overlay.visible {
        opacity: 1;
    }

    #about > .scrolling-half {
        background-image: var(--global-background-color);
        color: white;
    }

    #about-text {
        padding: 0 1rem;
    }

    #about p {
        text-align: left;
        font-size: 1.5rem;
    }
}