.header {
    background: var(--theme-clr-1);
    color: var(--font-clr-1);
    padding: 20px;
    position: relative;
    z-index: 10000;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #000;
}

.header-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header {
    height: 30px;
}

.header-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
    max-height: 100%;
}

.header-icon {
    height: 30px;
}

/* .search-icon {
    filter: var(--icon-clr-1);
} */

.menu-toggle {
    height: 2rem;
    width: 2rem;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-toggle img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    filter: var(--icon-clr-1);
}

/* Dropdown nav */
/* Nav Overlay (mobile) */
.nav-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--header-height));
    overflow: hidden;
    background: #000;
    z-index: 9999;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;

    transform: translateY(-100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.nav-links a {
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    border: 1px solid transparent;
    box-sizing: border-box;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nav-links a:hover {
    background-color: var(--theme-clr-4);
    border-color: var(--theme-clr-4);
}

.nav-overlay a {
    color: var(--font-clr-1);
    text-decoration: none;
    font-size: var(--font-size-2xl);
    border-bottom: 1px solid var(--theme-clr-4);
    padding-top: .6rem;
    padding-bottom: 0.5rem;
}

.nav-close {
    background: none;
    color: var(--font-clr-1);
    border: none;
    align-self: flex-end;
    cursor: pointer;
}

.nav-overlay.showing {
    transform: translateY(0);
    pointer-events: all;
}

/* === Desktop Sidebar Layout === */
@media (min-width: 1024px) {

    .logo-header {
        height: 50px;
    }

    .nav-overlay {
        top: 0;
        left: 0;
        width: 240px;
        height: 100vh;
        position: fixed;
        background: #000;
        /* Or your sidebar color */
        z-index: 9999;
        /* HIGH z-index to ensure it's on top */
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: none;
        border-radius: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        pointer-events: auto;
        /* Make it interactive */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .nav-links {
        margin-top: 40%;
    }

    .menu-toggle,
    .close-btn {
        display: none !important;
    }
}

.nav-links a.active,
.nav-links a.hovered {
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.25) 0%, rgba(0, 0, 0, 0.85) 70%);
    color: white;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    border: 1px solid var(--theme-clr-2);
}



/* === LANGUAGE SWITCHER === */
/* Smaller icons for nav bar */
.language-switcher.nav-small .lang-btn img {
    width: 30px;
}

.language-switcher.nav-small .lang-pulse {
    width: 30px;
    height: 30px;
}