/* ==========================================================
   Animations — WALKADON LOGISTICS
   ========================================================== */

/* Scroll reveal — base state */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity .8s cubic-bezier(.22,.61,.36,1),
    transform .8s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .55s; }

/* Fade in from left/right */
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity .8s ease, transform .8s ease; }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity .8s ease, transform .8s ease; }
.reveal-left.is-visible, .reveal-right.is-visible { opacity: 1; transform: translateX(0); }

/* Hero entrance */
.hero__content > * {
  opacity: 0;
  transform: translateY(30px);
  animation: heroIn 1s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero__content > *:nth-child(1) { animation-delay: .1s; }
.hero__content > *:nth-child(2) { animation-delay: .25s; }
.hero__content > *:nth-child(3) { animation-delay: .4s; }
.hero__content > *:nth-child(4) { animation-delay: .55s; }
.hero__content > *:nth-child(5) { animation-delay: .7s; }

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

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  50.1%{ transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Subtle floating for hero badge / fabs */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}
.floating .fab { animation: float 4s ease-in-out infinite; }
.floating .fab:nth-child(2) { animation-delay: -2s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
  }
}
