/* ============================================================
   XTREME FITNESS STUDIO — ADVANCED ANIMATION SYSTEM CSS
   Full cinematic animation stylesheet
   ============================================================ */

/* ──────────────────────────────────────────────
   CSS VARIABLES / DESIGN TOKENS
────────────────────────────────────────────── */
:root {
  --red:          #e01010;
  --red-bright:   #ff2020;
  --red-glow:     rgba(224,16,16,0.6);
  --red-dim:      rgba(224,16,16,0.15);
  --bg-dark:      #080808;
  --bg-card:      rgba(18,18,18,0.9);
  --white:        #ffffff;
  --white-60:     rgba(255,255,255,0.6);
  --white-20:     rgba(255,255,255,0.08);
  --neon-red:     0 0 8px #e01010, 0 0 20px rgba(224,16,16,0.5), 0 0 40px rgba(224,16,16,0.2);
  --neon-white:   0 0 8px #fff, 0 0 20px rgba(255,255,255,0.4);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ──────────────────────────────────────────────
   BODY LOADING STATE
────────────────────────────────────────────── */
body.is-loading { overflow: hidden; }
body.is-loading #scroll-progress { opacity: 0; }

/* ──────────────────────────────────────────────
   THREE.JS CANVAS (full-page ambient)
────────────────────────────────────────────── */
#three-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ──────────────────────────────────────────────
   CUSTOM CURSOR
────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
}

#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--red-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-9999px, -9999px);
  margin-left: -4px;
  margin-top: -4px;
  transition: opacity 0.3s, width 0.3s, height 0.3s, background 0.3s;
  box-shadow: 0 0 10px var(--red), 0 0 20px rgba(224,16,16,0.5);
  will-change: transform;
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1.5px solid rgba(224,16,16,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-9999px, -9999px);
  margin-left: -20px;
  margin-top: -20px;
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              border-color 0.3s,
              background 0.3s,
              opacity 0.3s;
  will-change: transform;
}

#cursor-ring.cursor-hover {
  width: 60px; height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  border-color: var(--red);
  background: rgba(224,16,16,0.05);
}

#cursor-ring.cursor-hidden,
#cursor-dot.cursor-hidden { opacity: 0; }

#cursor-trail-container {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 99997;
  overflow: visible;
}

.cursor-trail-dot {
  position: fixed;
  top: 0; left: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  transform: translate(-9999px, -9999px);
  pointer-events: none;
  transition: opacity 0.5s;
  will-change: transform;
}

/* ──────────────────────────────────────────────
   SCROLL PROGRESS BAR
────────────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  z-index: 99990;
  background: rgba(255,255,255,0.05);
}

#scroll-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-bright) 50%, #ff6060 100%);
  box-shadow: 0 0 10px var(--red), 0 0 20px rgba(224,16,16,0.4);
  transition: width 0.05s linear;
  position: relative;
}

#scroll-bar::after {
  content: '';
  position: absolute;
  right: 0; top: -2px;
  width: 6px; height: 7px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--neon-white);
}

/* ──────────────────────────────────────────────
   LOADER — CINEMATIC
────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(224,16,16,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,16,16,0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridShift 6s linear infinite;
}

@keyframes gridShift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(50px); }
}

.loader-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loader-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.loader-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(224,16,16,0.35) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.loader-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(224,16,16,0.25) 0%, transparent 70%);
  bottom: -50px; right: -50px;
  animation-delay: -3s;
}

.loader-orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,80,80,0.2) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -1.5s;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 30px) scale(1.1); }
}

.loader-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 900;
  letter-spacing: 4px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.loader-x {
  color: var(--red);
  display: inline-block;
  transform: translateX(-100px);
  opacity: 0;
  text-shadow: var(--neon-red);
  animation: loaderXSlide 0.8s var(--ease-out-expo) 0.3s forwards;
}

.loader-text {
  color: #fff;
  display: inline-block;
  transform: translateX(100px);
  opacity: 0;
  animation: loaderTextSlide 0.8s var(--ease-out-expo) 0.3s forwards;
}

@keyframes loaderXSlide {
  to { transform: translateX(0); opacity: 1; }
}

@keyframes loaderTextSlide {
  to { transform: translateX(0); opacity: 1; }
}

.loader-studio {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  letter-spacing: 8px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.6s ease 1s forwards;
}

.loader-bar-wrap {
  width: 280px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: visible;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.6s ease 1.2s forwards;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  border-radius: 3px;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--red);
}

.loader-bar-glow {
  position: absolute;
  top: -3px; left: 0;
  width: 100%; height: 9px;
  background: inherit;
  filter: blur(6px);
  opacity: 0.5;
  pointer-events: none;
}

.loader-percent {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  color: var(--red);
  letter-spacing: 3px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 1.2s forwards;
}

.loader-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 6px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.6s ease 1.4s forwards;
}

.loader-bottom-line {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  animation: loaderLine 2s ease-in-out 0.5s infinite;
}

@keyframes loaderLine {
  0%   { left: -100%; width: 50%; }
  100% { left: 100%; width: 50%; }
}

#loader.loader-exit {
  animation: loaderExit 0.8s var(--ease-out-expo) forwards;
}

@keyframes loaderExit {
  0%   { transform: translateY(0); opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  100% { transform: translateY(-30px); opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 0%, 0 0%); }
}

/* ──────────────────────────────────────────────
   NAVBAR ANIMATIONS
────────────────────────────────────────────── */
.navbar {
  transition: transform 0.4s var(--ease-out-expo), background 0.4s;
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::before,
.nav-link::after {
  content: none;
}

.nav-line {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  transition: width 0.6s ease;
}

.navbar.scrolled .nav-line { width: 100%; }

/* ──────────────────────────────────────────────
   HERO — LAYERED PARALLAX
────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-parallax-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(224,16,16,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(224,16,16,0.1) 0%, transparent 50%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}

.hero-grid.anim-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(224,16,16,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,16,16,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: heroGridPan 20s linear infinite;
  opacity: 0;
  animation: heroGridPan 20s linear infinite, gridFadeIn 1s ease 2s forwards;
}

@keyframes heroGridPan {
  0%   { transform: translateX(0) translateY(0); }
  100% { transform: translateX(60px) translateY(60px); }
}

@keyframes gridFadeIn {
  to { opacity: 1; }
}

/* Geometric shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }

.hero-shape {
  position: absolute;
  border: 1px solid rgba(224,16,16,0.2);
  border-radius: 4px;
  animation: shapeOrbit 20s ease-in-out infinite;
}

.hero-shape.s1 {
  width: 60px; height: 60px;
  top: 15%; right: 20%;
  animation-duration: 18s;
  animation-delay: 0s;
}

.hero-shape.s2 {
  width: 30px; height: 30px;
  top: 60%; right: 15%;
  border-radius: 50%;
  background: rgba(224,16,16,0.05);
  animation-duration: 22s;
  animation-delay: -4s;
}

.hero-shape.s3 {
  width: 80px; height: 2px;
  top: 35%; left: 10%;
  transform: rotate(-45deg);
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(224,16,16,0.4), transparent);
  animation-duration: 15s;
  animation-delay: -2s;
}

.hero-shape.s4 {
  width: 12px; height: 12px;
  top: 75%; left: 25%;
  border-radius: 50%;
  background: rgba(224,16,16,0.3);
  box-shadow: 0 0 10px var(--red);
  animation-duration: 12s;
  animation-delay: -6s;
}

.hero-shape.s5 {
  width: 100px; height: 100px;
  bottom: 20%; left: 60%;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.05);
  animation-duration: 25s;
  animation-delay: -8s;
}

@keyframes shapeOrbit {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.4; }
  25%       { transform: translateY(-20px) rotate(90deg); opacity: 0.8; }
  50%       { transform: translateY(-10px) rotate(180deg); opacity: 0.4; }
  75%       { transform: translateY(-30px) rotate(270deg); opacity: 0.6; }
}

/* Volumetric light rays */
.light-rays {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200%; height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.ray {
  position: absolute;
  top: -50px;
  width: 2px;
  height: 120%;
  background: linear-gradient(180deg, rgba(224,16,16,0.15), transparent);
  transform-origin: top center;
  animation: rayPulse 4s ease-in-out infinite;
  filter: blur(1px);
}

.ray.r1 { left: 35%; transform: rotate(-15deg); animation-delay: 0s; }
.ray.r2 { left: 50%; transform: rotate(0deg); animation-delay: 1.3s; width: 3px;
           background: linear-gradient(180deg, rgba(224,16,16,0.2), transparent); }
.ray.r3 { left: 65%; transform: rotate(15deg); animation-delay: 2.6s; }

@keyframes rayPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

/* Sparks container */
#sparks-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.spark {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px var(--red);
  animation: sparkFly var(--duration, 1.5s) ease-out var(--delay, 0s) forwards;
}

@keyframes sparkFly {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--vx, 50px), var(--vy, -80px)) scale(0); opacity: 0; }
}

/* ──────────────────────────────────────────────
   MARQUEE SECTION
────────────────────────────────────────────── */
.marquee-section {
  width: 100%;
  padding: 16px 0;
  background: rgba(224,16,16,0.06);
  border-top: 1px solid rgba(224,16,16,0.2);
  border-bottom: 1px solid rgba(224,16,16,0.2);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px; height: 100%;
  z-index: 3;
  pointer-events: none;
}

.marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-dark), transparent);
}

.marquee-section::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-dark), transparent);
}

.marquee-track { overflow: hidden; }

.marquee-content {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
}

.marquee-content span {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  flex-shrink: 0;
}

.marquee-dot {
  color: var(--red) !important;
  font-size: 10px !important;
  letter-spacing: 0 !important;
}

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

/* ──────────────────────────────────────────────
   REVEAL ANIMATION CLASSES
────────────────────────────────────────────── */
.reveal-up,
.reveal-fade,
.reveal-left,
.reveal-right,
.reveal-zoom,
.stagger-item {
  opacity: 0;
  will-change: transform, opacity;
}

.reveal-up     { transform: translateY(50px); }
.reveal-fade   { transform: translateY(20px); }
.reveal-left   { transform: translateX(-60px); }
.reveal-right  { transform: translateX(60px); }
.reveal-zoom   { transform: scale(0.85); }

.reveal-up.is-visible,
.reveal-fade.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-zoom.is-visible,
.stagger-item.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

/* Stagger delays */
.stagger-item[data-stagger-index="0"] { transition-delay: 0s; }
.stagger-item[data-stagger-index="1"] { transition-delay: 0.08s; }
.stagger-item[data-stagger-index="2"] { transition-delay: 0.16s; }
.stagger-item[data-stagger-index="3"] { transition-delay: 0.24s; }
.stagger-item[data-stagger-index="4"] { transition-delay: 0.32s; }
.stagger-item[data-stagger-index="5"] { transition-delay: 0.40s; }
.stagger-item[data-stagger-index="6"] { transition-delay: 0.48s; }

/* Section header reveals */
.reveal-badge {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s var(--ease-out-expo) 2.5s forwards;
}

/* ──────────────────────────────────────────────
   SPLIT TEXT ANIMATION
────────────────────────────────────────────── */
.split-heading .char,
.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotateX(-90deg);
  transform-origin: bottom;
  animation: charReveal 0.6s var(--ease-out-expo) var(--char-delay, 0s) forwards;
}

@keyframes charReveal {
  to { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

/* Hero title chars */
.hero-line-1.split-done .char,
.hero-line-2.split-done .char {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ──────────────────────────────────────────────
   MAGNETIC BUTTONS
────────────────────────────────────────────── */
.magnetic-btn {
  position: relative;
  transition: transform 0.3s var(--ease-spring) !important;
}

.magnetic-btn:hover { transform: scale(1.05); }

/* ──────────────────────────────────────────────
   LIQUID BUTTON HOVER
────────────────────────────────────────────── */
.btn-liquid {
  overflow: hidden;
  position: relative;
}

.btn-liquid::before {
  content: '';
  position: absolute;
  width: 0; height: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s var(--ease-out-expo), height 0.5s var(--ease-out-expo);
}

.btn-liquid:hover::before { width: 300px; height: 300px; }

/* Btn shine sweep */
.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover .btn-shine,
.btn-outline:hover .btn-shine,
.btn-pricing:hover .btn-shine { transform: translateX(100%); }

/* Ripple */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: none;
  pointer-events: none;
}

.btn-ripple.ripple-active {
  animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
  0%   { transform: scale(0); opacity: 0.8; }
  100% { transform: scale(4); opacity: 0; }
}

/* ──────────────────────────────────────────────
   3D CARD TILT
────────────────────────────────────────────── */
.card-tilt {
  transform-style: preserve-3d;
  transition: transform 0.1s ease, box-shadow 0.3s ease !important;
  will-change: transform;
}

.card-tilt:hover { box-shadow: 0 20px 60px rgba(224,16,16,0.2), 0 0 30px rgba(224,16,16,0.05); }

/* ──────────────────────────────────────────────
   NEON GLOW BUTTON (.btn-glow)
────────────────────────────────────────────── */
.btn-glow {
  position: relative;
  animation: btnGlowPulse 3s ease-in-out infinite;
}

@keyframes btnGlowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(224,16,16,0.4); }
  50%       { box-shadow: 0 0 20px rgba(224,16,16,0.8), 0 0 40px rgba(224,16,16,0.3); }
}

/* ──────────────────────────────────────────────
   ANIMATED TAG LINE
────────────────────────────────────────────── */
.anim-tag-line {
  position: relative;
  overflow: hidden;
}

.anim-tag-line::after {
  content: '';
  position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: tagShimmer 3s ease-in-out infinite;
}

@keyframes tagShimmer {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* ──────────────────────────────────────────────
   STATS SECTION
────────────────────────────────────────────── */
.stats-section { position: relative; overflow: hidden; }

.stats-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.stats-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(224,16,16,0.12) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.stats-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(224,16,16,0.08) 0%, transparent 70%);
  bottom: -50px; right: 0;
  animation: floatOrb 12s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

/* Stat card glow */
.stat-card { position: relative; overflow: hidden; }

.stat-card-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 120%; height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(224,16,16,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.stat-card:hover .stat-card-glow { opacity: 1; }

/* Stat bar */
.stat-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  box-shadow: 0 0 8px var(--red);
  transition: width 1.5s var(--ease-out-expo);
}

.stat-card.is-visible .stat-bar-fill { width: var(--w, 80%); }

/* Floating icon */
.anim-float {
  animation: floatUpDown 3s ease-in-out infinite;
}

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

/* ──────────────────────────────────────────────
   FEATURES SECTION
────────────────────────────────────────────── */
.features-section { position: relative; overflow: hidden; }

.features-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: blobMorph 15s ease-in-out infinite alternate;
}

.features-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(224,16,16,0.08) 0%, transparent 70%);
  top: 0; right: -200px;
}

.features-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(224,16,16,0.06) 0%, transparent 70%);
  bottom: 0; left: -150px;
  animation-delay: -7s;
}

@keyframes blobMorph {
  0%   { transform: scale(1) rotate(0deg); border-radius: 50%; }
  50%  { transform: scale(1.2) rotate(30deg); border-radius: 40% 60% 60% 40% / 50%; }
  100% { transform: scale(1.1) rotate(60deg); border-radius: 60% 40% 40% 60% / 50%; }
}

/* Feature card glow on hover */
.feature-card { position: relative; }

.feature-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(224,16,16,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  border-radius: inherit;
}

.feature-card:hover .feature-card-glow { opacity: 1; }

/* Animated border */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(224,16,16,0.4), transparent, rgba(224,16,16,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.feature-card:hover::before { opacity: 1; }

/* ──────────────────────────────────────────────
   PRICING SECTION
────────────────────────────────────────────── */
.pricing-section { position: relative; overflow: hidden; }

.pricing-morph-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(224,16,16,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 0% 50%, rgba(224,16,16,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.pricing-card { position: relative; overflow: hidden; }

.pricing-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(224,16,16,0.05) 60deg, transparent 120deg);
  animation: cardSpin 8s linear infinite;
  opacity: 0;
  transition: opacity 0.4s;
}

.pricing-card:hover::after { opacity: 1; }

@keyframes cardSpin { to { transform: rotate(360deg); } }

/* ──────────────────────────────────────────────
   TRAINERS SECTION
────────────────────────────────────────────── */
.trainers-section { position: relative; overflow: hidden; }

.trainers-ambient-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,16,16,0.3), transparent);
  pointer-events: none;
  animation: lineSweep 5s ease-in-out infinite alternate;
}

.trainers-line-1 { top: 30%; width: 100%; animation-delay: 0s; }
.trainers-line-2 { top: 70%; width: 100%; animation-delay: 2.5s; }

@keyframes lineSweep {
  0%   { opacity: 0; transform: scaleX(0); transform-origin: left; }
  100% { opacity: 1; transform: scaleX(1); }
}

/* Trainer card hover lift */
.trainer-card {
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

.trainer-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(224,16,16,0.15), 0 0 30px rgba(224,16,16,0.05);
}

/* ──────────────────────────────────────────────
   TRANSFORMATION SECTION
────────────────────────────────────────────── */
.transformation-section { position: relative; overflow: hidden; }

.transformation-bg-scan {
  position: absolute;
  top: 0; left: -100%;
  width: 60px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(224,16,16,0.05), transparent);
  animation: scanLine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanLine {
  0%   { left: -10%; }
  100% { left: 110%; }
}

/* ──────────────────────────────────────────────
   GALLERY SECTION
────────────────────────────────────────────── */
.gallery-section { position: relative; }

.gallery-item {
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 20px rgba(224,16,16,0.1);
  z-index: 2;
}

/* ──────────────────────────────────────────────
   TESTIMONIALS SECTION
────────────────────────────────────────────── */
.testimonials-section { position: relative; overflow: hidden; }

.testimonials-glow-orb {
  position: absolute;
  width: 600px; height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(224,16,16,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50%       { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* ──────────────────────────────────────────────
   CALCULATOR SECTION
────────────────────────────────────────────── */
.calculator-section { position: relative; overflow: hidden; }

.calc-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(224,16,16,0.06) 1px, transparent 0);
  background-size: 30px 30px;
  pointer-events: none;
  opacity: 0.5;
}

.calc-card { position: relative; overflow: hidden; }

.calc-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(224,16,16,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.calc-card:hover .calc-card-glow { opacity: 1; }

/* ──────────────────────────────────────────────
   SCHEDULE SECTION
────────────────────────────────────────────── */
.schedule-section { position: relative; overflow: hidden; }

.schedule-scan-line {
  position: absolute;
  top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(224,16,16,0.4), transparent);
  animation: scheduleScan 3s ease-in-out infinite;
}

@keyframes scheduleScan {
  0%   { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ──────────────────────────────────────────────
   CONTACT SECTION
────────────────────────────────────────────── */
.contact-section { position: relative; overflow: hidden; }

.contact-ambient-glow {
  position: absolute;
  width: 500px; height: 500px;
  bottom: -200px; right: -100px;
  background: radial-gradient(circle, rgba(224,16,16,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatOrb 15s ease-in-out infinite alternate;
}

/* Form input focus animation */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px rgba(224,16,16,0.3), 0 0 20px rgba(224,16,16,0.1);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ──────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────── */
.footer { position: relative; }

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,16,16,0.4), transparent);
}

/* ──────────────────────────────────────────────
   FLOATING BUTTONS — PULSE
────────────────────────────────────────────── */
.float-btn { position: fixed; }

.float-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid currentColor;
  animation: floatPulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes floatPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

.float-wa { color: #fff; }
.float-wa .float-pulse { border-color: #25d366; }
.float-call { color: #fff; }
.float-call .float-pulse { border-color: var(--red); }

/* ──────────────────────────────────────────────
   SCROLL TO TOP
────────────────────────────────────────────── */
.scroll-top-btn {
  overflow: hidden;
}

.scroll-top-btn .btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.scroll-top-btn:hover .btn-shine { transform: translateX(100%); }

/* ──────────────────────────────────────────────
   ANIMATED SECTION BORDERS
────────────────────────────────────────────── */
.section-header { position: relative; }

/* Animated underline on section tags */
.section-tag {
  position: relative;
  display: inline-block;
}

/* ──────────────────────────────────────────────
   NEON TEXT
────────────────────────────────────────────── */
.neon-text {
  text-shadow: var(--neon-red);
  animation: neonFlicker 6s ease-in-out infinite;
}

@keyframes neonFlicker {
  0%, 95%, 100% { opacity: 1; }
  96%            { opacity: 0.85; }
  97%            { opacity: 1; }
  98%            { opacity: 0.9; }
}

/* ──────────────────────────────────────────────
   GLASS MORPHISM ENHANCEMENT
────────────────────────────────────────────── */
.glassmorphism {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ──────────────────────────────────────────────
   SCROLL MOUSE ANIMATION (hero)
────────────────────────────────────────────── */
.hero-scroll-hint {
  animation: fadeInUp 0.6s ease 3s both;
}

.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.scroll-dot {
  width: 3px; height: 8px;
  background: var(--red);
  border-radius: 3px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { top: 6px; opacity: 1; }
  80%  { top: 20px; opacity: 0; }
  81%  { top: 6px; opacity: 0; }
  100% { top: 6px; opacity: 1; }
}

/* ──────────────────────────────────────────────
   GLOBAL UTILITIES
────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero sub fade */
.hero-sub.reveal-fade {
  animation: fadeInUp 0.8s var(--ease-out-expo) 2.8s forwards;
}

.hero-cta-group.reveal-fade {
  animation: fadeInUp 0.8s var(--ease-out-expo) 3s forwards;
}

/* Badge dot pulse */
.badge-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--red-bright);
  border-radius: 50%;
  animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(224,16,16,0.4); }
  50%       { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(224,16,16,0); }
}

/* Animated gradient text */
.text-red-animated {
  background: linear-gradient(90deg, var(--red), #ff4444, var(--red));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradientShift 4s ease-in-out infinite;
}

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

/* ──────────────────────────────────────────────
   PERFORMANCE — REDUCE MOTION PREFERENCE
────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ──────────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS
────────────────────────────────────────────── */
@media (max-width: 768px) {
  #three-canvas { opacity: 0.2; }
  .hero-shape.s1, .hero-shape.s5 { display: none; }
  .light-rays .ray.r1, .light-rays .ray.r3 { display: none; }
  #cursor-dot, #cursor-ring, #cursor-trail-container { display: none; }
  .marquee-content { animation-duration: 20s; }
  .btn-liquid:hover::before { width: 180px; height: 180px; }
  .hero-grid.anim-grid { background-size: 44px 44px; }
}

@media (max-width: 480px) {
  .loader-orb-1,
  .loader-orb-2,
  .loader-orb-3,
  .testimonials-glow-orb,
  .contact-ambient-glow {
    display: none;
  }
  .ray { filter: none; opacity: 0.45; }
}

/* Performance trims that preserve the premium visual language. */
.is-paused,
.is-paused *,
.is-paused *::before,
.is-paused *::after {
  animation-play-state: paused !important;
}

@media (max-width: 768px), (prefers-reduced-data: reduce) {
  .loader-orb,
  .testimonials-glow-orb,
  .contact-ambient-glow,
  .features-bg-blob,
  .stats-ambient-orb,
  .pricing-morph-bg {
    filter: blur(28px) !important;
  }
}
