/* =========================================================
   BIRP — ANIMATIONS
   Brand palette: Chartreuse · T-Bird Turquoise · Pastel Yellow
                  Violet · Indigo
   ========================================================= */

/* ── KEYFRAMES ── */

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 10px) scale(0.95); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-30px, 20px) scale(1.08); }
  70%       { transform: translate(20px, -15px) scale(0.92); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%       { transform: translate(40px, -30px) rotate(180deg); }
}

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

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

@keyframes leafSway {
  0%, 100% { transform: rotate(-5deg); }
  50%       { transform: rotate(5deg); }
}

@keyframes badgePop {
  0%   { transform: scale(0.6); opacity: 0; }
  80%  { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.5; }
}

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* Pulse glow using turquoise brand colour */
@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(115,196,174,0.4); }
  50%       { box-shadow: 0 0 0 20px rgba(115,196,174,0); }
}

/* Violet accent pulse for cycle center */
@keyframes ringPulseViolet {
  0%, 100% { box-shadow: 0 0 0 0   rgba(175,88,203,0.4); }
  50%       { box-shadow: 0 0 0 20px rgba(175,88,203,0); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes popIn {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

/* Indigo glow for impact ring */
@keyframes indigoGlow {
  0%, 100% { box-shadow: 0 0 0 0   rgba(97,58,164,0.3); }
  50%       { box-shadow: 0 0 0 24px rgba(97,58,164,0); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger siblings */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal:nth-child(3) { transition-delay: 0.25s; }
.reveal:nth-child(4) { transition-delay: 0.35s; }
.reveal:nth-child(5) { transition-delay: 0.45s; }
.reveal:nth-child(6) { transition-delay: 0.10s; }

/* ── HERO ENTRANCE ── */
.hero-content .hero-badge            { animation: badgePop  0.6s cubic-bezier(0.34,1.56,0.64,1) both 0.2s; }
.hero-content .hero-title            { animation: fadeInUp  0.8s ease both 0.4s; }
.hero-content .hero-sub              { animation: fadeInUp  0.8s ease both 0.6s; }
.hero-content .hero-cta              { animation: fadeInUp  0.8s ease both 0.8s; }
.hero-content .hero-partners-label  { animation: fadeInUp  0.6s ease both 1.0s; }

/* ── FOOD CARDS ── */
.food-card.fc-1 { animation: cardFloat1 4s   ease-in-out infinite,     fadeInRight 0.8s ease both 0.5s; }
.food-card.fc-2 { animation: cardFloat2 5s   ease-in-out infinite 0.5s,fadeInRight 0.8s ease both 0.7s; }
.food-card.fc-3 { animation: cardFloat1 4.5s ease-in-out infinite 1s,  fadeInRight 0.8s ease both 0.9s; }
.food-card.fc-4 { animation: cardFloat2 5.5s ease-in-out infinite 1.5s,fadeInRight 0.8s ease both 1.1s; }

/* ── DEAL CARD HOVER ── */
.deal-card {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

/* ── BUTTONS ── */
.btn-primary, .btn-ghost, .btn-white, .btn-ghost-white {
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow  0.2s ease,
              background  0.2s ease,
              border-color 0.2s ease;
}
.btn-primary:active, .btn-reserve:active { transform: scale(0.97); }

/* ── NAV ENTRANCE ── */
.navbar { animation: slideDown 0.6s ease both; }

/* ── FILTER ACTIVE ── */
.filter-btn {
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.filter-btn:active { transform: scale(0.96); }

/* ── MODAL ── */
.modal-overlay.active .modal {
  animation: scaleIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── STAT CARD ── */
.stat-card {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

/* ── FOUNDER CARD ── */
.founder-card {
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

/* ── STEP CARD ── */
.step-card {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease;
}

/* ── CATEGORY CARD ── */
.cat-card {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease;
}

/* ── HERO gradient ── */
.hero {
  background-size: 200% 200%;
  animation: gradientShift 14s ease infinite;
}

/* ── MARQUEE gradient shift ── */
.marquee-strip {
  background-size: 200% 100%;
  animation: gradientShift 8s linear infinite;
}

/* ── IMPACT RING (indigo glow) ── */
.impact-ring {
  animation: indigoGlow 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.impact-ring:hover { transform: scale(1.05); }

/* ── I-BADGES ── */
.i-badge {
  animation: fadeInUp 0.5s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.i-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(115,196,174,0.25);
}
.i-badge:nth-child(1) { animation-delay: 0.1s; }
.i-badge:nth-child(2) { animation-delay: 0.2s; }
.i-badge:nth-child(3) { animation-delay: 0.3s; }
.i-badge:nth-child(4) { animation-delay: 0.4s; }

/* ── CYCLE CENTER pulse (turquoise/indigo gradient, turquoise pulse) ── */
.cycle-center {
  animation: ringPulse 2s ease-in-out infinite;
}

/* ── SUCCESS ICON ── */
.success-icon {
  animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
  display: inline-block;
}

/* ── RESERVE PRICE ── */
.reserve-price-display {
  animation: scaleIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── PAGE ENTRANCE ── */
/* body animation removed — it created a stacking context that broke fixed modals */

/* ── MARQUEE PAUSE ON HOVER ── */
.marquee-strip:hover .marquee-track { animation-play-state: paused; }

/* ── LOADING SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* ── BAG + FOOD ITEM ANIMATIONS ── */
@keyframes bagBob {
  0%, 100% { transform: translate(-50%, -48%) translateY(0px); }
  50%       { transform: translate(-50%, -48%) translateY(-18px); }
}


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

@keyframes sparklePulse {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50%       { opacity: 0.4; transform: scale(1.4) rotate(20deg); }
}

/* ── SHOWCASE CARD ── */
.showcase-card {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}

/* ── FARM BANNER PARALLAX ── */
.farm-banner-photo {
  transition: transform 8s ease;
}

/* ── DOWNLOAD BUTTON PULSE (home hero placeholder) ── */
@keyframes downloadPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(97, 58, 164, 0.4); }
  50%       { box-shadow: 0 10px 30px rgba(97, 58, 164, 0.4), 0 0 0 14px rgba(97, 58, 164, 0); }
}

/* ── PHONE MOCKUP FLOAT (app download banner) ── */
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}
