:root {
    --primary: #3A4A5C;
    --secondary: #F7B733;
    --accent: #FC4A1A;
    --light: #F4F7F6;
    --dark: #2D3436;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-accent: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

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

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

/* Navigation */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    top: 0;
}

.nav-transparent {
    background-color: transparent;
}

.nav-solid {
    background-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background-color: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
}

.logo-text {
    font-family: var(--font-accent);
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--light);
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--light);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(to right, rgba(58, 74, 92, 0.9), rgba(58, 74, 92, 0.5)), url('https://images.unsplash.com/photo-1571019614242-c5c5dee9f50b?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--light);
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--secondary);
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    background-color: var(--accent);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
    padding: 7rem 5%;
    background-color: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 4px;
    background-color: var(--secondary);
    bottom: -10px;
    left: 0;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-weight: 500;
    color: var(--primary);
}

.about-image {
    position: relative;
    height: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 5px solid var(--secondary);
    border-radius: 15px;
    top: 20px;
    left: 20px;
    z-index: -1;
}

/* Services Section */
.services {
    padding: 7rem 5%;
    background-color: #f1f5f8;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(247, 183, 51, 0.1);
    border-radius: 50%;
    top: -150px;
    right: -150px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-content p {
    color: #555;
    margin-bottom: 1.5rem;
}

.service-price {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.service-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: var(--primary);
    color: var(--light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background-color: var(--accent);
}

/* Trainers Section */
.trainers {
    padding: 7rem 5%;
    background-color: var(--light);
}

.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.trainer-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.trainer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.trainer-img {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.trainer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trainer-card:hover .trainer-img img {
    transform: scale(1.1);
}

.trainer-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.trainer-card:hover .trainer-info {
    transform: translateY(0);
}

.trainer-content {
    padding: 1.5rem;
    text-align: center;
}

.trainer-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.trainer-content p {
    color: #555;
    margin-bottom: 1rem;
}

.trainer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.trainer-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.trainer-social a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

/* Testimonials */
.testimonials {
    padding: 7rem 5%;
    background-color: #f1f5f8;
    position: relative;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
    position: relative;
    z-index: 1;
    display: none;
}

.testimonial.active {
    display: block;
}

.testimonial-quote {
    font-size: 4rem;
    position: absolute;
    color: rgba(58, 74, 92, 0.1);
    top: -20px;
    left: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

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

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.testimonial-info p {
    color: #777;
    font-size: 0.9rem;
}

.testimonial-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-nav-btn:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

/* Unique Feature: Training Intensity Meter */
.intensity-section {
    padding: 7rem 5%;
    background-color: var(--light);
    text-align: center;
}

.intensity-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.intensity-header {
    margin-bottom: 3rem;
}

.intensity-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.intensity-header p {
    color: #555;
}

.intensity-meter {
    position: relative;
    height: 8px;
    background-color: #ddd;
    border-radius: 4px;
    margin: 4rem 0;
}

.intensity-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(to right, #4ECDC4, #F7B733, #FC4A1A);
    border-radius: 4px;
    width: 50%;
    transition: width 1s ease;
}

.intensity-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.intensity-label {
    font-weight: 500;
    color: var(--primary);
}

.intensity-slider {
    width: 100%;
    margin: 2rem 0;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.intensity-slider:hover {
    opacity: 1;
}

.intensity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

.intensity-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

.intensity-result {
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary);
}

.intensity-workouts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.workout-item {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    display: none;
}

.workout-item.active {
    display: block;
}

.workout-item h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.workout-item p {
    color: #555;
    margin-bottom: 1rem;
}

.workout-item ul {
    list-style: none;
}

.workout-item ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.workout-item ul li i {
    color: var(--accent);
    margin-right: 0.5rem;
    margin-top: 0.3rem;
}

/* Interactive Schedule */
.schedule {
    padding: 7rem 5%;
    background-color: #f1f5f8;
    position: relative;
    overflow: hidden;
}

.schedule::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(252, 74, 26, 0.1);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
}

.schedule-container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.schedule-tabs {
    display: flex;
    background-color: var(--primary);
}

.schedule-tab {
    flex: 1;
    padding: 1.5rem;
    text-align: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.schedule-tab:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.schedule-tab.active {
    background-color: var(--secondary);
    color: var(--dark);
}

.schedule-content {
    padding: 2rem;
}

.schedule-day {
    display: none;
}

.schedule-day.active {
    display: block;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th {
    background-color: #f1f5f8;
    padding: 1rem;
    text-align: left;
    color: var(--primary);
}

.schedule-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.schedule-class {
    background-color: #f9f9f9;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.class-trainer {
    font-size: 0.9rem;
    color: #555;
}

.schedule-btn {
    padding: 0.3rem 0.8rem;
    background-color: var(--secondary);
    color: var(--dark);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.schedule-btn:hover {
    background-color: var(--accent);
    color: #fff;
}

/* Contact */
.contact {
    padding: 7rem 5%;
    background-color: var(--light);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.contact-info {
    background-color: var(--primary);
    color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.contact-text h4 {
    margin-bottom: 0.3rem;
    color: var(--secondary);
}

.contact-text p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(247, 183, 51, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: #fff;
    padding: 5rem 5% 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter-btn {
    padding: 0 1.5rem;
    background-color: var(--secondary);
    color: var(--dark);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background-color: var(--accent);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content {
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background-color: var(--primary);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 5;
    }
    
    .nav-links li {
        opacity: 0;
        margin: 1.5rem 0;
    }
    
    .burger {
        display: block;
    }
    
    .nav-active {
        transform: translateX(0%);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .schedule-tabs {
        flex-wrap: wrap;
    }
    
    .schedule-tab {
        flex-basis: 33.33%;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    .trainer-card {
        min-width: 100%;
    }
    
    .schedule-tab {
        flex-basis: 50%;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    html{
        overflow-x: hidden;
    }
}

/* Animation for nav links */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.text-wrapper h2, .text-wrapper h3{
    margin-top: 20px;
    margin-bottom: 10px;
}

.text-wrapper h1{
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}
.text-wrapper h2{
    font-size: 1.5rem;
}

.text-wrapper{
    margin: 30px auto;
    max-width: 1200px;
    padding: 20px;
}

.text-wrapper p{
    margin-bottom: 10px;
}