/* ==========================================================================
   AimaShiksha — Purposeful Motion & Transitions
   Restrained, responsive to user action, respecting reduced motion preferences
   ========================================================================== */

/* Hero Active Slide Entrance */
@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-slide.active .hero-tag {
  animation: heroTextIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-slide.active .hero-title {
  animation: heroTextIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero-slide.active .hero-subtitle {
  animation: heroTextIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.hero-slide.active .hero-actions {
  animation: heroTextIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

/* Subtle section visibility reveal (non-blocking, progressive) */
.reveal-ready {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect User Accessibility Preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-ready {
    opacity: 1;
    transform: none;
  }
}
