/* ==========================================================================
   Animations — Subtle, purposeful, Apple-inspired
   ========================================================================== */

/* Scroll reveal */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }

/* Hero entrance — slow, confident */
.hero-animate {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-animate.delay-1 { animation-delay: 0.15s; }
.hero-animate.delay-2 { animation-delay: 0.3s; }
.hero-animate.delay-3 { animation-delay: 0.45s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tagline — enters with weight */
.tagline-animate {
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

/* Buttons — slightly later */
.buttons-animate {
  opacity: 0;
  transform: translateY(16px);
  animation: heroReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

/* Service cards — subtle scale */
.service-card.animate-on-scroll {
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card.animate-on-scroll.animate-in {
  transform: translateY(0);
}

/* Hero content fade on scroll */
.hero-content {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Section titles */
.section-title.animate-on-scroll {
  transform: translateY(16px);
}

/* Content and cards */
.contact-option.animate-on-scroll {
  transform: translateY(20px);
}

.contact-option.animate-on-scroll.animate-in {
  transform: translateY(0);
}

/* Page header animations */
.page-header.animate-on-scroll {
  transform: translateY(24px);
}

.content-section.animate-on-scroll {
  transform: translateY(20px);
}

.card.animate-on-scroll {
  transform: translateY(20px);
}

.card.animate-on-scroll.animate-in {
  transform: translateY(0);
}

.list-item.animate-on-scroll {
  transform: translateX(-12px);
}

.list-item.animate-on-scroll.animate-in {
  transform: translateX(0);
}

/* Reduced motion — respect the user */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .hero-animate,
  .tagline-animate,
  .buttons-animate {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .hero-content {
    transition: none;
  }
}
