.nav-bar-container {
    position: fixed;
    top: 0;
    width: 100vw;
    height: var(--nav-size);
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    z-index: 1000;
}

.nav-bar {
    position: relative;
    flex-grow: 1;
    margin: 0 20px;
    height: 100%;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.nav-bar .bg {
    position: absolute;
    width: 100vw;
    height: 100%;
    top: 0;
    background-color: transparent;
    z-index: -1;
    overflow: visible;

}


.nav-bar .separator {
    position: absolute;
    bottom: -5%;
    width: 100vw;
    height: 5%;
    background-size: 100vw;
    z-index: -2;
    opacity: 0;
}

.nav-right {
    position: absolute;
    right: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav-left {
    flex-direction: column;
    position: absolute;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: start;
    gap: calc(12.8px * 2);
}
.nav-items {
    height: 100%;
}
.nav-item-container {
    height: var(--nav-size);
    margin: 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    user-select: none;
}

.nav-item {
    width: 100%;
    height: 100%;
    font-family: Lexend, sans-serif;
    font-size: 1em;
    color: var(--text-primary);
    transition: transform 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
    text-overflow: ellipsis;
    text-align: center;
    text-shadow: 0 0 4px black;
    user-select: none;
}

.nav-bar .nav-link {
    cursor: pointer;
    height: 100%;
    margin: 0 .8em;
    padding: 0 1.4em;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Ensure .nav-hover-glow is positioned relative to .nav-link */
    border: 1px dashed rgb(110, 110, 110);
    border-radius: .8em;
    background-color: rgba(255, 255, 255, 0.021);
    backdrop-filter: blur(8px);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
    background-size: 6px 6px; /* Adjust the size of the stripes */
    transition: background-color .1s;
    background-clip: border-box;
    text-decoration: none;
    user-select: none;
    z-index: 12;
}

.nav-link::after {
    content: '';
    position: absolute;

    border-radius: calc(.8em);

    height: 100%;
    width: 100%;
    background-image: var(--gradient);
    background-attachment: fixed;
    background-position: top left;
    z-index: -1;
    opacity: 0.17;
    transition: opacity .1s;
    padding: 1px;
}

.nav-bar .nav-link:hover::after {
    opacity: 0.35;
}

.nav-bar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.052);
}

.hamburger-menu, .back-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    height: var(--nav-size);
    aspect-ratio: 1;
    z-index: 2001;
    position: relative;

    border: 1px dashed rgb(110, 110, 110);
    border-radius: calc(.8em);
    background-color: rgba(255, 255, 255, 0.021) !important;
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
    background-size: 6px 6px; /* Adjust the size of the stripes */
    transition: background-color .1s;
    border-radius: .8em;
}
.hamburger-menu::after, .back-button::after {
    content: '';
    position: absolute;

    border-radius: calc(.8em);
    padding: 1px;
    height: 100%;
    width: 100%;
    --img_overlay: rgba(0, 0, 0, 0.5);
    background-image: var(--gradient);
    background-attachment: fixed;
    background-position: top left;
    z-index: -1;
    opacity: 0.17;
    transition: opacity .1s;
}

.hamburger-menu:hover::after, .back-button:hover::after {
    opacity: 0.35;
}


.back-button {
    top: 0;
    left: 0;
}

.hamburger-menu:hover, .back-button:hover {
    background-color: rgba(255, 255, 255, 0.052);
}
.hamburger-menu .material-symbols-outlined, .back-button .material-symbols-outlined {
    font-size: 1.8rem !important;
    color: var(--text-primary);
    transition: transform 0.25s;
    position: absolute;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
}

.dropdown-menu {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
    display: none;
    background-size: 6px 6px;
    position: fixed;
    top: 0;
    right: 0;
    height: 120vh;
    width: 100vw;
    background-color: rgba(24, 24, 24, 0.329);
    -webkit-backdrop-filter: blur(24px);
            backdrop-filter: blur(24px);
    z-index: 2000;
    flex-direction: column;
    align-items: flex-start;
    padding-top: calc(var(--nav-size) + 40px);
    transition: transform .2s, background-position .2s;
    transform: translateX(100%) !important;
    background-position: 0 0;
}


.dropdown-menu.open {
    display: flex;
    transform: translateX(0) !important; 
    background-position: 100% 0;
}

.dropdown-item {
    width: 100%;
    height: 60px;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: background-color 0.1s;
    user-select: none;
}
.dropdown-item:last-child {
    border-bottom: none;
}


.dropdown-item a {
    display: flex;
    padding-left: 30px;
    align-items: center;
    height: 100%;
    color: var(--text-primary);
    text-decoration: none;
    width: 100%;
    user-select: none;
}
.dropdown-item:hover {
    background-color: rgba(255,255,255,0.07);
}

@media (max-width: 850px) {
    .nav-right .nav-items {
        display: none !important;
    }
    .nav-home {
        display: none !important;
    }
    .dropdown-menu,
    .hamburger-menu {
        display: flex !important;
    }

    
}
@media (min-width: 850px) {
    .dropdown-menu,
    .hamburger-menu  {
        display: none !important;
    }
    .nav-right .nav-items {
        display: flex !important;
    }
    .nav-home {
        display: flex !important;
    }
    .back-button {
        margin-left: 12.8px;
    }

}

@media (min-width: 2400px) {
    :root {
        --nav-size: 75px;
    }
    .nav-bar-container {
        margin-top: 25px;
    }
    .hamburger-menu .material-symbols-outlined, .back-button .material-symbols-outlined {
        font-size: 1.8rem !important;
    }
    .nav-item {
        font-size: 1.4em;
    }
    .nav-bar .nav-link {
        margin: 0 1.1em;
        padding: 0 1.8em;

    }
}

.hamburger-menu .menu-icon {
    transform: rotateY(0deg) scaleX(-1) !important;
}
.hamburger-menu .close-icon {
    transform: rotateY(180deg) !important;
}
.hamburger-menu.open .menu-icon {
    transform: rotateY(180deg) scaleX(-1) !important;
}
.hamburger-menu.open .close-icon {
    transform: rotateY(0deg) !important;
}
