/* ========================================
   1. CSS RESET & ROOT VARIABLES
   ======================================== */

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

:root {
    /* Colors - Gagua Gym Brand (Dark Theme) */
    --primary-color: #0a0a0a;
    --secondary-color: #4C0099;
    --secondary-light: #6B1AAA;
    --accent-color: #ffffff;
    --text-dark: #ffffff;
    --text-light: #ffffff;
    --text-secondary: #d1d5db;
    --background-light: #0a0a0a;
    --background-dark: #0a0a0a;
    --card-background: #1a1a1a;
    --border-color: #374151;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(76, 0, 153, 0.3);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    background-color: var(--primary-color);
}

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

/* ========================================
   2. GLOBAL STYLES
   ======================================== */

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-light);
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   3. NAVIGATION
   ======================================== */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px var(--shadow);
}

#navbar.scrolled {
    box-shadow: 0 2px 20px var(--shadow-hover);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 1px;
}

.logo h1 span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

/* ========================================
   4. HERO SECTION
   ======================================== */

#hero {
    min-height: 100vh;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 70px;
}

.hero-overlay {
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(76, 0, 153, 0.4);
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 0, 153, 0.6);
}

/* ========================================
   5. ABOUT SECTION
   ======================================== */

#about {
    padding: var(--section-padding);
    background-color: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 30px;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.mission-box {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    border-left: 5px solid var(--secondary-color);
}

.mission-box h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.about-image .image-placeholder {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #6d28d9 100%);
    height: 400px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 10px 30px var(--shadow);
}

/* ========================================
   6. SERVICES SECTION
   ======================================== */

#services {
    padding: var(--section-padding);
    background-color: var(--background-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background-color: var(--card-background);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-hover);
    border-top-color: var(--secondary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.icon-placeholder {
    font-size: 3.5rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   7. FACILITIES SECTION
   ======================================== */

#facilities {
    padding: var(--section-padding);
    background-color: var(--background-light);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.facility-item {
    text-align: center;
}

.facility-image {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
}

.facility-image .image-placeholder {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.facility-item:hover .image-placeholder {
    transform: scale(1.05);
}

.facility-item h4 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 1.2rem;
}

.features-list {
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: 10px;
    margin-top: 30px;
}

.features-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.features-list li {
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 10px;
}

/* ========================================
   8. PRICING SECTION
   ======================================== */

#pricing {
    padding: var(--section-padding);
    background-color: var(--background-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.pricing-card {
    background-color: var(--card-background);
    padding: 40px 30px 30px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.pricing-card.featured {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 700;
}

.price {
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.price .period {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.features li:last-child {
    border-bottom: none;
}

.pricing-note {
    text-align: center;
    margin-top: 30px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Pricing Scroll Arrows (Mobile) */
.pricing-scroll-container {
    position: relative;
}

.pricing-scroll-arrow {
    display: none; /* Hidden by default, shown on mobile */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(76, 0, 153, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: default;
    z-index: 10;
    transition: var(--transition);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pricing-scroll-arrow.left {
    left: 5px;
}

.pricing-scroll-arrow.right {
    right: 5px;
}

.pricing-scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   9. TESTIMONIALS SECTION
   ======================================== */

#testimonials {
    padding: var(--section-padding);
    background-color: var(--background-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.testimonial-card {
    background-color: var(--card-background);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

.quote-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.3;
    line-height: 0;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image .avatar-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    font-family: var(--font-heading);
    color: var(--text-light);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   10. CONTACT SECTION
   ======================================== */

#contact {
    padding: 80px 0 0 0;
    background-color: var(--background-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item h3 {
    font-family: var(--font-heading);
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.info-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}


.contact-social {
    margin-top: 10px;
}

.contact-social h3 {
    font-family: var(--font-heading);
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.contact-map {
    display: flex;
    height: 100%;
    aspect-ratio: 1 / 1;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

/* ========================================
   11. FOOTER
   ======================================== */

#footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    text-align: left;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-logo h2 span {
    color: var(--secondary-color);
}

.footer-logo p {
    color: var(--text-secondary);
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--secondary-color);
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.social-icon {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon:hover {
    color: var(--secondary-color);
}

.social-logo {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* ========================================
   12. UTILITIES
   ======================================== */

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* ========================================
   13. RESPONSIVE MEDIA QUERIES
   ======================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .facilities-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .features-list ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        border-top: 1px solid rgba(108, 26, 170, 0.3);
    }

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

    .nav-link {
        padding: 15px 0;
        color: var(--text-light);
    }
    
    /* Override hover effects on mobile */
    .nav-link:hover {
        color: var(--text-light);
    }
    
    .nav-link:hover::after {
        width: 0;
    }
    
    /* Active state for mobile menu - no underline, no purple text */
    .nav-link.active {
        color: var(--text-light);
        font-weight: 700;
    }
    
    .nav-link.active::after {
        width: 0;
    }

    .hamburger {
        display: flex;
    }

    /* Hero */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    /* Sections */
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Grids */
    .services-grid,
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Testimonials - 2x2 Grid on Mobile */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .testimonial-card {
        padding: 20px 15px;
    }

    .quote-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .testimonial-text {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .author-image .avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .author-info h4 {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }

    .author-info p {
        font-size: 0.75rem;
    }

    /* Mobile Horizontal Pricing Carousel */
    .pricing-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 0;
        padding: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .pricing-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }

    .pricing-card {
        min-width: min(calc(100vw - 40px), 400px);
        max-width: min(calc(100vw - 40px), 400px);
        flex-shrink: 0;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        margin: 0 20px;
    }

    .pricing-card:first-child {
        margin-left: 20px;
    }

    .pricing-card:last-child {
        margin-right: 20px;
    }

    /* Disable transforms on mobile to prevent interference with carousel */
    .pricing-card.featured {
        transform: none;
        border: 2px solid var(--secondary-color);
    }

    .pricing-card:hover,
    .pricing-card.featured:hover {
        transform: none;
    }

    /* Show scroll arrows on mobile */
    .pricing-scroll-arrow {
        display: flex;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-map {
        height: 400px;
        aspect-ratio: auto;
    }

    /* Features List */
    .features-list ul {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }

    .social-icons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}


/* Mobile Landscape Orientation - Prevent stretching */
@media (max-width: 768px) and (orientation: landscape) {
    /* About section - keep gym interior image at portrait width */
    .about-image {
        width: 350px;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .about-image .image-placeholder {
        width: 350px;
        height: 400px;
        max-width: 350px;
    }
    
    /* About section text - maintain portrait size */
    .about-text {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .about-text h3 {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    /* Facilities - keep images at portrait width */
    .facility-item {
        width: 350px;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .facility-image {
        width: 350px;
        max-width: 350px;
    }
    
    .facility-image .image-placeholder {
        width: 350px;
        height: 250px;
        max-width: 350px;
    }
    
    /* Pricing cards - maintain portrait size */
    .pricing-card {
        min-width: 350px;
        max-width: 350px;
    }
    
    /* Contact - maintain portrait size */
    .contact-content {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .contact-info {
        font-size: 1rem;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-map {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Very Small Mobile (<480px) */
@media (max-width: 479px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .nav-container {
        padding: 0 15px;
    }

    .container {
        padding: 0 15px;
    }
}
