.nav-container {
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;

    z-index: 999999;

    backdrop-filter: blur(8px);

    animation: stickyNav linear forwards;
    animation-timeline: view();
    animation-range-start: 100vh;
    animation-range-end: 200vh;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1rem 0;

    margin: 0 8.33%;
}

.logo {
    flex: 1;
    cursor: pointer;
}

.logo a img {
    max-width: 366px;
    height: 40px;
}

.main-nav {
    flex: 1;
}

.menu-on-nav {
    display: flex;
    justify-content:space-between;
    align-items: center;
    list-style-type: none;
}

.menu-on-nav li a {
    color: var(--font-color-primary);
    text-transform: uppercase;
    text-decoration: none;
    font-family: Avenir;

    position: relative;
}

.menu-on-nav li a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-on-nav li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
    opacity: .8;
}

.menu-on-nav li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

#progress {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(45, 45, 45, 0.7);

    animation: progress-bar linear forwards;
    animation-timeline: scroll();
}


.collapse {
    display: none;
    flex-direction: column;
    cursor: pointer;
    justify-content: center;
    align-items: flex-end;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: #333333;
    margin: 4px 0;
}

@keyframes progress-bar {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes stickyNav {
    100% {
        /* border-top-left-radius: 25px;
        border-top-right-radius: 25px; */
        width: 95%;
        left: 2.5%;
        top: 1rem;
    }
}

/* -------------- MEDIA QUERIES ---------------- */
@media screen and (max-width: 1336px) {
    .menu-on-nav {
        display: none;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        position: absolute;
        top: 5rem;
        left: 0;
        z-index: 999;

        & .cta-button {
            display: none;
        }
    }

    .menu-on-nav.active {
        display: flex;
        background-color: rgba(255, 255, 255, .6);
        box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
        position: absolute;

        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
    }


    .collapse {
        display: flex;
        position: relative;
        z-index: 99999;
    }


    .menu-mobile {
        display: block;
        width: 100%;
        height: 90vh;
        background-color: rgba(0, 0, 0, 0.9);
        position: fixed;

        left: 0;
        top: 5.5rem;
        animation: fade-in-mobile .25s ease-in;
    }

    @keyframes fade-in-mobile {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }


    .menu-mobile .menu-on-nav {
        width: 100%;
        height: 100%;
        display: flex;
        flex-flow: column nowrap;
        justify-content: space-around;
        align-items: center;
        
    }

    .menu-mobile .menu-on-nav li a {
        font-size: 3rem;
        animation: none;
        color: white;
    }
}