/* ============================================
   Scroll Reveal & Animation Classes
   ============================================ */

/* Base reveal setup */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal--scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Revealed state */
.reveal--visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Staggered delays for grid children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 500ms; }
.reveal-stagger > *:nth-child(7) { transition-delay: 600ms; }
.reveal-stagger > *:nth-child(8) { transition-delay: 700ms; }
.reveal-stagger > *:nth-child(9) { transition-delay: 800ms; }

/* Hero animation */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate {
  animation: heroFadeIn 0.8s ease forwards;
}

.hero-animate--delay-1 { animation-delay: 0.2s; opacity: 0; }
.hero-animate--delay-2 { animation-delay: 0.4s; opacity: 0; }
.hero-animate--delay-3 { animation-delay: 0.6s; opacity: 0; }
.hero-animate--delay-4 { animation-delay: 0.8s; opacity: 0; }

/* Pulse glow for CTA */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27, 153, 134, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(27, 153, 134, 0); }
}

.pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

/* Counter animation placeholder class */
.counter {
  display: inline-block;
}

/* Gradient text */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Float animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float {
  animation: float 4s ease-in-out infinite;
}
