/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;700&display=swap');

/* --- CSS Variables --- */
:root {
    --color-black: #111111;
    --color-white: #FFFFFF;
    --color-red: #FF0000;
    --color-gray: #a0a0a0;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* --- Global Styles & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-white);
    overflow-x: hidden;
}

section {
    padding: 8rem 0;
    overflow: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 1.5px;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h2 span {
    color: var(--color-red);
}

p {
    line-height: 1.7;
    color: var(--color-gray);
}

a {
    text-decoration: none;
    color: var(--color-white);
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 6rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

header nav > div a {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 2px;
}

header nav ul {
    display: flex;
    gap: 2.25rem;
}

header nav ul a {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

header nav ul a:hover,
header nav ul a.active {
    color: var(--color-red);
}

header nav button {
    background-color: var(--color-red);
    color: var(--color-white);
    border: none;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

header nav button:hover {
    background-color: #cc0000;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

header nav ul.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-black);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

header nav ul.active a {
    font-size: 1.5rem;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    background: linear-gradient(rgba(17, 17, 17, 0.8), rgba(17, 17, 17, 0.9)), url('../images/athelete.png') no-repeat center center/cover;
}

.hero-section .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content h1 {
    font-size: 6rem;
    line-height: 1;
    text-transform: uppercase;
}

.hero-content h1 span {
    color: var(--color-red);
}

.hero-content > p {
    margin: 1.5rem 0 2.5rem;
    max-width: 450px;
}

.hero-content .btn-outline {
    border: 2px solid var(--color-red);
    background: transparent;
    color: var(--color-red);
    padding: 0.8rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-content .btn-outline:hover {
    background: var(--color-red);
    color: var(--color-white);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
}

.hero-stats strong {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-red);
    display: block;
}

.hero-stats p {
    color: var(--color-white);
    font-size: 0.9rem;
}

.hero-image-container {
    position: relative;
}

.hero-image-container .hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 16rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    line-height: 0.8;
    z-index: 1;
    user-select: none;
}

.hero-image-container img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
}

/* --- Why Choose Us Section --- */
.choose-us-section .container > p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.choose-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.choose-us-card {
    border: 2px solid var(--color-red);
    padding: 2.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.choose-us-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.choose-us-card span {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
}

.choose-us-card h3 {
    color: var(--color-red);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* --- Experience Section --- */
.experience-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 4rem;
}

.experience-content {
    position: relative;
    padding: 2rem;
}

.experience-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
    border-top: 4px solid var(--color-red);
    border-left: 4px solid var(--color-red);
    border-bottom: 4px solid var(--color-red);
}

.experience-content h2 {
    text-align: left;
}

.experience-content p {
    margin: 1.5rem 0 2.5rem;
}

.experience-content button {
    border: 2px solid var(--color-red);
    background-color: transparent;
    color: var(--color-white);
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.experience-content button:hover {
    background-color: var(--color-red);
    color: var(--color-white);
}

.experience-image {
    position: relative;
    padding: 2rem;
}

.experience-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    height: 90%;
    border-bottom: 4px solid var(--color-white);
    border-right: 4px solid var(--color-white);
    border-top: 4px solid var(--color-white);
}

/* --- Trainers Section --- */
.trainers-section .container > p {
    text-align: center;
    max-width: 500px;
    margin: 0 auto 4rem;
}

.trainers-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.trainer-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.trainer-card:hover {
    transform: scale(1.05);
}

.trainer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(17, 17, 17, 1), rgba(17, 17, 17, 0));
}

.trainer-card-info h3 {
    font-size: 1.8rem;
    text-transform: uppercase;
}

.trainer-card-info p {
    font-size: 0.9rem;
    color: var(--color-gray);
}

.star-rating {
    color: var(--color-red);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background: linear-gradient(rgba(17, 17, 17, 0.95), rgba(17, 17, 17, 0.95)), url('../images/Testimonial background.png') no-repeat center center/cover;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: center;
}

.testimonial-slider blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    min-height: 150px; /* Prevent layout shift during transition */
}

.testimonial-slider cite {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 1.4rem;
    display: block;
    margin-top: 1rem;
    text-transform: uppercase;
}

.testimonial-slider img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--color-red);
    margin: 2rem auto 0;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.slider-nav button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav button:hover {
    background: var(--color-red);
    border-color: var(--color-red);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2rem;
}

.slider-dots span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dots span.active {
    background-color: var(--color-red);
}

/* --- Contact Form Section --- */
.contact-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.contact-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
    border: 4px solid var(--color-red);
    padding: 0 !important; /* Override container padding */
    max-width: 1000px;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-form-container {
    padding: 4rem;
}

.contact-form-container h2 {
    text-align: left;
}

.contact-form-container > p {
    margin: 1rem 0 2rem;
}

.contact-form-container form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form-container input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
    color: var(--color-white);
    font-size: 1rem;
    width: 100%;
    font-family: var(--font-body);
}

.contact-form-container input::placeholder {
    color: var(--color-gray);
}

.contact-form-container input:focus {
    outline: none;
    border-bottom-color: var(--color-red);
}

.contact-form-container input[type="email"] {
    grid-column: 1 / -1;
}

.contact-form-container button {
    grid-column: 1 / -1;
    border: 2px solid var(--color-red);
    background: transparent;
    color: var(--color-red);
    padding: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.contact-form-container button:hover {
    background: var(--color-red);
    color: var(--color-white);
}

/* --- Footer --- */
footer {
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .footer-logo a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

footer nav {
    margin: 2rem 0;
}

footer nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

footer nav ul a {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

footer nav ul a:hover,
footer nav ul a.active {
    color: var(--color-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-gray);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-section .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { align-items: center; }
    .hero-content > p { margin-left: auto; margin-right: auto; }
    .hero-stats { justify-content: center; }
    .hero-image-container { display: none; }
    .experience-section .container { grid-template-columns: 1fr; }
    .trainers-slider { grid-template-columns: repeat(2, 1fr); }
    .contact-section .container { grid-template-columns: 1fr; }
    .contact-image { display: none; }
}

@media (max-width: 992px) {
    .experience-section .container {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    header nav {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    header nav ul { display: none; }
    header nav button { display: none; }
    .hamburger-menu {
        display: block;
    }
    section { padding: 6rem 0; }
    h2 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 4rem; }
    .choose-us-grid { grid-template-columns: 1fr; }
    .trainers-slider {
        grid-auto-flow: column;
        grid-auto-columns: 80%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    .trainers-slider::-webkit-scrollbar { display: none; } /* Chrome, Safari, Opera */
    .trainer-card { scroll-snap-align: center; }
    .contact-form-container { padding: 3rem 2rem; }
    .contact-form-container form { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; }
    .slider-nav { width: 100%; left: 0; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 2rem; }
    .experience-content, .experience-image { padding: 1rem; }
    .slider-nav { display: none; }
}