/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@600&family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables (Dark Luxury Theme Default) --- */
:root {
    --primary-bg: #0B0B0B;
    --secondary-bg: #1E1E1E;
    --accent: #E63946;
    --highlight: #FF7A00;
    --text-main: #FFFFFF;
    --text-muted: #AAAAAA;
    --card-bg: rgba(30, 30, 30, 0.8);
    --border-color: #333;
    
    --font-head: 'Bebas Neue', cursive;
    --font-body: 'Poppins', sans-serif;
    --font-btn: 'Montserrat', sans-serif;
    
    --grad-red: linear-gradient(135deg, #E63946, #b02a35);
    --grad-orange: linear-gradient(135deg, #FF7A00, #E63946);
}

/* Light Theme Variables */
body.light-mode {
    --primary-bg: #FFFFFF;
    --secondary-bg: #F4F4F4;
    --text-main: #0B0B0B;
    --text-muted: #555555;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
}

/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* --- Reusable Components --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-head);
    font-size: 3.5rem;
    letter-spacing: 2px;
}

.section-title span { color: var(--accent); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-btn);
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--grad-red);
    color: #FFF;
}

.btn-primary:hover { background: var(--grad-orange); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(230, 57, 70, 0.4); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--text-main);
}
.btn-outline:hover { background: var(--accent); color: #FFF; }

/* Ripple Effect */
.ripple::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* --- Loader --- */
.loader-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-bg);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.loader-spinner {
    width: 60px; height: 60px;
    border: 5px solid var(--secondary-bg);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Scroll Progress --- */
.scroll-progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 4px;
    background: transparent; z-index: 10000;
}
.scroll-progress-bar { height: 100%; background: var(--highlight); width: 0%; }

/* --- Floating Actions --- */
.floating-actions {
    position: fixed; bottom: 30px; right: 30px;
    display: flex; flex-direction: column; gap: 15px; z-index: 900;
}
.float-btn {
    width: 50px; height: 50px;
    border-radius: 50%; border: none;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; color: #FFF; cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.float-btn:hover { transform: scale(1.1); }
#theme-toggle { background: var(--secondary-bg); color: var(--text-main); }
.whatsapp { background: #25D366; }
.call { background: var(--highlight); }
.top-btn { background: var(--accent); display: none; }

/* --- Navbar --- */
#header {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000; padding: 20px 0;
    transition: all 0.4s ease;
}
#header.sticky {
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
body.light-mode #header.sticky { background: rgba(255, 255, 255, 0.95); }

.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-head); font-size: 2.5rem; letter-spacing: 2px; }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 25px; }
.nav-links li a { font-weight: 500; font-size: 1.1rem; transition: color 0.3s; }
.nav-links li a:hover { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 20px; }
.hamburger { display: none; font-size: 1.8rem; cursor: pointer; }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?q=80&w=1470&auto=format&fit=crop') center/cover no-repeat;
    position: relative;
    display: flex; align-items: center;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 11, 11, 0.7);
}
.hero-content {
    position: relative; z-index: 2; max-width: 800px;
}
.hero-content h1 {
    font-family: var(--font-head); font-size: 5rem;
    line-height: 1.1; margin-bottom: 20px; letter-spacing: 2px;
}
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; color: #ddd; }
.hero-buttons { display: flex; gap: 20px; }

/* Floating Shapes */
.floating-shape { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 1; opacity: 0.5; }
.shape-1 { width: 300px; height: 300px; background: var(--accent); top: 10%; right: 10%; animation: float 6s ease-in-out infinite; }
.shape-2 { width: 250px; height: 250px; background: var(--highlight); bottom: 10%; left: 5%; animation: float 8s ease-in-out infinite reverse; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }

/* --- About Section --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img img { border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.about-text p { margin-bottom: 20px; line-height: 1.6; color: var(--text-muted); }
.about-features li { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.about-features i { color: var(--highlight); font-size: 1.3rem; }

/* --- Stats --- */
.stats { background: var(--secondary-bg); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 30px; }
.stat-box h3 { display: inline-block; font-family: var(--font-head); font-size: 4rem; color: var(--accent); }
.stat-box span { font-family: var(--font-head); font-size: 4rem; color: var(--accent); }

/* --- Facilities --- */
.facilities-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
}
.facility-card {
    background: var(--card-bg); padding: 30px 20px; text-align: center;
    border-radius: 8px; border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer;
}
.facility-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 15px; transition: transform 0.3s ease; }
.facility-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(230, 57, 70, 0.2); border-color: var(--accent); }
.facility-card:hover i { transform: scale(1.2); }

/* --- Programs --- */
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.program-card {
    position: relative; border-radius: 10px; overflow: hidden; cursor: pointer;
}
.program-card img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.5s ease; }
.program-info {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #FFF;
}
.program-card:hover img { transform: scale(1.1); }
.program-info h3 { font-family: var(--font-head); font-size: 2rem; letter-spacing: 1px; color: var(--highlight); }

/* --- Membership --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.pricing-card {
    background: var(--card-bg); padding: 40px 30px; text-align: center;
    border-radius: 10px; border: 1px solid var(--border-color); position: relative;
    transition: transform 0.3s ease;
}
.pricing-card:hover { transform: translateY(-10px); }
.pricing-card h3 { font-family: var(--font-head); font-size: 2.5rem; margin-bottom: 15px; }
.price { font-size: 3rem; font-weight: 700; color: var(--accent); margin-bottom: 20px; }
.pricing-card ul { margin-bottom: 30px; text-align: left; }
.pricing-card li { margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.pricing-card i { color: var(--highlight); margin-right: 10px; }
.pricing-card.popular { border: 2px solid var(--accent); transform: scale(1.05); box-shadow: 0 10px 30px rgba(230, 57, 70, 0.2); }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-10px); }
.badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--highlight); color: #fff; padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; }

/* --- BMI Calculator --- */
.bmi-section { background: var(--secondary-bg); }
.bmi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.bmi-form { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.bmi-form input {
    padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 4px;
    background: var(--primary-bg); color: var(--text-main); font-family: var(--font-body); outline: none; flex: 1;
}
.bmi-result { margin-top: 20px; font-size: 1.2rem; font-weight: 600; color: var(--highlight); }
.bmi-img img { border-radius: 10px; }

/* --- Trainers --- */
.trainers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.trainer-card { background: var(--card-bg); border-radius: 10px; overflow: hidden; text-align: center; }
.trainer-img { position: relative; overflow: hidden; }
.trainer-img img { width: 100%; height: 350px; object-fit: cover; }
.trainer-socials {
    position: absolute; bottom: -50px; left: 0; width: 100%; background: rgba(230, 57, 70, 0.8);
    padding: 15px 0; display: flex; justify-content: center; gap: 15px; transition: bottom 0.3s ease;
}
.trainer-card:hover .trainer-socials { bottom: 0; }
.trainer-socials a { color: #FFF; font-size: 1.2rem; }
.trainer-info { padding: 20px; }
.trainer-info h3 { font-family: var(--font-head); font-size: 2rem; }
.trainer-info p { color: var(--accent); font-weight: 500; }

/* --- Gallery --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery-item { border-radius: 8px; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }

/* --- Testimonials & FAQ --- */
.tf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.testimonial-card { background: var(--card-bg); padding: 30px; border-radius: 10px; margin-bottom: 20px; border-left: 4px solid var(--accent); }
.stars { color: var(--highlight); margin-bottom: 10px; }
.testimonial-card p { font-style: italic; margin-bottom: 15px; }
.testimonial-card h4 { color: var(--accent); }

/* Accordion */
.accordion-item { background: var(--card-bg); margin-bottom: 15px; border-radius: 5px; overflow: hidden; border: 1px solid var(--border-color); }
.accordion-header { padding: 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s; }
.accordion-header:hover { background: var(--secondary-bg); }
.accordion-body { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--text-muted); }
.accordion-item.active .accordion-body { padding: 20px; max-height: 200px; }
.accordion-item.active .accordion-header i { transform: rotate(45deg); color: var(--accent); }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; margin-bottom: 50px; }
.contact-info p { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.contact-info i { color: var(--accent); font-size: 1.2rem; width: 25px; }
.contact-form { display: grid; gap: 20px; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 15px; background: var(--card-bg); border: 1px solid var(--border-color);
    color: var(--text-main); font-family: var(--font-body); border-radius: 5px; outline: none; transition: border 0.3s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); }
.form-msg { padding: 10px; text-align: center; border-radius: 5px; display: none; }
.form-msg.success { background: rgba(37, 211, 102, 0.2); color: #25D366; display: block; }

/* --- Footer --- */
footer { background: #050505; color: #FFF; padding: 60px 0 20px; border-top: 2px solid var(--accent); }
body.light-mode footer { background: #111; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.footer-brand p { color: #888; margin: 20px 0; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { width: 40px; height: 40px; background: #222; display: flex; justify-content: center; align-items: center; border-radius: 50%; transition: background 0.3s; }
.social-icons a:hover { background: var(--accent); }
.footer-links h3 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #222; color: #777; font-size: 0.9rem; }

/* --- Animations (Scroll Reveal) --- */
.reveal-up { opacity: 0; transform: translateY(50px); transition: all 0.8s ease; }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease; }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease; }
.active.reveal-up, .active.reveal-left, .active.reveal-right { opacity: 1; transform: translate(0); }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 4rem; }
    .about-grid, .bmi-grid, .tf-grid, .contact-grid { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-10px); }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 250px; height: 100vh;
        background: var(--secondary-bg); flex-direction: column;
        padding-top: 80px; align-items: center; transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5); z-index: -1;
    }
    .nav-links.nav-active { right: 0; }
    .hamburger { display: block; }
    .hero-content h1 { font-size: 3rem; }
    .section-title { font-size: 2.8rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
    .floating-actions { bottom: 15px; right: 15px; transform: scale(0.85); }
}