/* ==========================================================================
   Keyframe Animations
   ========================================================================== */

/* Hero gradient mesh movement */
@keyframes meshMove {
  0% {
    background:
      radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.15) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 20%, rgba(0, 212, 170, 0.10) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 80%, rgba(108, 99, 255, 0.08) 0%, transparent 50%);
  }
  33% {
    background:
      radial-gradient(ellipse at 40% 30%, rgba(108, 99, 255, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse at 70% 60%, rgba(0, 212, 170, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse at 30% 70%, rgba(108, 99, 255, 0.10) 0%, transparent 50%);
  }
  66% {
    background:
      radial-gradient(ellipse at 60% 40%, rgba(0, 212, 170, 0.10) 0%, transparent 50%),
      radial-gradient(ellipse at 30% 70%, rgba(108, 99, 255, 0.15) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 50%, rgba(0, 212, 170, 0.08) 0%, transparent 50%);
  }
  100% {
    background:
      radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.15) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 20%, rgba(0, 212, 170, 0.10) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 80%, rgba(108, 99, 255, 0.08) 0%, transparent 50%);
  }
}

/* Stagger children animation */
.reveal.visible .stagger-child:nth-child(1) { transition-delay: 0s; }
.reveal.visible .stagger-child:nth-child(2) { transition-delay: 0.1s; }
.reveal.visible .stagger-child:nth-child(3) { transition-delay: 0.15s; }
.reveal.visible .stagger-child:nth-child(4) { transition-delay: 0.2s; }
.reveal.visible .stagger-child:nth-child(5) { transition-delay: 0.25s; }
.reveal.visible .stagger-child:nth-child(6) { transition-delay: 0.3s; }

.stagger-child {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.visible .stagger-child {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  @keyframes meshMove { from, to { opacity: 1; } }

  .stagger-child {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
