.scroll-container {
    height: 100%;
    overflow-y: auto;

    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;

    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
}
/*
 Horizontal fix (IDK if needed)
section {
    margin: 0;
    padding: 0;
    overscroll-behavior: contain;
}
*/


@media (min-width: 1025px) {
    .navbar {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }
}

.hero {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10rem 10% 2rem 10%;
}

.hero-text {
    max-width: 87%;
    min-height: 30rem;
}

.hero-description {
    margin-top: 1rem;
    max-height: 25rem;
    overflow-y: auto;
}

.hero-description::-webkit-scrollbar {
    width: 6px;
}

.hero-description p {
    font-size: 1.4rem;
}

.hero-character {
    position: absolute;
    bottom: -15rem;
    right: 1%;
    z-index: 1;
}

.hero-character img {
    width: 20rem;
    height: auto;
}


.section1 {
    height: 20rem;
    background: url('/css/images/SVGS/layered-waves-haikei.svg') no-repeat bottom;
    background-size: cover;
    z-index: 10;

}

.section2 {
    height: 10rem;
    background: url('/css/images/SVGS/layered-peaks-haikei.svg') no-repeat bottom;
    background-size: cover;

}

.section3 {
    height: 18rem;
    background: url('/css/images/SVGS/stacked-peaks-haikei.svg') no-repeat bottom;
    background-size: cover;

}

.projects {
    text-align: center;
}

.cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-top: 3rem;
    width: 100%;
}

.projects-page .project-card {
    width: 20rem;
    height: 30rem;
}



.project-link {
    margin-top: auto;
    font-size: 1rem;
    color: var(--white);
    background: var(--opacityWhite);
    padding: 0.6rem 1.2rem;
    border-radius: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.project-link:hover {
    background: var(--opacityWhite);
    transform: translateY(-3px);
    box-shadow: 0 0.6rem 1.2rem var(--opacityBlack);
}


@media (max-width: 1024px) {

    .scroll-container{
        overscroll-behavior: contain;
        height: 100dvh;
    }

    .hero {
        padding: 5rem 4% 0 4%;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        min-height: 40rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-description {
        font-size: 1.1rem;
        max-height: 25rem;
        overflow-y: auto;
        padding-right: 0.5rem;
    }

    .hero-description::-webkit-scrollbar {
        width: 6px;
    }

    .hero-description::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.4);
        border-radius: 10px;
    }

    .hero-character {
        bottom: -3rem;
        right: 0;
    }

    .hero-character img {
        width: 9.5rem;
    }

    .cards-container {
        position: relative;
        flex-direction: column;
        gap: 2rem;
        margin-top: 12rem;
    }

    .projects {
        min-height: 25rem;
    }

    .projects-page .project-card {
        position: absolute;
        top: 50%;
        left: 50%;
        height: 20rem;
        transform: translate(-50%, -50%) !important;
        will-change: transform;
        opacity: 0;
        transition: opacity 2s ease;

        -webkit-tap-highlight-color: transparent;
        user-select: none;
        touch-action: manipulation;
    }

    .projects-page .project-card.active {
        transform: translate(-50%, -50%) !important;
        opacity: 1;
        transition-delay: 2s;
        transition: opacity 2s ease;
    }

    .section1 { height: 8rem; }
    .section2 { height: 8rem; }
    .section3 { 
        margin-top: -30rem;
        height: 50rem; 
    }
}