/* ══════════════════════════════════════════════════════
   DYNAMICS.CSS — Alfadfadah Factory
   Particles · Counters · Tilt · Magnetic · Sparkle · Shimmer
   ══════════════════════════════════════════════════════ */

/* ── ANIMATED GOLD GRADIENT ON ITALIC TITLES ── */
@keyframes dyn-gold-shift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero-title em,
.sec-title em,
.page-title em,
.spc-title em {
  background: linear-gradient(135deg, #A88B51 0%, #D4B97A 40%, #F5E6B8 55%, #C4A96A 70%, #A88B51 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dyn-gold-shift 4s ease-in-out infinite;
}

/* ── SHIMMER SWEEP ON EYEBROWS / NUMBERS ── */
@keyframes dyn-shimmer-sweep {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.dyn-shimmer {
  background: linear-gradient(90deg, #A88B51 0%, #C4A96A 30%, #F0E0A8 50%, #C4A96A 70%, #A88B51 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dyn-shimmer-sweep 3.5s linear infinite;
}

/* ── GROWING GOLD UNDERLINE ON EYEBROWS ── */
.dyn-eyebrow {
  position: relative;
  display: inline-block;
}
.dyn-eyebrow::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  height: 1px; width: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 1s cubic-bezier(0.23, 1, 0.32, 1) 0.15s;
}
.dyn-eyebrow.dyn-visible::after {
  width: 100%;
}

/* ── STAT PULSE ── */
@keyframes dyn-stat-glow {
  0%,100% { border-color: rgba(168,139,81,0.12); }
  50%      { border-color: rgba(168,139,81,0.4); box-shadow: 0 0 20px rgba(168,139,81,0.12); }
}
.stat {
  animation: dyn-stat-glow 3s ease-in-out infinite;
}
.stat:nth-child(2) { animation-delay: 0.75s; }
.stat:nth-child(3) { animation-delay: 1.5s;  }
.stat:nth-child(4) { animation-delay: 2.25s; }

/* ── COUNTER GLOW ON FINISH ── */
@keyframes dyn-count-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); text-shadow: 0 0 24px rgba(168,139,81,0.5); }
  100% { transform: scale(1); }
}
.dyn-count-done {
  animation: dyn-count-pop 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* ── CARD GLOW ON HOVER ── */
.card {
  transition: box-shadow 0.4s ease, transform 0.12s ease !important;
}
.card:hover {
  box-shadow: 0 16px 56px rgba(168,139,81,0.2) !important;
}
.offering-card {
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.12s ease !important;
}
.offering-card:hover {
  box-shadow: 0 10px 40px rgba(168,139,81,0.18) !important;
  border-color: rgba(168,139,81,0.45) !important;
}
.enquiry-card {
  transition: box-shadow 0.4s ease, transform 0.12s ease !important;
}
.enquiry-card:hover {
  box-shadow: 0 10px 40px rgba(168,139,81,0.18) !important;
}
.cred-item {
  transition: box-shadow 0.4s ease, transform 0.12s ease !important;
}
.cred-item:hover {
  box-shadow: 0 8px 32px rgba(168,139,81,0.15) !important;
}

/* ── CARD IMAGE ZOOM ── */
.card-img {
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1) !important;
  overflow: hidden;
}
.card:hover .card-img {
  transform: scale(1.06) !important;
}

/* ── GOLD SHIMMER SWEEP ON CARD HOVER ── */
.card::before,
.offering-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(168,139,81,0.08) 50%, transparent 60%);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 1;
}
.card:hover::before,
.offering-card:hover::before {
  left: 150%;
}
.card { position: relative; overflow: hidden; }

/* ── BUTTON RIPPLE ── */
.dyn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  transform: scale(0);
  pointer-events: none;
  animation: dyn-ripple-expand 0.65s ease forwards;
}
@keyframes dyn-ripple-expand {
  to { transform: scale(5); opacity: 0; }
}
.btn-primary,
.btn-ghost,
.btn-outline {
  position: relative;
  overflow: hidden;
}

/* ── CURSOR SPARKLE ── */
.dyn-sparkle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9996;
  background: radial-gradient(circle, #F5E6B8 0%, #C4A96A 60%, transparent 100%);
  animation: dyn-sparkle-die 0.65s ease forwards;
  transform: translate(-50%, -50%);
}
@keyframes dyn-sparkle-die {
  0%   { opacity: 0.75; transform: translate(-50%, -50%) scale(1) translateY(0); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(0.1) translateY(-12px); }
}

/* ── SECTION ENTRANCE WIPE ── */
.dyn-wipe {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.85s cubic-bezier(0.23, 1, 0.32, 1);
}
.dyn-wipe.dyn-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO PARTICLE CANVAS ── */
.dyn-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── PAGE-HEADER PARTICLE CANVAS ── */
.page-header { position: relative; }
