/* ==========================================
   FitCore Training - Main Stylesheet
   ========================================== */

/* CSS Variables */
:root {
    --primary: #FF4D00;
    --primary-dark: #E04400;
    --secondary: #1A1A1A;
    --dark: #0D0D0D;
    --light: #FFFFFF;
    --gray: #888888;
    --gray-light: #F5F5F5;
    --gray-dark: #333333;
    --success: #00C853;
    --gradient: linear-gradient(135deg, #FF4D00 0%, #FF6B35 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary);
    background: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient);
    color: var(--light);
    box-shadow: 0 4px 20px rgba(255, 77, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 77, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--light);
}

.btn-secondary:hover {
    background: var(--light);
    color: var(--dark);
}

.btn-dark {
    background: var(--dark);
    color: var(--light);
}

.btn-dark:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--light);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--light);
    font-weight: 500;
    position: relative;
}

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

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

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    margin-left: 20px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: var(--light);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.9) 0%, rgba(26, 26, 26, 0.85) 100%),
                url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920') center/cover;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 77, 0, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-tag {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 77, 0, 0.2);
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.hero h1 {
    color: var(--light);
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary);
    display: block;
}

.hero p {
    color: var(--gray);
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--dark);
}

.section-gray {
    background: var(--gray-light);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Services Preview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--light);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
}

.service-link:hover {
    gap: 15px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--secondary);
    border-radius: 20px;
    padding: 40px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
}

.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.star {
    color: #FFD700;
    font-size: 1.25rem;
}

.testimonial-text {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

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

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--light);
    font-weight: 700;
}

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

.author-info span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Transformations */
.transformations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.transformation-card {
    background: var(--light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.transformation-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.transformation-images::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transformation-images::after {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--light);
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 3;
}

.before-after {
    height: 300px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.before-after span {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--dark);
    color: var(--light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* PLACEHOLDER: Add real transformation photos */
.before-after.before {
    background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
}

.before-after.after {
    background: linear-gradient(135deg, #FF4D00 0%, #FF6B35 100%);
}

.transformation-info {
    padding: 25px;
    text-align: center;
}

.transformation-info h4 {
    margin-bottom: 5px;
}

.transformation-info p {
    color: var(--gray);
    margin-bottom: 10px;
}

.transformation-results {
    color: var(--primary);
    font-weight: 700;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--light);
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Services Page */
.page-hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.95) 0%, rgba(26, 26, 26, 0.9) 100%),
                url('https://images.unsplash.com/photo-1571019614242-c5c5dee9f50b?w=1920') center/cover;
    text-align: center;
}

.page-hero h1 {
    color: var(--light);
    margin-bottom: 20px;
}

.page-hero p {
    color: var(--gray);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
    border-bottom: 1px solid var(--gray-light);
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) > * {
    direction: ltr;
}

.service-detail:last-child {
    border-bottom: none;
}

.service-image {
    height: 400px;
    background: var(--gray-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.service-content h2 {
    margin-bottom: 20px;
}

.service-content > p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.benefits-list {
    margin-bottom: 30px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--gray-dark);
}

.benefits-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.pricing-tag {
    display: inline-block;
    background: var(--dark);
    color: var(--light);
    padding: 15px 30px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.pricing-tag .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.pricing-tag .period {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Schedule Table */
.schedule-section {
    background: var(--gray-light);
    padding: 80px 0;
}

.schedule-table {
    width: 100%;
    background: var(--light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.schedule-table th,
.schedule-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
}

.schedule-table th {
    background: var(--dark);
    color: var(--light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table td {
    color: var(--gray-dark);
}

.class-name {
    font-weight: 600;
    color: var(--primary);
}

/* About Page */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.trainer-image {
    height: 600px;
    background: linear-gradient(135deg, var(--gray-light) 0%, #ddd 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--gray);
    position: relative;
    overflow: hidden;
}

/* PLACEHOLDER: Add real trainer photo */
.trainer-image::after {
    content: 'Add Trainer Photo Here';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: var(--light);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.about-content h1 {
    margin-bottom: 20px;
}

.about-content .tagline {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.about-content p {
    color: var(--gray-dark);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.philosophy-section {
    background: var(--dark);
    padding: 80px 0;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-content h2 {
    color: var(--light);
    margin-bottom: 30px;
}

.philosophy-content p {
    color: var(--gray);
    font-size: 1.25rem;
    line-height: 1.8;
}

.philosophy-content blockquote {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary);
    margin: 40px 0;
    font-style: italic;
}

/* Certifications */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.cert-badge {
    background: var(--light);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cert-badge:hover {
    transform: translateY(-5px);
}

.cert-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--light);
}

.cert-badge h4 {
    margin-bottom: 10px;
}

.cert-badge p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    background: var(--dark);
    border-radius: 20px;
    padding: 50px;
}

.contact-info h3 {
    color: var(--light);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 77, 0, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

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

.info-text p,
.info-text a {
    color: var(--gray);
}

.info-text a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.free-consult {
    background: var(--gradient);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
}

.free-consult h4 {
    color: var(--light);
    margin-bottom: 10px;
}

.free-consult p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--light);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
    margin-bottom: 10px;
}

.contact-form-wrapper > p {
    color: var(--gray);
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-success {
    display: none;
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid var(--success);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: var(--success);
    margin-top: 20px;
}

/* Footer */
.footer {
    background: var(--dark);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--gray);
    margin-bottom: 20px;
}

.footer h4 {
    color: var(--light);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

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

.footer-links a {
    color: var(--gray);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--gray);
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 30px;
        transition: var(--transition);
    }

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

    .nav-cta {
        margin: 0;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-stats {
        gap: 30px;
    }

    .about-hero,
    .service-detail {
        grid-template-columns: 1fr;
    }

    .service-detail:nth-child(even) {
        direction: ltr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .services-grid,
    .testimonials-grid,
    .transformations-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .trainer-image {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form-wrapper,
    .contact-info {
        padding: 30px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
