/* ============================================
   KEYFRAMES
   ============================================ */

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes dash-move {
  from { background-position: 0 0; }
  to   { background-position: 16px 0; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: var(--glow-btn); }
  50%       { box-shadow: 0 0 40px rgba(0,229,255,0.7), 0 4px 30px rgba(0,229,255,0.4); }
}

@keyframes counter-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */

.animate-fade-in  { animation: fade-in 0.6s ease forwards; }
.animate-glow     { animation: glow-pulse 3s ease-in-out infinite; }
.animate-bounce   { animation: bounce 2s ease-in-out infinite; }

/* Hero CTA glow pulse */
.btn-primary { animation: glow-pulse 4s ease-in-out infinite; }
.btn-primary:hover { animation: none; }

/* Stat counter animation trigger */
.stat-value.counting { animation: counter-up 0.4s ease forwards; }

/* Intersection Observer base states */
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.10s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.20s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.30s; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
