header {
    background: rgba(17, 17, 17, 0.35); /* Slight green tint */
    backdrop-filter: blur(10px); /* Blurs the content behind the header */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    z-index: 1000;
    box-sizing: border-box;

    /* Animations */
    transition: transform 0.3s;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header.mode__desktop {
    height: 9dvh;
    height: 9vh;
    width: 100%;
    backdrop-filter: blur(1em);
    -webkit-backdrop-filter: blur(1em);

    padding: 0 1em;
}

header.mode__mobile {
    height: 8vh;
    height: 8dvh;
    /* 100% viewport width minus 0.8em margin on each side */
    width: 100dvw;
    width: 100vw;
    padding: 0 1em;
}

/* HEADER ANIMATIONS */

.show-header {
    transform: translateY(0);
}

.hide-header {
    transform: translateY(-200%);
}


/* STYLING */

.header__logo {
    position: fixed;
    z-index: 1002;
    height: 9vh;
    height: 9dvh;
    display: flex;
    align-items: center;
    margin-left: 1em;
    @media (max-width: 900px) {
        height: 8vh;
        height: 8dvh;
    }
    
}



.header__logo img {
    width: 100%;
    object-fit: contain;
}

.header__logo li {
    width: 300px !important;
}

.header__navbar {
    flex-shrink: 0;
}

.header__navbar__links li {
    list-style-type: none;
    display: inline;
    margin-left: 1em;
}

.header__navbar__links a {
    text-decoration: none;
    color: white;
    font-family: "Roboto";
}

.header__logo ul {
    overflow: hidden;
}

/* Hamburger Menu */

.header__hamburger-icon {
    /* Position and Size */
    position: fixed;
    z-index: 1002;
    right: 0.4em;
    height: 9vh;
    height: 9dvh;
    width: 50px; /* Touch target width */
    
    /* Layout */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    
    /* Reset & Decor */
    text-decoration: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    @media (max-width: 900px) {
        height: 8vh;
        height: 8dvh;
    }
}

.header__hamburger-icon .line {
    display: block;
    height: 3px;
    width: 25px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Morph Animation States */
.header__hamburger-icon--active .line.line1 {
    transform: translateY(9px) rotate(45deg);
}

.header__hamburger-icon--active .line.line2 {
    opacity: 0;
}

.header__hamburger-icon--active .line.line3 {
    transform: translateY(-9px) rotate(-45deg);
}

.header__hamburger-menu {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: fixed;
    display: flex;
    flex-direction: column;
    
    background-color: var(--color-jade);
    z-index: 1001;
    
    transition: clip-path 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.header__hamburger-menu span {
    
    height: 3em;
    z-index: 1001;
    display: flex;
    align-items: center;
    padding: 0 1em;
    margin: 0.2em 0;
    border-radius: 999px;
    text-decoration: none;
    color: white;
    transition: scale 0.2s ease-in-out;
}

.header__hamburger-menu span:hover {
    scale: 1.05;
    text-decoration: underline;
    filter: brightness(0.9);
}

.header__hamburger-menu a {
    text-decoration: none;
    color: white;
    font-size: clamp(1.5em, 6vw, 2em);
    font-family: "Plus Jakarta Sans", sans-serif;
}

.header__hamburger-menu__shown {
    transform: translateX(0);
}

.header__hamburger-menu__hidden {
    transform: translateX(100%);
}