/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #212529;
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

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

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

section {
    padding: 3rem 1rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    color: white;
}

/* Header & Navigation - IMPROVED */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 0.7rem 1rem;
    background-color: rgba(44, 62, 80, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.logo {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.logo h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 40%;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.logo:hover h1::after {
    width: 100%;
}

.logo p {
    font-size: 0.8rem;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Improved hamburger menu button */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 30px;
    padding: 0;
    z-index: 1100;
}

.hamburger {
    width: 28px;
    height: 3px;
    background-color: white;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 auto;
    border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    left: 0;
    border-radius: 2px;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Active state for hamburger */
.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Enhanced Mobile menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a252f 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1050;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    list-style: none;
}

.nav-menu.active {
    right: 0;
}

.nav-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/Gym.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.06;
    z-index: -1;
}

.nav-menu li {
    margin: 1.2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    transition-delay: calc(0.1s * var(--i));
    width: 100%;
    text-align: center;
}

.nav-menu.active li {
    opacity: 1;
    transform: translateY(0);
}

.nav-menu a {
    color: white;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: white;
}

.nav-menu a:hover::after {
    width: 70%;
}

.nav-menu a.cta-button {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    display: inline-block;
}

.nav-menu a.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
}

.nav-menu a.cta-button::after {
    display: none;
}

/* Overlay when mobile menu is open */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/GymwithPeople.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding-top: 70px;
}

.hero-content {
    max-width: 800px;
    padding: 0 1rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Services Section */
.services {
    text-align: center;
    background-color: white;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* About Section */
.about {
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

/* Gallery Section */
.gallery {
    text-align: center;
    background-color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item img {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    object-fit: cover;
    height: 250px;
}

/* Testimonials Section */
.testimonials {
    text-align: center;
    background-color: var(--light-color);
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.testimonial {
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 600px;
}

.testimonial blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial cite {
    font-weight: 700;
    font-style: normal;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Booking Section */
.booking {
    background-color: white;
    text-align: center;
}

#booking-form {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-primary);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Contact Section */
.contact {
    text-align: center;
    background-color: var(--light-color);
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 1rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    font-size: 0.9rem;
}

.footer-newsletter form {
    display: flex;
    margin-top: 1rem;
}

.footer-newsletter input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 4px 0 0 4px;
}

.footer-newsletter button {
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    background-color: #c0392b;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

/* Tablet Styles */
@media (min-width: 768px) {
    section {
        padding: 5rem 2rem;
    }
    
    .hero h2 {
        font-size: 3rem;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: row;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
    
    .menu-overlay {
        display: none;
    }
    
    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        background: none;
        box-shadow: none;
        padding: 0;
        width: auto;
        height: auto;
        justify-content: flex-end;
        max-width: none;
    }
    
    .nav-menu::before {
        display: none;
    }
    
    .nav-menu li {
        margin: 0 1rem;
        opacity: 1;
        transform: translateY(0);
        width: auto;
    }
    
    .nav-menu a {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    .nav-menu a.cta-button {
        padding: 0.6rem 1.2rem;
        margin-top: 0;
    }
    
    .nav-menu a::after {
        bottom: 0;
    }
    
    .nav-menu a:hover::after {
        width: 100%;
    }
    
    .service-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nav-menu a.active::after {
        width: 100%;
    }
}

/* Nav menu active state */
.nav-menu a.active {
    color: var(--accent-color);
}

.nav-menu a.active::after {
    width: 70%;
}

.nav-menu a span {
    position: relative;
    z-index: 1;
}

.nav-menu a.active span::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    right: -4px;
    height: 8px;
    background-color: rgba(231, 76, 60, 0.2);
    z-index: -1;
    transform: skew(-15deg);
} 