/* Keyframes */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.animate-scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-scale-in.animate {
  opacity: 1;
  transform: scale(1);
}

/* Animation Delays */
.animate-delay-1 {
  animation-delay: 0.2s;
  opacity: 0;
}

.animate-delay-2 {
  animation-delay: 0.4s;
  opacity: 0;
}

.animate-delay-3 {
  animation-delay: 0.6s;
  opacity: 0;
}

.animate-delay-4 {
  animation-delay: 0.8s;
  opacity: 0;
}

/* Stagger Animation for Lists */
.animate-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-stagger.animate > *:nth-child(1) { transition-delay: 0.1s; }
.animate-stagger.animate > *:nth-child(2) { transition-delay: 0.2s; }
.animate-stagger.animate > *:nth-child(3) { transition-delay: 0.3s; }
.animate-stagger.animate > *:nth-child(4) { transition-delay: 0.4s; }
.animate-stagger.animate > *:nth-child(5) { transition-delay: 0.5s; }
.animate-stagger.animate > *:nth-child(6) { transition-delay: 0.6s; }

.animate-stagger.animate > * {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
