/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    overflow-wrap: break-word;
}
:root {
    --primary-teal: #3BB28B;
    --logo-navy: #1A315C;
    --logo-blue: #89BBE3;
    --hero-blue: #4898D8; /* Darker tone of logo blue */
    --dark: #111111;
    --light: #ffffff;
    --font-stack: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: var(--font-stack);
    background-color: var(--light);
    color: var(--dark);
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px;
}

.desktop-hide {
    display: none;
}

.desktop-only {
    display: block;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--light);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
}
.nav-logo img {
    height: 60px !important;
    transform: scale(1.4);
    transform-origin: left center;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-teal);
}

.btn-primary {
    background-color: var(--primary-teal);
    color: var(--dark);
    font-weight: 800;
    padding: 12px 24px;
    border: 2px solid var(--dark);
    text-transform: uppercase;
    box-shadow: 4px 4px 0px var(--dark);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    font-size: 14px;
}

.btn-primary:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px var(--dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--light);
    font-weight: 800;
    padding: 12px 24px;
    border: 2px solid var(--light);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px rgba(255, 255, 255, 0.2);
}

.btn-outline-dark {
    color: var(--dark);
    border-color: var(--dark);
    box-shadow: 4px 4px 0px var(--dark);
}

.btn-outline-dark:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-outline-dark:active {
    box-shadow: 0px 0px 0px var(--dark);
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.cta-group a {
    text-decoration: none;
}

.nav-links a.btn-primary:hover {
    color: var(--dark);
}

/* Hero Section (Contains 3D Canvas) */
#hero-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px); /* Fill screen below navbar */
    overflow: hidden;
    margin-top: 90px;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    box-sizing: border-box;
    pointer-events: none; /* Let clicks pass through to 3D canvas */
    z-index: 10;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}

.hero-title {
    color: var(--hero-blue);
    font-size: clamp(2.5rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}

.hero-subtitle {
    color: var(--primary-teal);
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 800;
    margin-top: 20px;
    letter-spacing: 2px;
}

/* Swazzers Green Block */
.section-swazzers {
    background-color: var(--primary-teal);
    padding: clamp(60px, 10vw, 120px) 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swazzers-title {
    font-size: clamp(3rem, 15vw, 8rem);
    font-weight: 900;
    color: var(--light);
    margin: 0;
    text-shadow: 4px 4px 0px var(--dark);
    text-transform: uppercase;
}

/* Scrolling Marquee */
.marquee-container {
    background-color: var(--dark);
    padding: clamp(10px, 2vw, 20px) 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    color: var(--light);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 2px;
    animation: scroll-left 20s linear infinite;
}

.marquee-content span {
    margin: 0 clamp(20px, 5vw, 40px);
}

.marquee-content span::before {
    content: "•";
    color: var(--primary-teal);
    margin-right: clamp(20px, 5vw, 40px);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Alternating Sections (Training & Service) */
.split-section {
    display: flex;
    min-height: 60vh;
    width: 100%;
    background-color: var(--dark);
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.contact-block-title {
    color: var(--light);
    font-size: clamp(1.5rem, 5vw, 3rem);
    margin: 0 0 10px 0;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
}

.contact-block-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin: 0 0 25px 0;
    font-weight: 600;
}

.split-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 8vw, 80px);
    background-color: var(--dark);
    color: var(--light);
}

.split-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--light);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.split-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 8px;
    background-color: var(--primary-teal);
}

/* Loading Screen adjustments */
#loading, #progress-container {
    z-index: 2000;
}

/* Intro Statement */
.intro-section {
    padding: clamp(20px, 4vw, 40px) 20px;
    background-color: var(--dark);
    color: var(--light);
    text-align: center;
}
.intro-title {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-teal);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.intro-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 0;
    margin-bottom: 0;
}

/* Meet the Coach & Team */
.coach-section {
    display: flex;
    flex-wrap: wrap;
    background-color: #1a1a1a;
    color: var(--light);
    padding: clamp(40px, 8vw, 80px) 10%;
    gap: 40px;
}
.coach-left {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
}
.coach-left img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.1);
}
.coach-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: clamp(0px, 4vw, 35px);
}
.coach-bio-wrapper {
    width: 100%;
    margin: 0 auto;
    text-align: right;
}
.coach-title {
    font-size: clamp(1.1rem, 3.2vw, 1.8rem);
    white-space: nowrap;
    font-weight: 900;
    margin: 0 0 10px 0;
    color: var(--primary-teal);
}
.coach-bio {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}
.coach-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}
.coach-bullets li {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-weight: 600;
}
.coach-bullets li::before {
    content: "⚽";
    position: absolute;
    left: 0;
    top: 2px;
}
.coach-team-img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    margin-top: 20px;
    border: 2px solid rgba(255,255,255,0.1);
}

/* Benefits Grid */
.benefits-section {
    padding: clamp(40px, 8vw, 100px) 5%;
    background-color: var(--dark);
}
.benefits-header {
    text-align: center;
    color: var(--light);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    margin-bottom: clamp(30px, 5vw, 60px);
    text-transform: uppercase;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: clamp(30px, 5vw, 60px);
}
.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: clamp(20px, 4vw, 30px);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}
.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-teal);
}
.benefit-card h3 {
    color: var(--primary-teal);
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    margin-top: 0;
    margin-bottom: 15px;
}
.benefit-card h4 {
    color: var(--light);
    margin: 0 0 15px 0;
    font-size: clamp(0.95rem, 2vw, 1rem);
    opacity: 0.9;
}
.benefit-card ul {
    padding-left: 20px;
    color: var(--light);
    opacity: 0.8;
    margin-bottom: 20px;
}
.benefit-card ul li {
    margin-bottom: 8px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}
.benefit-quote {
    font-style: italic;
    color: var(--light);
    opacity: 0.6;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    border-left: 3px solid var(--primary-teal);
    padding-left: 10px;
}
.benefits-conclusion {
    text-align: center;
    color: var(--primary-teal);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 800;
    max-width: 800px;
    margin: 0 auto;
}

/* Accordion */
.faq-section {
    padding: clamp(40px, 8vw, 80px) 10%;
    background-color: var(--dark);
}
.faq-item {
    background: var(--dark);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}
.faq-question {
    padding: clamp(15px, 3vw, 20px) clamp(20px, 4vw, 30px);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    color: var(--light);
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
    text-align: center;
}
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 0 clamp(20px, 4vw, 30px) clamp(20px, 4vw, 30px) clamp(20px, 4vw, 30px);
    color: var(--light);
    opacity: 0.9;
}
.faq-answer ul {
    margin: 0;
    padding-left: 20px;
}
.faq-answer li {
    margin-bottom: 10px;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Location Map */
.map-section {
    padding: clamp(40px, 8vw, 80px) 5%;
    background-color: #1a1a1a;
    text-align: center;
}
.map-title {
    color: var(--light);
    font-size: clamp(1.6rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: clamp(20px, 4vw, 40px);
    text-transform: uppercase;
}
.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
}
.map-container iframe {
    display: block;
}

/* QR Code */
.qr-container {
    background-color: var(--light);
    padding: 15px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
    max-width: 250px;
}
.qr-container img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}
.qr-text {
    color: var(--dark);
    font-weight: 900;
    font-size: 1rem;
    margin: 0;
}

/* Mobile Scroll Zone (Hidden on Desktop) */
.mobile-scroll-zone {
    display: none;
}

/* =========================================
   Video Carousel — native scroll + snap
========================================= */
.carousel-container {
    flex: 1;
    height: 60vh;
    min-height: 400px;
    position: relative;
    background-color: var(--dark);
    overflow: hidden;
}

.coach-carousel {
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.1);
    height: 520px;
    max-width: 416px;
    width: 100%;
    margin: 0 auto;
    min-height: unset;
}
.coach-carousel .carousel-track {
    height: 520px;
}
.coach-carousel .carousel-slide {
    height: 520px;
}
@media (max-width: 768px) {
    .coach-carousel,
    .coach-carousel .carousel-track,
    .coach-carousel .carousel-slide {
        height: 400px;
    }
}

.training-carousel {
    height: 60vh;
    min-height: 400px;
    background-color: var(--dark);
}
@media (max-width: 768px) {
    .training-carousel {
        height: 65vw !important;
        min-height: 300px !important;
    }
    .training-carousel .carousel-track,
    .training-carousel .carousel-slide {
        height: 100% !important;
        min-height: 100% !important;
    }
}

/* Track: full width scroll container, hidden scrollbar */
.carousel-track {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

/* Each slide = exactly the container width */
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide video,
.carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}


.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicators .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s;
}
.carousel-indicators .dot.active {
    background-color: #000;
}

/* =========================================
   Mobile Responsiveness
========================================= */
@media (max-width: 768px) {
    .desktop-hide {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    /* Navbar */
    .navbar {
        padding: 8px 5px;
        flex-direction: row;
        gap: 5px;
        justify-content: space-between;
        align-items: center;
    }
    .nav-logo img {
        height: 40px !important;
        transform: scale(1.3);
        transform-origin: left center;
    }
    .nav-links {
        flex: 1;
        gap: 4px;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        align-items: center;
        margin-left: 5px;
    }
    .nav-links a {
        font-size: 10px;
        letter-spacing: 0;
    }
    .navbar .btn-primary {
        padding: 4px 6px;
        font-size: 9px;
    }

    /* Hero */
    #hero-container {
        margin-top: 56px;
        height: calc(100vh - 56px);
    }
    .hero-overlay {
        padding: 5% 5% 0 5%;
        justify-content: flex-start;
        pointer-events: none; /* Let touches pass through overlay text */
    }

    /* Safe Scroll Zone */
    .mobile-scroll-zone {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 50%;
        height: 100vh;
        z-index: 50; /* Sits above the 3D canvas */
        pointer-events: auto; /* Catches touch events so they scroll the page instead of spinning the model */
        touch-action: pan-y; /* Explicitly allow vertical scrolling */
    }

    /* Split Sections (Training, Service, Contact) */
    .split-section, .split-section.reverse {
        flex-direction: column;
        min-height: auto;
    }
    #section-training {
        flex-direction: column-reverse;
    }
    .split-content {
        text-align: center;
        flex: none;
    }
    .split-content > div {
        align-items: center !important;
    }
    .split-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .split-image, .carousel-container {
        min-height: 250px;
        text-align: center;
    }
    .carousel-container {
        padding: 0 !important;
        height: 65vw !important;
        min-height: 300px !important;
        width: 100% !important;
    }
    .split-image button {
        align-self: center !important;
    }

    /* Intro Statement */
    /* Coach Section */
    .coach-section {
        gap: 0px;
    }
    .coach-right {
        text-align: center;
    }
    .coach-bullets {
        display: inline-block;
        text-align: left;
    }

    /* Benefits Grid */
    .benefits-section {
        padding: 30px 5% 60px 5%;
    }
    .benefits-header {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    .benefits-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 20px;
        padding-bottom: 20px; /* optional padding */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .benefits-grid::-webkit-scrollbar {
        display: none;
    }
    .benefit-card {
        flex: 0 0 80%; /* 80% width so the next card peeks in more */
        scroll-snap-align: center;
    }

    /* FAQ / Accordion */
    .faq-item {
        border-radius: 0;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    /* Map Section */
    .map-container iframe {
        height: 300px; /* Shorter map on mobile */
    }
    
    /* QR Block */
    .qr-container {
        margin: 20px auto 0 auto;
    }
}

/* =========================================
   Desktop Carousel Navigation Arrows
========================================= */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s, transform 0.2s;
    user-select: none;
}
.carousel-arrow:hover {
    background: var(--primary-teal);
    transform: translateY(-50%) scale(1.1);
}
.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}
.carousel-arrow.prev {
    left: 20px;
}
.carousel-arrow.next {
    right: 20px;
}
/* Hide on mobile devices since swipe is native */
@media (max-width: 768px) {
    .carousel-arrow {
        display: none;
    }
    .coach-bio-wrapper {
        text-align: center;
    }
}

/* Full-screen Video Holder */
.fullscreen-video-banner {
    width: 100%;
    height: 75vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    background-color: #000000;
    display: block;
}

@media (max-width: 768px) {
    .fullscreen-video-banner {
        height: 30vh;
        min-height: 200px;
    }
}

.fullscreen-video-banner video {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.fullscreen-video-banner video:not([src]):not(:has(source[src]:not([src=""]))),
.fullscreen-video-banner video source[src=""] {
    display: none;
}

.video-placeholder-overlay {
    z-index: 1;
    text-align: center;
    color: var(--light);
    padding: 40px 60px;
    border: 2px dashed rgba(59, 178, 139, 0.4);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.02);
}
