/* styles.css */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Navigation Styles */
nav {
    width: 100%;
    height: 120px;
    background-color: rgb(18, 34, 59,0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    flex-direction: column; /* Stack the logo and tagline vertically */
    align-items: center; /* Center-align the logo and tagline */
    text-align: center; /* Ensure the tagline text is centered */
}

.logo img {
    max-width: 100%;
    height: auto;
    max-height: 80px; /* Limit the size of the logo */
    margin-top: 5px;
}

.logo-tagline {
    font-size: 1.2em; /* Adjust the font size */
    font-weight: bold;
    text-transform: uppercase; /* Make the tagline text all caps */
    color: #ffffff; /* Adjust the text color */
    margin-top: 2px; /* Add space between the logo and tagline */
}




/* Responsive design for smaller screens */
@media screen and (max-width: 768px) {
    .logo img {
        max-width: 150px; /* Adjusts logo size for smaller screens */
        margin: 10px 0; /* Reduces spacing around the logo */
    }
}

nav .nav-links {
    list-style: none;
    display: flex;
    background-color: rgb(18, 34, 59,0.9);
}

nav .nav-links li {
    margin: 0 15px;
}

nav .nav-links a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

nav .nav-links a:hover {
    color: rgb(101, 102, 104);
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger .line {
    width: 25px;
    height: 3px;
    background-color: rgb(255, 255, 255);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section Styles */
.hero {
    background-image: url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.btn {
    padding: 15px 30px;
    background-color: rgb(18, 34, 59);
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    border-radius: 50px;
    transition: background-color 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
}

.btn:hover {
    background-color: #e08900;
}

/* Sections Styles */
section {
    padding: 100px 50px;
    text-align: center;
    background-color: rgb(18, 34, 59);
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: rgb(255, 255, 255);
}

section p {
    font-size: 1.2em;
    margin-bottom: 50px;
    color: #ffffff;
}

/* Programs Section */
.program-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.card {
    background-color: #ffffff;
    width: 300px;
    margin: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures the button stays at the bottom */
    height: 680px; /* Ensures consistent card height */
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    font-size: 1.5em;
    margin: 20px 0;
    color: rgb(0, 0, 0);
}

.card p {
    padding: 0 20px 20px;
    color: #000000;
}

.card .btn {
    padding: 10px 20px;
    margin: 20px;
    background-color: hsl(216.59deg, 53.25%, 15.1%);
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    border-radius: 50px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.card .btn:hover {
    background-color: hsl(216.59deg, 53.25%, 20%);
}

/* Trainers Section */
.trainer-profiles {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.profile {
    width: 250px;
    margin: 20px;
    text-align: center;
}

.profile img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.profile h3 {
    font-size: 1.5em;
    margin-top: 15px;
    color: rgb(255, 255, 255);
}

.profile p {
    color: #ffffff;
    margin-top: 10px;
}

/* Testimonials Section */
.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.testimonial {
    flex: none;
    width: 80%;
    margin: 0 auto;
    background-color: rgb(18, 34, 59);
    padding: 40px;
    border-radius: 10px;
    scroll-snap-align: center;
}

.testimonial p {
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 20px;
}

.testimonial h4 {
    font-size: 1em;
    color: rgb(255, 255, 255);
}

/* Contact Section */
.contact {
    padding: 100px 50px;
    text-align: center;
    background-color: #f9f9f9;
}

.contact h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: hsl(216.59deg, 53.25%, 15.1%);
}

.contact p {
    font-size: 1.2em;
    margin-bottom: 50px;
    color: #555;
}

.contact .btn {
    padding: 15px 30px;
    background-color: hsl(216.59deg, 53.25%, 15.1%);
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.contact .btn:hover {
    background-color: hsl(216.59deg, 53.25%, 20%);
}

/* Footer Styles */
footer {
    background-color: rgb(18, 34, 59,0.9);
    padding: 30px 50px;
    color: #ffffff;
    text-align: center;
}

footer .social-media {
    margin-bottom: 20px;
}

footer .social-media a {
    margin: 0 10px;
}

footer .social-media img {
    width: 30px;
    height: 30px;
}

footer p {
    font-size: 0.9em;
}

/* Media Queries */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 80px;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    /* Hero Content */
    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    /* Sections */
    .program-cards,
    .trainer-profiles {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-slider {
        flex-direction: column;
    }
}

/* Navigation Animation */
.nav-active {
    transform: translateX(0%);
}

.nav-links li {
    opacity: 1;
}

/* Burger Animation */
.toggle .line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line:nth-child(2) {
    opacity: 0;
}

.toggle .line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above everything else */
}

.modal-content {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
}

.modal-content p {
    font-size: 1.2em;
    color: #333;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5em;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}