/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slower), transform var(--transition-slower);
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity var(--transition-slower), transform var(--transition-slower);
}

.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity var(--transition-slower), transform var(--transition-slower);
}

.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--transition-slower), transform var(--transition-slower);
}

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

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.4s; }

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

/* Hero animations */
@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.4;
    height: 48px;
  }
  50% {
    opacity: 1;
    height: 64px;
  }
}

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

.hero__title {
  animation: fadeInUp 1.2s ease forwards;
}

.hero__subtitle {
  opacity: 0;
  animation: fadeInUp 1.2s ease 0.3s forwards;
}

.hero__scroll {
  opacity: 0;
  animation: fadeInUp 1.2s ease 0.6s forwards;
}

/* Counter animation */
.stat-card__number {
  transition: none;
}

/* Gold line animation */
@keyframes expandLine {
  from {
    width: 0;
  }
  to {
    width: 48px;
  }
}

.section-divider.is-visible {
  animation: expandLine 0.8s ease forwards;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .scale-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .stagger-children > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__title,
  .hero__subtitle,
  .hero__scroll {
    animation: none;
    opacity: 1;
  }

  .hero__scroll-line {
    animation: none;
  }
}
