/* ============================================================
   HireSmartly.ai — Animations & Keyframes
   ============================================================ */

/* ── Float animations for hero pills ─────────────────────── */
@keyframes floatA {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(1deg); }
  66%       { transform: translateY(-6px) rotate(-1deg); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  40%       { transform: translateY(-10px) rotate(-1.5deg); }
  70%       { transform: translateY(-4px) rotate(1deg); }
}

/* ── Marquee (Trusted By) ─────────────────────────────────── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Gradient glow pulse ──────────────────────────────────── */
@keyframes glowPulse {
  0%, 100% { opacity: 0.15; }
  50%       { opacity: 0.28; }
}

.hero-blob-1 { animation: glowPulse 6s ease-in-out infinite; }
.hero-blob-2 { animation: glowPulse 8s ease-in-out infinite 2s; }
.hero-blob-3 { animation: glowPulse 7s ease-in-out infinite 4s; }

/* ── Step number ring pulse ───────────────────────────────── */
@keyframes ringPulse {
  0%   { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  70%  { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.step-item:hover .step-number { animation: ringPulse 1.2s ease-out; }

/* ── Counter number flip ──────────────────────────────────── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(0.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

.stat-number.counting { animation: countUp 0.3s ease-out; }

/* ── Fade in up (manual, for elements that need it) ──────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.6s ease-out both; }

/* ── Hero badge shimmer ───────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.hero-badge {
  background-size: 200% auto;
}

/* ── Gradient border spin (signup card top border) ───────── */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.signup-card::before {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

/* ── Typing cursor blink ──────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Success checkmark scale in ──────────────────────────── */
@keyframes scaleIn {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-icon { animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* ── Reduced motion: disable everything ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track { animation: none !important; }
  .hero-blob-1, .hero-blob-2, .hero-blob-3 { animation: none !important; }
  .pill-1, .pill-2, .pill-3 { animation: none !important; }
}
