/* General Styles */
:root {
    --primary-color: #0A192F; /* Deep Navy */
    --accent-color: #FFC107; /* Vibrant Gold/Orange */
    --secondary-color: #64FFDA; /* Bright Teal (for highlights if desired) */
    --text-light: #F0F2F5; /* Light Gray for text on dark backgrounds */
    --text-dark: #333; /* Dark Gray for text on light backgrounds */
    --background-light: #FFFFFF; /* White background */
    --background-dark: #121E2F; /* Slightly lighter dark background */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif; /* A modern, professional font */
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Header */
.main-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #FFA000; /* Slightly darker accent */
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: url('../image/cardio-bg.jpg') no-repeat center center/cover; /* Make sure you have a hero-bg.jpg in your image folder */
    color: var(--text-light);
    text-align: center;
    padding: 100px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Overlay for readability */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* Section Styling */
section {
    padding: 80px 0;
    text-align: center;
}

section h3 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

section h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.about-section {
    background-color: var(--background-light);
}

.about-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-dark);
}

/* Products Section */
.products-section {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.products-section h3 {
    color: var(--text-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-item {
    background-color: var(--primary-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.product-item img {
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: transform 0.3s ease-in-out; /* For hover effect */
}

/* Product Image Hover - Specific to product-item img */
.product-item:hover img {
    transform: scale(1.05);
}

.product-item h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.product-item p {
    color: var(--text-light);
}

/* Gallery Section */
.gallery-section {
    background-color: var(--background-light);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    max-width: 100%;
    display: block;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
}

/* Gallery Image Hover - Apply directly to the image */
.gallery-item img:hover {
    transform: scale(1.1);
    filter: brightness(0.8); /* Darken image slightly on hover */
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.contact-section h3 {
    color: var(--text-light);
}

.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.contact-section form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-section input,
.contact-section textarea {
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
    transition: background-color 0.3s ease, border 0.3s ease;
}

.contact-section input::placeholder,
.contact-section textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-section input:focus,
.contact-section textarea:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--accent-color);
}

.contact-section .btn-primary {
    align-self: flex-start; /* Align button to the left */
}

/* Footer */
.main-footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav ul li {
        margin: 0 10px 10px 10px;
    }

    .hero-section h2 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }

    section h3 {
        font-size: 2rem;
    }

    .product-grid,
    .image-gallery {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }
}