/* ==========================================================================
   Homepage Custom Styles (Editorial Light Theme)
   ========================================================================== */

/* 1. ELITE HERO */
.elite-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    overflow: hidden;
    padding-top: 100px;
}

.noise-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAAAAABKSkpWVlZeXl5oaGhwcHB8fHxQ8x54AAAACHRSTlMAmN/37+9v/wBNXw61AAAAwUlEQVQ4y2NgQAX8DIxgxMggLCAg8IFRwEFQ4AMjowNIIwMjI1RBQQGGRkZHqIKCgkLCCgpC/4EaGYA0AwMDA1RBQeEDRgH/B0ABBiANYAMhCgiIH2AU+P/AAKYBo4CAwAdGIf8HRgHh/w8MYBoIGP5/YBQQEPzAKPAf6AEMQBo+MAoIMDQwMCgIfGAUFGD4wMgIo4A/0AMMQBo+MAoIDHxgFBQQ+MAoICD4gVHgP9ADGEA08IFRQIDhA6OAgOADRoH/QA8wAAD8p2f/a1QyXQAAAABJRU5ErkJggg==') repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: 10;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    animation: noise 0.25s infinite;
}

@keyframes noise {
    0% { transform: translate3d(0, 0, 0); }
    10% { transform: translate3d(-5%, -5%, 0); }
    20% { transform: translate3d(-10%, 5%, 0); }
    30% { transform: translate3d(5%, -10%, 0); }
    40% { transform: translate3d(-5%, 15%, 0); }
    50% { transform: translate3d(-10%, 5%, 0); }
    60% { transform: translate3d(15%, 0, 0); }
    70% { transform: translate3d(0, 10%, 0); }
    80% { transform: translate3d(-15%, 0, 0); }
    90% { transform: translate3d(10%, 5%, 0); }
    100% { transform: translate3d(5%, 0, 0); }
}

@media (max-width: 991px) {
    .noise-overlay {
        animation: none !important; /* Static on mobile preserves 60-120fps GPU performance */
    }
}

.elite-hero-content {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

/* Top Label */
.vh-top-label {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

/* Main Single-Line Headline (50% bigger) */
.vh-heading {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(1.65rem, 2.7vw, 2.7rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin: 0;
    color: #ffffff;
    display: inline-block;
    white-space: normal;
    text-align: center;
    text-shadow: none;
}

.vh-line {
    display: inline;
}

.brush-wrap {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.brush-stroke-svg {
    position: absolute;
    bottom: -3px; /* Slightly adjusted to accommodate the curve */
    left: -5%;
    width: 230%; /* Extended 1cm+ */
    height: 31px; /* 30% bigger */
    pointer-events: none;
    z-index: -1;
}

/* Subtitle */
.vh-subtitle {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    margin-top: 0.5rem;
    margin-bottom: 0.4rem; /* Tight 2mm gap right above button */
    text-align: center;
}

/* Primary White Pill Button (40% smaller) */
.btn-hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* For arrow alignment */
    background-color: #ffffff;
    color: #111111;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.55rem 1.6rem;
    border-radius: 100px;
    text-decoration: none;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Clip incoming arrow */
}

/* Base Arrow State (Always Visible) */
.btn-arrow-icon {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-hero-pill:hover {
    transform: scale(1.04) translateY(-2px);
    background-color: #f8f8f8;
    color: #000000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Desktop Only Arrow Hover Animation */
@media (hover: hover) and (pointer: fine) {
    .btn-hero-pill:hover .btn-arrow-icon {
        transform: translateX(5px);
    }
}

/* Entrance Animation Stagger (1.2s total smooth sequence) */
.reveal-hero-1 {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.reveal-hero-2 {
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.brush-stroke-svg {
    transform-origin: left center;
    animation: brushFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

.reveal-hero-3 {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
}

.reveal-hero-4 {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(22px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes brushFadeIn {
    0% {
        opacity: 0;
        transform: scaleX(0.7) rotate(-5deg); /* Added upward curve */
    }
    100% {
        opacity: 1;
        transform: scaleX(1) rotate(-5deg); /* Added upward curve */
    }
}

/* YouTube Hero Background Video */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 177.77vh;
    min-height: 56.25vw;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-image: url('../../images/hero/slide1.webp');
    background-size: cover;
    background-position: center;
}

.hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1.35);
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-video-bg {
        min-width: 56.25vh;
        min-height: 177.77vw;
    }
}

/* Initial Gym Photo (Shown on site open, smoothly fades out to reveal background video) */
.hero-initial-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 1;
    transition: opacity 1.8s cubic-bezier(0.65, 0, 0.35, 1);
    pointer-events: none;
    transform: scale(1);
}

.hero-initial-photo.fade-out {
    opacity: 0;
}

.hero-initial-photo.start-zoom {
    animation: desktopHeroZoom 3.5s linear forwards;
}

@keyframes desktopHeroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

@media (max-width: 768px) {
    .hero-initial-photo {
        transform: scale(1.2) translateX(8%);
    }
    .hero-initial-photo.start-pan {
        animation: mobileHeroPanImage 3.5s ease-in-out forwards;
    }
    .hero-video-bg {
        width: 100vw;
        height: 100vh;
        min-width: 56.25vh;
        min-height: 177.77vw;
    }
    .hero-video-bg iframe {
        animation: none;
        transform: translate(-50%, -50%) scale(1.25);
        width: 100vw;
        height: 177.77vw;
        min-height: 100vh;
        min-width: 56.25vh;
    }
}

@keyframes mobileHeroPanImage {
    0% { transform: scale(1.2) translateX(8%); }
    100% { transform: scale(1.2) translateX(0%); }
}

/* CSS Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnimation 24s infinite;
}

/* 4 slides, each gets 6 seconds (24s total).
   Visible for 25% of the time.
   Fade in starts slightly before. */
.hero-slideshow .slide:nth-child(1) {
    animation-delay: 0s;
}
.hero-slideshow .slide:nth-child(2) {
    animation-delay: 6s;
}
.hero-slideshow .slide:nth-child(3) {
    animation-delay: 12s;
}
.hero-slideshow .slide:nth-child(4) {
    animation-delay: 18s;
}

@keyframes slideAnimation {
    0% {
        opacity: 0;
        transform: scale(1.1) translateX(2%);
    }
    10% {
        opacity: 1;
    }
    25% {
        opacity: 1;
        transform: scale(1.15) translateX(0%);
    }
    35% {
        opacity: 0;
        transform: scale(1.2) translateX(-2%);
    }
    100% {
        opacity: 0;
        transform: scale(1.2) translateX(-2%);
    }
}

.hero-slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(17,17,17,0.4) 0%, rgba(17,17,17,0.15) 100%);
    z-index: 5;
}

.vh-cta {
    margin-top: 5vh;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    opacity: 0.7;
    color: var(--color-black);
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(17, 17, 17, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 50%;
    background: var(--color-black);
    animation: scrollLine 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* 1.5. Elite Trainer Card Section (Dark Pale Blue Background) */
.elite-trainers-section {
    padding: calc(7rem - 1mm) 0 7rem 0; /* Cropped space above WORLD-CLASS GUIDANCE by 1mm */
    overflow: visible;
}

.elite-trainers-section .elite-section-subtitle {
    transform: translateY(-1mm);
    margin-top: -1mm; /* Cropped space above WORLD-CLASS GUIDANCE by 1mm */
    display: block;
}

.elite-trainers-section .elite-section-title {
    transform: translateY(-2mm) !important; /* Moved MEET THE ELITE text alone 1mm up */
    position: relative;
    z-index: 10;
}

.elite-trainers-section .brush-stroke-svg {
    display: none !important; /* Completely removed underline behind MEET THE ELITE */
}

.elite-card-wrapper {
    background-color: #F4F1EA; /* Off-white cream card container */
    border-radius: 24px;
    padding: 3.5rem 3rem 3.5rem 2rem;
    box-shadow: none; /* Removed shadow */
    margin-top: 3rem;
    position: relative;
}

/* Top-Right Corner Tabs */
.elite-tabs-header {
    position: absolute;
    top: -46px;
    right: 2.5rem;
    display: flex;
    gap: 0.4rem;
    z-index: 20;
}

.coach-tab-btn {
    background-color: #E2DDD0;
    color: #222222;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.8rem 1.6rem;
    border-radius: 12px 12px 0 0;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
}

.coach-tab-btn.active {
    background-color: #1A1A1A; /* Dark charcoal indicator */
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2);
}

.coach-tab-btn:hover:not(.active) {
    background-color: #D6D0C1;
    color: #000000;
}

/* Cutout Image overlapping card */
.elite-cutout-container {
    position: absolute;
    bottom: 0;
    left: 2rem; /* Match card left padding */
    width: calc(41.666% - 2rem); /* Match col-lg-5 width minus padding */
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
/* Force column to static so absolute container references the card wrapper */
.coach-pane .col-lg-5.position-relative {
    position: static !important;
}

.elite-cutout-img {
    width: 120%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.35));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

#coach-1 .elite-cutout-img {
    width: 205%;
    max-width: 900px;
    margin-left: calc(-30% + 5cm); /* Moved 0.5cm left from +5.5cm */
    margin-bottom: -0.5mm; /* Moved half mm downwards */
    filter: none;
}

@media (max-width: 739.98px) {
    .elite-trainers-section {
        padding: calc(4rem - 1cm - 1mm) 0 calc(5.5rem - 2cm) 0 !important; /* Cropped space above WORLD-CLASS GUIDANCE by 1mm */
    }
    
    .elite-card-wrapper {
        padding: 0 1.5rem 2rem 1.5rem !important; /* Cropped 1cm empty space above trainer image */
        margin-top: calc(2rem - 1.5mm) !important;
    }

    .elite-card-body {
        min-height: 275px; /* Fixed consistent height for mobile trainer card */
        overflow: hidden !important;
    }

    .coach-pane .row {
        row-gap: 0.65rem !important; /* Professional space between cutout bottom and coach name */
    }

    .coach-pane .col-lg-5.position-relative {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    .elite-card-text {
        min-height: 255px; /* Locked fixed height so switching coaches never jumps */
    }

    .elite-coach-name {
        font-size: clamp(1.85rem, 5.5vw, 2.3rem);
        margin-bottom: 0.2rem;
    }

    .elite-tag {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        letter-spacing: 0.1em;
    }

    .elite-tag-lead {
        font-size: 0.98rem !important;
        letter-spacing: 0.08em !important;
        margin-bottom: 0.25rem !important; /* Move 7+ years pill little above, right below text */
    }

    .elite-tag-inline {
        font-size: 0.86rem !important;
        padding: 0.28rem 0.7rem !important;
        letter-spacing: 0.06em !important;
    }

    .elite-desc {
        font-size: 0.92rem;
        line-height: 1.55;
        margin-bottom: 0.75rem;
    }

    .elite-quote {
        font-size: 0.88rem;
        line-height: 1.45;
        margin-top: 0.75rem;
        padding-left: 0.75rem;
    }

    .elite-tabs-header {
        position: absolute !important;
        top: -46px !important;
        left: 1rem !important;
        right: 1rem !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        z-index: 20 !important;
    }
    
    .elite-tabs-header .coach-tab-btn {
        flex: 1 !important;
        padding: 0.6rem 0.2rem !important;
        font-size: 0.65rem !important;
        text-align: center !important;
    }

    .elite-cutout-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        height: clamp(285px, 40vh, 325px) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-end !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        padding-top: 14px !important; /* Professional space above person's head */
        padding-bottom: 0 !important;
        overflow: visible !important; /* Never cut off or hide bottom of person */
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    .elite-cutout-pic {
        display: flex !important;
        justify-content: center !important;
        align-items: flex-end !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        overflow: visible !important;
    }

    .elite-cutout-img,
    #coach-1 .elite-cutout-img,
    #coach-2 .elite-cutout-img,
    #coach-3 .elite-cutout-img {
        height: 100% !important;
        width: auto !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        margin: 0 auto !important;
        padding: 0 !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        top: 5.5mm !important; /* Inplace moved 5.5mm down without moving coach name or altering text box */
        filter: none !important;
        transform: scale(1.04) !important; /* 4% bigger growing upward while bottom stays in place */
        transform-origin: bottom center !important;
    }

    #coach-1 .elite-cutout-img {
        max-width: none !important; /* Allows transparent canvas margins to extend symmetrically so Manjunath's body fills height proportionally */
        left: -1mm !important; /* Moved Manjunath image alone 1mm to the left */
        top: 5.5mm !important; /* Moved 5.5mm down inplace */
    }

    #coach-2 .elite-cutout-img,
    #coach-3 .elite-cutout-img {
        max-width: 100% !important;
        top: 6.5mm !important; /* Charan & Adithi moved 1mm down inplace */
    }

    .elite-card-wrapper:hover .elite-cutout-img,
    .elite-cutout-container:hover .elite-cutout-img,
    .elite-cutout-img:hover,
    .elite-card-wrapper:hover #coach-1 .elite-cutout-img,
    .elite-card-wrapper:hover #coach-2 .elite-cutout-img,
    .elite-card-wrapper:hover #coach-3 .elite-cutout-img {
        transform: scale(1.04) !important;
    }
}

.elite-cutout-pic {
    display: contents;
}

/* Image and name remain fixed and never move on hover (desktop only) */
@media (min-width: 992px) {
    .elite-card-wrapper:hover .elite-cutout-img,
    .elite-cutout-container:hover .elite-cutout-img,
    .elite-cutout-img:hover {
        transform: none !important;
    }

    .elite-card-wrapper:hover #coach-1 .elite-cutout-img,
    .elite-card-wrapper:hover #coach-2 .elite-cutout-img,
    .elite-card-wrapper:hover #coach-3 .elite-cutout-img {
        transform: none !important;
    }
}

/* Card Content Typography */
.elite-tag {
    display: inline-block;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #618498;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* Manjunath: Placed directly below name, significantly bigger and authoritative */
.elite-tag-lead {
    font-size: clamp(1.05rem, 1.8vw, 1.22rem) !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    color: #4C6F85 !important;
    text-transform: uppercase;
    margin-bottom: 0.32rem !important; /* Move 7+ years pill little above, right below text */
    line-height: 1.35;
}

/* Charan & Adithi: Professionally placed beside name on the same row, bigger, solid filled pill badge */
.elite-tag-inline {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(0.92rem, 1.5vw, 1.1rem) !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    padding: 0.38rem 0.95rem;
    border-radius: 999px;
    border: none !important;
    line-height: 1;
    margin-bottom: 0 !important;
    vertical-align: middle;
    white-space: nowrap;
    text-transform: uppercase;
    color: #FFFFFF !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    transition: all 0.3s ease;
}

.elite-coach-name {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    color: #111111;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.2rem; /* Tight margin below name now */
    transition: color 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.elite-coach-name:hover {
    transform: none !important; /* Trainer name text stays completely fixed - only color changes */
}

/* Individual Coach Name Hover Colors - only their name text color changes */
#coach-1 .elite-coach-name:hover {
    color: #618498 !important; /* Gray Blue (Manjunath) */
}

#coach-2 .elite-coach-name:hover {
    color: #A85058 !important; /* Gray Red (Charan) */
}

#coach-3 .elite-coach-name:hover {
    color: #B56580 !important; /* Gray Pink (Adithi) */
}

.elite-desc {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 1.02rem;
    color: #333333;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.elite-desc strong {
    color: #111111;
    font-weight: 700;
}

.elite-quote {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.95rem;
    font-style: italic;
    color: #555555;
    border-left: 3px solid #618498;
    padding-left: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Panes */
@media (min-width: 740px) {
    .elite-card-body {
        min-height: 460px; /* Force consistent text box height for all coaches */
    }
}

.coach-pane {
    display: none;
    opacity: 0;
}

.coach-pane.active {
    display: flex;
    align-items: center;
    min-height: inherit;
    opacity: 1;
}

.animate-fade, .animate-slide-up {
    opacity: 0;
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.animate-slide-up {
    transform: translateY(20px);
}

.coach-pane.active .animate-fade {
    opacity: 1;
}
.coach-pane.active .animate-slide-up {
    opacity: 1;
    transform: translateY(0);
}

/* Typography Overrides */
.fs-7 { font-size: 0.875rem; }
.tracking-wide { letter-spacing: 0.1em; }
.mb-huge { margin-bottom: var(--space-xl); }

/* 4. Static Storytelling Gallery */
.facility-scatter-section {
    width: 100%;
    height: 100vh; 
    background: var(--color-bg-primary);
}

.facility-title {
    font-size: clamp(4rem, 8vw, 8rem) !important;
}

.scatter-img-wrapper {
    position: absolute;
    width: 32.5vw; /* 30% bigger than the previous 25vw */
    height: auto; /* Lets the image dictate the exact height to avoid cropping */
    border-radius: 20px;
    overflow: hidden; /* Keeps the corners curved */
    /* Removed box-shadow */
    transition: transform 0.4s ease;
    pointer-events: auto; /* Re-enable pointer events for hover */
}

.scatter-img-wrapper:hover {
    transform: scale(1.05) !important;
    z-index: 20;
}

.scatter-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Static Placements */
#scatter-1 {
    top: 8%;
    left: 5%;
    transform: rotate(-2deg);
}

#scatter-2 {
    top: 12%;
    right: 5%;
    transform: rotate(1.5deg);
}

#scatter-3 {
    bottom: 8%;
    left: 8%;
    transform: rotate(2deg);
}

#scatter-4 {
    bottom: 12%;
    right: 5%;
    transform: rotate(-1.5deg);
}

/* Adjust layout for mobile (Slider instead of Scatter) */
@media (max-width: 739.98px) {
    .facility-scatter-section {
        height: auto !important;
        min-height: auto !important;
        padding-top: calc(5rem - 1cm); /* Cropped top by 1cm */
        padding-bottom: 3mm;
    }
    
    .facility-inner {
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    
    .facility-title-wrap {
        margin-bottom: 0 !important; /* Removed 3mm of space below the facility text heading */
        transform: translateY(-0.615cm); /* moved additional 0.15mm up */
    }
    
    .facility-title {
        /* 50% smaller than previous mobile size */
        font-size: clamp(1rem, 2.5vw, 1.5rem) !important; 
    }

    /* Remove the headings of the images on mobile */
    .facility-img-heading {
        display: none !important;
    }
    
    /* Turn scatter container into vertical stack packed with 1mm space */
    .scatter-images-container {
        position: relative !important;
        height: auto !important;
        display: flex;
        flex-direction: column; /* keep images one by one vertically */
        align-items: center;
        gap: 1mm !important; /* Packed with only 1mm space between them */
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Reset individual image positions */
    .scatter-img-wrapper, 
    #scatter-1, #scatter-2, #scatter-3, #scatter-4 {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 85vw !important;
        height: auto !important;
        flex: 0 0 auto;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        border-radius: 20px;
        background: transparent;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .scatter-img-wrapper img {
        height: auto;
        width: 100%;
        object-fit: contain;
        border-radius: 20px;
    }
    
    .mobile-interior-points {
        font-family: var(--font-body, 'Inter', sans-serif);
        font-size: 0.95rem;
        list-style-type: disc;
    }
    
    .mobile-interior-points li {
        margin-bottom: 0.4rem;
        opacity: 0.9;
    }
}

/* 5. Custom Glass Cards (Why Choose Gravity) */
.custom-glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    height: 100%;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
    box-shadow: var(--glass-shadow);
}

.custom-glass-card:hover {
    border-color: rgba(17, 17, 17, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-black);
    margin-bottom: 2rem;
}

/* 7. Training Programs */
.program-row {
    position: relative;
}

.program-img-wrap {
    height: 70vh;
    min-height: 400px;
}

/* 11. Custom Pricing Cards */
.pricing-card {
    background: var(--color-pure-white);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(17, 17, 17, 0.02);
}

.pricing-card.highlighted {
    background: var(--color-gray-100);
    border-color: rgba(17, 17, 17, 0.15);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: 1.5rem; right: -2.5rem;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--color-gray-700);
}

.pricing-card .price {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin: 1rem 0 2rem;
    color: var(--color-black);
}

.pricing-card .price span {
    font-size: 1.25rem;
    color: var(--color-gray-500);
    font-weight: 500;
}

.pricing-features {
    padding: 0;
    margin-bottom: 3rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.05);
    color: var(--color-gray-700);
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: '\F26A'; /* Bootstrap icon check */
    font-family: "bootstrap-icons";
    margin-right: 1rem;
    color: var(--color-black);
}

/* 12. Lazy YouTube Testimonials */
.video-testimonial {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    background: #000;
}

.video-testimonial .video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.video-testimonial:hover .video-poster {
    transform: scale(1.05);
}

.play-btn-wrapper {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.8);
    transition: transform var(--transition-normal);
}

.video-testimonial:hover .play-btn-wrapper {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-btn {
    font-size: 2rem;
    color: #111;
    margin-left: 5px;
}

.video-testimonial iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    z-index: 10;
}

/* 13. Floating Review Cards (Light) */
.reviews-container {
    position: relative;
    height: 500px;
    width: 100%;
}

.review-glass-card {
    position: absolute;
    width: 350px;
    background: var(--color-pure-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(17,17,17,0.06);
}

.review-glass-card.pos-1 { top: 10%; left: 10%; }
.review-glass-card.pos-2 { top: 40%; left: 50%; transform: translateX(-50%); }
.review-glass-card.pos-3 { top: 20%; right: 10%; }

/* Animation classes for floating */
.floating-card {
    animation: floating 6s ease-in-out infinite;
}
.floating-slow {
    animation: floating 8s ease-in-out infinite;
}
.delay-1 { animation-delay: 2s; }
.delay-2 { animation-delay: 4s; }

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* 14. Instagram Custom Mockup */
.insta-mockup-wrapper {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: var(--color-pure-white);
    border-radius: 40px;
    border: 10px solid var(--color-gray-200);
    box-shadow: 0 0 0 2px var(--color-gray-300), 0 30px 60px rgba(17,17,17,0.1);
    position: relative;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 25px;
    background: var(--color-gray-200);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.phone-screen {
    width: 100%; height: 100%;
    background: var(--color-pure-white);
    overflow: hidden;
}

.reel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.reel-item {
    aspect-ratio: 9/16;
    overflow: hidden;
    position: relative;
}

.reel-item img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* 15. Uploaded "RED" Image 3D Text (The Gravity Effect) */
.comic-red-wrapper {
    position: relative;
    display: inline-block;
    font-family: 'Luckiest Guy', cursive;
    font-size: clamp(2.0625rem, 4.95vw, 4.5375rem);
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.05em;
    color: transparent; /* Makes parent text invisible to fix stacking context */
    z-index: 2;
}

/* 3D Extrusion & Outline (Blue instead of Red) */
.comic-red-wrapper::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1; /* Draws behind the front face */
    
    color: #64869A; /* Light Blue */
    -webkit-text-stroke: 8px #64869A; /* Thick outline matching the image */
    -webkit-text-fill-color: #64869A;
    text-shadow: 
        1px 1px 0px #4d687a,
        2px 2px 0px #4d687a,
        3px 3px 0px #4d687a,
        4px 4px 0px #4d687a,
        5px 5px 0px #4d687a,
        6px 6px 0px #4d687a,
        7px 7px 0px #4d687a,
        8px 8px 0px #4d687a,
        9px 9px 0px #4d687a,
        10px 10px 0px #4d687a;
}

/* Front Face (White Gradient) */
.comic-red-wrapper::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2; /* Draws on top */
    
    background: #ffffff; /* Pure white */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Adjustments for Testimonials & Gravity Text */
@media (max-width: 768px) {
    #testimonialSection {
        padding-top: 2rem !important;
        padding-bottom: calc(6rem + 0.8cm) !important; /* Reduced by 0.7cm */
    }
    
    #fadedTestWrap {
        top: calc(-1.2cm - 0.1mm) !important;
        left: 0 !important;
        width: 100% !important;
        height: 15rem !important;
        padding-left: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important; /* Left align */
    }
    
    #fadedTestText {
        font-size: 25vw !important;
        line-height: 0.8 !important;
        text-align: left !important; /* Left align multi-line */
    }
    
    #marqueeWrap {
        margin-top: calc(-4rem - 5mm + 1.5cm) !important; /* Moved 2.5mm up */
    }
    
    .comic-red-wrapper {
        font-size: clamp(2.475rem, 5.94vw, 5.445rem) !important; /* 10% bigger than previous mobile size */
    }
    
    .gravity-effect-title {
        top: 0.2cm !important; /* Moved 1cm down from previous -0.8cm */
    }
}

/* Mobile Lightbox */
.mobile-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-lightbox.active {
    display: flex;
    opacity: 1;
}

.mobile-lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.mobile-lightbox-content img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
}

@media (orientation: portrait) {
    .mobile-lightbox-content img {
        transform: rotate(90deg);
        max-width: 90vh;
        max-height: 90vw;
    }
    .mobile-lightbox-note {
        transform: translate(-50%, -50%) rotate(90deg);
    }
}

@media (orientation: landscape) {
    .mobile-lightbox-content img {
        transform: rotate(0deg);
    }
    .mobile-lightbox-note {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

.mobile-lightbox-note {
    position: absolute;
    top: 50%;
    left: 50%;
    color: white;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeOutNote 3s forwards 1.5s;
    pointer-events: none;
    z-index: 10001;
    text-align: center;
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    border-radius: 20px;
}

.mobile-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: black;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10000;
}


/* Dynamic Theme Backgrounds */
.elite-trainers-section {
    background-color: #111827 !important;
}

@media (min-width: 740px) {
    #coach-2 .elite-cutout-img {
        width: 107%; /* 5% bigger with fixed bottom */
        max-width: 480px;
        margin-left: calc(-25% + 1.5cm); /* Shifted 1.5cm right from -25% */
        margin-bottom: calc(-60px + 2cm - 0.5mm - 0.4cm); /* Lifted up by 2cm, then down 0.5mm and 0.4cm */
        transform-origin: bottom center;
        filter: none;
    }

    #coach-3 .elite-cutout-img {
        width: 120%;
        max-width: 500px;
        margin-left: calc(-25% + 1.5cm); /* Shifted 1.5cm right from -25% */
        margin-bottom: calc(-45px + 2cm - 0.7mm - 0.8cm); /* Lifted up by 2cm, then down 0.7mm and 0.8cm */
        filter: none;
    }
}

#coach-2 .elite-tag {
    color: #DC2626 !important;
}
#coach-1 .elite-tag-inline {
    background-color: #4C6F85 !important; /* Gray-blue pill right below FOUNDER & HEAD COACH */
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    outline: none !important;
}

#coach-2 .elite-tag-inline {
    background-color: #B91C1C !important; /* Solid matte crimson - zero neon glow */
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    outline: none !important;
}
#coach-2 .elite-quote {
    border-left-color: #B91C1C !important;
}

/* Granite Background Overlay for all trainers */
.elite-trainers-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="granite"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="4" stitchTiles="stitch"/%3E%3CfeColorMatrix type="matrix" values="1 0 0 0 0.15, 0 1 0 0 0.15, 0 0 1 0 0.15, 0 0 0 0.5 0"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23granite)"/%3E%3C/svg%3E');
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

#coach-3 .elite-tag {
    color: #BE185D !important;
}
#coach-3 .elite-tag-inline {
    background-color: #BE185D !important; /* Solid matte berry rose - zero neon glow */
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    outline: none !important;
}
#coach-3 .elite-quote {
    border-left-color: #EC4899 !important;
}


/* Coach Background Dynamic Themes */
.elite-trainers-section {
    background-color: #576F7C !important;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E") !important;
    background-blend-mode: multiply !important;
    transition: background-color 0.5s ease;
}

.elite-trainers-section[data-active-coach="1"],
.elite-trainers-section:not([data-active-coach]) {
    background-color: #576F7C !important; /* Grayish Blue (Manjunath) */
}

.elite-trainers-section[data-active-coach="2"] {
    background-color: #7C5757 !important; /* Grayish Red (Charan) */
}

.elite-trainers-section[data-active-coach="3"] {
    background-color: #7C576B !important; /* Grayish Pink (Adithi) */
}

/* Mobile adjustments for hero button */
@media (max-width: 768px) {
    .elite-hero-content .vh-cta,
    .elite-hero-content .elite-cta {
        transform: translateY(-0.5cm);
    }
    .elite-hero-content .btn-hero-pill {
        padding: 0.8rem 2.4rem !important;
    }
}
