:root {
    --color-white: #ffffff;
    --color-light-gray: #f5f5f7;
    /* Cards & overlays */
    --color-gray: #6e6e73;
    /* Subtle text */
    --color-dark-gray: #1d1d1f;
    /* Primary text */
    --color-black: #000000;
    /* High contrast headers, buttons, footers */
    --color-yellow: #FACC15;
    /* Premium High-Res Gold/Yellow */
    --bg-color: #f1f1f1;
    /* Light grey background */

    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --container-width: 1200px;

    /* Apple-Grade Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86);
    --transition-smooth: all 0.6s var(--ease-out-expo);
    --transition-fast: all 0.3s var(--ease-out-expo);
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky nav */
}

/* Respect user motion preferences */
@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;
    }
    .stagger-word { opacity: 1 !important; filter: none !important; transform: none !important; }
    .fade-up { opacity: 1 !important; transform: none !important; }
    .preloader-logo, .preloader-letter, .preloader-tagline { opacity: 1 !important; transform: none !important; }
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: none; /* Prevents scroll bouncing */
}

/* Hardware Acceleration Hints for Butter-Smooth Scrolling */
#trainer-scroll-track,
#program-scroll-track {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* GPU compositing layer for horizontal scroll wrappers */
.trainer-sticky,
.program-sticky {
    will-change: transform;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Paint containment for isolated sections */
.hero-wrapper,
#preloader,
.mobile-menu,
.modal-overlay,
.discount-popup {
    contain: layout style;
}

/* Contain repaints to trainer/program sections only — prevents full page repaint during horizontal scroll */
#trainers,
#programs {
    contain: layout paint;
}

/* ====== PRELOADER ====== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#preloader.done {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    position: relative;
}

/* Logo */
.preloader-logo {
    width: 130px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 179, 0, 0.3));
    animation: preloader-logo-in 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
}

@keyframes preloader-logo-in {
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Gym name letter-by-letter */
.preloader-name {
    display: flex;
    gap: 4px;
    margin-top: 0.5rem;
}

.preloader-letter {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px) rotateX(90deg);
    animation: letter-drop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-letter:nth-child(1) { animation-delay: 0.3s; }
.preloader-letter:nth-child(2) { animation-delay: 0.4s; }
.preloader-letter:nth-child(3) { animation-delay: 0.5s; }
.preloader-letter:nth-child(4) { animation-delay: 0.6s; }
.preloader-letter:nth-child(5) { animation-delay: 0.7s; }
.preloader-letter:nth-child(6) { animation-delay: 0.8s; }
.preloader-letter:nth-child(7) { animation-delay: 0.9s; }
.preloader-letter:nth-child(8) { animation-delay: 1.0s; }

@keyframes letter-drop {
    to { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

/* Tagline */
.preloader-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.75rem, 1.5vw, 0.95rem);
    font-weight: 400;
    color: rgba(255, 179, 0, 0.9);
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0;
    animation: tagline-in 0.6s ease forwards 0.9s;
}

@keyframes tagline-in {
    to { opacity: 1; }
}

/* Progress bar */
.preloader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.preloader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-yellow, #ffb300), #fff);
    border-radius: 2px;
    animation: progress-fill 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.3s;
}

@keyframes progress-fill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Hide body scroll while loading */
body.loading, html.loading {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none !important;
}
/* ====== PRELOADER END ====== */

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-overflow-scrolling: touch; /* Momentum scrolling on iOS */
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--color-dark-gray);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Fluid Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.bg-light {
    background-color: var(--color-light-gray);
}

.w-100 {
    width: 100%;
}

/* Fluid Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: clamp(1rem, 3vw, 2rem);
    color: var(--color-black);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
    color: var(--color-black);
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-black);
}

p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--color-gray);
    max-width: 600px;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.6;
}

/* Buttons & Links */
button {
    border: none;
    font-family: inherit;
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    will-change: transform, background-color;
    /* Hardware acc */
}

.btn-small {
    padding: 0.5rem 1.2rem !important;
    font-size: 0.85rem !important;
}

.btn-primary {
    background-color: var(--color-yellow);
    color: var(--color-black);
    border: 1px solid var(--color-yellow);
}

.btn-primary:hover {
    background-color: var(--color-black);
    border-color: var(--color-black);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-black);
    border: 1px solid var(--color-dark-gray);
}

.btn-outline:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

/* Magnetic Button Utility */
.magnetic {
    display: inline-block;
    will-change: transform;
}

/* Top Bar */
.top-bar {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-left {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
}

.top-bar-right {
    display: flex;
    gap: clamp(0.6rem, 2vw, 1.2rem);
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-bar-right a {
    color: var(--color-white);
    font-size: 1.3rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.top-bar-right a:hover {
    color: var(--color-yellow);
    transform: scale(1.1);
}

/* Live Status Dot */
#live-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: gray;
    transition: var(--transition-smooth);
}

.dot.open {
    background-color: #34c759;
    box-shadow: 0 0 8px rgba(52, 199, 89, 0.5);
}

.dot.closed {
    background-color: #ff3b30;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: clamp(0.5rem, 1vw, 1rem) 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.8rem;
}

.logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 0.85;
    transform: skewX(-8deg);
    margin-left: 5px;
    transition: transform 0.4s ease;
}

.brand-hardcore {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 900;
    color: var(--color-black);
    letter-spacing: -1.5px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.brand-fitness {
    font-size: clamp(0.6rem, 1.5vw, 0.9rem);
    font-weight: 900;
    background: linear-gradient(90deg, #ff3b30, #ffcc00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 4px;
    padding-left: 2px;
}

.footer-logo .brand-hardcore {
    color: var(--color-white);
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.1);
}

.logo:hover img {
    transform: scale(1.08) rotate(5deg);
}

.logo:hover .logo-text {
    transform: skewX(-8deg) translateX(5px);
}

.nav-links {
    display: flex;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
}

.nav-links>a,
.has-mega-menu>a {
    text-decoration: none;
    color: var(--color-dark-gray);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.nav-links a:hover {
    color: var(--color-yellow);
}

/* Mega Menu */
.has-mega-menu {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-dark-gray);
    border-top: 3px solid var(--color-yellow);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 15px, 0);
    transition: var(--transition-smooth);
    padding: clamp(3rem, 5vw, 4rem) 0;
    will-change: transform, opacity;
    border-radius: 0 0 16px 16px;
}

.has-mega-menu:hover .mega-menu,
.has-mega-menu.active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.mega-title {
    margin-bottom: 1.5rem;
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.mega-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mega-list li a {
    color: #a0a0a0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
    transition: var(--transition-fast);
}

.mega-list li a i {
    font-size: 1.3rem;
    color: var(--color-yellow);
    transition: var(--transition-fast);
}

.mega-list li a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.mega-list li a:hover i {
    transform: scale(1.2);
}

.mega-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mega-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.mega-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2rem;
    z-index: 2;
    pointer-events: none;
}

.image-overlay h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.image-overlay p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.mega-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    border-color: var(--color-yellow);
    color: var(--color-yellow);
    pointer-events: auto;
}

.mega-btn:hover {
    background: var(--color-yellow);
    color: var(--color-black);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 101;
    padding: 0.5rem;
}

.hamburger .bar {
    height: 2px;
    background-color: var(--color-black);
    transition: var(--transition-smooth);
    transform-origin: center;
    border-radius: 2px;
}

.hamburger .bar:nth-child(1) {
    width: 28px;
}
.hamburger .bar:nth-child(2) {
    width: 16px;
    margin-left: auto;
    background-color: var(--color-yellow);
}
.hamburger .bar:nth-child(3) {
    width: 22px;
    margin-left: auto;
}

.hamburger:hover .bar {
    width: 28px;
}

.hamburger.active .bar:nth-child(1) {
    width: 28px;
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .bar:nth-child(3) {
    width: 28px;
    transform: translateY(-8px) rotate(-45deg);
}

/* Off-Canvas Mobile Drawer (Responsive Upgrade) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-white);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    gap: 2rem;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.1);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.6s var(--ease-out-expo);
    will-change: transform;
}

.close-mobile-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    font-size: 3rem;
    cursor: pointer;
    color: var(--color-black);
    transition: var(--transition-fast);
}

.close-mobile-btn:hover {
    transform: rotate(90deg);
    color: var(--color-yellow);
}

/* Premium Architectural Wireframe Background */
.wireframe-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.05);
    animation: pulse-spin 20s linear infinite;
    z-index: 0;
}
.w-1 { 
    width: 40vw; 
    height: 40vw; 
    border-width: 2px; 
    border-style: dashed; 
    border-color: rgba(255, 179, 0, 0.15); /* Yellow accent */
}
.w-2 { 
    width: 60vw; 
    height: 60vw; 
    border-width: 1px; 
    animation-direction: reverse; 
    animation-duration: 30s; 
    border-color: rgba(0, 0, 0, 0.08);
}
.w-3 { 
    width: 80vw; 
    height: 80vw; 
    border-width: 3px; 
    border-color: rgba(0, 0, 0, 0.03); 
}

/* Floating gym icons */
.floating-icon {
    position: absolute;
    font-size: 3rem;
    color: rgba(255, 179, 0, 0.2);
    animation: floatIcon 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.icon-1 { top: 15%; left: 10%; }
.icon-2 { top: 30%; right: 12%; }
.icon-3 { top: 55%; left: 25%; }
.icon-4 { bottom: 20%; left: 40%; }
.icon-5 { bottom: 15%; right: 20%; }

@keyframes floatIcon {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes pulse-spin {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

/* Creative Full-Bleed Split Slider */
.minimal-slider-track {
    display: flex;
    width: max-content;
    height: 100%;
    position: relative;
    background: transparent;
}

.minimal-slider-slide {
    position: relative;
    width: 100vw;
    height: 100%;
    opacity: 1;
    visibility: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.minimal-slider-slide.active {
    z-index: 2;
}

.minimal-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    width: 100%;
    height: 100vh;
    align-items: stretch;
    gap: 0;
}

/* Text Side - Left Block */
.minimal-text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 10% 15%;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background-image: radial-gradient(rgba(0, 0, 0, 0.03) 2px, transparent 2px);
    background-size: 30px 30px;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.4);
}

.slide-num {
    position: absolute;
    top: 50%;
    left: -5%;
    transform: translateY(-50%) rotate(-90deg) scale(1.05);
    font-size: clamp(10rem, 20vw, 25rem);
    font-weight: 800;
    color: rgba(0, 0, 0, 0.03);
    line-height: 0.8;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

.minimal-slider-slide.active .slide-num {
    /* Kept for compatibility */
}

.text-wrap {
    position: relative;
    z-index: 2;
    opacity: 1;
    transform: translateY(0);
}

.minimal-slider-slide.active .text-wrap {
    /* Kept for compatibility */
}

.text-wrap h3 {
    font-size: clamp(1.5rem, 2.5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    color: var(--color-black);
}

.text-wrap p {
    font-size: clamp(0.9rem, 1vw, 1rem);
    color: var(--color-gray);
    max-width: 400px;
    line-height: 1.5;
    font-weight: 600;
}

/* Image Side - Floating 1:1 Poster Layout Clean */
.minimal-image {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.minimal-image::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    background: linear-gradient(45deg, var(--color-yellow), transparent);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatGlow 8s ease-in-out infinite alternate;
}

@keyframes floatGlow {
    0% { transform: translate(-30px, -30px) scale(0.9); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

.minimal-image img {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 65vh;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.4), -10px -10px 40px rgba(255,255,255,0.8);
    margin-top: -75px;
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
}

.minimal-slider-slide.active .minimal-image img {
    /* Kept for compatibility */
}

@media (max-width: 900px) {
    .minimal-content {
        display: flex;
        flex-direction: column;
        height: 100vh;
    }

    .minimal-image {
        width: 100%;
        height: 50vh;
        padding: 2rem;
        background: transparent;
    }

    .minimal-image img {
        width: auto;
        height: 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1;
        margin: -75px auto 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .minimal-text {
        width: 100%;
        height: auto;
        min-height: 50vh;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: var(--color-white);
        z-index: 5;
    }

    .slide-num {
        left: 20px;
        top: 10px;
        transform: none;
        font-size: 6rem;
        color: rgba(0, 0, 0, 0.05);
        opacity: 1;
    }

    .minimal-slider-slide.active .slide-num {
        transform: none;
        opacity: 1;
    }

    .text-wrap h3 {
        font-size: 1.4rem;
        color: var(--color-black);
        letter-spacing: -0.5px;
        margin-bottom: 0.3rem;
    }

    .text-wrap p {
        color: var(--color-gray);
        font-size: 0.85rem;
        margin-bottom: 0;
        line-height: 1.4;
    }
}

.mobile-menu.active {
    transform: translate3d(0, 0, 0);
}

.mobile-link {
    font-size: clamp(2rem, 6vw, 2.5rem);
    color: var(--color-black);
    text-decoration: none;
    font-weight: 500;
    opacity: 0;
    transform: translate3d(30px, 0, 0);
    transition: var(--transition-smooth);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Staggering */
.mobile-menu.active .mobile-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-link:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-link:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-link:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.active button {
    transition-delay: 0.3s;
    opacity: 0;
    transform: translate3d(30px, 0, 0);
    transition: var(--transition-smooth);
}

.mobile-menu.active button {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Modal Booking Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out-expo);
    will-change: opacity;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: clamp(2.5rem, 5vw, 3rem);
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    position: relative;
    text-align: center;
    transform: translate3d(0, 40px, 0) scale(0.95);
    transition: var(--transition-smooth);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    will-change: transform;
}

.modal-overlay.active .modal-card {
    transform: translate3d(0, 0, 0) scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-gray);
    transition: var(--transition-fast);
}

.close-modal:hover {
    color: var(--color-black);
    transform: rotate(90deg);
}

.modal-card h2 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    letter-spacing: -1px;
}

.modal-card p {
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* Minimalist Forms */
.input-group {
    margin-bottom: 2rem;
    position: relative;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    background: transparent;
    color: var(--color-black);
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition-fast);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--color-black);
    box-shadow: none;
}

/* Phone prefix input */
.phone-input-wrap {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s;
}

.phone-input-wrap:focus-within {
    border-color: var(--color-black);
}

.phone-prefix {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-black);
    padding: 0.5rem 0.6rem 0.5rem 0;
    white-space: nowrap;
    user-select: none;
}

.phone-input-wrap input {
    border: none;
    border-bottom: none;
    flex: 1;
    padding-left: 0;
}

.phone-input-wrap input:focus {
    border-color: transparent;
}

/* Creative Minimalist Hero */
.hero-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--color-white);
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.hero {
    padding: clamp(3rem, 6vh, 5rem) 2rem clamp(3rem, 8vw, 6rem);
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
    text-align: left;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    display: block;
}

.stagger-text {
    display: inline-block;
    font-size: clamp(3.5rem, 6vw, 6rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--color-black);
    font-weight: 800;
    text-transform: uppercase;
    perspective: 1000px;
}

.stagger-word {
    display: inline-block;
    transform: translate3d(0, 40px, 100px) rotateX(-20deg) scale(1.1);
    opacity: 0;
    filter: blur(15px);
    animation: cinematicReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity, filter;
}

@keyframes cinematicReveal {
    to {
        transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
        opacity: 1;
        filter: blur(0px);
    }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.image-frame {
    width: 90%;
    height: 100%;
    max-height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: -20px 30px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    transform: translateZ(0);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(1.1);
    transform: scale(1.05);
    opacity: 1;
    transition: opacity 0.8s ease-in-out, transform 2s var(--ease-out-expo);
}

.hero-image.is-visible .image-frame img {
    transform: scale(1);
}

.hero-accent-shape {
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 60%;
    height: 60%;
    background: var(--color-light-gray);
    z-index: 1;
    border-radius: 8px;
    transform: translate(-30px, 30px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-top: 3rem;
    }

    .hero-text {
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        height: 50vh;
        justify-content: center;
    }

    .image-frame {
        width: 100%;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    .hero-accent-shape {
        display: none;
    }
}

/* Fluid Sections */
.section {
    padding: clamp(4rem, 10vw, 8rem) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* Smart Auto-Fit Grids (Responsive Upgrade) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(3rem, 8vw, 6rem);
    align-items: center;
}

/* Minimal Marquee Stats */
.marquee-section {
    margin-bottom: clamp(2rem, 5vh, 4rem);
    padding: 1.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.marquee-track {
    display: inline-flex;
    width: 100%;
}

.marquee-content {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scrollMarquee 35s linear infinite;
}

.marquee-item {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-gray);
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.marquee-item .highlight {
    color: var(--color-black);
    font-size: 1.2rem;
    font-weight: 800;
}

.marquee-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-yellow);
    border-radius: 50%;
    margin: 0 3rem;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Intro Animation */
.creative-intro-title {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -4px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.creative-intro-title .expert-text {
    display: block;
    color: transparent;
    -webkit-text-stroke: 2px var(--color-black);
    text-shadow: 10px 10px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: -15px;
    margin-left: -5px;
}

.creative-intro-title .elite-text {
    display: inline-block;
    color: var(--color-black);
    position: relative;
}

.creative-intro-title .elite-text::after {
    content: '';
    position: absolute;
    bottom: 12%;
    left: -5px;
    width: 100%;
    height: 30%;
    background: var(--color-yellow);
    z-index: -1;
    opacity: 0.8;
    transform: skewX(-20deg);
}

/* Horizontal Trainers Gallery */
.trainer-track {
    display: flex;
    width: max-content;
    align-items: center;
}

.horizontal-trainer-card {
    width: 60vw;
    max-width: 450px;
    height: 100%;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    scroll-snap-align: center;
    background: #000;
}

.horizontal-trainer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    opacity: 0.45;
    transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    transform: scale(1) translateZ(0);
    will-change: transform, filter, opacity;
}

.horizontal-trainer-card:hover img {
    filter: grayscale(0%) contrast(1.1);
    opacity: 0.8;
    transform: scale(1.03) translateZ(0);
}

.h-trainer-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 45%, rgba(255, 255, 255, 0.9) 70%, rgba(255, 255, 255, 0) 100%);
    color: var(--color-black);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 5rem;
}

.h-trainer-info h3 {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
    color: #000;
    letter-spacing: -1px;
}

.h-trainer-info .specialty {
    color: #000;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.h-trainer-info .bio {
    color: #000;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 600;
}

.h-trainer-info .btn-outline {
    border-color: var(--color-black);
    color: var(--color-black);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.5);
}

.h-trainer-info .btn-outline:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/* Expert Trainers Section */
.trainer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.trainer-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.trainer-card:hover {
    transform: translateY(-10px);
}

.trainer-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.trainer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.trainer-card:hover .trainer-image img {
    transform: scale(1.05);
}

.trainer-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.trainer-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.25rem;
}

.trainer-info .specialty {
    color: var(--color-yellow);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.trainer-info .bio {
    color: var(--color-gray);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Minimalist BMI Dashboard */
.bmi-dashboard {
    background: transparent;
    color: var(--color-black);
    border: none;
    box-shadow: none;
    padding: 0;
}

.bmi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.slider-group {
    position: relative;
    margin-bottom: 3rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    align-items: flex-end;
}

.slider-header label {
    font-size: 0.85rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slider-value {
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-black);
    line-height: 1;
}

.slider-value small {
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* Ultra Thin Range Slider */
.bmi-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.1);
    outline: none;
    transition: 0.2s;
}

.bmi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-black);
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.bmi-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.bmi-result-display {
    background: transparent;
    padding: 0;
    border: none;
    text-align: left;
}

.bmi-score h3 {
    font-size: clamp(4rem, 6vw, 6rem);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--color-black);
    letter-spacing: -3px;
}

.bmi-score p {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3rem;
}

/* Minimalist Visual Gauge */
.bmi-scale-container {
    position: relative;
    width: 100%;
}

.bmi-scale {
    display: flex;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    opacity: 0.8;
}

.scale-segment {
    height: 100%;
}

.bmi-needle {
    position: absolute;
    top: -12px;
    width: 2px;
    height: 28px;
    background: var(--color-black);
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
    z-index: 5;
}

.bmi-needle::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: var(--color-black) transparent transparent transparent;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    color: #aaa;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.hidden {
    display: none;
}

/* Stacking Panels - 3D Parallax */
.stacking-wrapper {
    position: relative;
    perspective: 1200px;
}

.stack-panel {
    position: sticky;
    top: 75px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: 0 -8px 60px rgba(0, 0, 0, 0.12);
    transform-origin: center top;
    will-change: transform, opacity;
    transition: box-shadow 0.3s ease;
}

/* Minimalist Membership */
.membership-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Membership background brush strokes */
.membership-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    background-size: cover;
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}

.membership-plans {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0;
}

.mem-divider {
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
    align-self: stretch;
}

.mem-plan {
    padding: 1rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: opacity 0.3s ease;
    cursor: default;
}

.mem-plan:hover {
    opacity: 0.7;
}

.mem-plan--featured .mem-price {
    color: var(--color-black);
}

.mem-plan-bar {
    width: 36px;
    height: 3px;
    background: var(--color-yellow);
    margin-bottom: 0.8rem;
}

.mem-duration {
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    font-weight: 500;
    margin: 0;
}

.mem-price {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: -2px;
    margin: 0;
    line-height: 1;
}

.mem-original {
    font-size: 0.9rem;
    color: #bbb;
    text-decoration: line-through;
    margin: 0;
}

.mem-badge {
    display: inline-block;
    background: var(--color-black);
    color: #fff;
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 2px;
    vertical-align: middle;
    margin-left: 6px;
}

.mem-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--color-black);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.25s ease;
    width: fit-content;
}

.mem-btn:hover {
    background: var(--color-yellow);
    border-color: var(--color-yellow);
}

.mem-btn--dark {
    background: var(--color-black);
    color: #fff;
    border-color: var(--color-black);
}

.mem-btn--dark:hover {
    background: #333;
    border-color: #333;
}

@media (max-width: 768px) {
    .membership-plans {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1rem;
    }

    .mem-divider {
        display: none;
    }

    .mem-plan {
        padding: 0;
        border-bottom: none;
        align-items: center;
        text-align: center;
    }
    
    .mem-plan-bar {
        margin: 0 auto 0.5rem;
    }

    .mem-price {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .mem-duration {
        font-size: 0.65rem;
    }

    .membership-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .membership-header p {
        align-self: center !important;
    }
}

/* Pricing */
.pricing-card {
    background: var(--color-white);
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    transform: translate3d(0, -10px, 0);
}

.pricing-card.featured {
    border: 2px solid var(--color-black);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.price {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--color-black);
}

.card-features {
    list-style: none;
    margin-bottom: 3rem;
}

.card-features li {
    padding: 0.75rem 0;
    color: var(--color-dark-gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Parallax Divider */
.parallax-divider {
    height: clamp(40vh, 50vh, 60vh);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: background-position;
}

.parallax-2 {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #222 25%, #ff2a00 50%, #ff8c00 75%, #e0e0e0 100%);
    background-size: 300% 300%;
    background-attachment: fixed;
    /* Freezes the base gradient */
    animation: premiumGradient 15s ease infinite;
    height: clamp(40vh, 50vh, 60vh);
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Rotating creative rays effect behind logo, frozen to viewport */
.parallax-2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(from var(--angle) at center,
            transparent 0deg,
            rgba(255, 42, 0, 0.4) 60deg,
            transparent 120deg,
            rgba(224, 224, 224, 0.3) 180deg,
            transparent 240deg,
            rgba(255, 140, 0, 0.4) 300deg,
            transparent 360deg);
    background-attachment: fixed;
    /* Freezes rays with the logo */
    animation: spinRaysFixed 25s linear infinite;
    z-index: 1;
    pointer-events: none;
}

/* The actual logo with parallax effect */
.parallax-2::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('logo.webp');
    background-size: 40%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 2;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}
@media (max-width: 768px) {
    .parallax-divider,
    .parallax-2 {
        /* Fix iOS fixed background zoom bug by using viewport units instead of cover */
        background-size: auto 100vh !important;
        background-position: center center !important;
    }
    .parallax-2::before {
        background-size: 100vw 100vh !important;
    }
    .parallax-2::after {
        background-size: 80vw auto !important;
        background-position: center center !important;
    }
}

@keyframes premiumGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes spinRaysFixed {
    0% {
        --angle: 0deg;
    }

    100% {
        --angle: 360deg;
    }
}

/* 10x Massive Footer */
.massive-footer {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 0;
    background: transparent;
    color: var(--color-white);
}

/* Removed pseudo overlay */

.footer-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(2rem, 4vw, 4rem);
    padding-bottom: 4rem;
}

.brand-col {
    grid-column: span min(2, auto);
}

/* Make brand column slightly larger naturally */
.brand-col .logo {
    color: var(--color-white);
    font-size: 2rem;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: white;
    border-radius: 12px 0 0 12px;
    flex: 1;
    min-width: 200px;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--color-yellow);
}

.newsletter-form button {
    padding: 1rem 1.5rem;
    background: var(--color-yellow);
    color: var(--color-black);
    border-radius: 0 12px 12px 0;
    transition: var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--color-white);
}

.links-col a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: var(--transition-fast);
}

.links-col a:hover {
    color: var(--color-yellow);
    transform: translate3d(5px, 0, 0);
}

.map-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    filter: grayscale(100%) contrast(1.2);
    transition: var(--transition-smooth);
    transform: translateZ(0);
}

.map-wrapper:hover {
    filter: grayscale(0%);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
    color: #aaa;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: #aaa;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--color-white);
    transform: scale(1.1);
}

/* Scroll Progress Ring */
.progress-ring-container {
    position: fixed;
    bottom: clamp(15px, 3vw, 30px);
    right: clamp(15px, 3vw, 30px);
    width: 50px;
    height: 50px;
    z-index: 999;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    transform: translate3d(0, 20px, 0);
}

.progress-ring-container.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

.progress-ring-container i {
    position: absolute;
    color: var(--color-black);
    font-size: 1.2rem;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.1s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Advanced Smooth Reveal Animations */
.fade-up {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
    will-change: opacity, transform;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

.delay-4 {
    transition-delay: 0.6s;
}

/* ====== Training Programs Section ====== */
.programs-section {
    padding: clamp(5rem, 10vw, 9rem) 0;
    background: var(--color-black);
    position: relative;
    overflow: hidden;
}

/* Subtle background texture */
.programs-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 179, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.programs-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.programs-label {
    font-size: 0.78rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-yellow);
    font-weight: 600;
    margin-bottom: 1rem;
    max-width: none;
}

.programs-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1;
}

.programs-title-accent {
    color: var(--color-yellow);
}

.programs-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: #666;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

.program-track {
    display: flex;
    width: max-content;
    align-items: center;
    position: relative;
    z-index: 1;
}

.program-intro-card {
    width: 50vw;
    min-width: 350px;
    max-width: 650px;
    height: 65vh;
    max-height: 650px;
    flex-shrink: 0;
    margin-right: 2rem;
    position: relative;
    perspective: 1000px;
}

.intro-glass-panel {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(255, 179, 0, 0.95), rgba(255, 140, 0, 0.85));
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 4rem);
    box-shadow: 0 30px 60px rgba(255, 179, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-decoration {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    z-index: 0;
}

.glass-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.label-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.massive-stacked-title {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.massive-stacked-title span {
    font-size: clamp(1.8rem, 6vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.massive-stacked-title .layer-1 {
    color: var(--color-black);
    transform: translateX(-10px);
}

.massive-stacked-title .layer-2 {
    color: transparent;
    -webkit-text-stroke: 2px var(--color-black);
}

.massive-stacked-title .layer-3 {
    color: var(--color-white);
    transform: translateX(10px);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.premium-desc {
    color: rgba(0, 0, 0, 0.75);
    font-size: clamp(0.85rem, 1vw, 1.05rem);
    line-height: 1.5;
    max-width: 90%;
    margin-bottom: 3rem;
    font-weight: 500;
}

.intro-footer-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-minimal {
    position: relative;
    background: transparent;
    color: var(--color-black);
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    margin-top: 1rem;
    width: fit-content;
}

.btn-minimal::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-black);
    transition: width 0.4s var(--ease-out-expo);
}

.btn-minimal:hover::after {
    width: 100%;
}

.btn-minimal i {
    font-size: 1.2rem;
    transition: transform 0.4s var(--ease-out-expo);
}

.btn-minimal:hover i {
    transform: translateX(8px);
}

.swipe-hint {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-black);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.swipe-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.swipe-arrow i {
    animation: slideRight 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

.h-program-card {
    width: 35vw;
    min-width: 300px;
    max-width: 450px;
    height: 60vh;
    max-height: 600px;
    flex-shrink: 0;
}

.program-card {
    background: #0a0a0a;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.8s var(--ease-out-expo), box-shadow 0.8s var(--ease-out-expo), border-color 0.8s var(--ease-out-expo);
}

.program-card.active {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(255, 179, 0, 0.15);
    border-color: rgba(255, 179, 0, 0.3);
}

.program-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.2);
    opacity: 0.4;
    z-index: 0;
    transition: filter 0.8s var(--ease-out-expo), opacity 0.8s var(--ease-out-expo);
}

.program-card.active .program-bg {
    filter: grayscale(0%) contrast(1.1);
    opacity: 0.7;
}

.program-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%);
}

.program-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
    font-family: var(--font-primary);
    z-index: 0;
}

.program-icon {
    order: 1;
    margin-bottom: auto;
    /* Pushes everything else down */
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 179, 0, 0.15);
    border: 1px solid rgba(255, 179, 0, 0.3);
    color: var(--color-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.program-tag {
    order: 2;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: fit-content;
    z-index: 1;
}

.program-tag.women-tag {
    background: rgba(255, 133, 194, 0.15);
    border-color: rgba(255, 133, 194, 0.3);
    color: #ff85c2;
}

.program-name {
    order: 3;
    margin-bottom: 0.5rem;
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    font-weight: 800;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    z-index: 1;
}

.program-desc {
    order: 4;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 0;
    z-index: 1;
}

.programs-cta {
    text-align: center;
}

/* Floating background icons */
.programs-float-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Membership background */
.membership-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: none;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    color: rgba(0, 0, 0, 0.07);
    animation: floatUp 8s ease-in-out infinite;
    line-height: 1;
}

@keyframes floatUp {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.06;
    }

    50% {
        transform: translateY(-18px) rotate(8deg);
        opacity: 0.12;
    }

    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.06;
    }
}

/* Women's Trainers Badge (in Trainers section) */
.women-trainer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 0.55rem 1.2rem;
    background: rgba(255, 133, 194, 0.12);
    color: #ff85c2;
    border: 1px solid rgba(255, 133, 194, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.women-trainer-badge i {
    font-size: 1.1rem;
}

/* Programs responsive breakpoints */
@media (max-width: 900px) {
    .h-program-card {
        width: 85vw;
        min-width: 0;
        height: 65vh;
        max-height: 500px;
    }

    .program-intro-card {
        width: 85vw !important;
        margin-right: 0;
        height: auto;
        min-height: 50vh;
    }

    .massive-stacked-title span {
        font-size: 3.5rem;
    }

    .intro-glass-panel {
        padding: 2.5rem 1.5rem;
    }
}

/* Responsive Overrides for extremely small devices */
@media (max-width: 900px) {

    .nav-links,
    .desktop-only {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        width: 100%;
    }

    .horizontal-trainer-card {
        width: 85vw;
        max-height: 50vh;
    }

    .trainer-intro-card {
        width: 85vw !important;
        padding-right: 2rem;
    }

    .h-trainer-info h3 {
        font-size: 1.8rem;
    }

    .bmi-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@keyframes facilityFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.facility-float-icon {
    position: absolute;
    animation: facilityFloat 8s ease-in-out infinite;
}

/* ===== TRAINER SECTION IMMERSIVE BACKGROUND ===== */

.trainer-bg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Full-screen background video */
.trainer-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.07;
    z-index: 0;
}

/* ---- Horizontal Marquee Rows ---- */
.tbg-marquee-row {
    position: absolute;
    left: 0;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.tbg-row-1 {
    top: 2%;
    font-size: 0.7rem;
}

.tbg-row-2 {
    top: 18%;
    font-size: 1.1rem;
}

.tbg-row-3 {
    top: 35%;
    font-size: 0.55rem;
}

.tbg-row-4 {
    top: 55%;
    font-size: 0.9rem;
}

.tbg-row-5 {
    top: 75%;
    font-size: 0.65rem;
}

.tbg-marquee-inner {
    display: inline-flex;
    gap: 2rem;
    animation: tbgScrollLeft 20s linear infinite;
    color: rgba(0, 0, 0, 0.14);
    font-family: var(--font-display, 'Barlow Condensed', sans-serif);
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding-right: 2rem;
}

.tbg-marquee-inner.tbg-reverse {
    animation: tbgScrollRight 25s linear infinite;
    color: rgba(0, 0, 0, 0.12);
}

.tbg-dot {
    color: rgba(0, 0, 0, 0.1);
    font-size: 0.8em;
}

@keyframes tbgScrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes tbgScrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ---- Vertical text strips ---- */
.tbg-vertical-text {
    position: absolute;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-display, 'Barlow Condensed', sans-serif);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(0, 0, 0, 0.13);
    white-space: nowrap;
}

.tbg-vert-1 {
    left: 3%;
    top: 5%;
    font-size: 0.6rem;
    animation: tbgVertDrift 12s ease-in-out infinite;
    animation-delay: 0s;
}

.tbg-vert-2 {
    left: 20%;
    top: 10%;
    font-size: 0.45rem;
    animation: tbgVertDrift 15s ease-in-out infinite;
    animation-delay: 3s;
}

.tbg-vert-3 {
    right: 8%;
    top: 0%;
    font-size: 0.7rem;
    animation: tbgVertDrift 18s ease-in-out infinite;
    animation-delay: 6s;
}

.tbg-vert-4 {
    right: 22%;
    top: 5%;
    font-size: 0.5rem;
    animation: tbgVertDrift 10s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes tbgVertDrift {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
}

/* ---- Floating scattered text blobs ---- */
.tbg-float-text {
    position: absolute;
    font-family: var(--font-display, 'Barlow Condensed', sans-serif);
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    animation: tbgTextFloat 10s ease-in-out infinite;
}

.tbg-ft-1 {
    top: 10%;
    left: 10%;
    font-size: 1.2rem;
    animation-delay: 0s;
    animation-duration: 11s;
}

.tbg-ft-2 {
    top: 20%;
    right: 15%;
    font-size: 2rem;
    animation-delay: 2s;
    animation-duration: 14s;
    transform: rotate(-8deg);
}

.tbg-ft-3 {
    top: 45%;
    left: 18%;
    font-size: 0.7rem;
    animation-delay: 1s;
    animation-duration: 9s;
    transform: rotate(5deg);
}

.tbg-ft-4 {
    top: 60%;
    right: 25%;
    font-size: 3.5rem;
    animation-delay: 3.5s;
    animation-duration: 16s;
    color: rgba(0, 0, 0, 0.1);
}

.tbg-ft-5 {
    top: 80%;
    left: 5%;
    font-size: 0.55rem;
    animation-delay: 0.5s;
    animation-duration: 12s;
    transform: rotate(-3deg);
}

.tbg-ft-6 {
    top: 70%;
    right: 5%;
    font-size: 1rem;
    animation-delay: 4s;
    animation-duration: 13s;
    transform: rotate(12deg);
}

.tbg-ft-7 {
    top: 30%;
    left: 45%;
    font-size: 0.8rem;
    animation-delay: 2.5s;
    animation-duration: 10s;
    transform: rotate(-15deg);
}

.tbg-ft-8 {
    top: 88%;
    left: 55%;
    font-size: 1.5rem;
    animation-delay: 1.5s;
    animation-duration: 17s;
    color: rgba(0, 0, 0, 0.12);
}

@keyframes tbgTextFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(var(--rot, 0deg));
    }

    33% {
        transform: translate(8px, -12px) rotate(var(--rot, 0deg));
    }

    66% {
        transform: translate(-6px, 8px) rotate(var(--rot, 0deg));
    }
}

/* ---- Floating small images ---- */
.tbg-float-img {
    position: absolute;
    border-radius: 8px;
    object-fit: cover;
    opacity: 0.2;
    animation: tbgImgFloat 12s ease-in-out infinite;
    filter: grayscale(100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tbg-img-1 {
    width: 90px;
    height: 90px;
    top: 5%;
    left: 8%;
    animation-delay: 0s;
    animation-duration: 14s;
}

.tbg-img-2 {
    width: 70px;
    height: 70px;
    top: 60%;
    left: 15%;
    animation-delay: 2s;
    animation-duration: 11s;
}

.tbg-img-3 {
    width: 110px;
    height: 110px;
    top: 12%;
    right: 10%;
    animation-delay: 4s;
    animation-duration: 16s;
}

.tbg-img-4 {
    width: 80px;
    height: 80px;
    top: 70%;
    right: 8%;
    animation-delay: 1s;
    animation-duration: 13s;
}

.tbg-img-5 {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 3%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.tbg-img-6 {
    width: 100px;
    height: 100px;
    top: 80%;
    right: 20%;
    animation-delay: 5s;
    animation-duration: 18s;
}

@keyframes tbgImgFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-25px) rotate(2deg);
    }
}

/* ---- Floating small video clips ---- */
.tbg-float-vid {
    position: absolute;
    border-radius: 10px;
    object-fit: cover;
    opacity: 0.18;
    animation: tbgImgFloat 14s ease-in-out infinite;
    filter: grayscale(60%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tbg-vid-1 {
    width: 130px;
    height: 80px;
    top: 25%;
    right: 3%;
    animation-delay: 1s;
    animation-duration: 13s;
}

.tbg-vid-2 {
    width: 110px;
    height: 70px;
    top: 55%;
    left: 40%;
    animation-delay: 4s;
    animation-duration: 17s;
}

/* Creative Testimonials Section */
.testi-creative-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.testi-subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-yellow);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.testi-controls-creative {
    display: flex;
    gap: 1rem;
}

.testi-controls-creative button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition-fast);
}

.testi-controls-creative button:hover {
    background: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-black);
}

.testi-slider-wrap {
    position: relative;
    width: 100%;
}

.testi-slider {
    display: grid;
    grid-template-areas: "slide";
    position: relative;
}

.testi-slide {
    grid-area: slide;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    visibility: hidden;
}

.testi-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    z-index: 2;
}

.testi-slide.exit {
    opacity: 0;
    transform: translateY(-30px);
    visibility: hidden;
}

/* Glassmorphism Card for dark theme */
.testi-card-creative {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(250, 204, 21, 0.5); /* Yellow Accent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 4rem);
    text-align: left;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 280px;
}

/* Decorative Quote Mark Inside Card */
.testi-card-creative::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 8rem;
    font-family: serif;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    line-height: 1;
}

.testi-card-creative:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 80px rgba(250, 204, 21, 0.15);
    border-color: rgba(250, 204, 21, 0.3);
    border-top: 1px solid var(--color-yellow);
}

.testi-stars-c {
    color: var(--color-yellow);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 4px;
}

.testi-text-c {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    color: var(--color-white);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 400;
    font-style: italic;
    flex-grow: 1;
}

.testi-author-c {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.testi-avatar-c {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--color-yellow);
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.testi-info-c h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testi-info-c span {
    font-size: 0.85rem;
    color: #888;
}

.testi-dots-c {
    display: flex;
    gap: 8px;
    margin-top: 2rem;
    justify-content: flex-start;
}

.testi-dot-c {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.testi-dot-c.active {
    background: var(--color-yellow);
    transform: scale(1.5);
}

.desktop-only-flex {
    display: flex;
}
.mobile-only-flex {
    display: none;
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .testi-creative-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testi-header-col {
        text-align: center;
    }
    
    .testi-header-col p {
        margin: 0 auto 1.5rem;
    }
    
    .desktop-only-flex {
        display: none !important;
    }
    
    .mobile-only-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 1.5rem;
    }
    
    .testi-dots-c {
        justify-content: center;
    }
    
    .testi-card-creative {
        padding: 1.5rem;
        border-radius: 16px;
        min-height: 250px;
    }
    
    /* Ensure text fits perfectly on tiny devices */
    .testi-text-c {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
}

/* ---- Modern Footer ---- */
.footer-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modern-footer {
    width: 100%;
    color: var(--color-white);
    background-color: #111;
    padding-bottom: 2rem;
}

.modern-footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-desc {
    color: #a0a0a0;
    font-size: 0.95rem;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: var(--color-white);
    outline: none;
    flex-grow: 1;
    font-size: 0.95rem;
}

.newsletter-form button {
    background: transparent;
    color: var(--color-yellow);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.newsletter-form button:hover {
    transform: translateX(5px);
}

.links-col a, .contact-link {
    display: flex;
    align-items: center;
    color: #a0a0a0;
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    gap: 8px;
}

.links-col a:hover, .contact-link:hover {
    color: var(--color-yellow);
    transform: translateX(5px);
}

.footer-hours {
    color: #a0a0a0;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-hours strong {
    color: var(--color-white);
}

.footer-address a {
    color: #a0a0a0;
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
    line-height: 1.5;
    display: block;
    margin-bottom: 1rem;
}

.footer-address a:hover {
    color: var(--color-yellow);
}

.map-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: #a0a0a0;
    font-size: 1.4rem;
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--color-yellow);
    transform: scale(1.1);
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-panel {
        padding-top: 2rem !important;
    }
}

/* Phosphor Icon Base Styles */
i { display: inline-flex; align-items: center; justify-content: center; }

/* ====== DISCOUNT POPUP ====== */
.discount-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 320px;
    background: rgba(29, 29, 31, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: translateX(120%) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.discount-popup.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    color: var(--color-white);
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.close-popup:hover {
    opacity: 1;
    color: var(--color-yellow);
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.popup-icon {
    width: 60px;
    height: 60px;
    background: rgba(250, 204, 21, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-yellow);
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: floatIcon 3s ease-in-out infinite;
}

.discount-popup h3 {
    color: var(--color-white);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.discount-popup p {
    color: #a0a0a0;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-yellow);
    color: var(--color-black);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(250, 204, 21, 0.3);
}

@media (max-width: 768px) {
    .discount-popup {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: auto;
    }
}


/* ====== GPU HARDWARE ACCELERATION (ZERO LAG) ====== */
/* Only set will-change on elements that ACTUALLY animate on scroll to avoid memory waste */
.stack-panel,
.minimal-slider-slide,
.program-card,
.fade-up,
.stagger-word {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Smooth transitions for testi card hover */
.testi-card-creative {
    transition: transform 0.5s var(--ease-out-expo),
                box-shadow 0.5s var(--ease-out-expo),
                border-color 0.5s var(--ease-out-expo) !important;
}

/* Smoother image hover transitions */
.mega-image img,
.horizontal-trainer-card img {
    transition: transform 0.8s var(--ease-out-expo), filter 0.8s var(--ease-out-expo) !important;
}

/* Smooth nav link underlines */
.nav-links > a {
    position: relative;
}
.nav-links > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-yellow);
    transition: width 0.35s var(--ease-out-expo);
    border-radius: 2px;
}
.nav-links > a:hover::after {
    width: 100%;
}

/* Smooth page anchor scrolling offset */
.stack-panel:target {
    scroll-margin-top: 80px;
}

/* ====== METRICS SLIDER ====== */
.metrics-slider-container { position: relative; width: 100%; overflow: visible; padding: 0 10px; }
.metrics-slider-track { display: flex; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); width: 100%; }
.metrics-slide { min-width: 100%; flex-shrink: 0; padding: 0 10px; box-sizing: border-box; }
.metrics-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(255, 255, 255, 1); border: none; border-radius: 50%; color: var(--color-black); font-size: 24px; cursor: pointer; z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.metrics-nav-btn:hover { background: var(--color-yellow); transform: translateY(-50%) scale(1.1); }
.metrics-nav-btn.prev { left: -15px; }
.metrics-nav-btn.next { right: -15px; }
@media (max-width: 768px) { .metrics-nav-btn { width: 44px; height: 44px; font-size: 20px; } .metrics-nav-btn.prev { left: -5px; } .metrics-nav-btn.next { right: -5px; } .metrics-slider-container { overflow: hidden; padding: 0; } .metrics-slide { padding: 0; } }

/* ====== CALCULATOR CAROUSEL ====== */
.calculator-carousel-container { position: relative; overflow: hidden; width: 100%; border-radius: 20px; }
.calculator-carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); width: 100%; will-change: transform; transform: translateZ(0); }
.calculator-slide { min-width: 100%; flex: 0 0 100%; opacity: 0.5; transition: opacity 0.5s ease; padding: 0 40px; box-sizing: border-box; }
.calculator-slide.active { opacity: 1; }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: rgba(0, 0, 0, 0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; color: var(--color-black); backdrop-filter: blur(5px); transition: all 0.3s ease; border: 1px solid rgba(0, 0, 0, 0.1); }
.carousel-nav:hover { background: var(--color-yellow); color: var(--color-black); }
.carousel-nav.left { left: 0px; }
.carousel-nav.right { right: 0px; }
@media(max-width: 768px) { .calculator-slide { padding: 0 45px; } .carousel-nav { display: flex; width: 40px; height: 40px; font-size: 18px; z-index: 9999; background: var(--color-yellow) !important; color: var(--color-black) !important; border: 2px solid var(--color-black); box-shadow: 0 4px 10px rgba(0,0,0,0.5); } .carousel-nav.left { left: 0px; } .carousel-nav.right { right: 0px; } }

/* ============================================================
   PREMIUM DISCOUNT POPUP  (dcp = discount-popup)
   ============================================================ */

/* Entry keyframe — slides up from bottom-right */
@keyframes dcpSlideIn {
    0%   { opacity: 0; transform: translateY(40px) scale(0.92); }
    100% { opacity: 1; transform: translateY(0)   scale(1);    }
}

@keyframes dcpShimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

/* Base card */
.discount-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 340px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 1.75rem 1.5rem;
    z-index: 99990;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(250, 204, 21, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(40px) scale(0.92);
    transition:
        opacity    0.55s cubic-bezier(0.16, 1, 0.3, 1),
        transform  0.55s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.55s;
    will-change: transform, opacity;
}

.discount-popup.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: dcpSlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---- Accent bar (gold gradient across top) ---- */
.dcp-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, #FACC15, #ff8c00, #FACC15);
    background-size: 200% auto;
    animation: dcpShimmer 3s linear infinite;
}

/* ---- Close button ---- */
.dcp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.3s ease;
    z-index: 2;
}
.dcp-close:hover {
    background: rgba(250, 204, 21, 0.15);
    color: var(--color-yellow);
    transform: rotate(90deg);
}

/* ---- Badge ---- */
.dcp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: var(--color-yellow);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}
.dcp-badge i { font-size: 0.85rem; }

/* ---- Big number headline ---- */
.dcp-headline {
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.dcp-percent {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 5.5rem);
    font-weight: 900;
    color: var(--color-yellow);
    letter-spacing: -4px;
    line-height: 1;
}
.dcp-percent sup {
    font-size: 0.45em;
    letter-spacing: 0;
    vertical-align: super;
}

.dcp-off {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: -1px;
}

/* ---- Tagline under number ---- */
.dcp-tagline {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin: 0 0 1.2rem;
    max-width: none;
}

/* ---- Thin divider ---- */
.dcp-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(250,204,21,0.3), rgba(255,255,255,0.05), transparent);
    margin-bottom: 1.1rem;
}

/* ---- Body copy ---- */
.dcp-body {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #a0a0a0;
    margin-bottom: 1.4rem;
    max-width: none;
}
.dcp-body strong { color: var(--color-white); font-weight: 600; }

/* ---- CTA buttons ---- */
.dcp-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.dcp-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: var(--color-yellow);
    color: var(--color-black);
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease;
}
.dcp-btn-primary:hover {
    background: #ffe04d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(250, 204, 21, 0.35);
}
.dcp-btn-primary i { font-size: 1.1rem; }

.dcp-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s var(--ease-out-expo);
    box-sizing: border-box;
}
.dcp-btn-secondary:hover {
    background: rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
}
.dcp-btn-secondary i { font-size: 1.1rem; }

/* ---- Fine print ---- */
.dcp-fine {
    font-size: 0.68rem;
    color: #555;
    text-align: center;
    margin: 0;
    max-width: none;
    line-height: 1.4;
}

/* ---- Mobile tweaks ---- */
@media (max-width: 480px) {
    .discount-popup {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 2rem 1.5rem 2.5rem;
    }
    .dcp-accent-bar {
        border-radius: 20px 20px 0 0;
    }
}

/* ====== AI CHAT WIDGET (Premium Modern Edition) ====== */
#ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    font-family: var(--font-primary);
}

@keyframes floatingAir {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

#chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    border: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    animation: floatingAir 3s ease-in-out infinite;
}

#chat-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
    animation-play-state: paused;
}

#chat-box {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    height: 640px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    transform-origin: bottom right;
}

#chat-box.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.92) translateY(20px);
    pointer-events: none;
}

.chat-header {
    background: #ffffff;
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-header-info h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #000000;
}

.chat-status {
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #111;
    border-radius: 50%;
    display: inline-block;
}

.chat-header-actions {
    display: flex;
    gap: 0.25rem;
}

.chat-header-actions button {
    background: transparent;
    color: #aaa;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-actions button:hover {
    color: #000000;
    background: #f4f4f5;
}

#chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scroll-behavior: smooth;
    background: #ffffff;
}

#chat-messages::-webkit-scrollbar {
    width: 4px;
}
#chat-messages::-webkit-scrollbar-thumb {
    background: #ebebeb;
    border-radius: 4px;
}

.message {
    max-width: 88%;
    font-size: 0.95rem;
    line-height: 1.6;
    animation: fade-in-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    word-break: break-word;
}

.ai-msg {
    background: #ffffff;
    color: #1f2937;
    align-self: flex-start;
    padding: 0.9rem 1.25rem;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
}

.user-msg {
    background: var(--color-yellow);
    color: #111827;
    align-self: flex-end;
    padding: 0.9rem 1.25rem;
    border-radius: 18px;
    border-bottom-right-radius: 4px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.2);
}

/* Typing Indicator */
#chat-typing-indicator {
    display: flex;
    gap: 6px;
    padding: 0;
    background: transparent;
    width: fit-content;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    border: none;
    align-items: center;
}

#chat-typing-indicator.hidden {
    display: none;
}

.typing-text {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
    margin-right: 4px;
}

.typing-dot {
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(2) { animation-delay: -0.32s; }
.typing-dot:nth-child(3) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
    40% { transform: translateY(-4px); opacity: 1; }
}

/* Bottom Wrapper (Input) */
.chat-bottom-wrapper {
    background: #ffffff;
    padding-bottom: 0.5rem;
}

.chat-input-area {
    padding: 0.5rem 1.5rem 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

#chat-input {
    flex: 1;
    padding: 0.9rem 1.25rem;
    background: #f4f4f5;
    border: none;
    border-radius: 24px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    color: #000;
    resize: none;
    max-height: 120px;
    transition: background 0.3s ease;
}

#chat-input:focus {
    background: #ebebeb;
}

#chat-input::placeholder {
    color: #999;
}

#send-chat-btn {
    width: 44px;
    height: 44px;
    background: var(--color-yellow);
    color: #111827;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    margin-bottom: 2px;
}

#send-chat-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Proper Mobile Responsiveness */
@media (max-width: 600px) {
    #ai-chat-widget {
        bottom: 16px;
        right: 16px;
    }
    
    #chat-box {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        box-shadow: none;
        background: #ffffff;
    }

    #chat-box.hidden {
        transform: translateY(100%);
    }

    .chat-header {
        padding-top: max(1.5rem, env(safe-area-inset-top));
    }

    .chat-input-area {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Markdown Styling in Chat */
.message table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
    font-size: 0.9rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaeaea;
}
.message th, .message td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}
.message th {
    background-color: #fafafa;
    font-weight: 600;
    color: #000;
}
.message tr:last-child td {
    border-bottom: none;
}
.message hr {
    border: 0;
    height: 1px;
    background: #eaeaea;
    margin: 1.5rem 0;
}
.message ul, .message ol {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}
.message li {
    margin-bottom: 0.25rem;
}
.message strong {
    font-weight: 700;
    color: #000;
}

/* Ensure horizontal scroll cards snap perfectly to the center on mobile */
.program-card,
.program-intro-card,
.horizontal-trainer-card,
.trainer-intro-card,
.minimal-slider-slide {
    scroll-snap-align: center;
}
