/* =====================================================================
   CSL Navigation — BIG · CLEAN · ANIMATED
   Large logo · pill-segment buttons · neon hover glow
   · gradient accent line · pulsing bottom glow · pulse CTA
   ===================================================================== */

/* ═══ FULL-WIDTH NAV ═══ */
nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    z-index: 9998 !important;
    background: rgba(10, 10, 17, 0.97) !important;
    -webkit-backdrop-filter: blur(22px) saturate(190%) !important;
    backdrop-filter: blur(22px) saturate(190%) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.9rem 2.6rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    max-width: none;
    overflow: visible;
    box-shadow:
        0 2px 40px rgba(0, 0, 0, 0.6);
}

/* ═══ ANIMATED GRADIENT ACCENT LINE (top) ═══ */
nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        #3b82f6 10%,
        #8b5cf6 28%,
        #60a5fa 50%,
        #8b5cf6 72%,
        #a78bfa 90%,
        transparent 100%);
    background-size: 200% 100%;
    z-index: 3;
    animation: cslAccentShift 3s ease infinite;
}

@keyframes cslAccentShift {
    0%, 100% { background-position: 0% 0%; }
    50%      { background-position: 100% 0%; }
}

/* ═══ ANIMATED BOTTOM GLOW ═══ */
nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
    box-shadow:
        0 0 8px #3b82f6,
        0 0 20px rgba(59, 130, 246, 0.5),
        0 0 40px rgba(59, 130, 246, 0.2);
    z-index: 3;
    animation: cslBottomGlow 2.5s ease-in-out infinite alternate;
}

@keyframes cslBottomGlow {
    0%   {
        opacity: 0.4;
        box-shadow: 0 0 4px #3b82f6, 0 0 12px rgba(59, 130, 246, 0.3);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 12px #60a5fa, 0 0 28px rgba(96, 165, 250, 0.6), 0 0 50px rgba(59, 130, 246, 0.25);
    }
}

/* ═══ LOGO — BIG (130px, larger than original 120px) ═══ */
.nav-logo {
    position: relative !important;
    z-index: 2;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
}
.nav-logo img {
    height: 130px !important;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.3));
    transition: filter 0.3s ease, transform 0.3s ease;
}
.nav-logo:hover img {
    filter: drop-shadow(0 0 32px rgba(59, 130, 246, 0.55));
    transform: scale(1.04);
}

/* ═══ NAV LINKS — PILL SEGMENTS ═══ */
.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
}

.nav-links li { margin: 0; padding: 0; }

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 42px;
    color: #94a3b8 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

/* HOVER — neon glow */
.nav-links a:not(.nav-cta):hover {
    color: #fff !important;
    background: rgba(59, 130, 246, 0.22);
    box-shadow:
        0 0 36px rgba(59, 130, 246, 0.3),
        0 0 72px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-shadow: 0 0 14px rgba(147, 197, 253, 0.5);
    transform: translateY(-2px);
}

/* Active page */
.nav-links a.active {
    color: #fff !important;
    background: rgba(59, 130, 246, 0.28);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.25);
}

/* Kill old underline pseudo-elements */
.nav-links a::after { display: none !important; }

/* ═══ ICONS ═══ */
.nav-links a i {
    font-size: 0.85rem;
    color: #64748b;
    transition: color 0.3s, transform 0.3s;
}
.nav-links a:not(.nav-cta):hover i {
    color: #60a5fa;
    transform: scale(1.18);
}
.nav-links a.active i { color: #60a5fa; }

/* ═══ CTA — PULSING GLOW ═══ */
.nav-cta {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    color: white !important;
    padding: 0.65rem 1.5rem !important;
    margin-left: 0.6rem;
    border-radius: 42px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1) !important;
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.45);
    letter-spacing: 0.25px;
    animation: cslCtaGlow 2.5s ease-in-out infinite alternate;
}
.nav-cta:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    color: white !important;
    transform: scale(1.08);
    box-shadow: 0 0 42px rgba(139, 92, 246, 0.6);
    animation: none;
}
.nav-cta i { color: white !important; }

@keyframes cslCtaGlow {
    0%   { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
    100% { box-shadow: 0 0 36px rgba(139, 92, 246, 0.55); }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 860px) {
    nav { padding: 0.6rem 1.2rem !important; }
    .nav-logo img { height: 70px !important; }
    .nav-links a { padding: 0.45rem 0.85rem; font-size: 0.8rem !important; }
    .nav-links a i { display: none; }
    .nav-cta { padding: 0.45rem 1.1rem !important; font-size: 0.8rem !important; }
}

@media (max-width: 640px) {
    .nav-links li:not(:last-child) { display: none; }
    .nav-logo img { height: 50px !important; }
    .nav-cta { margin-left: auto; }
    nav::before { height: 2px; }
    nav::after { left: 0; right: 0; }
}
