/* Animation classes for scroll-triggered animations */
.scroll-animate {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.fade-in {
  opacity: 0;
  transform: translateY(30px);
}

.scroll-animate.fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate.slide-left {
  opacity: 0;
  transform: translateX(-50px);
}

.scroll-animate.slide-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate.slide-right {
  opacity: 0;
  transform: translateX(50px);
}

.scroll-animate.slide-right.animate {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate.scale-in {
  opacity: 0;
  transform: scale(0.9);
}

.scroll-animate.scale-in.animate {
  opacity: 1;
  transform: scale(1);
}

/* Stagger animation for child elements */
.scroll-animate-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-stagger.animate > *:nth-child(1) {
  transition-delay: 0.1s;
}

.scroll-animate-stagger.animate > *:nth-child(2) {
  transition-delay: 0.2s;
}

.scroll-animate-stagger.animate > *:nth-child(3) {
  transition-delay: 0.3s;
}

.scroll-animate-stagger.animate > *:nth-child(4) {
  transition-delay: 0.4s;
}

.scroll-animate-stagger.animate > *:nth-child(5) {
  transition-delay: 0.5s;
}

.scroll-animate-stagger.animate > * {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .scroll-animate,
  .scroll-animate-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

