/* ============================================
   NAVBAR — GLASSMORPHISM
   ============================================ */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 12px 28px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.92);
    border-color: rgba(108, 99, 255, 0.2);
    box-shadow: 0 8px 32px rgba(108, 99, 255, 0.1);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-logo img {
    height: 36px;
    width: auto;
    max-height: 36px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(108, 99, 255, 0.5));
}

.navbar-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.navbar-logo-text span {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-menu a {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: #ffffff;
    background: rgba(108, 99, 255, 0.12);
}

.navbar-menu .menu-cta-btn {
    background: var(--grad);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.25);
    margin-left: 8px;
    border-radius: 12px;
}

.navbar-menu .menu-cta-btn:hover {
    background: var(--grad);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.4);
    transform: translateY(-1px);
}

/* Navbar actions (lang + CTA + hamburger) */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Language switcher */
.nav-lang {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-left: 16px;
    margin-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-lang a {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.08em;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-lang a:hover,
.nav-lang a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* CTA button in navbar */
.nav-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--grad);
    padding: 8px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.25);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--grad);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.4);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    z-index: 1001;
    gap: 5px;
    transition: all 0.3s ease;
}

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

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: center;
}

.hamburger.active {
    background: rgba(108, 99, 255, 0.2);
    border-color: rgba(108, 99, 255, 0.4);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MOBILE OVERLAY
   ============================================ */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   PARTICLES CANVAS
   ============================================ */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   RESPONSIVE — NAVBAR (≤ 768px)
   ============================================ */
@media (max-width: 768px) {

    .navbar {
        top: 12px;
        left: 16px;
        right: 16px;
        width: auto;
        transform: none;
        padding: 10px 18px;
        border-radius: 14px;
    }

    .hamburger {
        display: flex;
    }

    .navbar-logo-text {
        font-size: 0.95rem;
    }

    .nav-cta {
        display: none;
    }

    /* Mobile menu — slide from right */
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding: 100px 32px 40px;
        transition: right 0.35s cubic-bezier(0.77, 0, 0.175, 1);
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        z-index: 999;
    }

    .navbar-menu.open {
        right: 0;
    }

    .navbar-menu li {
        width: 100%;
    }

    .navbar-menu a {
        font-size: 1.125rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.7);
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 0;
        width: 100%;
        display: block;
    }

    .navbar-menu a:hover,
    .navbar-menu a.active {
        color: #ffffff;
        background: transparent;
        padding-left: 12px;
    }

    .navbar-menu .menu-cta-btn {
        margin-left: 0;
        margin-top: 24px;
        text-align: center;
        display: block;
        padding: 14px 24px;
        border-bottom: none;
    }

    .navbar-logo img {
        height: 28px;
        max-height: 28px;
    }
}
