/* ============================================================
   ANIMATIONS – Scroll Fade-In + Micro-interactions
   ============================================================ */

/* ── Fade-in on scroll ───────────────────────────────────── */
.fade-in-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in-section.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays for children */
.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 80ms; }
.stagger-children > *:nth-child(3) { transition-delay: 160ms; }
.stagger-children > *:nth-child(4) { transition-delay: 240ms; }
.stagger-children > *:nth-child(5) { transition-delay: 320ms; }
.stagger-children > *:nth-child(6) { transition-delay: 400ms; }
.stagger-children > *:nth-child(7) { transition-delay: 480ms; }
.stagger-children > *:nth-child(n+8) { transition-delay: 560ms; }

/* Individual child fade */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in-section.visible .stagger-children > * {
  opacity: 1;
  transform: none;
}

/* ── Shimmer on gradient text ───────────────────────────── */
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.shimmer {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo), var(--accent-cyan));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease infinite;
}

/* ── Floating glow orbs ─────────────────────────────────── */
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orb-float 12s ease-in-out infinite;
}

.glow-orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(0, 229, 255, 0.06);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(79, 70, 229, 0.08);
  bottom: -150px;
  right: -80px;
  animation-delay: 4s;
}

/* ── Hover card lift ────────────────────────────────────── */
@keyframes card-glow {
  0% { box-shadow: 0 0 0px rgba(0,229,255,0); }
  100% { box-shadow: 0 0 30px rgba(0,229,255,0.2); }
}

/* ── Pulse ring ─────────────────────────────────────────── */
@keyframes ring-pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}

.ring-pulse {
  position: relative;
  display: inline-flex;
}

.ring-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent-cyan);
  border-radius: inherit;
  animation: ring-pulse 2s ease-out infinite;
}
