.site-header {
    position: sticky;
    top: 16px; 
    z-index: 50;
    padding: 12px 0;
}


.header-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    max-width: 1060px;
    margin: 0 auto;
    padding: 2px 10px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Comfortaa", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.03em;
    color: var(--text);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.logo-img {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

    .nav-links a {
        color: var(--text);
        position: relative;
        padding: 8px 12px;
        border-radius: 999px;
        transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
        font-size: 14px;
    }

    .nav-links:hover a {
        color: var(--muted);
    }

        .nav-links:hover a:hover {
            color: var(--text);
            transform: translateY(-1px);
        }

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

    .header-cta:hover {
        background: rgba(255, 255, 255, 0.18);
        transform: translateY(-1px);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
    }


/* ─── Header right group ─────────────────────────────────────── */

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ─── Language Switcher ──────────────────────────────────────── */

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 10px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
    line-height: 1;
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
}

.lang-active {
    color: #ffffff;
}

.lang-dim {
    color: rgba(255, 255, 255, 0.35);
}

.lang-sep {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 400;
    font-size: 11px;
}

.lang-switcher-mobile {
    margin-top: 4px;
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ─── Hamburger ──────────────────────────────────────────────── */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.18s ease;
    flex-shrink: 0;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.header-pill.menu-open .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header-pill.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.header-pill.menu-open .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile nav dropdown ────────────────────────────────────── */

.mobile-nav {
    display: flex;
    flex-direction: column;
    background: rgba(17, 17, 17, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    margin: 8px auto 0;
    padding: 8px;
    max-width: 1060px;
    animation: mobileNavFadeIn 0.2s ease-out;
}

@keyframes mobileNavFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav a {
    color: var(--text);
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease;
    display: block;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.07);
}

.mobile-nav-cta {
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600 !important;
    text-align: center;
}

.mobile-nav-cta:hover {
    background: rgba(255, 255, 255, 0.16) !important;
}

/* ─── Mobile breakpoint ──────────────────────────────────────── */

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }

    .header-right {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-pill {
        justify-content: space-between;
        border-radius: 20px;
        padding: 4px 6px 4px 10px;
    }

    .site-header {
        top: 10px;
        padding: 8px 0;
    }
}
