/* ===================================================================
   ANIMATIONS.CSS — Fade, slide, reveal & motion utilities
=================================================================== */

/* ---------- Scroll reveal base ---------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
[data-reveal].in-view{
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"]{ transform: translateX(-36px); }
[data-reveal="left"].in-view{ transform: translateX(0); }

[data-reveal="right"]{ transform: translateX(36px); }
[data-reveal="right"].in-view{ transform: translateX(0); }

[data-reveal="scale"]{ transform: scale(0.94); }
[data-reveal="scale"].in-view{ transform: scale(1); }

/* Stagger children */
[data-reveal-group] > *{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal-group].in-view > *{ opacity: 1; transform: translateY(0); }
[data-reveal-group].in-view > *:nth-child(1){ transition-delay: 0.05s; }
[data-reveal-group].in-view > *:nth-child(2){ transition-delay: 0.15s; }
[data-reveal-group].in-view > *:nth-child(3){ transition-delay: 0.25s; }
[data-reveal-group].in-view > *:nth-child(4){ transition-delay: 0.35s; }
[data-reveal-group].in-view > *:nth-child(5){ transition-delay: 0.45s; }
[data-reveal-group].in-view > *:nth-child(6){ transition-delay: 0.55s; }
[data-reveal-group].in-view > *:nth-child(7){ transition-delay: 0.65s; }

/* ---------- Hero entrance ---------- */
@keyframes heroFadeUp{
  from{ opacity: 0; transform: translateY(30px); }
  to{ opacity: 1; transform: translateY(0); }
}
.hero-copy .eyebrow{ animation: heroFadeUp 0.8s var(--ease-out) 0.1s both; }
.hero-copy h1{ animation: heroFadeUp 0.9s var(--ease-out) 0.25s both; }
.hero-copy .hero-lead{ animation: heroFadeUp 0.9s var(--ease-out) 0.4s both; }
.hero-copy .hero-actions{ animation: heroFadeUp 0.9s var(--ease-out) 0.55s both; }
.hero-visual{ animation: heroFadeUp 1s var(--ease-out) 0.5s both; }

/* ---------- Motion line draw (signature element) ---------- */
.motion-path{
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: drawPath 3.2s var(--ease-out) forwards;
}
@keyframes drawPath{
  to{ stroke-dashoffset: 0; }
}

.motion-dot{
  offset-rotate: 0deg;
  animation: travelDot 9s linear infinite;
}
@keyframes travelDot{
  0%{ offset-distance: 0%; opacity: 0; }
  5%{ opacity: 1; }
  95%{ opacity: 1; }
  100%{ offset-distance: 100%; opacity: 0; }
}

/* ---------- Logo / brand subtle pulse on load ---------- */
@keyframes fadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
.site-header{ animation: fadeIn 0.6s ease both; }

/* ---------- Floating badge ---------- */
@keyframes floatY{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}
.hero-badge{ animation: floatY 5s ease-in-out infinite; }

/* ---------- Card hover lift already in style.css; add subtle icon pulse ---------- */
@keyframes iconPulse{
  0%{ box-shadow: 0 0 0 0 rgba(39,181,175,0.35); }
  70%{ box-shadow: 0 0 0 12px rgba(39,181,175,0); }
  100%{ box-shadow: 0 0 0 0 rgba(39,181,175,0); }
}
.feature-item:hover .feature-icon{ animation: iconPulse 1.4s ease-out; }

/* ---------- Marquee-style trust bar entrance ---------- */
.trust-item{
  opacity: 0;
  animation: heroFadeUp 0.6s var(--ease-out) forwards;
}
.trust-item:nth-child(1){ animation-delay: 0.1s; }
.trust-item:nth-child(2){ animation-delay: 0.2s; }
.trust-item:nth-child(3){ animation-delay: 0.3s; }
.trust-item:nth-child(4){ animation-delay: 0.4s; }

/* ---------- Loading skeleton for lazy images ---------- */
img[loading="lazy"]{
  background: linear-gradient(100deg, #EEF1F2 30%, #E4E9EB 50%, #EEF1F2 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
img[loading="lazy"].loaded{ animation: none; background: none; }

@keyframes shimmer{
  0%{ background-position: 200% 0; }
  100%{ background-position: -200% 0; }
}

/* ---------- Button ripple-esque focus ---------- */
.btn{ position: relative; overflow: hidden; }

/* ---------- Page transition fade-in ---------- */
body{ animation: fadeIn 0.4s ease both; }

/* ---------- Reduced motion respects everything above via responsive.css ---------- */
