/* ═══════════════════════════════════════════════════════
   Scroll Animations — Smooth section-by-section reveal
   ═══════════════════════════════════════════════════════ */

/* Base state — hidden before animation triggers */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animation variants — initial positions */
.animate-on-scroll[data-animation="fadeUp"] { transform: translateY(40px); }
.animate-on-scroll[data-animation="fadeDown"] { transform: translateY(-40px); }
.animate-on-scroll[data-animation="fadeRight"] { transform: translateX(-40px); }
.animate-on-scroll[data-animation="fadeLeft"] { transform: translateX(40px); }
.animate-on-scroll[data-animation="scaleUp"] { transform: scale(0.9); }
.animate-on-scroll[data-animation="fadeIn"] { transform: none; }

/* Active state — after entering viewport */
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger support via data-delay */
.animate-on-scroll[data-delay="100"] { transition-delay: 100ms; }
.animate-on-scroll[data-delay="150"] { transition-delay: 150ms; }
.animate-on-scroll[data-delay="200"] { transition-delay: 200ms; }
.animate-on-scroll[data-delay="250"] { transition-delay: 250ms; }
.animate-on-scroll[data-delay="300"] { transition-delay: 300ms; }
.animate-on-scroll[data-delay="350"] { transition-delay: 350ms; }
.animate-on-scroll[data-delay="400"] { transition-delay: 400ms; }
.animate-on-scroll[data-delay="450"] { transition-delay: 450ms; }
.animate-on-scroll[data-delay="500"] { transition-delay: 500ms; }
.animate-on-scroll[data-delay="550"] { transition-delay: 550ms; }
.animate-on-scroll[data-delay="600"] { transition-delay: 600ms; }
.animate-on-scroll[data-delay="700"] { transition-delay: 700ms; }

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
