/* ==========================================================================
   Scroll Reveal Classes
   ========================================================================== */

[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-animate='fade'] {
  opacity: 0;
  transform: none;
}

[data-animate='fade'].in-view {
  opacity: 1;
}

[data-animate='slide-left'] {
  transform: translateX(-60px);
}

[data-animate='slide-left'].in-view {
  transform: translateX(0);
}

[data-animate='slide-right'] {
  transform: translateX(60px);
}

[data-animate='slide-right'].in-view {
  transform: translateX(0);
}

[data-animate='scale'] {
  transform: scale(0.9);
}

[data-animate='scale'].in-view {
  transform: scale(1);
}

[data-animate='reveal-up'] {
  clip-path: inset(100% 0 0 0);
}

[data-animate='reveal-up'].in-view {
  clip-path: inset(0);
}

/* ==========================================================================
   Stagger Delays
   ========================================================================== */

[data-delay='1'] { transition-delay: 0.1s; }
[data-delay='2'] { transition-delay: 0.2s; }
[data-delay='3'] { transition-delay: 0.3s; }
[data-delay='4'] { transition-delay: 0.4s; }
[data-delay='5'] { transition-delay: 0.5s; }
[data-delay='6'] { transition-delay: 0.6s; }

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

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

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes lineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes clipReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* ==========================================================================
   Hero-specific animations
   ========================================================================== */

.hero-title-line {
  animation: fadeInUp 1s var(--ease-out) forwards;
  opacity: 0;
}

.hero-title-line:nth-child(1) { animation-delay: 0.1s; }
.hero-title-line:nth-child(2) { animation-delay: 0.3s; }
.hero-title-line:nth-child(3) { animation-delay: 0.5s; }

.hero-subtitle {
  animation: fadeIn 0.8s 0.6s forwards;
  opacity: 0;
}

.hero-cta {
  animation: fadeInUp 0.8s 0.8s forwards;
  opacity: 0;
}

.hero-visual {
  animation: fadeIn 1s 0.4s forwards, float 6s 1.5s infinite;
  opacity: 0;
}

.hero-scroll-indicator {
  animation: fadeIn 0.5s 1.2s forwards, pulse 2s 2s infinite;
  opacity: 0;
}

/* ==========================================================================
   Utility Animations
   ========================================================================== */

.animate-float {
  animation: float 6s ease-in-out infinite;
}

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

.animate-marquee {
  animation: marquee 30s linear infinite;
}

.animate-rotate {
  animation: rotate 20s linear infinite;
}

/* ==========================================================================
   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;
  }
  
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
