/* =========================================================
   Animations & motion
   ========================================================= */

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.reveal.visible:nth-child(1) { transition-delay: 0s; }
.reveal.visible:nth-child(2) { transition-delay: 0.08s; }
.reveal.visible:nth-child(3) { transition-delay: 0.16s; }
.reveal.visible:nth-child(4) { transition-delay: 0.24s; }
.reveal.visible:nth-child(5) { transition-delay: 0.32s; }
.reveal.visible:nth-child(6) { transition-delay: 0.4s; }

/* ---- Float (hero logo) ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ---- Logo loader pulse ---- */
@keyframes pulse-logo {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.08); }
}

/* ---- Slow rotation (legacy circular badge) ---- */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---- Gentle stamp float for the YEMEN badge ---- */
@keyframes badge-float {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(-4deg) translateY(-6px); }
}

/* ---- Hero scroll arrow ---- */
@keyframes scroll-tick {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ---- Flying bee path ---- */
@keyframes fly-path {
  0%   { transform: translate(-100px, 0) rotate(8deg); }
  20%  { transform: translate(20vw, -40px) rotate(-6deg); }
  40%  { transform: translate(45vw, 40px) rotate(10deg); }
  60%  { transform: translate(70vw, -20px) rotate(-4deg); }
  80%  { transform: translate(90vw, 30px) rotate(6deg); }
  100% { transform: translate(110vw, 0) rotate(0deg); }
}

/* ---- WhatsApp ping ---- */
@keyframes ping {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---- Generic fade-in (lightbox) ---- */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Honey drip flow (between sections) ---- */
@keyframes drip-flow {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50%      { transform: translateY(4px) scaleY(1.06); }
}
.drip-divider img { animation: drip-flow 6s ease-in-out infinite; transform-origin: top center; }

/* ---- Parallax on honeycomb pattern (subtle drift) ---- */
@keyframes pattern-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 120px 104px; }
}
.honeycomb-pattern { animation: pattern-drift 60s linear infinite; }

/* ---- Shimmer on premium ribbon ---- */
@keyframes shimmer {
  0%, 100% { background-position: -200% center; }
  50%      { background-position: 200% center; }
}
.type-ribbon {
  background: linear-gradient(110deg, var(--gold) 30%, var(--amber-light) 50%, var(--gold) 70%);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

/* ---- Subtle gradient shift on stats ---- */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.stats {
  background-size: 200% 200%;
  animation: gradient-shift 14s ease infinite;
}

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
