/* ═══════════════════════════════════════════════════
   AFAQ ALSUMUW · Animations & Effects
   ═══════════════════════════════════════════════════ */

/* ── KEYFRAMES ── */
@keyframes preLoad {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes floatLogo {
  0%,100% { transform: translateY(0px); }
  50%     { transform: translateY(-12px); }
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}
@keyframes riseUp {
  from { opacity:0; transform:translateY(26px); }
  to   { opacity:1; transform:none; }
}
@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}
@keyframes scrollPulse {
  0%,100% { opacity:.4; transform:scaleY(1); }
  50%     { opacity:.9; transform:scaleY(1.18); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes goldPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  50%     { box-shadow: 0 0 0 8px rgba(201,168,76,0.12); }
}
@keyframes borderDraw {
  from { stroke-dashoffset: 600; }
  to   { stroke-dashoffset: 0; }
}

/* ── HERO ANIMATIONS (triggered by class on load) ── */
.hero-eyebrow  { opacity:0; animation: riseUp .85s .12s var(--ease,ease) forwards; }
.hero h1       { opacity:0; animation: riseUp .85s .28s var(--ease,ease) forwards; }
.hero-sub      { opacity:0; animation: riseUp .85s .40s var(--ease,ease) forwards; }
.hero-p        { opacity:0; animation: riseUp .85s .52s var(--ease,ease) forwards; }
.hero-btns     { opacity:0; animation: riseUp .85s .64s var(--ease,ease) forwards; }
.hero-stats    { opacity:0; animation: riseUp .85s .82s var(--ease,ease) forwards; }

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease,ease), transform .7s var(--ease,ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-left {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .7s var(--ease,ease), transform .7s var(--ease,ease);
}
.reveal-left.in { opacity:1; transform:none; }
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity .65s var(--ease,ease), transform .65s var(--ease,ease);
}
.reveal-scale.in { opacity:1; transform:none; }

/* ── STAGGER DELAYS ── */
.stagger-1 { transition-delay:.05s !important; }
.stagger-2 { transition-delay:.12s !important; }
.stagger-3 { transition-delay:.19s !important; }
.stagger-4 { transition-delay:.26s !important; }
.stagger-5 { transition-delay:.33s !important; }
.stagger-6 { transition-delay:.40s !important; }

/* ── SCROLL LINE ── */
.scroll-line { animation: scrollPulse 2.2s ease infinite; }

/* ── SHIMMER GOLD TEXT ── */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    var(--gold-l) 40%,
    var(--gold) 55%,
    var(--gold-l) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3.5s linear infinite;
}

/* ── COUNTER ROLL ── */
.counter-roll {
  display: inline-block;
  transition: transform .3s var(--ease,ease);
}

/* ── GOLD PULSE on key elements ── */
.pstep-n { animation: goldPulse 3s ease-in-out infinite; }
.pstep-n:hover { animation: none; }

/* ── PAGE TRANSITION ── */
.page-enter {
  animation: fadeIn 0.6s var(--ease,ease) forwards;
}

/* ── NAV UNDERLINE ── */
.nav-links a.active::after { width:100% !important; }
.nav-links a.active { color:var(--gold) !important; }
