/* ===== CSS Variables ===== */
:root {
    --primary: #0A5C8A;
    --primary-dark: #06496E;
    --primary-light: #1476AD;
    --secondary: #222831;
    --secondary-light: #393E46;
    --accent: #0A5C8A;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --white: #FFFFFF;
    --gray-50: #F5F7FA;
    --gray-100: #EEEEEE;
    --gray-200: #DADDE1;
    --gray-300: #B8BEC4;
    --gray-400: #9AA3AA;
    --gray-500: #7C8791;
    --gray-600: #5E6A74;
    --gray-700: #3F4851;
    --gray-800: #2A313B;
    --gray-900: #222831;
    --surface: #1B2129;
    --surface-alt: #222831;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-dark: linear-gradient(135deg, #171C23 0%, #0F1318 100%);
    --gradient-text: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%);
    --font-primary: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Cairo', 'Inter', sans-serif;
    --section-padding: 100px;
    --container-width: 1240px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --shadow-sm: 0 2px 10px rgba(34, 40, 49, 0.08);
    --shadow-md: 0 8px 24px rgba(34, 40, 49, 0.12);
    --shadow-lg: 0 16px 40px rgba(34, 40, 49, 0.16);
    --shadow-xl: 0 24px 70px rgba(34, 40, 49, 0.2);
    --shadow-glow: 0 0 32px rgba(0, 146, 202, 0.25);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html[dir="rtl"] { --font-primary: var(--font-arabic); }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-primary);
    background-color: var(--surface);
    color: var(--gray-100);
    line-height: 1.6;
    overflow-x: hidden;
}

html[dir="rtl"] body { font-family: var(--font-arabic); }

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }

/* Demo Banner */
.demo-banner {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    position: relative;
    z-index: 1001;
}

.demo-banner a { color: var(--white); text-decoration: underline; font-weight: 600; }

.demo-banner-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
}

.demo-banner-close:hover { opacity: 1; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.1; color: var(--gray-50); letter-spacing: -0.02em; }

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title { font-size: clamp(32px, 5vw, 48px); margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: var(--gray-300); max-width: 600px; }
.section-header.center { text-align: center; margin-bottom: 60px; }
.section-header.center .section-subtitle { margin: 0 auto; }

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: inherit;
}

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 18px; }

.btn-primary { background: var(--gradient-primary); color: var(--white); border-color: transparent; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.btn-outline { background: transparent; color: var(--gray-200); border-color: rgba(255, 255, 255, 0.2); }
.btn-outline:hover { border-color: var(--primary); color: var(--white); background: rgba(10, 92, 138, 0.2); }

.btn-white { background: var(--surface); color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }

.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1DA851; transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-icon { transition: transform var(--transition-fast); }
.btn:hover .btn-icon { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .btn-icon { transform: translateX(-4px); }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(27, 33, 41, 0.92);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header.scrolled { box-shadow: var(--shadow-sm); }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }

.logo { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; }
.logo-icon { font-size: 28px; }
.logo-text { color: var(--gray-50); }
.logo-accent { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--gray-300); position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    background: var(--secondary-light);
    color: var(--gray-100);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-toggle:hover { background: var(--secondary); }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-100); transition: var(--transition-fast); }

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1B2129 0%, #1E252E 45%, #141A22 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 18% 70%, rgba(10, 92, 138, 0.2) 0%, transparent 55%),
        radial-gradient(circle at 82% 25%, rgba(0, 0, 0, 0.3) 0%, transparent 55%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(34, 40, 49, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-100);
    margin-bottom: 24px;
}

.badge-icon { font-size: 16px; }
.hero-title { font-size: clamp(40px, 6vw, 64px); font-weight: 800; line-height: 1.1; margin-bottom: 24px; }
.hero-subtitle { font-size: 18px; color: var(--gray-300); margin-bottom: 32px; max-width: 520px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 32px; font-weight: 800; color: var(--gray-50); }
.stat-label { font-size: 14px; color: var(--gray-400); }
.stat-divider { width: 1px; height: 40px; background: rgba(255, 255, 255, 0.12); }

/* Hero Visual */
.hero-visual { position: relative; }
.hero-image-container { position: relative; width: 100%; aspect-ratio: 1; }
.hero-image {
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center 20%;
    filter: saturate(1.1) contrast(1.1);
}

.gym-illustration { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.gym-person { position: relative; width: 120px; height: 200px; }
.person-head { width: 50px; height: 50px; background: #FFD9B3; border-radius: 50%; margin: 0 auto 10px; }
.person-body { width: 70px; height: 80px; background: var(--primary); border-radius: 10px 10px 5px 5px; margin: 0 auto; }
.person-arm { position: absolute; width: 20px; height: 70px; background: #FFD9B3; border-radius: 10px; top: 60px; }
.person-arm.left { left: 0; transform: rotate(-45deg); transform-origin: top center; animation: armLift 1.5s ease-in-out infinite; }
.person-arm.right { right: 0; transform: rotate(45deg); transform-origin: top center; animation: armLift 1.5s ease-in-out infinite reverse; }

@keyframes armLift { 0%, 100% { transform: rotate(-45deg); } 50% { transform: rotate(-90deg); } }

.person-leg { position: absolute; width: 25px; height: 60px; background: #2A2A4A; border-radius: 5px; bottom: 0; }
.person-leg.left { left: 25px; }
.person-leg.right { right: 25px; }

.dumbbell { position: absolute; display: flex; align-items: center; top: 30px; }
.dumbbell.left { left: -40px; animation: dumbbellMove 1.5s ease-in-out infinite; }
.dumbbell.right { right: -40px; animation: dumbbellMove 1.5s ease-in-out infinite reverse; }

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

.dumbbell .weight { width: 15px; height: 30px; background: var(--gray-400); border-radius: 3px; }
.dumbbell .bar { width: 25px; height: 8px; background: var(--gray-500); }

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(27, 33, 41, 0.9);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.floating-card .card-icon { font-size: 24px; }
.floating-card .card-number { display: block; font-size: 18px; font-weight: 700; color: var(--gray-50); }
.floating-card .card-label { font-size: 12px; color: var(--gray-400); }

.card-1 { top: 10%; right: -20px; animation-delay: 0s; }
.card-2 { bottom: 30%; left: -30px; animation-delay: 1s; }
.card-3 { bottom: 10%; right: 10%; animation-delay: 2s; }

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--gray-400);
    font-size: 14px;
}

.scroll-indicator { width: 24px; height: 40px; border: 2px solid var(--gray-300); border-radius: 12px; position: relative; }
.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce { 0%, 100% { top: 8px; opacity: 1; } 50% { top: 20px; opacity: 0.5; } }

/* About Section */
.about { padding: var(--section-padding) 0; background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-images { position: relative; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; }
.about-image.main { width: 100%; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.about-image.secondary {
    position: absolute;
    width: 50%;
    aspect-ratio: 1;
    bottom: -30px;
    right: -30px;
    border: 5px solid var(--surface);
    box-shadow: var(--shadow-lg);
}

.image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.gym-interior { background: linear-gradient(135deg, #222831 0%, #393E46 100%); }
.gym-class { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }

.equipment { position: absolute; background: var(--gray-600); border-radius: 5px; }
.equipment.treadmill { width: 60px; height: 80px; bottom: 20%; left: 20%; }
.equipment.weights { width: 40px; height: 40px; bottom: 30%; right: 30%; border-radius: 50%; }
.equipment.bench { width: 80px; height: 30px; bottom: 25%; left: 50%; }

.class-people { display: flex; gap: 20px; }
.mini-person { width: 30px; height: 50px; background: var(--white); border-radius: 15px 15px 5px 5px; opacity: 0.9; }

.experience-badge {
    position: absolute;
    top: 30px;
    left: -20px;
    background: var(--secondary-light);
    color: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.exp-number { display: block; font-size: 36px; font-weight: 800; }
.exp-text { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.about-text { font-size: 17px; color: var(--gray-300); margin-bottom: 32px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.feature-item { display: flex; gap: 16px; }
.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.feature-content h4 { font-size: 16px; margin-bottom: 4px; }
.feature-content p { font-size: 14px; color: var(--gray-400); }

/* Classes Section */
.classes { padding: var(--section-padding) 0; background: var(--secondary); }
.classes-filter { display: flex; justify-content: center; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.filter-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    background: var(--secondary-light);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

.classes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.class-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.class-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.class-image { position: relative; aspect-ratio: 16/10; }
.class-visual { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.visual-icon { font-size: 48px; }

.strength-visual { background: linear-gradient(135deg, #222831 0%, #393E46 100%); }
.cardio-visual { background: linear-gradient(135deg, #0A5C8A 0%, #1476AD 100%); }
.yoga-visual { background: linear-gradient(135deg, #393E46 0%, #6C727A 100%); }
.hiit-visual { background: linear-gradient(135deg, #06496E 0%, #1476AD 100%); }
.boxing-visual { background: linear-gradient(135deg, #222831 0%, #0A5C8A 100%); }
.crossfit-visual { background: linear-gradient(135deg, #2A313B 0%, #0A5C8A 100%); }

.class-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}
.class-badge.hot { background: var(--error); }

.class-content { padding: 24px; }
.class-meta { display: flex; gap: 16px; margin-bottom: 12px; }
.class-meta span { font-size: 13px; color: var(--gray-400); }
.class-title { font-size: 20px; margin-bottom: 8px; }
.class-desc { font-size: 14px; color: var(--gray-400); margin-bottom: 16px; }
.class-schedule {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: var(--gray-300);
}

.classes-cta { text-align: center; margin-top: 48px; }

/* Trainers Section */
.trainers { padding: var(--section-padding) 0; background: var(--surface); }
.trainers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.trainer-card {
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}
.trainer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.trainer-image { position: relative; margin-bottom: 20px; }
.trainer-avatar {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    transition: var(--transition-normal);
}
.trainer-avatar.male { background: linear-gradient(135deg, #222831 0%, #393E46 100%); }
.trainer-avatar.female { background: linear-gradient(135deg, #0A5C8A 0%, #1476AD 100%); }
.trainer-card:hover .trainer-avatar { transform: scale(1.05); }

.trainer-socials {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: var(--transition-fast);
}
.trainer-card:hover .trainer-socials { opacity: 1; }
.trainer-socials .social-link {
    width: 36px;
    height: 36px;
    background: var(--secondary-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-md);
}

.trainer-name { font-size: 20px; margin-bottom: 4px; }
.trainer-role { font-size: 14px; color: var(--primary); font-weight: 500; display: block; margin-bottom: 12px; }
.trainer-bio { font-size: 14px; color: var(--gray-400); margin-bottom: 16px; }
.trainer-specialties { display: flex; justify-content: center; gap: 8px; }
.specialty {
    padding: 6px 12px;
    background: var(--secondary-light);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-200);
}

/* Pricing Section */
.pricing { padding: var(--section-padding) 0; background: var(--secondary); }
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 48px; }
.toggle-label { font-size: 16px; font-weight: 500; color: var(--gray-300); cursor: pointer; transition: var(--transition-fast); }
.toggle-label.active { color: var(--gray-50); }
.toggle-switch {
    width: 60px;
    height: 32px;
    background: var(--secondary-light);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}
.toggle-switch.active { background: var(--primary); }
.toggle-slider {
    position: absolute;
    width: 26px;
    height: 26px;
    background: var(--gray-50);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}
.toggle-switch.active .toggle-slider { left: 31px; }
.save-badge {
    background: var(--success);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 12px;
    margin-left: 8px;
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.pricing-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    position: relative;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-sm);
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
}
.pricing-card.featured:hover { transform: scale(1.05) translateY(-8px); }

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.pricing-header { margin-bottom: 24px; }
.plan-icon { font-size: 40px; display: block; margin-bottom: 16px; }
.plan-name { font-size: 24px; margin-bottom: 8px; }
.plan-desc { font-size: 14px; color: var(--gray-400); }
.pricing-price { margin-bottom: 32px; }
.currency { font-size: 18px; font-weight: 600; color: var(--gray-400); vertical-align: top; }
.amount { font-size: 56px; font-weight: 800; color: var(--gray-50); line-height: 1; }
.period { font-size: 16px; color: var(--gray-400); }

.pricing-features { text-align: left; margin-bottom: 32px; }
.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--success); font-weight: bold; }
.pricing-features .x { color: var(--gray-500); }
.pricing-features .not-included { color: var(--gray-500); }
.pricing-note { text-align: center; margin-top: 32px; font-size: 14px; color: var(--gray-400); }

/* Gallery Section */
.gallery { padding: var(--section-padding) 0; background: var(--surface); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 250px); gap: 20px; }
.gallery-item { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.06); }
.gallery-item.large { grid-column: span 2; }
.gallery-image { width: 100%; height: 100%; }
.gallery-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.05);
    transition: var(--transition-normal);
}
.gallery-item:hover .gallery-photo { transform: scale(1.03); }
.gallery-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transition: var(--transition-normal); }
.gallery-item:hover .gallery-placeholder { transform: scale(1.05); }
.placeholder-content { text-align: center; color: var(--white); }
.placeholder-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.placeholder-text { font-size: 16px; font-weight: 600; }

.main-floor { background: linear-gradient(135deg, #222831 0%, #393E46 100%); }
.cardio-zone { background: linear-gradient(135deg, #0A5C8A 0%, #1476AD 100%); }
.weights-area { background: linear-gradient(135deg, #2A313B 0%, #393E46 100%); }
.yoga-studio { background: linear-gradient(135deg, #393E46 0%, #6C727A 100%); }
.boxing-ring { background: linear-gradient(135deg, #222831 0%, #0A5C8A 100%); }
.locker-room { background: linear-gradient(135deg, #2A313B 0%, #3F4851 100%); }

/* Testimonials Section */
.testimonials { padding: var(--section-padding) 0; background: var(--secondary); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card { background: var(--surface); padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(255, 255, 255, 0.06); }
.testimonial-rating { color: #FBBF24; font-size: 18px; margin-bottom: 16px; }
.testimonial-text { font-size: 16px; color: var(--gray-300); line-height: 1.7; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
}
.author-name { font-weight: 600; color: var(--gray-50); display: block; }
.author-meta { font-size: 14px; color: var(--gray-400); }

/* CTA Section */
.cta-section { padding: 80px 0; background: var(--gradient-dark); position: relative; overflow: hidden; }
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 146, 202, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(34, 40, 49, 0.25) 0%, transparent 50%);
    pointer-events: none;
}
.cta-content { text-align: center; position: relative; z-index: 1; }
.cta-title { font-size: clamp(32px, 5vw, 48px); color: var(--white); margin-bottom: 16px; }
.cta-text { font-size: 18px; color: rgba(255, 255, 255, 0.7); margin-bottom: 32px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Contact Section */
.contact { padding: var(--section-padding) 0; background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-text { font-size: 17px; color: var(--gray-300); margin-bottom: 32px; }
.contact-details { display: grid; gap: 24px; margin-bottom: 32px; }
.contact-item { display: flex; gap: 16px; }
.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.contact-content h4 { font-size: 16px; margin-bottom: 4px; }
.contact-content p { font-size: 15px; color: var(--gray-300); }
.contact-actions { display: flex; gap: 16px; }

.contact-form-container { background: var(--secondary); padding: 40px; border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.06); }
.form-title { font-size: 24px; margin-bottom: 24px; text-align: center; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-200); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    background: #1E252E;
    color: var(--gray-100);
    transition: var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-500); }
.form-note { text-align: center; font-size: 14px; color: var(--gray-400); margin-top: 16px; }

/* Footer */
.footer { background: #14181F; color: var(--gray-300); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--white); }
.footer-desc { font-size: 15px; margin-bottom: 20px; line-height: 1.7; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-fast);
}
.footer-socials .social-link:hover { background: var(--primary); }
.footer-links h4 { color: var(--white); font-size: 18px; margin-bottom: 20px; }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 15px; color: var(--gray-400); transition: var(--transition-fast); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.demo-credit a { color: var(--primary); }

/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 999;
    background: #25D366;
    color: var(--white);
    padding: 14px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}
.whatsapp-float:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); }
.whatsapp-icon { font-size: 24px; }
.whatsapp-text { font-weight: 600; font-size: 14px; }
html[dir="rtl"] .whatsapp-float { right: auto; left: 30px; }

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); transform: translateY(-4px); }
html[dir="rtl"] .back-to-top { right: auto; left: 30px; }

/* Responsive */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { order: 1; }
    .hero-visual { order: 0; max-width: 400px; margin: 0 auto; }
    .hero-subtitle { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .about-images { max-width: 500px; margin: 0 auto; }
    .classes-grid { grid-template-columns: repeat(2, 1fr); }
    .trainers-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-8px); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .gallery-item.large { grid-column: span 1; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --section-padding: 48px; }
    .section-header.center { margin-bottom: 36px; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--secondary);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition-normal);
        z-index: 1001;
    }
    .nav-links.active { right: 0; }
    html[dir="rtl"] .nav-links { right: auto; left: -100%; }
    html[dir="rtl"] .nav-links.active { left: 0; }
    .mobile-toggle { display: flex; }
    .nav-actions .btn { display: none; }
    .hero { padding: 88px 0 48px; min-height: auto; }
    .hero-image-container { aspect-ratio: 4 / 3; }
    .hero-image { border-radius: var(--radius-lg); }
    .hero-subtitle { font-size: 16px; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .stat-item { min-width: 120px; }
    .hero-scroll { display: none; }
    .floating-card { display: none; }
    .classes-cta { margin-top: 32px; }
    .pricing-note { margin-top: 20px; }
    .pricing-card { padding: 28px; }
    .testimonial-card { padding: 24px; }
    .contact-details { gap: 16px; }
    .gallery-grid { grid-template-rows: repeat(2, 200px); gap: 12px; }
    .classes-grid { grid-template-columns: 1fr; }
    .trainers-grid { grid-template-columns: 1fr; }
    .trainer-avatar { width: 150px; height: 150px; }
    .about-features { grid-template-columns: 1fr; }
    .contact-form-container { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-socials { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .whatsapp-float { bottom: 80px; right: 20px; padding: 12px; border-radius: 50%; }
    .whatsapp-text { display: none; }
    html[dir="rtl"] .whatsapp-float { left: 20px; }
}

@media (max-width: 480px) {
    :root { --section-padding: 40px; }
    .hero-title { font-size: 30px; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .stat-divider { width: 40px; height: 1px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .nav { padding: 12px 0; }
    .logo { font-size: 20px; }
    .logo-icon { font-size: 24px; }
    .hero-image-container { aspect-ratio: 1 / 1; }
    .pricing-card { padding: 24px; }
    .testimonial-card { padding: 20px; }
    .section-header.center { margin-bottom: 28px; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }
    .contact-actions { flex-direction: column; }
    .contact-actions .btn { width: 100%; }
    .gallery-grid { grid-template-columns: 1fr; }
}

/* RTL */
html[dir="rtl"] { direction: rtl; }
html[dir="rtl"] .nav-link::after { left: auto; right: 0; }
html[dir="rtl"] .hero-buttons { flex-direction: row-reverse; }
html[dir="rtl"] .about-image.secondary { right: auto; left: -30px; }
html[dir="rtl"] .experience-badge { left: auto; right: -20px; }
html[dir="rtl"] .class-badge { right: auto; left: 16px; }
html[dir="rtl"] .pricing-features li { flex-direction: row-reverse; text-align: right; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.6s ease forwards; }

/* Print */
@media print {
    .demo-banner, .header, .whatsapp-float, .back-to-top, .hero-scroll { display: none !important; }
    .hero { min-height: auto; padding: 40px 0; }
}
.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center;
    filter: saturate(1.05) contrast(1.05);
}
