/* ============================================
   NAV LINKS - JOSEPH SAN ULTRA-TRANSPARENT GLASS
   ============================================ */

.nav-link {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    /* Full pill shape */
    background: rgba(255, 255, 255, 0.05);
    /* Ultra-transparent Joseph San */
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: visible;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Hover state - subtle enhancement */
.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Active state */
.nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Animated traveling neon glow - HOVER ONLY */
.nav-link::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50px;
    /* Match pill shape */
    background: linear-gradient(90deg,
            transparent 0%,
            transparent 40%,
            rgba(160, 160, 160, 0.4) 50%,
            transparent 60%,
            transparent 100%);
    background-size: 200% 100%;
    opacity: 0;
    filter: blur(6px);
    z-index: -1;
    pointer-events: none;
}

/* Only animate on hover */
.nav-link:hover::before {
    animation: neonTravel 2s ease-in-out infinite;
    opacity: 1;
}

@keyframes neonTravel {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}