/* ============================================================
   PFA FITNESS — Animations & Keyframes
   ============================================================ */

/* ---- Keyframes ---- */
@keyframes pfa-fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pfa-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pfa-slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pfa-slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pfa-scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pfa-pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(192,57,43,0); }
}
@keyframes pfa-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes pfa-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pfa-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}
@keyframes pfa-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pfa-count-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pfa-bar-fill {
  from { width: 0; }
}
@keyframes pfa-typing {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes pfa-blink-caret {
  50% { border-color: transparent; }
}
@keyframes pfa-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pfa-ripple {
  0%   { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}
@keyframes pfa-stagger-reveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Hero Entrance ---- */
.pfa-hero-eyebrow { animation: pfa-fadeInUp 0.7s ease both; animation-delay: 0.2s; }
.pfa-hero-title   { animation: pfa-fadeInUp 0.8s ease both; animation-delay: 0.35s; }
.pfa-hero-subtitle { animation: pfa-fadeInUp 0.8s ease both; animation-delay: 0.5s; }
.pfa-hero-actions { animation: pfa-fadeInUp 0.8s ease both; animation-delay: 0.65s; }
.pfa-hero-stats   { animation: pfa-fadeInUp 0.8s ease both; animation-delay: 0.8s; }

/* ---- Scroll Cue ---- */
.pfa-scroll-cue-arrow { animation: pfa-scroll-bounce 1.6s ease infinite; }

/* ---- Float Animation ---- */
.pfa-animate-float { animation: pfa-float 3.5s ease-in-out infinite; }

/* ---- Pulse ---- */
.pfa-animate-pulse { animation: pfa-pulse-red 2s ease infinite; }

/* ---- Shimmer text effect ---- */
.pfa-shimmer-text {
  background: linear-gradient(90deg, var(--pfa-red), var(--pfa-red-soft), var(--pfa-gold), var(--pfa-red));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pfa-shimmer 3s linear infinite;
}

/* ---- Gradient animated background ---- */
.pfa-gradient-animate {
  background: linear-gradient(135deg, var(--pfa-charcoal), var(--pfa-charcoal-mid), #2a1a1a, var(--pfa-charcoal));
  background-size: 400% 400%;
  animation: pfa-gradient-shift 8s ease infinite;
}

/* ---- Logo mark spin on hover ---- */
.pfa-logo:hover .pfa-logo-mark { animation: pfa-spin-slow 0.6s ease; }

/* ---- Button ripple effect ---- */
.pfa-btn { position: relative; overflow: hidden; }
.pfa-btn::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: none;
}
.pfa-btn:active::after {
  width: 200px; height: 200px;
  opacity: 0;
  transition: all 0.4s ease;
}

/* ---- Card lift ---- */
.pfa-lift-on-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pfa-lift-on-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

/* ---- Scale on hover ---- */
.pfa-scale-on-hover { transition: transform 0.25s ease; }
.pfa-scale-on-hover:hover { transform: scale(1.04); }

/* ---- SVG decorative shapes ---- */
.pfa-svg-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}
.pfa-svg-deco-1 {
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  animation: pfa-spin-slow 30s linear infinite;
}
.pfa-svg-deco-2 {
  bottom: -80px; left: -40px;
  width: 240px; height: 240px;
  animation: pfa-spin-slow 22s linear infinite reverse;
}

/* ---- Loading state ---- */
.pfa-skeleton {
  background: linear-gradient(90deg, #e8e4de 25%, #f0ece6 50%, #e8e4de 75%);
  background-size: 200% 100%;
  animation: pfa-shimmer 1.5s infinite;
  border-radius: var(--pfa-radius);
}

/* ---- Staggered children ---- */
.pfa-stagger-children > *:nth-child(1) { animation-delay: 0.0s; }
.pfa-stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.pfa-stagger-children > *:nth-child(3) { animation-delay: 0.2s; }
.pfa-stagger-children > *:nth-child(4) { animation-delay: 0.3s; }
.pfa-stagger-children > *:nth-child(5) { animation-delay: 0.4s; }
.pfa-stagger-children > *:nth-child(6) { animation-delay: 0.5s; }

/* ---- Page transition ---- */
.pfa-page-transition {
  position: fixed;
  inset: 0;
  background: var(--pfa-charcoal);
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pfa-page-transition.entering { opacity: 1; }
