/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* Scroll line animation */
.scroll-line-anim {
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* Scroll-triggered animation states */
[data-animate] {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate="fade-up"] { transform: translateY(40px); }
[data-animate="fade-down"] { transform: translateY(-40px); }
[data-animate="fade-left"] { transform: translateX(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate].is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Nav active link underline */
.nav-link.active-link {
    color: #fff;
}
.nav-link.active-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #a78bfa);
    border-radius: 2px;
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(2, 6, 23, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Mobile menu open */
.mobile-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Mobile toggle active */
.nav-toggle-active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle-active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle-active span:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Project filter active state */
.filter-btn.active {
    border-color: #6366f1 !important;
    background: rgba(99,102,241,0.2) !important;
    color: #a5b4fc !important;
}

/* Project card hide/show for filtering */
.project-card.card-hidden {
    display: none;
}

/* Tilt effect for cards */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Selection color */
::selection {
    background: rgba(99,102,241,0.3);
    color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #6366f1; }
