/* ══════════════════════════════════════════
   11º BPM/M — Animations
   ══════════════════════════════════════════ */

/* ─── Fade In Up ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.anim-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }

/* ─── Fade In ─── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.anim-fade-in { animation: fadeIn 0.4s ease-out forwards; }

/* ─── Scale In ─── */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.anim-scale-in { animation: scaleIn 0.3s ease-out forwards; }

/* ─── Slide In Left ─── */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
.anim-slide-left { animation: slideInLeft 0.4s ease-out forwards; }

/* ─── Pulse Glow ─── */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(212, 168, 67, 0.3); }
    50% { box-shadow: 0 0 20px rgba(212, 168, 67, 0.5); }
}
.anim-pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }

/* ─── Gold Shimmer ─── */
@keyframes goldShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.anim-gold-shimmer {
    background: linear-gradient(90deg, var(--gold-600), var(--gold-300), var(--gold-600));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 3s linear infinite;
}

/* ─── Radar Sweep ─── */
@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ─── Float ─── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.anim-float { animation: float 3s ease-in-out infinite; }

/* ─── Count Up ─── */
@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ─── Notification Shake ─── */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}
.anim-shake { animation: shake 0.5s ease-in-out; }

/* ─── Scan Line ─── */
@keyframes scanLine {
    0% { top: -2px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ─── Border Glow ─── */
@keyframes borderGlow {
    0%, 100% { border-color: var(--border-default); }
    50% { border-color: var(--gold-500); }
}

/* ─── Stagger children ─── */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.10s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.20s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.30s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.40s; }

/* ─── Page Transition ─── */
.page-enter {
    animation: fadeInUp 0.35s ease-out;
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Particles Canvas ─── */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}
