:root {
    --bg: #111827;
    --text: #F8FAFC;
    --green: #39ff14;
    --green-dim: rgba(57, 255, 20, 0.2);
    --orange: #F97316;
    --orange-dim: rgba(249, 115, 22, 0.2);
    --gray: #1F2937;
    --gray-light: #374151;
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Barlow', sans-serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    /* System Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    /* CRITICAL PRIORITY 1: Prevent Horizontal Scroll completely */
    max-width: 100%;
}

html {
    scroll-behavior: initial;
    /* Handled by Lenis GSAP */
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* Removed cursor: auto; */
}

/* PRIORITY 2: Premium Film Noise */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    /* Extra subtle to just texture the black */
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}


/* PRIORITY 3: WhatsApp Floating Btn */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9000;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: glow-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

@keyframes glow-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Typography Fluid Scaling */
h1,
h2,
h3,
h4,
.logo,
.marquee-item,
.form-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
}

.text-green {
    color: var(--green);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--green);
    letter-spacing: 4px;
    margin-bottom: 1rem;
    display: block;
}

/* PRIORITY 1: Fluid Typography */
.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    font-weight: 600;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--green);
    color: #000;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
    transform: translateY(-2px);
    opacity: 0.95;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text);
    border: 2px solid var(--green);
}

.btn-secondary:hover {
    background-color: var(--green-dim);
    transform: translateY(-2px);
}

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

/* Ultimate Brutalist Loader */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    background: transparent;
}

.loader-track {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.loader-strip {
    flex: 1;
    height: 100%;
    background-color: #050505;
    will-change: transform;
    /* FIX: Seals the sub-pixel gap between strips */
    outline: 2px solid #050505;
}

.loader-counter {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: clamp(8rem, 25vw, 20rem);
    color: var(--green);
    line-height: 1;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    z-index: 100;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.9), transparent);
}

.navbar.scrolled {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Premium Logo Lockup Styling */
.logo {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--text);
    text-decoration: none;
    letter-spacing: 2px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 15px;
    /* Perfect spacing between image and text */
}

.logo span {
    color: var(--green);
}

.logo-icon {
    /* Scales perfectly to match the height of the typography */
    height: clamp(35px, 4vw, 50px);
    width: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(-5deg);
    /* Aggressive gym-style tilt on hover */
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--green);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn-mobile {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 200;
    /* Essential to close full screen menu */
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 5% 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.5) 100%);
}

.hero-content {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    text-align: center;
}

.hero-subtitle {
    font-family: var(--font-heading);
    color: var(--green);
    letter-spacing: 5px;
    margin-bottom: 20px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    overflow: hidden;
}

/* PRIORITY 1: Fluid scaling text */
.hero-title {
    font-size: clamp(4.5rem, 14vw, 8rem);
    line-height: 0.85;
    margin-bottom: 2rem;
}

.hero-title-line {
    overflow: hidden;
}

.hero-title-line.highlight {
    color: var(--green);
    -webkit-text-stroke: 1px transparent;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 3rem;
    padding: 12px 24px;
    max-width: 100%;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.trust-badge svg {
    color: var(--green);
    flex-shrink: 0;
}

.trust-badge span {
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    color: #e2e8f0;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: rotate(-90deg);
    transform-origin: left;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--green);
    animation: scrollSlide 2s infinite;
}

@keyframes scrollSlide {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Marquee Section */
.marquee-section {
    padding: 2.5rem 0;
    background: var(--green);
    transform: rotate(-2deg) scale(1.05);
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.marquee-inner {
    display: flex;
    white-space: nowrap;
    gap: 3rem;
}

.marquee-item {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #111;
}

.marquee-item.stroke {
    color: transparent;
    -webkit-text-stroke: 1px #111;
}

/* About Section */
.about {
    padding: 8rem 0;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: clamp(300px, 50vw, 600px);
    box-shadow: var(--shadow-xl);
}

.about-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(-10%);
}

.about-img-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: clamp(100px, 20vw, 140px);
    height: clamp(100px, 20vw, 140px);
    background: var(--green);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #111827;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-xl);
    z-index: 5;
}

.badge-num {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
}

.badge-text {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: 2px;
    font-weight: 600;
}

.about-desc {
    font-size: 1.15rem;
    color: #D1D5DB;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    border-top: 1px solid var(--gray-light);
    padding-top: 2rem;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--green);
    line-height: 1;
}

.stat-label {
    text-transform: uppercase;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    letter-spacing: 1px;
    color: #9CA3AF;
    margin-top: 5px;
}

/* Programs Section - FIXED DESKTOP LAYOUT */
.programs {
    padding-top: 45px;
    /* Safe space to push title below the navbar */
    padding-bottom: 4rem;
    /* Breathing room at the bottom */

    /* REMOVED: height, display flex, and center alignment so it doesn't take up the whole screen */

    overflow: hidden;
    background: var(--gray);
}

@media (min-width: 769px) {
    .horizontal-scroll-container {
        width: 100%;
        margin-top: 2rem;
        overflow: hidden;
        display: flex;
        align-items: center;
    }

    .horizontal-scroll-wrapper {
        display: flex;
        gap: 2rem;
        padding: 0 5vw 2rem 5vw;
        /* Bottom padding protects the card shadows */
        width: max-content;
        flex-wrap: nowrap;
    }

    /* Responsive Desktop Cards - Forced Overrides to beat CSS source order */
    .program-card {
        width: 28vw !important;
        max-width: 420px !important;
        min-width: 320px !important;
        height: 55vh !important;
        max-height: 550px !important;
        min-height: 380px !important;
    }
}

/* Mobile App-Style Swipe Carousel for Programs */
@media (max-width: 768px) {
    .horizontal-scroll-container {
        margin-top: 2rem;
        width: 100vw;
        margin-left: -5%;
        /* Pulls it out of the container padding to touch screen edges */
        padding-left: 5%;
    }

    .horizontal-scroll-wrapper {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1.2rem;
        padding-bottom: 2rem;
        padding-right: 5%;
        /* Space at the end of the scroll */
        /* Hide ugly native scrollbars for a clean app look */
        scrollbar-width: none;
    }

    .horizontal-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    .program-card {
        /* 85vw leaves a visual "peek" of the next card so the user knows to swipe */
        width: 85vw;
        height: 420px;
        /* Flawless mobile height, not too big, not too small */
        flex-shrink: 0;
        scroll-snap-align: center;
        border-radius: 16px;
    }

    .card-content {
        padding: 2rem 1.5rem;
        /* Clean up padding for the mobile screen */
        transform: translateY(0);
        /* Reveal text by default on mobile touch screens */
    }

    .card-content p {
        opacity: 1;
        /* Reveal text by default on mobile touch screens */
    }
}

.program-card {
    width: 450px;
    height: 600px;
    flex-shrink: 0;
    position: relative;
    background: var(--bg);
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}



.program-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.card-img-wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
    opacity: 0.6;
}

.program-card:hover .card-img-wrap img {
    transform: scale(1.05);
    opacity: 0.9;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    z-index: 2;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.95), transparent);
    transform: translateY(20px);
    transition: var(--transition);
}



.program-card:hover .card-content {
    transform: translateY(0);
}

.card-icon {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    position: absolute;
    top: -4rem;
    right: 3rem;
    transition: var(--transition);
}

.program-card:hover .card-icon {
    color: var(--green);
    -webkit-text-stroke: 0;
    transform: translateY(-10px);
}

.card-content h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.card-content p {
    color: #D1D5DB;
    margin-bottom: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.program-card:hover .card-content p {
    opacity: 1;
}

.card-link {
    color: var(--green);
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-link .arrow {
    transition: transform 0.3s;
}

.card-link:hover .arrow {
    transform: translateX(10px);
}

/* PRIORITY 2: Hover Reveal Locations Section */
.locations {
    padding: 8rem 0;
    overflow: hidden;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Increased to prevent tablet squish */
    gap: 2rem;
}

.location-card {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    cursor: pointer;

    /* FIX 1: Replace physical border with inset shadow to stop background bleed */
    border: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), var(--shadow-sm);

    /* FIX 2: Force perfect sub-pixel rounded corner clipping */
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Dynamic Mouse-Tracking Glow Border */
.location-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    /* Border thickness */
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            var(--green),
            transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-card:hover::before {
    opacity: 1;
}

.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(17, 24, 39, 1), rgba(17, 24, 39, 0.6));
    z-index: 1;
    transition: all 0.4s ease;
}

.location-card:hover .location-overlay {
    background: linear-gradient(to top, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.2));
}

.location-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    transform: translateY(60px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-card:hover {
    /* Update hover shadow to maintain the inset border */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), var(--shadow-md);
    transform: translateY(-5px) translateZ(0);
}

.location-card:hover .location-content {
    transform: translateY(0);
}

.location-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.hover-btn {
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.location-card:hover .hover-btn {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .location-content {
        transform: translateY(0);
    }

    /* Always show btn on mobile */
    .hover-btn {
        opacity: 1;
        visibility: visible;
    }
}

.women-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--orange);
    color: white;
    font-family: var(--font-heading);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
    z-index: 3;
}

/* Schedule Toggle Section */
.schedule-section {
    padding: 8rem 0;
    background: var(--gray);
    overflow: hidden;
}

.schedule-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.schedule-toggle {
    display: inline-flex;
    background: #111;
    border-radius: 50px;
    padding: 5px;
    border: 1px solid var(--gray-light);
    flex-wrap: wrap;
    justify-content: center;
}

.toggle-btn {
    background: transparent;
    color: #9CA3AF;
    border: none;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.toggle-btn.active {
    background: var(--green);
    color: #111;
    font-weight: 700;
}

.schedule-content {
    display: none;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease;
}

.schedule-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.schedule-card {
    background: #111;
    border-radius: 12px;
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid var(--gray-light);
}

.ramadan-card {
    border-color: var(--orange);
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 1.2rem;
}

.schedule-row .day {
    font-family: var(--font-heading);
    color: #E5E7EB;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.schedule-row .time {
    font-weight: 600;
    text-align: right;
}

.schedule-divider {
    height: 1px;
    background: var(--gray-light);
    margin: 1.5rem 0;
}

/* Pricing */
.pricing {
    padding: 8rem 0;
    background: var(--bg);
    overflow: hidden;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

/* Premium Offer Banner - FIXED */
.global-offer-banner {
    max-width: 850px;
    margin: 0 auto 3rem;
    background: rgba(57, 255, 20, 0.05);
    border: 1px solid rgba(57, 255, 20, 0.3);
    padding: 1rem 2rem;
    border-radius: 50px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.1);
}

.pulse-dot {
    flex-shrink: 0;
    /* Prevents the dot from squishing on mobile */
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(57, 255, 20, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(57, 255, 20, 0);
    }
}

.offer-text {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    margin: 0;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    /* Keeps items aligned at the top */
    gap: 8px;
    /* Clean spacing between label and text */
    text-align: left;
}

.offer-text strong {
    color: var(--green);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
    /* Prevents the label from being squished */
}

/* Make sure hero title lines can scale properly */
.hero-title-line {
    display: block;
    transform-origin: bottom center;
    will-change: transform;
}

/* If any card is hovered, dim the ones that are NOT hovered */
.pricing-grid:has(.pricing-card:hover) .pricing-card:not(:hover) {
    opacity: 0.4;
    transform: scale(0.96);
    filter: blur(3px);
}

.pricing-card {
    background: var(--gray);
    padding: 3rem 2rem;
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    /* Buttery smooth easing */
    z-index: 1;
    /* REMOVED overflow: hidden; */
}

/* PRIORITY 2: CSS Focus & Sweep Effect */
.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--green);
    box-shadow: 0 20px 40px rgba(57, 255, 20, 0.1);
    z-index: 10;
}

.pricing-card.featured {
    position: relative;
    background: #111;
    border: none;
    transform: translateY(-20px);
    box-shadow: var(--shadow-lg);
    margin-top: 1rem;
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: translateY(-25px) scale(1.05);
    box-shadow: 0 30px 60px rgba(57, 255, 20, 0.2);
    z-index: 10;
}

/* The Sweeping Light Beam - FIXED */
.pricing-card.featured::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(57, 255, 20, 0.15) 50%,
            transparent 80%);
    background-size: 300% 100%;
    background-position: 100% 0;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.pricing-card.featured:hover::after {
    animation: neonSweep 1.2s ease forwards;
}

@keyframes neonSweep {
    0% {
        background-position: 150% 0;
    }

    100% {
        background-position: -50% 0;
    }
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: #fff;
    padding: 6px 24px;
    font-family: var(--font-heading);
    font-size: clamp(0.8rem, 2vw, 1rem);
    border-radius: 30px;
    text-transform: uppercase;
    white-space: nowrap;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    letter-spacing: 1px;
    z-index: 2;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-light);
}

.pricing-header h3 {
    font-size: 1.8rem;
    color: #9CA3AF;
}

.price {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1;
    margin-top: 1rem;
    color: #fff;
}

.price .period {
    font-size: 1.5rem;
    color: var(--green);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.8rem 0;
    color: #E5E7EB;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--green);
    font-weight: bold;
    font-size: 1.2rem;
}

.pricing-features li.disabled {
    color: #6B7280;
    opacity: 0.8;
    text-decoration: line-through;
}

.pricing-features li.disabled::before {
    content: '✕';
    color: #6B7280;
    text-decoration: none;
    display: inline-block;
}

/* Lead Gen Section */
.lead-gen {
    padding: 0 5%;
    margin-bottom: 8rem;
    /* overflow: hidden removed so dropdowns can break out of the section */
}

.lead-gen-container {
    display: flex;
    background: var(--gray);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-light);
    /* CRITICAL: Removed overflow: hidden so dropdowns can escape */
}

.lead-gen-left {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    /* Clip the image ONLY here */
}

.lead-gen-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-gen-overlay {
    position: relative;
    z-index: 1;
    background: rgba(17, 24, 39, 0.85);
    padding: clamp(2rem, 5vw, 4rem);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lead-gen-overlay h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.lead-gen-overlay p {
    font-size: 1.1rem;
    color: #D1D5DB;
}

.lead-gen-right {
    flex: 1;
    padding: clamp(2rem, 5vw, 4rem);
    background: #111;
    border-radius: 0 12px 12px 0;
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* PRIORITY 2: Floating Labels Structure */
.floating-group {
    position: relative;
    margin-bottom: 0.5rem;
}

.floating-input {
    width: 100%;
    padding: 1.4rem 1rem 0.6rem;
    /* extra top padding to make room */
    border: 1px solid var(--gray-light);
    background: rgba(31, 41, 55, 0.6);
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s;
    outline: none;
}

.floating-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.1);
}

.floating-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.custom-dropdown-group {
    position: relative;
    z-index: 50;
    /* Ensures the open menu sits on top of the submit button */
}

.hidden-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    z-index: -1;
    /* Pushes it completely behind */
    pointer-events: none;
    display: block;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    /* Matches the height of the text inputs */
    cursor: pointer;
}

.custom-select-text {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
    list-style: none;
    padding: 0;
    margin-top: 5px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.custom-select-options.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.custom-select-options li {
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
    font-size: 1rem;
}

.custom-select-options li:hover {
    background-color: var(--green);
    color: #000;
}

/* Trigger floating on focus or when NOT empty (placeholder space used) */
input.floating-input:focus~.floating-label,
input.floating-input:not(:placeholder-shown)~.floating-label,
.custom-select-trigger:focus~.floating-label,
.custom-dropdown-group.has-value .floating-label {
    top: 12px;
    font-size: 0.75rem;
    color: var(--green);
}

.form-note {
    font-size: 0.8rem;
    color: #6B7280;
    text-align: center;
    margin-top: 1rem;
}

/* Gallery Masonry */
.gallery {
    padding: 0 5% 8rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 2rem;
    perspective: 1200px;
    /* CRITICAL for the 3D effect */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    transform-style: preserve-3d;
    /* Allows the image inside to float */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: crosshair;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    /* Scaled up to give room for the parallax panning */
    pointer-events: none;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

/* Footer */
.footer {
    background: #000;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--gray-light);
    overflow: hidden;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 400px;
    width: 100%;
}

.footer-brand h2 {
    color: var(--green);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.footer-brand p {
    color: #9CA3AF;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--gray-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--green);
    color: #000;
    border-color: var(--green);
}

.footer-links {
    display: flex;
    gap: 6rem;
    flex-wrap: wrap;
    flex-grow: 1;
    justify-content: flex-end;
}

.link-col {
    min-width: 150px;
}

.link-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.link-col a,
.link-col p {
    display: block;
    color: #9CA3AF;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.link-col a:hover {
    color: var(--green);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
    color: #6B7280;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: #6B7280;
    text-decoration: none;
}

.legal-links a:hover {
    color: #fff;
}

/* ... existing legal links css ... */
.legal-links a:hover {
    color: #fff;
}

/* PREMIUM SUCCESS UI (Moved outside the media query!) */
.success-ui {
    display: none;
    /* Now applies to all screens! */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
    animation: scaleInBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-icon-wrap svg {
    width: 40px;
    height: 40px;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.success-desc {
    font-size: 1.1rem;
    color: #D1D5DB;
    line-height: 1.6;
}

.success-desc strong {
    color: var(--text);
}

@keyframes scaleInBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* PRIORITY 1: Responsive Core (Grid collapse logic) */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.featured {
        transform: translateY(0);
        margin-top: 0;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item.wide {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-img-wrap {
        height: 400px;
    }

    .lead-gen-container {
        flex-direction: column;
    }

    .lead-gen-left {
        height: auto;
        min-height: 300px;
        border-radius: 12px 12px 0 0;
    }

    .lead-gen-right {
        border-radius: 0 0 12px 12px;
    }

    /* FIX: Trigger Mobile Menu on Tablets to prevent overlapping */
    .nav-links {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(17, 24, 39, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        backdrop-filter: blur(10px);
        z-index: 150;
    }

    .nav-links.active {
        display: flex !important;
        animation: snapMenu 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav-btn {
        display: none;
    }

    .nav-btn-mobile {
        display: flex;
        margin-top: 2rem;
    }

    .hamburger {
        display: flex;
    }
}

/* PRIORITY 1: Mobile Sleek Fullscreen Nav & Stack Fixes */
@media (max-width: 768px) {
    @keyframes snapMenu {
        from {
            opacity: 0;
            transform: scale(1.05);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .footer-links {
        justify-content: flex-start;
        gap: 3rem;
        flex-direction: column;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .scroll-indicator {
        display: none;
    }

    .btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 80%;
        margin: 0 auto;
    }

    /* FIX: Restore proper Gallery Grid on Mobile to prevent overlapping */
    .gallery-container {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 300px;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 1;
        /* Stops large items from breaking the mobile grid */
        grid-row: span 1;
    }

    .schedule-row {
        flex-direction: row;
    }

    .global-offer-banner {
        border-radius: 12px;
        padding: 1.2rem;
        align-items: flex-start;
        text-align: left;
    }

    .pulse-dot {
        margin-top: 6px;
    }

    .offer-text {
        flex-direction: column;
        gap: 4px;
    }

    /* GSAP MOBILE HORIZONTAL SCROLL OVERRIDES */
    .programs {
        padding: 3rem 0 4rem !important;
        /* REMOVED 100vh and flexbox so the section perfectly hugs the cards on mobile too */
        overflow: hidden !important;
        display: block !important;
    }

    .horizontal-scroll-container {
        margin-top: 2rem;
        width: 100vw;
        margin-left: -5%;
        padding-left: 5%;
        overflow: hidden;
        /* Important so native scrollbars don't appear */
    }

    .horizontal-scroll-wrapper {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        /* CRITICAL: Tells GSAP exactly how wide the 4 cards are */
        gap: 1.2rem;
        padding-bottom: 2rem;
        /* Notice we removed overflow-x: auto; because GSAP is doing the sliding now! */
    }

    .program-card {
        width: 85vw !important;
        height: 60vh !important;
        max-height: 420px !important;
        min-height: 380px !important;
        flex-shrink: 0;
        border-radius: 16px;
    }

    .card-content {
        padding: 1.5rem !important;
        transform: translateY(0) !important;
    }

    .card-content p {
        opacity: 1 !important;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Super stack stats */
    .about-img-wrap {
        height: 300px;
    }
}

/* <-- THIS BRACKET IS CRITICAL. IT CLOSES THE MOBILE SECTION */

/* ==========================================
   PREMIUM SUCCESS UI (OUTSIDE THE MEDIA QUERY!) 
   ========================================== */
.success-ui {
    display: none;
    /* Now applies to ALL screens! */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
    animation: scaleInBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-icon-wrap svg {
    width: 40px;
    height: 40px;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.success-desc {
    font-size: 1.1rem;
    color: #D1D5DB;
    line-height: 1.6;
}

.success-desc strong {
    color: var(--text);
}

@keyframes scaleInBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}