/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Oswald:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #faff00;
    /*--primary-color: #CCFF00; */
    /* Neon Yellow */
    --background-color: #0A0A0A;
    /* Dark Black */
    --surface-color: #1a1a1a;
    /* Date Surface */
    --text-color: #FAFAFA;
    /* Off White */
    --text-muted: #a3a3a3;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-primary {
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid #faff00;
    background: #faff00;
    color: #000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap !important;
    font-size: 0.9rem;
    line-height: 1;
}

.btn:hover {
    background: transparent;
    color: #faff00;
    box-shadow: 0 0 15px rgba(250, 255, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: #faff00;
}

.btn-outline:hover {
    background: #faff00;
    color: #000;
    box-shadow: 0 0 15px rgba(250, 255, 0, 0.4);
}

.btn-cup {
    background: transparent;
    border-color: #faff00;
    color: #faff00;
    box-shadow: 0 0 10px rgba(250, 255, 0, 0.2);
    animation: btnPulse 2s infinite ease-in-out;
}

.btn-cup:hover {
    background: #faff00 !important;
    color: #000 !important;
    box-shadow: 0 0 25px rgba(250, 255, 0, 0.6);
}

@keyframes btnPulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(250, 255, 0, 0.2); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(250, 255, 0, 0.4); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(250, 255, 0, 0.2); }
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
    font-family: var(--font-heading);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 20px 0;
    transition: all 0.3s ease;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); Removed for transparent look */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Space between logo and text if both are present */
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo img {
    max-height: 50px;
    /* Adjust based on navbar height */
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 25px; /* Reduced gap to accommodate longer button text */
    align-items: center;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-gym.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    /* offset for fixed header */
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content h1 span {
    -webkit-text-stroke: 1px var(--primary-color);
    color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 50%;
    height: 50%;
    border-top: 5px solid var(--primary-color);
    border-left: 5px solid var(--primary-color);
    z-index: -1;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: var(--surface-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: #252525;
}

.feature-card h4 {
    margin-top: 10px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* Programs/Classes */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.program-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .program-img {
    transform: scale(1.1);
}

.program-content {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.program-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Membership */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--surface-color);
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: var(--transition);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card:hover {
    border-color: var(--primary-color);
}

.pricing-card.full-width {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface-color) 0%, #111 100%);
    border: 1px solid var(--text-muted);
}

.pricing-card.full-width .plan-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pricing-card.full-width:hover {
    border-color: var(--primary-color);
    background: #111;
    /* Slight background change on hover */
}

.plan-price {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin: 20px 0;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-features li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

/* Trainers */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.trainer-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.trainer-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.trainer-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, #000, transparent);
    padding: 20px;
}

/* Gallery */
/* Gallery */
.gallery-container {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    margin-top: 30px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-grid {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollGallery 40s linear infinite;
    padding: 20px 0;
    /* Maintain padding */
}

.gallery-grid:hover {
    animation-play-state: paused;
}

.gallery-item {
    min-width: 400px;
    height: 300px;
    /* Adjusted height for consistency */
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    user-select: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    pointer-events: none;
    /* Prevent dragging image */
}

.gallery-item:hover img {
    transform: scale(1.1);
}

@keyframes scrollGallery {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 10px));
        /* Move by half + half gap (gap is 20px) */
    }
}

/* Gallery Navigation Buttons - Hidden as we are using auto-scroll */
.gallery-nav {
    display: none;
}

@media (max-width: 768px) {
    .gallery-item {
        min-width: 85vw;
        height: 250px;
    }

    .gallery-nav {
        display: none;
        /* Hide arrows on mobile, swipe is better */
    }
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--surface-color);
    padding: 50px;
    border-radius: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: #000;
    border: 1px solid #333;
    color: white;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: #000;
    padding: 50px 0 20px;
    border-top: 1px solid #222;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: var(--text-muted);
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #222;
    border-radius: 50%;
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #000;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.floating-whatsapp ion-icon {
    color: white;
}

/* Responsive */
/* Responsive Design Improvements */

/* Medium Devices (Tabelts, 768px - 991px) */
@media (max-width: 991px) {
    .container {
        padding: 0 30px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 30px;
    }
}

/* Small Devices (Mobiles, < 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section-padding {
        padding: 30px 0;
        /* Tighter padding for mobile */
    }

    /* Mobile Header */
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background-color: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease-in-out;
        border-left: 1px solid #333;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img::before {
        display: none;
        /* Remove offset border on mobile for cleaner look */
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .programs-grid,
    .trainers-grid {
        grid-template-columns: 1fr;
        /* Stack cards on mobile */
    }

    .footer-content {
        grid-template-columns: 1fr;
        /* Stack footer columns */
        text-align: center;
    }

    .footer-content>div {
        margin-bottom: 20px;
    }

    .social-links {
        justify-content: center;
        display: flex;
    }

    /* Fix Hero Buttons on Mobile */
    .hero-btns {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    /* Improve Gallery Mobile Experience */
    .gallery-item {
        min-width: 85vw;
        /* Show one full image and a peek of the next */
        height: 250px;
    }
}

/* Extra Small Devices (Portrait Phones, < 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Large Screens (TVs, 4K Monitors, > 1600px) */
@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }

    body {
        font-size: 18px;
        /* Slightly larger base text */
    }

    .hero-content h1 {
        font-size: 6rem;
    }

    .section-title {
        font-size: 4rem;
    }

    .program-card,
    .trainer-card {
        transition: transform 0.3s;
    }

    .program-card:hover,
    .trainer-card:hover {
        transform: translateY(-10px) scale(1.02);
    }
}

/* Google Reviews Section */
.reviews-container {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    margin-top: 30px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollReviews 40s linear infinite;
}

.reviews-track:hover {
    animation-play-state: paused;
}

.review-card {
    background: #000;
    padding: 25px;
    border-radius: 10px;
    width: 350px;
    border: 1px solid #333;
    transition: var(--transition);
    user-select: none;
    flex-shrink: 0;
}

.review-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    overflow: hidden;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--text-color);
    text-align: left;
}

.review-rating {
    display: flex;
    gap: 2px;
    color: #FFD700;
    /* Gold for stars */
    font-size: 0.9rem;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: left;
}

.review-date {
    display: block;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #555;
    text-align: left;
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
        /* Move by half (assuming duplicated content for seamless loop) */
    }
}

@media (max-width: 768px) {
    .review-card {
        width: 300px;
    }
}