/* Animations - Origen Kombucha */

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Animations */
.reveal-stagger {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-stagger.active {
  animation: fadeIn 0.8s ease forwards;
}

.reveal-stagger:nth-child(1) { animation-delay: 0.1s; }
.reveal-stagger:nth-child(2) { animation-delay: 0.2s; }
.reveal-stagger:nth-child(3) { animation-delay: 0.3s; }
.reveal-stagger:nth-child(4) { animation-delay: 0.4s; }
.reveal-stagger:nth-child(5) { animation-delay: 0.5s; }
.reveal-stagger:nth-child(6) { animation-delay: 0.6s; }
.reveal-stagger:nth-child(7) { animation-delay: 0.7s; }
.reveal-stagger:nth-child(8) { animation-delay: 0.8s; }
.reveal-stagger:nth-child(9) { animation-delay: 0.9s; }
.reveal-stagger:nth-child(10) { animation-delay: 1s; }
.reveal-stagger:nth-child(11) { animation-delay: 1.1s; }
.reveal-stagger:nth-child(12) { animation-delay: 1.2s; }

/* Parallax Effect */
.parallax {
  transition: transform 0.5s ease-out;
  will-change: transform;
}

/* Modal Animations */
.modal {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
}

.modal-content {
  animation: fadeInScale 0.3s ease forwards;
}

/* Loading State */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s ease-in-out infinite;
}

/* Smooth Transitions */
* {
  transition-property: color, background-color, border-color, opacity;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal,
  .reveal-stagger {
    opacity: 1;
    transform: none;
  }
  
  .parallax {
    transform: none !important;
  }
}
