:root {
    /* Updated Color Palette for Fitness Website */
    --primary-white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --text-dark: #212529;
    --text-medium: #495057;

    /* Energetic Accent Colors */
    --accent-orange: #ff6b35;
    /* Energy & motivation */
    --accent-blue: #007bff;
    /* Trust & focus */
    --accent-green: #28a745;
    /* Health & vitality */
    --accent-red: #dc3545;
    /* Strength & power */

    /* Gradient combinations */
    --gradient-primary: linear-gradient(135deg, var(--accent-orange), #ff8c42);
    --gradient-secondary: linear-gradient(135deg, var(--accent-blue), #0056b3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-white);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 4px;
}

/* Navigation */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--text-dark) !important;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-orange) !important;
}

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

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

.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--primary-white);
    z-index: 2;
}
 

@media (min-width: 769px) {
    .hero-section {
        background-image: linear-gradient(rgba(255, 107, 53, 0.3), rgba(0, 123, 255, 0.3)),
            url('/images/desktop-1.png');
    }
}
 
@media (max-width: 768px) {
    .hero-section {
        background-image: linear-gradient(rgba(255, 107, 53, 0.3), rgba(0, 123, 255, 0.3)),
            url('/images/mobile.jpeg');
        background-attachment: scroll; /* This fixes Safari mobile */
    }
}

.hero-content {
    color: var(--primary-white);
    z-index: 2;
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    background: var(--gradient-primary);
    color: var(--primary-white);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    color: var(--primary-white);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-white);
    animation: bounce 2s infinite;
    transition: opacity 0.1s ease-out;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* About Section */
.about-section {
    background: var(--off-white);
}

.about-image {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.05);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.certification-item {
    background: var(--primary-white);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.certification-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.certification-item i {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 15px;
}

/* Services Section */
.services-section {
    background: var(--primary-white);
}

.service-card {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid var(--light-gray);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-orange);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.2);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.service-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-top: 20px;
}

/* Portfolio Section */
.portfolio-section {
    background: var(--off-white);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 30px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    transition: transform 0.5s ease;
}


.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(0, 123, 255, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-text {
    text-align: center;
    color: var(--primary-white);
}

.portfolio-text h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--primary-white);
}

.testimonial-card {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--light-gray);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.testimonial-author {
    color: var(--text-dark);
    font-weight: 600;
}

.testimonial-rating {
    color: var(--accent-orange);
    margin: 10px 0;
}

/* Contact Section */
.contact-section {
    background: var(--off-white);
}

.contact-form {
    background: var(--primary-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.form-control {
    background: var(--primary-white);
    border: 2px solid var(--light-gray);
    color: var(--text-dark);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--primary-white);
    border-color: var(--accent-orange);
    color: var(--text-dark);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-control::placeholder {
    color: var(--medium-gray);
}

.contact-info {
    background: var(--primary-white);
    padding: 40px;
    border-radius: 20px;
    height: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-right: 20px;
    width: 30px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    color: var(--text-dark);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-orange);
    color: var(--primary-white);
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--text-dark);
    text-align: center;
    padding: 40px 0;
    color: var(--primary-white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .section {
        padding: 60px 0;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.zoom-in.active {
    opacity: 1;
    transform: scale(1);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}