/* =====================
   Base Styles
===================== */

:root {
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #f1f5f9;
    --primary: #FE534F;
    --primary-mid: #c22d66;
    --primary-light: #FC8C88;
    --border: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: white;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* =====================
   Navigation
===================== */

.nav {
    padding: 0.5rem 0;
    background: white;
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.logo {
    width: 171px;
    height: 100px;
}

/* Hamburger: hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav-inner {
        position: relative;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        background: white;
        border-bottom: 1px solid var(--border);
        padding: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: max-height 0.25s ease, opacity 0.2s ease;
        z-index: 99;
    }

    .nav-menu.nav-menu--open {
        max-height: 50vh;
        opacity: 1;
        padding: 1rem 1.5rem 1.25rem;
    }

    .nav-menu a {
        display: block;
        margin-left: 0;
        margin-bottom: 0.5rem;
        padding: 0.6rem 0;
        border-bottom: none;
    }

    .nav-menu a:last-of-type {
        margin-bottom: 0;
    }

    .nav-menu .btn-small {
        display: block;
        text-align: center;
        margin-top: 0.5rem;
        padding: 0.65rem 1rem;
    }
}

/* Desktop: hide hamburger, ensure horizontal nav */
@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        max-height: none;
        opacity: 1;
        position: static;
        transform: none;
        width: auto;
        margin: 0;
        padding: 0;
        flex-direction: row;
        align-items: center;
        overflow: visible;
        background: transparent;
        border: none;
        box-shadow: none;
    }
}

/* =====================
   Hero
===================== */

.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #071a3d, #15181c);
    color: var(--text-light);
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero h2 {
    font-weight: 400;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =====================
   Buttons
===================== */

.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    background: var(--primary);
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    cursor: pointer;
}

.btn-outline {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: var(--text-dark);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* =====================
   Features
===================== */

.features {
    padding-top: 4rem;
    text-align: center;
}

.features-carousel {
    padding: 1rem 0;
    text-align: start;
    margin-left: 5rem;
}

/* Scroll targets: leave room for sticky header so headings aren't hidden */
#for-trainers,
#our-app {
    scroll-margin-top: 7rem;
}

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

.section-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.card h3 {
    margin-bottom: 1rem;
}

/* =====================
   CTA
===================== */

.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    text-align: center;
    margin-top: 65px;
}

.cta-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.cta h2 {
    font-size: 2rem;
}

/* =====================
   Carousel (Swiper)
===================== */

/* Container */
/* Swiper container */
/* Main Swiper Container */
.mySwiper {
    width: 100%; /* Full width of the parent container */
    height: auto; /* Adjust to content height */
    position: relative; /* Anchor swiper elements, like navigation */
    overflow: hidden; /* Prevent content overflow */
}

/* Swiper Wrapper (auto-generated by Swiper) */
.swiper-wrapper {
    width: 100%;
    display: flex; /* Horizontal layout for slides */
    flex-wrap: nowrap; /* Prevent wrapping of slides */
    transition: transform 0.3s ease-out; /* Smooth transitions between slides */
}

/* Swiper Slide */
.swiper-slide {
    flex-shrink: 0; /* Prevent shrinking */
    flex-grow: 0; /* Prevent growing */
    width: 100%; /* Dynamically calculated width */
    box-sizing: border-box; /* Include padding/margin in size calculation */
    max-width: none; /* Prevent unintended max-width restrictions */
    min-width: 0; /* Prevent unintended min-width restrictions */
    margin: 0; /* Remove external spacing */
    padding: 0; /* Remove internal spacing */
}

/* Ensure images fit properly inside slides */
.swiper-slide img {
    width: 100%; /* Ensure images take up the full width of their container */
    height: auto; /* Maintain aspect ratio */
    max-width: 300px; /* Set a max width (adjust as per design requirements) */
    margin: 0 auto; /* Center-align smaller images inside their slides */
    display: block; /* Remove any inline spacing caused by images */
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
}

.caption {
    text-align: center;
    padding: 10px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .swiper-slide img {
        width: 150px;
    }
}

/* =====================
   Footer
===================== */

.footer {
    padding: 2rem 0;
    background: white;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* =====================
   Modal
===================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    position: relative;
    text-align: center;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Form inside modal */
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.modal-content input,
.modal-content textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: inherit;
}