.navbar,
.mobile-menu {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

/* Desktop: always transparent */
@media (min-width: 901px) {
    .navbar {
        background: transparent !important;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3.5rem;
    height: 100%;
    position: relative;
}

/* Centered logo */
.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.logo img {
    height: 30px;
    cursor: pointer;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo:hover img {
    opacity: 0.75;
    transform: scale(1.03);
}

/* ── NAVBAR THEMES ── */
.navbar.theme-light .logo img {
    filter: brightness(0);
}

.navbar.theme-dark .logo img {
    filter: brightness(0) invert(1);
}

.navbar.theme-light .btn-nav {
    color: #000 !important;
    border-color: #000;
}

.navbar.theme-light .btn-nav:hover {
    background: #000;
    color: #fff !important;
}

.navbar.theme-dark .btn-nav {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.7);
}

.navbar.theme-dark .btn-nav:hover {
    background: #fff;
    color: #000 !important;
}

.navbar.theme-light .lang-toggle {
    color: #000;
}

.navbar.theme-dark .lang-toggle {
    color: rgba(255, 255, 255, 0.85);
}

/* ── NAV LEFT / RIGHT ── */
.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 20;
}

.btn-nav {
    background: transparent;
    padding: 0.4rem 1.4rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 1px solid currentColor;
    cursor: pointer;
    white-space: nowrap;
}

.nav-right > .btn-nav {
    transition: transform 0.3s var(--easing);
}

.btn-nav:hover {
    transform: scale(1.04);
}

/* ── LANGUAGE TOGGLE ── */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    font-weight: 500;
}

.lang-toggle span {
    opacity: 0.4;
    font-size: 0.65rem;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    color: inherit;
    opacity: 0.45;
    transition: opacity 0.25s ease;
    padding: 0;
}

.lang-btn.active {
    opacity: 1;
}

.lang-btn:hover {
    opacity: 0.8;
}

/* ── DESKTOP DROPDOWN ── */
.desktop-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    background: rgba(8, 8, 10, 0.85);
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    border-radius: 20px;
    padding: 1.6rem;
    min-width: 230px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transition: all 0.4s var(--easing);
}

.desktop-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.desktop-dropdown a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 400;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.desktop-dropdown a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    transform: translateX(4px);
}

.navbar .desktop-dropdown .btn-nav {
    text-align: center;
    margin-top: 0.8rem;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.navbar .desktop-dropdown .btn-nav:hover {
    background: #fff !important;
    color: #000 !important;
}

/* ── MOBILE TOGGLE ── */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition: all 0.3s var(--easing);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── MOBILE MENU OVERLAY ── */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 10, 0.88);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    transform: translateY(-100%);
    transition: transform 0.55s var(--easing);
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateY(0);
    visibility: visible;
}

.mobile-menu a {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}

.mobile-menu a:hover {
    opacity: 0.65;
}

.menu-close {
    position: absolute;
    top: 1.8rem;
    right: 2rem;
    font-size: 2.2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
    transition: color 0.2s;
}

.menu-close:hover {
    color: #fff;
}

.menu-header-logo {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.menu-header-logo img {
    height: 28px;
    filter: brightness(0) invert(1);
}

.mobile-menu .btn-nav {
    font-size: 0.8rem !important;
    padding: 0.65rem 1.8rem;
    margin-top: 0.5rem;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.5);
}

.mobile-menu .btn-nav:hover {
    background: #fff;
    color: #000 !important;
}

/* Mobile lang toggle */
.mobile-menu .lang-toggle {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

body.menu-open .navbar {
    opacity: 0;
    pointer-events: none;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 900px) {
    .navbar {
        background: #fafaf8 !important;
        height: 62px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-container {
        padding: 0 1.4rem;
    }

    .logo img {
        filter: brightness(0) !important;
    }

    .nav-left.desktop-only,
    .nav-right.desktop-only {
        display: none !important;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .menu-toggle {
        display: flex !important;
        color: #000;
        position: absolute;
        right: 1.4rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .menu-toggle span {
        background: #000;
    }

    /* Mobile nav lang toggle — always dark */
    .nav-left.mobile-only .lang-toggle,
    .nav-left.mobile-only .lang-btn {
        color: #000 !important;
    }
}
