/* =============================================
   Scroll-triggered Animations
   ============================================= */

/* Fade Up */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade In */
.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* Fade Left */
.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade Right */
.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale Up */
.scale-up {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Hero word animation with stagger */
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}

.hero-title.animate .word {
  animation: heroWordFade 0.6s forwards;
}

.hero-title .word:nth-child(1) { animation-delay: 0.1s; }
.hero-title .word:nth-child(2) { animation-delay: 0.2s; }
.hero-title .word:nth-child(3) { animation-delay: 0.3s; }
.hero-title .word:nth-child(4) { animation-delay: 0.4s; }
.hero-title .word:nth-child(5) { animation-delay: 0.5s; }
.hero-title .word:nth-child(6) { animation-delay: 0.6s; }
.hero-title .word:nth-child(7) { animation-delay: 0.7s; }
.hero-title .word:nth-child(8) { animation-delay: 0.8s; }
.hero-title .word:nth-child(9) { animation-delay: 0.9s; }
.hero-title .word:nth-child(10) { animation-delay: 1.0s; }

@keyframes heroWordFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll arrow */
.scroll-arrow {
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-14px);
  }
  60% {
    transform: translateX(-50%) translateY(-7px);
  }
}

/* Marquee */
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  animation: marqueeScroll 25s linear infinite;
}

/* Pulse for CTA */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(181,149,58,0.4); }
  70% { box-shadow: 0 0 0 12px rgba(181,149,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(181,149,58,0); }
}

.pulse-hover:hover {
  animation: pulse 1.5s infinite;
}
