/* ============================================================
   Ad Lead — Animations v2
   ============================================================ */

/* ── Keyframes ────────────────────────────────────────────── */
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(34,197,94,0.7); }
  50%       { opacity: 0.5; transform: scale(0.75); box-shadow: 0 0 4px rgba(34,197,94,0.3); }
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  45%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  55%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

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

/* ── About cards float ────────────────────────────────────── */
.about__card:nth-child(1) { animation: float 5s ease-in-out infinite; }
.about__card:nth-child(2) { animation: float 5s ease-in-out infinite 1.5s; }
.about__card:nth-child(3) { animation: float 5s ease-in-out infinite 3s; }

/* ── Hover micro-interactions ─────────────────────────────── */
.case-card { transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.process__step { transition: background .3s ease; }
.about__card { transition: border-color .3s ease, transform .3s ease; }

/* ── Form inputs ──────────────────────────────────────────── */
.form-group input,
.form-group select,
.form-group textarea {
  transition: border-color .25s ease, box-shadow .25s ease;
}

/* ── Btn shimmer ──────────────────────────────────────────── */
.btn--ghost { position: relative; overflow: hidden; }
.btn--ghost::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}
.btn--ghost:hover::after { transform: translateX(100%); }

/* ── Mobile nav overlay ───────────────────────────────────── */
@media (max-width: 768px) {
  body::after {
    content: '';
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 997;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  body.nav-open::after { opacity: 1; pointer-events: all; }
}

/* ── AOS override ─────────────────────────────────────────── */
[data-aos] {
  transition-timing-function: cubic-bezier(.25,.8,.25,1) !important;
}

/* ── Svc info transition ──────────────────────────────────── */
.services__info {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* ── Service card hover glow ──────────────────────────────── */
.svc-card {
  transition: background .3s ease;
}
.svc-card:hover .svc-card__icon { transform: scale(1.15); }
.svc-card__icon { transition: transform .3s ease, color .3s ease; }

/* ── Hero canvas fade-in is handled by GSAP ──────────────── */
.hero__badge,
.hero__title,
.hero__desc,
.hero__actions,
.hero__right,
.hero__scroll-hint {
  /* Initial states set here; GSAP animates them to visible */
}

/* ── Case card glow on hover ──────────────────────────────── */
.case-card:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
