/* ===================================
   PowerFit Gym - Main Stylesheet
   Modern, Premium Fitness Website
   =================================== */

/* ===== CSS Custom Properties ===== */
:root {
    /* Primary Colors */
    --primary-color: #ff4d4d;
    --primary-dark: #e63946;
    --primary-light: #ff6b6b;
    
    /* Dark Theme Colors */
    --dark-bg: #0a0a0a;
    --dark-bg-secondary: #111111;
    --dark-bg-tertiary: #1a1a1a;
    --dark-card: #151515;
    --dark-border: #2a2a2a;
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-light: #e0e0e0;
    --text-muted: #888888;
    --text-dark: #333333;
    
    /* Accent Colors */
    --success-color: #4ade80;
    --warning-color: #fbbf24;
    --error-color: #f87171;
    --info-color: #60a5fa;
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Oswald', 'Bebas Neue', sans-serif;
    
    /* Font Sizes */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 2rem;
    --fs-4xl: 2.5rem;
    --fs-5xl: 3rem;
    --fs-6xl: 4rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
    --shadow-primary: 0 10px 40px rgba(255, 77, 77, 0.3);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
    
    /* Header Height */
    --header-height: 80px;
    
    /* Viewport Height (set by JS for mobile) */
    --vh: 1vh;
}

/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===== CSS Reset & Base Styles ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    position: relative;
}

main, section, footer {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Header should not have overflow hidden to allow nav toggle to be clickable */
header.header {
    overflow: visible;
}

/* Selection */
::selection {
    background-color: var(--primary-color);
    color: var(--text-white);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lists */
ul, ol {
    list-style: none;
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* Form Elements */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

/* ===== Utility Classes ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    overflow-x: hidden;
}

.section {
    padding: var(--space-4xl) 0;
    overflow-x: hidden;
}

.section-dark {
    background-color: var(--dark-bg-secondary);
}

.text-primary {
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: var(--space-xl);
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-subtitle {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: var(--fs-lg);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 77, 77, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-3px);
}

.btn-outline-light {
    border: 2px solid var(--text-white);
    color: var(--text-white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--text-white);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--fs-base);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--fs-xs);
}

.btn-block {
    width: 100%;
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 4px solid var(--dark-border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 4px;
}

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

/* ===== WhatsApp Button ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: var(--z-fixed);
    transition: var(--transition-base);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: var(--z-fixed);
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--text-white);
}

.nav-logo i {
    color: var(--primary-color);
    font-size: var(--fs-3xl);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-btn {
    display: none;
}

.nav-toggle {
    display: none;
    font-size: var(--fs-2xl);
    color: var(--text-white);
    cursor: pointer;
    z-index: 10001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .header {
        z-index: 9999;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    
    .nav {
        position: relative;
    }
    
    .nav-actions {
        position: relative;
        z-index: 10002;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--dark-bg-secondary);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 25px 25px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 10000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }
    
    /* Mobile menu backdrop */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: -1;
    }
    
    .nav-menu.active::before {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-link {
        font-size: 1rem;
        padding: 15px 0;
        border-bottom: 1px solid var(--dark-border);
        text-align: center;
        display: block;
        width: 100%;
    }
    
    .nav-link::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        cursor: pointer;
        z-index: 10002;
        position: relative;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        outline: none;
        pointer-events: auto !important;
        touch-action: manipulation;
        border-radius: var(--radius-md);
        transition: all 0.3s ease;
    }
    
    .nav-toggle:hover,
    .nav-toggle:active {
        background: var(--primary-color);
    }
    
    .nav-toggle i {
        font-size: 1.5rem;
        pointer-events: none;
        transition: transform 0.3s ease;
    }
    
    /* When menu is active, style the toggle button */
    .nav-menu.active ~ .nav-actions .nav-toggle {
        background: var(--primary-color);
    }
    
    .nav-menu.active ~ .nav-actions .nav-toggle i {
        transform: rotate(90deg);
    }

    .nav-btn {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .nav-btn {
        display: inline-flex;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100); /* Mobile viewport fix */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&h=1080&fit=crop') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(255, 77, 77, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: var(--header-height);
}

.hero-text {
    max-width: 800px;
}

.hero-subtitle {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: var(--space-md);
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-full);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(var(--fs-4xl), 8vw, var(--fs-6xl));
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-description {
    font-size: var(--fs-lg);
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--dark-border);
    width: 100%;
}

.hero-stat {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.hero-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--fs-4xl);
    font-weight: 700;
    color: var(--primary-color);
}

.hero-stat-text {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-white);
    animation: bounce 2s infinite;
}

.scroll-down i {
    font-size: var(--fs-2xl);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* ===== Why Choose Us Section ===== */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--space-xl);
    width: 100%;
}

.why-us-card {
    background: var(--dark-card);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-border);
    text-align: center;
    transition: var(--transition-base);
}

.why-us-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-primary);
}

.why-us-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-3xl);
    color: var(--text-white);
}

.why-us-title {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

.why-us-text {
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

/* ===== Programs Section ===== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--space-xl);
    width: 100%;
}

.program-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--dark-border);
    transition: var(--transition-base);
}

.program-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.program-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 77, 77, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.program-card:hover .program-overlay {
    opacity: 1;
}

.program-content {
    padding: var(--space-xl);
}

.program-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xl);
    color: var(--text-white);
    margin-bottom: var(--space-md);
}

.program-title {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.program-text {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    margin-bottom: var(--space-md);
}

.program-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.program-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    color: var(--text-light);
}

.program-features i {
    color: var(--primary-color);
    font-size: var(--fs-xs);
}

/* ===== BMI Calculator Section ===== */
.bmi-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.bmi-content .section-subtitle,
.bmi-content .section-title,
.bmi-content .section-description {
    text-align: left;
    margin-left: 0;
}

.bmi-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.bmi-info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.bmi-range {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.bmi-category {
    font-weight: 600;
    font-size: var(--fs-base);
}

.bmi-category.underweight { color: var(--info-color); }
.bmi-category.normal { color: var(--success-color); }
.bmi-category.overweight { color: var(--warning-color); }
.bmi-category.obese { color: var(--error-color); }

.bmi-calculator {
    background: var(--dark-card);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-border);
}

.bmi-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group label {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: var(--space-md);
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: var(--fs-base);
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.bmi-result {
    margin-top: var(--space-xl);
    padding: var(--space-xl);
    background: var(--dark-bg);
    border-radius: var(--radius-md);
    text-align: center;
}

.bmi-result-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    font-size: var(--fs-xl);
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.bmi-result-value strong {
    font-family: var(--font-heading);
    font-size: var(--fs-4xl);
    color: var(--primary-color);
}

.bmi-result-text {
    font-size: var(--fs-base);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .bmi-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ===== Trainers Section ===== */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: var(--space-xl);
    width: 100%;
}

.trainer-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--dark-border);
    transition: var(--transition-base);
}

.trainer-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.trainer-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.trainer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.trainer-card:hover .trainer-image img {
    transform: scale(1.1);
}

.trainer-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transition: var(--transition-base);
}

.trainer-card:hover .trainer-social {
    bottom: 0;
}

.trainer-social a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition-base);
}

.trainer-social a:hover {
    background: var(--text-white);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.trainer-info {
    padding: var(--space-xl);
    text-align: center;
}

.trainer-name {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-xs);
}

.trainer-role {
    display: block;
    font-size: var(--fs-sm);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.trainer-bio {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* ===== Pricing Section ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--space-xl);
    align-items: stretch;
    width: 100%;
}

.pricing-card {
    position: relative;
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--dark-border);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-primary);
}

.pricing-card.featured:hover {
    transform: scale(1.08);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: var(--space-xl);
    background: var(--primary-color);
    color: var(--text-white);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.pricing-header {
    text-align: center;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--dark-border);
    margin-bottom: var(--space-xl);
}

.pricing-name {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.pricing-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-xs);
}

.pricing-price .currency {
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--primary-color);
    margin-top: var(--space-sm);
}

.pricing-price .amount {
    font-family: var(--font-heading);
    font-size: var(--fs-6xl);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1;
}

.pricing-price .period {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    align-self: flex-end;
    margin-bottom: var(--space-sm);
}

.pricing-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--fs-sm);
    color: var(--text-light);
}

.pricing-features li i {
    width: 20px;
    text-align: center;
}

.pricing-features li .fa-check {
    color: var(--success-color);
}

.pricing-features li .fa-times {
    color: var(--text-muted);
}

.pricing-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* ===== Testimonials Section ===== */
.testimonials-slider {
    padding-bottom: var(--space-3xl);
}

.testimonial-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--dark-border);
}

.testimonial-rating {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: var(--fs-base);
}

.testimonial-text {
    font-size: var(--fs-lg);
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-author-info h4 {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text-white);
}

.testimonial-author-info span {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--dark-border);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* ===== CTA Section ===== */
.cta {
    position: relative;
    padding: var(--space-4xl) 0;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?w=1920&h=600&fit=crop') center/cover no-repeat;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(255, 77, 77, 0.3) 100%);
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.cta-text {
    font-size: var(--fs-lg);
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-bg-secondary);
    padding-top: var(--space-4xl);
    overflow-x: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid var(--dark-border);
    width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--space-lg);
}

.footer-logo i {
    color: var(--primary-color);
    font-size: var(--fs-3xl);
}

.footer-description {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-5px);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: var(--space-sm);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.footer-contact li i {
    color: var(--primary-color);
    width: 20px;
    margin-top: 3px;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl) 0;
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-primary);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ===== Page Header (for inner pages) ===== */
.page-header {
    position: relative;
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
    background: var(--dark-bg-secondary);
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&h=400&fit=crop') center/cover no-repeat;
    opacity: 0.1;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(var(--fs-3xl), 6vw, var(--fs-5xl));
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--primary-color);
}

/* ===== Schedule Table ===== */
.schedule-table {
    width: 100%;
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--dark-border);
}

.schedule-table th,
.schedule-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    border-bottom: 1px solid var(--dark-border);
}

.schedule-table th {
    background: var(--primary-color);
    color: var(--text-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--fs-sm);
}

.schedule-table td {
    color: var(--text-light);
    font-size: var(--fs-sm);
}

.schedule-table tr:hover td {
    background: var(--dark-bg);
}

.schedule-table .time {
    font-weight: 600;
    color: var(--primary-color);
}

.schedule-table .class-name {
    font-weight: 500;
    color: var(--text-white);
}

/* ===== Gallery Grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--space-md);
    width: 100%;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 77, 77, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: var(--fs-3xl);
    color: var(--text-white);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--space-xl);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    font-size: var(--fs-3xl);
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition-base);
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--fs-3xl);
    color: var(--text-white);
    cursor: pointer;
    padding: var(--space-md);
    transition: var(--transition-base);
}

.lightbox-nav:hover {
    color: var(--primary-color);
}

.lightbox-prev {
    left: var(--space-xl);
}

.lightbox-next {
    right: var(--space-xl);
}

/* ===== Contact Form ===== */
.contact-form {
    background: var(--dark-card);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-border);
}

.contact-form .form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Contact Info Cards */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: var(--space-xl);
    width: 100%;
}

.contact-info-card {
    background: var(--dark-card);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-border);
    text-align: center;
    transition: var(--transition-base);
}

.contact-info-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-info-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xl);
    color: var(--text-white);
}

.contact-info-title {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-sm);
}

.contact-info-text {
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.contact-info-text a:hover {
    color: var(--primary-color);
}

/* Google Map */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== About Page Styles ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.about-image-badge {
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-xl);
    background: var(--primary-color);
    color: var(--text-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.about-image-badge .number {
    font-family: var(--font-heading);
    font-size: var(--fs-4xl);
    font-weight: 700;
    display: block;
}

.about-image-badge span {
    font-size: var(--fs-sm);
    text-transform: uppercase;
}

.about-text .section-subtitle,
.about-text .section-title {
    text-align: left;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.about-feature i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: var(--fs-lg);
}

.about-feature span {
    font-weight: 500;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

/* ===== Touch Device Specific Styles ===== */
body.touch-device {
    -webkit-tap-highlight-color: transparent;
}

body.touch-device .program-overlay,
body.touch-device .gallery-overlay {
    /* Always show overlay hint on touch devices */
    opacity: 0.3;
}

body.touch-device .program-card:active .program-overlay,
body.touch-device .gallery-item:active .gallery-overlay {
    opacity: 1;
}

body.touch-device .trainer-social {
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

/* Improve touch scrolling */
body.touch-device .nav-menu {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

body.touch-device .schedule-table {
    -webkit-overflow-scrolling: touch;
}

/* ===== ENHANCED MOBILE RESPONSIVENESS ===== */

/* ===== Global Mobile Overflow Fix ===== */
@media (max-width: 991px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    *, *::before, *::after {
        max-width: 100vw;
    }
    
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
    }
    
    img, video, iframe {
        max-width: 100% !important;
        height: auto;
    }
    
    /* Fix AOS animations causing overflow */
    [data-aos] {
        overflow: hidden;
    }
    
    /* Prevent any element from overflowing */
    section, main, header, footer, div {
        max-width: 100vw;
    }
}

/* ===== Extra Small Devices (phones, 320px and up) ===== */
@media (max-width: 375px) {
    :root {
        --container-padding: 0.75rem;
        --fs-xs: 0.7rem;
        --fs-sm: 0.8rem;
        --fs-base: 0.9rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: 0.65rem;
        padding: var(--space-xs) var(--space-sm);
        letter-spacing: 2px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.7rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .nav-logo i {
        font-size: 1.5rem;
    }
    
    .whatsapp-btn {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 15px;
        left: 15px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .hero-stat-number {
        font-size: 1.75rem;
    }
    
    .pricing-price .amount {
        font-size: 2.5rem;
    }
}

/* ===== Small Devices (phones, 376px - 575px) ===== */
@media (min-width: 376px) and (max-width: 575px) {
    :root {
        --container-padding: 1rem;
    }
    
    .hero-stats {
        justify-content: space-around;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* ===== Medium Devices (tablets, 576px - 767px) ===== */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-stats {
        justify-content: center;
        gap: var(--space-2xl);
    }
    
    .programs-grid,
    .trainers-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Large Tablets (768px - 991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trainers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Hero Section Mobile ===== */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile */
    }
    
    .hero-content {
        padding: calc(var(--header-height) + 1.5rem) 0 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto var(--space-xl);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        border-top: 1px solid var(--dark-border);
    }
    
    .hero-stat {
        flex: 1;
        min-width: 100px;
    }
    
    .hero-scroll {
        bottom: 20px;
    }
}

/* ===== Cards & Grid Items Mobile ===== */
@media (max-width: 576px) {
    /* Force single column on small screens */
    .programs-grid,
    .trainers-grid,
    .pricing-grid,
    .why-us-grid,
    .gallery-grid,
    .contact-info-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Reduce card padding */
    .why-us-card,
    .program-card .program-content,
    .trainer-info,
    .pricing-card,
    .testimonial-card,
    .contact-info-card,
    .contact-form,
    .bmi-calculator {
        padding: var(--space-lg);
    }
    
    /* Icon sizes */
    .why-us-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .contact-info-icon {
        width: 55px;
        height: 55px;
        font-size: 1.25rem;
    }
    
    /* Featured pricing card fix */
    .pricing-card.featured {
        transform: none;
        box-shadow: var(--shadow-primary);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    /* Gallery items smaller */
    .gallery-item {
        height: 220px;
    }
}

/* ===== BMI Calculator Mobile ===== */
@media (max-width: 768px) {
    .bmi-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .bmi-content {
        text-align: center;
    }
    
    .bmi-content .section-subtitle,
    .bmi-content .section-title,
    .bmi-content .section-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .bmi-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .bmi-info {
        grid-template-columns: 1fr;
    }
    
    .bmi-result-value {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .bmi-result-value strong {
        font-size: 2.5rem;
    }
}

/* ===== Footer Mobile ===== */
@media (max-width: 768px) {
    .footer {
        padding-top: var(--space-3xl);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .footer-contact li {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }
}

/* ===== Testimonials Mobile ===== */
@media (max-width: 576px) {
    .testimonial-card {
        padding: var(--space-lg);
    }
    
    .testimonial-text {
        font-size: var(--fs-base);
        line-height: 1.7;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .testimonial-author img {
        width: 50px;
        height: 50px;
    }
}

/* ===== Page Header Mobile ===== */
@media (max-width: 576px) {
    .page-header {
        padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== About Page Mobile ===== */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-text .section-subtitle,
    .about-text .section-title {
        text-align: center;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-feature {
        justify-content: center;
    }
    
    .about-image-badge {
        bottom: var(--space-md);
        right: var(--space-md);
        padding: var(--space-md);
    }
    
    .about-image-badge .number {
        font-size: 2rem;
    }
}

/* ===== Stats Section Mobile ===== */
@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 375px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Mission Vision Mobile ===== */
@media (max-width: 576px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-card,
    .vision-card {
        padding: var(--space-lg);
    }
    
    .mission-card h3,
    .vision-card h3 {
        font-size: var(--fs-lg);
    }
}

/* ===== Schedule Table Mobile ===== */
@media (max-width: 768px) {
    .schedule-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

/* ===== Contact Form Mobile ===== */
@media (max-width: 576px) {
    .contact-form {
        padding: var(--space-lg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: var(--space-md) var(--space-sm);
        font-size: 16px; /* Prevents iOS zoom */
    }
}

/* ===== Map Container Mobile ===== */
@media (max-width: 576px) {
    .map-container {
        height: 280px;
        margin-top: var(--space-lg);
    }
}

/* ===== CTA Section Mobile ===== */
@media (max-width: 576px) {
    .cta {
        padding: var(--space-2xl) 0;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-text {
        font-size: var(--fs-base);
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* ===== Lightbox Mobile ===== */
@media (max-width: 768px) {
    .lightbox {
        padding: var(--space-md);
    }
    
    .lightbox-close {
        top: var(--space-md);
        right: var(--space-md);
        font-size: var(--fs-2xl);
    }
    
    .lightbox-nav {
        font-size: var(--fs-2xl);
        padding: var(--space-sm);
    }
    
    .lightbox-prev {
        left: var(--space-sm);
    }
    
    .lightbox-next {
        right: var(--space-sm);
    }
    
    .lightbox-content img {
        max-height: 70vh;
    }
}

/* ===== Touch-Friendly Elements ===== */
@media (max-width: 991px) {
    /* Larger tap targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .footer-social a {
        width: 50px;
        height: 50px;
    }
    
    .trainer-social a {
        width: 44px;
        height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    @media (hover: none) {
        .program-card:hover,
        .trainer-card:hover,
        .pricing-card:hover,
        .why-us-card:hover,
        .contact-info-card:hover {
            transform: none;
        }
        
        .program-card:active,
        .trainer-card:active,
        .pricing-card:active,
        .why-us-card:active,
        .contact-info-card:active {
            transform: scale(0.98);
        }
    }
}

/* ===== Prevent Text Overflow ===== */
@media (max-width: 576px) {
    .hero-title,
    .section-title,
    .page-title,
    .cta-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-description,
    .section-description,
    .program-text,
    .trainer-bio {
        word-wrap: break-word;
    }
}

/* ===== Improve Scroll Performance ===== */
@media (max-width: 991px) {
    .program-card,
    .trainer-card,
    .pricing-card,
    .why-us-card,
    .gallery-item {
        will-change: transform;
    }
}

/* ===== Safe Area Insets (for notched phones) ===== */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(var(--container-padding), env(safe-area-inset-left));
        padding-right: max(var(--container-padding), env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
    }
    
    .whatsapp-btn {
        left: max(15px, calc(env(safe-area-inset-left) + 15px));
        bottom: max(15px, calc(env(safe-area-inset-bottom) + 15px));
    }
    
    .back-to-top {
        right: max(15px, calc(env(safe-area-inset-right) + 15px));
        bottom: max(15px, calc(env(safe-area-inset-bottom) + 15px));
    }
}

/* ===== Landscape Mode Optimizations ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-3xl) 0;
    }
    
    .hero-content {
        padding-top: calc(var(--header-height) + 1rem);
    }
    
    .hero-stats {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-lg);
    }
    
    .hero-scroll {
        display: none;
    }
    
    .nav-menu {
        overflow-y: auto;
    }
}

/* ===== Reduced Motion for Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .preloader {
        display: none;
    }
}

/* ===== High Contrast Mode Support ===== */
@media (prefers-contrast: high) {
    :root {
        --dark-border: #555555;
        --text-muted: #aaaaaa;
    }
    
    .btn-primary {
        border: 2px solid var(--text-white);
    }
    
    .nav-link::after {
        height: 3px;
    }
}

/* ===== Dark Mode Preference (already dark, but ensure contrast) ===== */
@media (prefers-color-scheme: dark) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        color-scheme: dark;
    }
}

/* ===== Print Styles Enhanced ===== */
@media print {
    .header,
    .footer,
    .whatsapp-btn,
    .back-to-top,
    .nav-toggle,
    .hero-scroll,
    .swiper-pagination {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .section {
        padding: 1rem 0;
        break-inside: avoid;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    .btn {
        display: none;
    }
}
