/* Scroll Animation Base Styles */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  backface-visibility: hidden;
  will-change: opacity, transform;
}

/* When element is in view and animated */
.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Different animation types */
.fade-up {
  transform: translateY(30px);
}

.fade-down {
  transform: translateY(-30px);
}

.fade-left {
  transform: translateX(30px);
}

.fade-right {
  transform: translateX(-30px);
}

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

.zoom-in {
  transform: scale(0.95);
}

.zoom-out {
  transform: scale(1.05);
}

/* Animation staggering via delay classes */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

/* Mobile optimization - reduce animation distance on smaller screens */
@media (max-width: 767px) {
  .fade-up, .fade-down {
    transform: translateY(20px);
  }
  
  .fade-left, .fade-right {
    transform: translateX(20px);
  }
  
  .animate-on-scroll {
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* Reduce motion preference support */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    transition: opacity 0.5s ease-out;
    transform: none !important;
  }
  
  .fade-up, .fade-down, .fade-left, .fade-right, .zoom-in, .zoom-out {
    transform: none;
  }
} 