/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --text-light: #f1f5f9;
    --text-gray: #94a3b8;
    --accent: #06b6d4;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo img {
    height: 60px;   /* adjust size */
    width: auto;
}
.logo img {
    filter: drop-shadow(0 0 5px rgba(14, 165, 233, 0.6));
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.9)),
                url("gym.jpg") center/cover;
    text-align: center;
    padding-top: 80px;
}


.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--darker-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--darker-bg);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s;
}

.service-card img {
    width: 100%;
    height: 180px;           /* control height */
    object-fit: cover;       /* prevents stretching */
    border-radius: 10px;
    margin-bottom: 1rem;
     overflow: hidden;   /* 🔥 prevents image going out */
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-gray);
}

/* Trainers Grid */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.trainer-card {
    background: var(--dark-bg);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s;
}

.trainer-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.trainer-img {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.trainer-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.specialty {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.trainer-img {
    width: 100%;
    height: 220px;     /* control image height */
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 10px; /* optional: slight rounded corners */
}
.trainer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background: var(--darker-bg);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 2px solid rgba(14, 165, 233, 0.2);
    position: relative;
    transition: all 0.3s;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.3);
}

.price-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.3);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.price-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-gray);
}

.price-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.price-card ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

/* BMI Calculator */
.bmi-calculator {
    max-width: 600px;
    margin: 0 auto;
    background: var(--darker-bg);
    padding: 3rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.bmi-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--dark-bg);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.bmi-result {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--dark-bg);
    border: 2px solid var(--primary-color);
    text-align: center;
}

.bmi-result h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

#bmiValue {
    color: var(--primary-color);
    font-size: 3rem;
}

#bmiCategory {
    font-size: 1.5rem;
    margin: 1rem 0;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item .icon {
    font-size: 1.5rem;
}

.contact-form {
    background: var(--darker-bg);
    padding: 2.5rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

#formMessage,
#membershipMessage {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}

.success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--darker-bg);
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    border: 1px solid var(--primary-color);
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
}

.close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(14, 165, 233, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--darker-bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-200%);
        transition: transform 0.3s;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .bmi-form .form-row {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .trainers-grid {
        grid-template-columns: 1fr;
    }
}