.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 2rem 1rem 2rem;
}

.logo {
    flex: 4;
    font-size: 1.75rem;
}

.logo a {
    text-decoration: none;
    color: black;
}

.main-nav {
    flex: 3;
}

.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;
    letter-spacing: .15em;
    text-decoration: none;
    font-family: Titillium-Light;

    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;
        padding-bottom: 2rem;
        padding-top: 2rem;
    }

    .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;
    }
}