/* site-effects.css - High Performance Styles & GPU Keyframe Animations */

/* 1. Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }

/* 2. Glass Cards with Dynamic Cursor Spotlight */
.feature-card, .bento-card, .glass-card, .interactive-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.feature-card::before, .bento-card::before, .glass-card::before, .interactive-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(450px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(99, 102, 241, 0.12), transparent 45%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before, .bento-card:hover::before, .glass-card:hover::before, .interactive-card:hover::before {
    opacity: 1;
}

/* 3. Hero Particle Canvas */
.particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 4. Neural Soundwave Equalizer Bars (VoiceFlow) */
.soundwave-container {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 8px;
}

.soundwave-bar {
    width: 4px;
    background: linear-gradient(180deg, #60a5fa 0%, #818cf8 100%);
    border-radius: 9999px;
    height: 6px;
    animation: wavePulse 1.2s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.soundwave-bar:nth-child(1) { animation-duration: 0.8s; animation-delay: 0.1s; }
.soundwave-bar:nth-child(2) { animation-duration: 1.1s; animation-delay: 0.3s; }
.soundwave-bar:nth-child(3) { animation-duration: 0.9s; animation-delay: 0.0s; }
.soundwave-bar:nth-child(4) { animation-duration: 1.3s; animation-delay: 0.4s; }
.soundwave-bar:nth-child(5) { animation-duration: 0.7s; animation-delay: 0.2s; }
.soundwave-bar:nth-child(6) { animation-duration: 1.0s; animation-delay: 0.5s; }
.soundwave-bar:nth-child(7) { animation-duration: 1.2s; animation-delay: 0.15s; }
.soundwave-bar:nth-child(8) { animation-duration: 0.85s; animation-delay: 0.35s; }

@keyframes wavePulse {
    0% {
        height: 6px;
        opacity: 0.4;
    }
    100% {
        height: 32px;
        opacity: 1;
    }
}

/* 5. Glowing Shimmer Effect for Primary Buttons */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: buttonShine 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes buttonShine {
    0%, 70% {
        left: -60%;
    }
    100% {
        left: 140%;
    }
}

/* 6. Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .soundwave-bar, .btn-shimmer::after {
        animation: none !important;
    }
    .feature-card, .bento-card, .glass-card {
        transform: none !important;
    }
}
