/* ==========================================================================
   SPOTLIGHT NAVBAR — FLOATING GLASS PILL WITH CURSOR SPOTLIGHT GLOW
   Matching Website Theme: Light Glassmorphism, Blue #38BDF8 & Purple #818CF8
   Systematic Layout: Home • About • Projects • Contact Us
   ========================================================================== */

.spotlight-navbar-wrapper {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 1000;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s ease;
}

.spotlight-navbar-wrapper.nav-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-28px);
    visibility: hidden;
}

.spotlight-nav-container {
    position: relative;
    height: 48px;
    padding: 0 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(203, 213, 225, 0.85);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-nav-items {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 10;
}

.spotlight-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 22px;
    font-size: 0.90rem;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    border-radius: 9999px;
    transition: color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
    user-select: none;
    letter-spacing: -0.01em;
}

.spotlight-nav-link:hover {
    color: #0f172a;
}

.spotlight-nav-link.active {
    color: #2563eb;
}

/* 1. Cursor-Following Mouse Spotlight Layer */
.spotlight-mouse-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.25s ease;
    background: radial-gradient(
        120px circle at var(--spotlight-x, 50%) 100%, 
        rgba(56, 189, 248, 0.28) 0%, 
        rgba(129, 140, 248, 0.14) 45%,
        transparent 70%
    );
}

/* 2. Active Tab Ambience Glow Indicator */
.spotlight-ambience-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(
        60px circle at var(--ambience-x, 50%) 0%, 
        #2563eb 0%, 
        #818cf8 50%,
        transparent 100%
    );
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.65);
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .spotlight-navbar-wrapper {
        top: 12px;
        width: 94%;
    }

    .spotlight-nav-container {
        width: 100%;
        height: 44px;
        justify-content: center;
        overflow-x: auto;
    }

    .spotlight-nav-link {
        padding: 6px 14px;
        font-size: 0.82rem;
    }
}
