/* ==========================================================================
   Formula Fitness CSS Design System & Layout
   ========================================================================== */

/* Custom Variables */
:root {
    --bg-dark: #070709;
    --bg-card: rgba(22, 22, 26, 0.55);
    --border-card: rgba(255, 255, 255, 0.08);
    --primary-blue: #278FF0;
    --primary-blue-hover: #167fe6;
    --primary-blue-glow: rgba(39, 143, 240, 0.35);
    --text-white: #ffffff;
    --text-muted: #8e8e93;
    --text-gray-light: #d1d1d6;
    
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Sora', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Selection & Scrollbar Styling */
::selection {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue-hover);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background Gradients */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(130px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.glow-left {
    top: -100px;
    left: -200px;
    background: radial-gradient(circle, rgba(39, 143, 240, 0.15) 0%, rgba(39, 143, 240, 0) 70%);
}

.glow-right {
    bottom: -150px;
    right: -200px;
    background: radial-gradient(circle, rgba(39, 143, 240, 0.1) 0%, rgba(39, 143, 240, 0) 70%);
}

/* ==========================================================================
   Navbar Styles
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    z-index: 100;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(7, 7, 9, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo reset — it's an <a> tag so we kill default link styles */
.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-white);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-accent {
    font-weight: 900;
    color: var(--primary-blue);
}

/* Nav Links — matching .nav-menu/.nav-link from HTML */
.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-white);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-white);
}

.nav-link.active::after {
    width: 100%;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (min-width: 993px) {
    .logo {
        flex: 1 1 0% !important;
        justify-content: flex-start !important;
    }
    .nav-actions {
        flex: 1 1 0% !important;
        justify-content: flex-end !important;
    }
    .nav-menu {
        flex: 0 0 auto !important;
    }
}

/* Base shared btn styles (nav buttons use these classes directly) */
.btn-login,
.btn-register {
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    color: var(--text-white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-login:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-register {
    color: var(--text-white);
    background-color: var(--primary-blue);
    border: none;
    box-shadow: 0 4px 14px var(--primary-blue-glow);
}

.btn-register:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 143, 240, 0.5);
}

.btn-register:active {
    transform: translateY(0);
}

/* ==========================================================================
   Hero Section Styles
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-dark);
}

/* Grainy noise texture overlay */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 100vh;
    min-height: 100vh;
    margin: 0 auto;
    padding: 110px 40px 55px 40px; /* Increased bottom padding to lift bottom footer details */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Layer 1: Huge Typography Layer (Sits on top of the athlete image) */
.hero-headline-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1300px;
    z-index: 3;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.headline-row {
    font-family: var(--font-heading);
    font-size: 5.8vw;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--text-white);
    text-transform: uppercase;
    display: flex;
    width: 100%;
}

/* Split text left and right to make space for the central athlete image */
.row-1 {
    justify-content: flex-start;
    padding-left: 2%;
}

.row-2 {
    justify-content: flex-end;
    padding-right: 2%;
}

.row-3 {
    justify-content: flex-start;
    padding-left: 10%;
}

.row-4 {
    justify-content: flex-end;
    padding-right: 12%;
}

/* Layer 2: Central Athlete (Pushed behind the typography) */
.hero-foreground {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
    margin-bottom: 10px;
}

.hero-image-container {
    position: relative;
    height: 66vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-image {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.8));
    pointer-events: none;
}

/* Floating Glassmorphism Badges */
.floating-badge {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 5; /* Above text layer (z-index:3) and athlete (z-index:2) */
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    pointer-events: auto;
}

.floating-badge:hover {
    transform: scale(1.03) translateY(-5px) !important;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Common Badge Elements */
.badge-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
}

.badge-icon-wrapper .icon {
    width: 22px;
    height: 22px;
}

.badge-info {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff; /* Bright white for high contrast */
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-subtitle {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
}

/* Specific Badges Positions & Styles */
/* Badges positioned near the athlete image edges, NOT on text */

/* 1. Fitness Gym Badge — top-left of the image area */
.badge-fitness {
    position: absolute;
    left: 3%;
    top: 16%;
    width: 210px;
    transform: rotate(-6deg);
}

.fitness-icon {
    background: rgba(255, 255, 255, 0.08);
}

.badge-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 35px;
    padding-top: 4px;
    padding-left: 4px;
}

.chart-bar {
    width: 8px;
    background-color: var(--text-white);
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.chart-bar:hover {
    opacity: 1;
}

/* 2. Heartbeat Badge — bottom-left of the image area, positioned closer to the athlete */
.badge-heart {
    position: absolute;
    left: 22%;
    bottom: 16%;
    width: 140px;
    height: 140px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    transform: rotate(-6deg);
}

.heart-icon {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
}

/* 3. Calories Badge — below top-right of the image area, tilted RIGHT */
.badge-calories {
    position: absolute;
    right: 3%;
    top: 24%;
    width: 140px;
    height: 140px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    transform: rotate(6deg); /* Tilted right, opposite to other badges */
}

.calories-icon {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
}

.badge-heart .badge-info,
.badge-calories .badge-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    margin-top: 6px;
}

/* ==========================================================================
   Hero Footer (Stats & Trainers)
   ========================================================================== */
.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    z-index: 10;
    margin-top: auto;
}

.stat-left-item {
    align-items: flex-start;
    text-align: left;
}

.stat-center-item {
    align-items: center;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Right Trainers Block */
.trainers-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.trainers-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: right;
    line-height: 1.3;
    max-width: 180px;
    display: block;
}

.trainers-avatar-group {
    display: flex;
    align-items: center;
    position: relative;
}

.trainer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.btn-add-trainer {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    border: 3px solid var(--bg-dark);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -15px; /* Overlap effect */
    cursor: pointer;
    box-shadow: none; /* Removed default glowing fade */
    transition: var(--transition-smooth);
}

.btn-add-trainer:hover {
    background-color: var(--primary-blue-hover);
    transform: scale(1.08) translateX(2px);
    box-shadow: 0 10px 20px rgba(39, 143, 240, 0.2); /* Very soft blue glow on hover */
    z-index: 5;
}

.btn-add-trainer:active {
    transform: scale(0.95);
}

.plus-icon {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Animations Keyframes
   ========================================================================== */
@keyframes float-slow {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes float-medium {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-12px); }
}

@keyframes float-fast {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-10px) rotate(-1deg); }
}

/* ==========================================================================
   Program Section Styles
   ========================================================================== */
.program {
    position: relative;
    width: 100%;
    background-color: var(--bg-dark);
    padding: 100px 0;
    overflow: visible; /* Allows card shadow overflow to bleed onto the next section */
}

.program-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    position: relative;
}

.program-title-group {
    position: relative;
    padding-top: 40px;
}

.program-watermark {
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: var(--font-heading);
    font-size: 7.5rem;
    font-weight: 900;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.program-section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

/* Nav Buttons */
.program-nav {
    display: flex;
    gap: 16px;
    z-index: 2;
}

.btn-nav {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-nav-prev {
    background-color: var(--text-white);
    color: var(--bg-dark);
}

.btn-nav-prev:hover {
    background-color: var(--text-gray-light);
    transform: scale(1.05);
}

.btn-nav-next {
    background-color: var(--primary-blue);
    color: var(--text-white);
    box-shadow: none; /* No glow by default */
}

.btn-nav-next:hover {
    background-color: var(--primary-blue-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(39, 143, 240, 0.2); /* Very soft glow on hover only */
}

.arrow-icon {
    width: 22px;
    height: 22px;
}

/* Slider and Cards */
.program-cards-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0 60px 0; /* Added top padding to prevent vertical shadow clipping */
    scrollbar-width: none; /* Firefox */
}

.program-cards-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.program-card {
    flex: 0 0 calc(40% - 16px); /* Displays exactly 2.5 cards in desktop viewport */
    min-width: 290px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

/* Normal Card Hover */
.program-card:not(.active):hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.program-card:not(.active):hover .card-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
}

/* Icon Wrapper */
.card-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.card-icon {
    width: 26px;
    height: 26px;
}

/* Title & Description */
.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.01em;
}

.card-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 400;
}

/* Active Highlight Card Styles */
.program-card.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: none; /* No default active glow shadow */
    position: relative;
    z-index: 10; /* Float above container edges */
}

.program-card.active .card-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.program-card.active .card-description {
    color: rgba(255, 255, 255, 0.85);
}

.program-card.active:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(39, 143, 240, 0.22); /* Very soft blue glow in all directions on hover */
}

/* ==========================================================================
   Classes Section Styles
   ========================================================================== */
.classes {
    position: relative;
    width: 100%;
    background-color: #ffffff; /* White background */
    padding: 100px 0 140px 0;
    overflow: hidden;
}

.classes-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.classes-header {
    text-align: center;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 10;
}

.dynamic-wrapper {
    position: relative;
    display: inline-block;
}

.classes-badge {
    position: absolute;
    top: -14px; /* Lowered to sit more on top of 'DYNAMIC' */
    left: 20px;
    background-color: var(--primary-blue);
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    transform: rotate(-6deg);
    display: inline-block;
    box-shadow: 0 4px 14px var(--primary-blue-glow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.classes-section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--bg-dark); /* Black text on white background */
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.classes-content {
    display: grid;
    grid-template-columns: 1.1fr 180px 1.1fr;
    gap: 30px;
    align-items: center;
}

.classes-col {
    position: relative;
}

.classes-col-center {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

/* Image Wrapper and Photos */
.class-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 32px;
    transition: var(--transition-smooth);
}

.class-main-image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    display: block;
}

.class-image-wrapper:hover .class-main-image {
    border-color: rgba(255, 255, 255, 0.1);
}

/* bottom Offset Card */
.class-info-card {
    position: absolute;
    bottom: -35px;
    left: 24px;
    width: calc(100% - 48px);
    background: rgba(22, 22, 26, 0.75);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 24px;
    z-index: 5;
    transition: var(--transition-smooth);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.class-image-wrapper:hover .class-info-card {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(28, 28, 32, 0.85);
}

.class-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.class-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.class-card-icon .icon {
    width: 18px;
    height: 18px;
}

.class-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
}

.class-card-description {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Center Stat Badges overrides using Hero Square badges */
.classes-col-center .floating-badge {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    animation: none !important;
    width: 140px;
    height: 140px;
    margin: 0 auto;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.classes-col-center .floating-badge:hover {
    transform: scale(1.04) translateY(-3px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8); /* Brighter for better contrast on dark badge bg */
    letter-spacing: 0.05em;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
}

/* Floating Detail Badges (Left image) */
.badge-chart-detail {
    position: absolute;
    right: 10px;
    bottom: 110px; /* Lifted up further to avoid overlapping text */
    background: linear-gradient(135deg, var(--primary-blue-hover) 0%, var(--primary-blue) 100%);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 18px;
    padding: 12px 16px;
    width: 150px;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: rotate(-8deg); /* Tilted left by default */
    box-sizing: border-box;
}
.badge-gym-stats {
    position: absolute;
    right: 10px;
    left: auto;
    bottom: 110px; /* Lifted up further to avoid overlapping text */
    background: linear-gradient(135deg, #b0b8c8 0%, #8a94a6 100%); /* Silver */
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 18px;
    padding: 12px 16px;
    width: 150px;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: rotate(8deg); /* Tilted right */
    box-sizing: border-box;
}

.gym-badge-header {
    display: flex;
    justify-content: space-between;
}

.gym-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
}

.gym-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 25px;
}

.gym-bar {
    width: 6px;
    background-color: var(--text-white);
    border-radius: 3px;
    opacity: 0.75;
}

.gym-exercise-left {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ==========================================================================
   Features Section Styles
   ========================================================================== */
.features {
    position: relative;
    width: 100%;
    background-color: var(--bg-dark);
    padding: 100px 0;
    overflow: hidden;
}

.features-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.features-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.img-left-text-right {
    grid-template-columns: 1fr 1.1fr;
}

.feature-col-text {
    width: 100%;
}

.feature-col-img {
    width: 100%;
}

.feature-info-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.feature-watermark {
    position: absolute;
    top: -50px;
    left: -10px;
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.feature-section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-white);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.feature-description {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-gray-light);
    font-weight: 400;
}

/* Read More Button */
.btn-read-more {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    padding: 12px 28px;
    border-radius: 50px;
    gap: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-decoration: none; /* No underline */
    font-family: var(--font-body);
    font-weight: 600;
}

.btn-read-more:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-read-more:hover .btn-arrow {
    transform: translateX(6px);
}

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: var(--transition-smooth);
}

/* Feature Images */
.feature-image-container {
    position: relative;
    width: 100%;
    border-radius: 32px;
}

.feature-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    display: block;
}

.feature-image-container:hover .feature-image {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Floating Silver Badge — previously orange, now silver/chrome */
.floating-orange-badge {
    position: absolute;
    background: linear-gradient(135deg, #c8d0dc 0%, #9aa3b2 100%); /* Silver gradient */
    color: var(--text-white);
    border-radius: 14px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 4;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    cursor: pointer;
    transform: rotate(-8deg); /* Starts tilted left by default */
}

.floating-orange-badge:hover {
    transform: scale(1.05) rotate(-8deg) !important; /* Grow only, maintaining rotation */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4) !important;
}

.orange-badge-number {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}

.orange-badge-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-free-features {
    left: -25px;
    bottom: 40px;
    transform: rotate(-8deg);
}

.badge-free-videos {
    left: -25px;
    bottom: 40px;
    transform: rotate(-8deg);
}

/* ==========================================================================
   Trainers Section Styles
   ========================================================================== */
.trainers {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    padding: 100px 0;
    overflow: visible; /* Allow hover shadow to bleed outside section edges */
    z-index: 1; /* Establish stacking context so hover z-index works within */
}

.trainers-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.trainers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.trainers-section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--bg-dark); /* Black text on white background */
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Nav Buttons */
.trainers-nav {
    display: flex;
    gap: 16px;
}

.btn-trainers-prev {
    background-color: #f4f4f5; /* Off-white background to stay visible on white section */
    border: 1px solid #e4e4e7;
    color: var(--bg-dark);
}

.btn-trainers-prev:hover {
    background-color: #e4e4e7;
    transform: scale(1.05);
}

.btn-trainers-next {
    background-color: var(--primary-blue);
    color: var(--text-white);
    box-shadow: none; /* No glow by default */
}

.btn-trainers-next:hover {
    background-color: var(--primary-blue-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(39, 143, 240, 0.2); /* Soft glow on hover only */
}

/* Profiles Slider */
.trainers-cards-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 30px 0;
    scrollbar-width: none; /* Firefox */
}

.trainers-cards-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.trainer-profile-card {
    flex: 0 0 calc(33.333% - 20px); /* 3 profiles fitting in desktop viewport */
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.trainer-image-wrapper {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07); /* Visible border on white background */
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.trainer-profile-image {
    width: 100%;
    height: 440px;
    object-fit: cover;
    transition: var(--transition-smooth);
    display: block;
}

.trainer-profile-card:hover .trainer-profile-image {
    transform: scale(1.04);
}

.trainer-profile-card:hover .trainer-image-wrapper {
    border-color: rgba(0, 0, 0, 0.12);
    /* Very soft shadow that bleeds outside the section — overflow:visible on .trainers allows this */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 10; /* Sit above siblings so shadow overlaps neighbouring cards */
}

.trainer-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bg-dark); /* Black text for names on white background */
    letter-spacing: -0.01em;
    transition: var(--transition-smooth);
}

.trainer-profile-card:hover .trainer-name {
    color: var(--primary-blue);
}

.trainer-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: #666666;
    text-align: center;
    margin-top: -12px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Workflow Section Styles
   ========================================================================== */
.workflow {
    position: relative;
    width: 100%;
    background-color: var(--bg-dark);
    padding: 120px 0 160px 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.workflow-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.workflow-circle-area {
    position: relative;
    width: 960px;
    height: 720px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.workflow-connector-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 580px;
    height: 580px;
    border: 2px dashed rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* Center Coach image & badges */
.workflow-center-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 8px solid var(--bg-dark);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 3;
    transition: var(--transition-smooth);
}

.workflow-center-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: block;
}



.workflow-center-wrapper:hover {
    transform: translate(-50%, -50%) scale(1.03);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.workflow-blue-badges {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.workflow-blue-icon-circle {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px var(--primary-blue-glow);
    transition: var(--transition-smooth);
    pointer-events: auto;
}

.workflow-blue-icon-circle:hover {
    transform: scale(1.12);
    background-color: var(--primary-blue-hover);
}

.blue-badge-svg {
    width: 20px;
    height: 20px;
}

/* Positions along the circular coach image boundary - shifted slightly inward */
.badge-dumbbell {
    right: 8px;
    top: 20%;
    transform: translateX(20%);
}

.badge-pulse {
    right: 0px;
    top: 50%;
    transform: translate(20%, -50%);
}

.badge-apple {
    right: 8px;
    bottom: 20%;
    transform: translateX(20%);
}

/* Hover overrides — scale in-place preserving positional translate */
.badge-dumbbell:hover {
    transform: translateX(20%) scale(1.12) !important;
    box-shadow: 0 12px 24px var(--primary-blue-glow);
}

.badge-pulse:hover {
    transform: translate(20%, -50%) scale(1.12) !important;
    box-shadow: 0 12px 24px var(--primary-blue-glow);
}

.badge-apple:hover {
    transform: translateX(20%) scale(1.12) !important;
    box-shadow: 0 12px 24px var(--primary-blue-glow);
}

/* Guideline Cards */
.workflow-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 24px;
    width: 250px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    z-index: 2;
    transform: translate(-50%, -50%); /* Center the card exactly on its radial position */
    transition: var(--transition-smooth);
}

.workflow-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%) scale(1.03) !important;
}

.workflow-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

.workflow-card-description {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Step Number Badges */
.step-number {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #09090b;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    z-index: 4;
    transition: var(--transition-smooth);
}

.workflow-card:hover .step-number {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: scale(1.1);
}

/* Desktop Absolute Positions for Symmetrical Clock Layout */
.step-1 {
    left: 200px !important;
    top: 120px !important;
}
.step-1 .step-number {
    left: auto !important;
    right: -16px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
}

.step-2 {
    left: 140px !important;
    top: 360px !important;
}
.step-2 .step-number {
    left: auto !important;
    right: -16px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
}

.step-3 {
    left: 200px !important;
    top: 600px !important;
}
.step-3 .step-number {
    left: auto !important;
    right: -16px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
}

.step-4 {
    left: 760px !important;
    top: 120px !important;
}
.step-4 .step-number {
    right: auto !important;
    left: -16px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
}

.step-5 {
    left: 820px !important;
    top: 360px !important;
}
.step-5 .step-number {
    right: auto !important;
    left: -16px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
}

.step-6 {
    left: 760px !important;
    top: 600px !important;
}
.step-6 .step-number {
    right: auto !important;
    left: -16px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
}

/* ==========================================================================
   CTA Section Styles
   ========================================================================== */
.cta {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #1469b8 0%, #278FF0 100%);
    overflow: hidden;
    height: 480px; /* Slightly taller to avoid cropping heads */
    min-height: 480px;
    display: flex;
    align-items: center;
}

.cta-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100%;
}

.cta-content {
    flex: 0 0 55%;
    padding: 50px 0; /* Reduced padding */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    z-index: 2;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.cta-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 540px;
}

.btn-cta {
    display: inline-block;
    background-color: var(--text-white);
    color: var(--bg-dark);
    padding: 16px 36px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    text-align: center;
    cursor: pointer;
    text-decoration: none; /* Removed underline */
}

.btn-cta:hover {
    background-color: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
    transform: translateY(-2px);
}

.cta-image-container {
    flex: 0 0 45%;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0; /* Bleed to the rightmost edge */
    width: 45%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    z-index: 1;
}

.cta-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover full container height and width */
    object-position: center bottom;
    display: block;
    mix-blend-mode: lighten; /* Blends the black background of our generated image into the blue gradient background */
}

/* ==========================================================================
   Footer Section Styles
   ========================================================================== */
.footer {
    position: relative;
    width: 100%;
    background-color: #08080a;
    padding: 100px 0 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 60px;
}

.footer-info-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.footer-social-links {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.social-link-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link-icon svg {
    width: 18px;
    height: 18px;
}

.social-link-icon:hover {
    background-color: var(--primary-blue);
    color: var(--text-white);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--primary-blue);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 60px auto 0 auto;
    padding: 30px 40px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Hamburger — hidden on desktop, shown on mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* -------------------------------------------------------------------
   Large Desktop (1400px and below)
   ------------------------------------------------------------------- */
@media (max-width: 1400px) {
    .navbar-container, .hero-container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* -------------------------------------------------------------------
   Laptops & Small Desktops (1200px)
   ------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .headline-row {
        font-size: 8.5vw;
    }
    
    .program-card {
        flex: 0 0 calc(33.333% - 16px);
    }
    
    .trainers-section-title {
        font-size: 2.6rem;
    }
    
    .trainer-profile-image {
        height: 380px;
    }
    
    .features-row {
        gap: 40px;
    }
    
    .feature-section-title {
        font-size: 2.6rem;
    }
    
    .workflow-circle-area {
        width: 860px;
        height: 640px;
    }
    
    .step-1 { left: 430px !important; top: 70px !important; }
    .step-2 { left: 646px !important; top: 195px !important; }
    .step-3 { left: 646px !important; top: 445px !important; }
    .step-4 { left: 430px !important; top: 570px !important; }
    .step-5 { left: 214px !important; top: 445px !important; }
    .step-6 { left: 214px !important; top: 195px !important; }
    
    .classes-content {
        grid-template-columns: 1fr 160px 1fr;
        gap: 20px;
    }
    
    .class-main-image {
        height: 440px;
    }
    
    .badge-chart-detail { right: -10px; }
    .badge-water { left: -15px; }
    .badge-gym-stats { left: 35px; }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .cta-title {
        font-size: 2.6rem;
    }
    
    .footer-container {
        gap: 40px;
    }
}

/* -------------------------------------------------------------------
   Tablets (992px)
   ------------------------------------------------------------------- */
@media (max-width: 992px) {
    /* Navbar — show hamburger, hide menu + actions */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(7, 7, 9, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 150;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    .nav-menu.open {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    .nav-actions {
        display: none;
    }
    
    .navbar-container {
        padding: 0 20px;
    }
    
    /* Hero */
    .hero-container {
        padding: 90px 20px 40px 20px;
    }
    
    .hero-headline-bg {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        text-align: center;
        margin-bottom: -60px;
    }
    
    .headline-row {
        font-size: 10vw;
        justify-content: center !important;
        padding: 0 !important;
    }
    
    .hero-image-container {
        height: 50vh;
        min-height: auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Badges — near the image edges on tablet */
    .badge-fitness {
        left: 2%;
        top: 22%;
    }
    .badge-calories {
        right: 2%;
        top: 30%;
    }
    .badge-heart {
        left: 2%;
        bottom: 18%;
    }
    
    .hero-footer {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 20px !important;
        text-align: left;
    }
    
    .trainers-right {
        justify-content: flex-end !important;
        width: auto !important;
    }
    
    .trainers-label {
        text-align: right !important;
    }
    
    /* Program */
    .program {
        padding: 80px 0;
    }
    
    .program-watermark {
        font-size: 5.5rem;
        top: -10px;
    }
    
    .program-section-title {
        font-size: 2.2rem;
    }
    
    .program-card {
        flex: 0 0 calc(50% - 12px);
    }
    
    /* Classes */
    .classes {
        padding: 80px 0;
    }
    
    .classes-header {
        margin-bottom: 60px;
    }
    
    .classes-badge {
        top: -26px !important;
    }
    
    .classes-content {
        grid-template-columns: 1fr;
        gap: 50px;
        max-width: 520px;
        margin: 0 auto;
    }
    
    .classes-col-center {
        flex-direction: row;
        gap: 20px;
    }
    
    .center-stat-badge {
        width: calc(50% - 10px);
    }
    
    /* Features */
    .features-container {
        gap: 80px;
    }
    
    .features-row {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .text-left-img-right {
        display: flex;
        flex-direction: column; /* Text first, image second */
    }
    
    .img-left-text-right {
        display: flex;
        flex-direction: column-reverse; /* Text first, image second */
    }
    
    .feature-section-title {
        font-size: 2.2rem;
    }
    
    .feature-watermark {
        font-size: 6rem;
        top: -30px;
    }
    
    .feature-image {
        height: 320px;
    }
    
    /* Trainers */
    .trainers {
        padding: 80px 0;
    }
    
    .trainers-section-title {
        font-size: 2.2rem;
    }
    
    .trainer-profile-card {
        flex: 0 0 calc(50% - 15px);
    }
    
    /* Workflow — linearize for tablet */
    .workflow {
        padding: 80px 0;
    }
    
    .workflow-circle-area {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 0 20px;
    }
    
    .workflow-connector-ring {
        display: none;
    }
    
    .workflow-center-wrapper {
        position: relative;
        top: auto;
        left: auto;
        transform: none !important;
        margin: 0 auto 20px auto;
        width: 260px; /* Increased from 220px */
        height: 260px; /* Increased from 220px */
    }
    
    .workflow-blue-badges .badge-dumbbell {
        top: 12% !important;
        right: 12px !important;
    }
    
    .workflow-blue-badges .badge-pulse {
        top: 50% !important;
        right: 2px !important;
    }
    
    .workflow-blue-badges .badge-apple {
        bottom: 12% !important;
        right: 12px !important;
    }
    
    .workflow-card {
        position: relative;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        transform: none !important;
    }
    
    .step-number {
        left: 50% !important;
        top: -16px !important;
        bottom: auto !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
    
    .workflow-card:hover .step-number {
        transform: translateX(-50%) scale(1.1) !important;
    }
    
    .dynamic-wrapper {
        position: static !important;
    }
    
    .classes-header {
        margin-bottom: 60px;
        position: relative !important;
        padding-top: 30px !important; /* Push down to clear space above for the badge */
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    
    .classes-badge {
        position: absolute !important;
        top: 14px !important; /* Slightly lowered to overlap the text */
        left: 50% !important;
        transform: translateX(-50%) rotate(-6deg) !important; /* Anchored centered above text */
        z-index: 15;
    }
    
    .classes-section-title {
        font-size: 1.8rem !important; /* Reduced title size on tablet */
        line-height: 1.25;
    }
    
    /* CTA */
    .cta {
        height: auto;
        min-height: auto;
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 0 20px;
    }
    
    .cta-content {
        flex: 0 0 100%;
        padding: 60px 0 40px 0;
        align-items: center;
    }
    
    .cta-image-container {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 300px !important;
        justify-content: center;
        margin: 30px auto 0 auto !important;
        overflow: hidden !important;
    }
    
    .cta-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
        mix-blend-mode: lighten !important;
        transform: none !important;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

/* -------------------------------------------------------------------
   Mobile Devices (768px and below)
   ------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Hero */
    .headline-row {
        font-size: 11vw;
    }
    
    .hero-image-container {
        height: 44vh;
        max-width: 340px;
    }
    
    .floating-badge {
        padding: 10px;
        border-radius: 14px;
    }
    
    .badge-icon-wrapper {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }
    
    .badge-icon-wrapper .icon {
        width: 16px;
        height: 16px;
    }
    
    .badge-title {
        font-size: 0.65rem;
    }
    
    .badge-subtitle {
        font-size: 0.9rem;
    }
    
    .badge-fitness {
        width: 160px;
    }
    
    .badge-chart {
        height: 25px;
        gap: 4px;
    }
    
    .chart-bar {
        width: 6px;
    }
    
    .badge-heart,
    .badge-calories {
        width: 110px;
        height: 110px;
        padding: 12px;
    }
    

    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .trainer-avatar, .btn-add-trainer {
        width: 50px;
        height: 50px;
    }
    
    /* Classes — center column as horizontal row of side-by-side rectangles */
    .classes-col-left {
        margin-bottom: 25px !important; /* Reduced vertical space */
    }
    
    .classes-col-center {
        flex-direction: row !important; /* Side-by-side rectangles */
        gap: 12px !important;
        width: 100% !important;
        margin: 15px 0 !important; /* Reduced vertical spacing */
        justify-content: center !important;
    }
    
    .classes-col-center .floating-badge {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex: 1 !important;
        max-width: calc(50% - 6px) !important;
        height: 75px !important; /* Taller rectangular height */
        padding: 12px 14px !important;
        gap: 10px !important;
        transform: none !important;
    }
    
    .classes-col-center .floating-badge .badge-icon-wrapper {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .classes-col-center .floating-badge .badge-info {
        align-items: flex-start !important;
        text-align: left !important;
        margin-top: 0 !important;
        gap: 0 !important;
    }
    
    .classes-col-center .floating-badge .badge-title {
        font-size: 0.6rem !important;
    }
    
    .classes-col-center .floating-badge .badge-subtitle {
        font-size: 0.85rem !important;
    }
    
    .classes-section-title {
        font-size: 1.5rem !important; /* Reduced title size on mobile/tablet */
        line-height: 1.25;
    }
    
    .badge-chart-detail {
        width: 130px !important;
        height: 95px !important;
        padding: 10px !important;
        border-radius: 14px !important;
    }
    
    .badge-gym-stats {
        width: 130px !important;
        height: 95px !important;
        padding: 10px !important;
        border-radius: 14px !important;
    }
    
    /* Features */
    .feature-watermark {
        font-size: 4.5rem;
        top: -15px;
    }
    
    .feature-section-title {
        font-size: 2rem;
    }
    
    .feature-image {
        height: 280px;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* -------------------------------------------------------------------
   Small Mobile (576px and below)
   ------------------------------------------------------------------- */
@media (max-width: 576px) {
    /* Navbar */
    .navbar {
        height: 70px;
    }
    
    .navbar-container {
        padding: 0 16px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo-img {
        height: 56px !important;
    }
    
    .btn-login, .btn-register {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* Hero */
    .hero-container {
        padding: 80px 16px 30px 16px;
    }
    
    .hero-headline-bg {
        margin-bottom: -40px;
    }
    
    .headline-row {
        font-size: 13vw;
    }
    
    .hero-image-container {
        height: 38vh;
        max-width: 300px;
        transform: translateY(-25px) !important; /* Shift image up slightly */
    }
    
    /* Badges — positioned closely on the edges of the central athlete image */
    .badge-fitness {
        left: 10% !important; /* Shift right closer to athlete */
        top: 48% !important;  /* Lowered to fit athlete body */
        width: 190px !important; /* Wider rectangular badge as requested */
    }
    
    .badge-calories {
        right: 10% !important; /* Shift left closer to athlete */
        top: 48% !important;   /* Lowered to fit athlete body */
        width: 100px;
        height: 100px;
        padding: 10px;
    }
    
    .badge-heart {
        left: 10% !important;  /* Shift right closer to athlete */
        bottom: 8% !important; /* Lowered to fit athlete body */
        width: 100px;
        height: 100px;
        padding: 10px;
    }
    
    /* iPhone 12 Pro and similar devices (390px and below) */
    @media (max-width: 400px) {
        .headline-row {
            font-size: 11vw !important; /* Reduced title size */
        }
        .hero-image-container {
            transform: translateY(-40px) !important; /* Raised image by 15px more */
        }
        .badge-fitness {
            top: 46% !important; /* Lowered */
        }
        .badge-calories {
            top: 46% !important; /* Lowered */
        }
        .badge-heart {
            bottom: 12% !important; /* Lowered */
        }
    }
    
    /* iPhone SE and smaller devices (375px and below) */
    @media (max-width: 375px) {
        .headline-row {
            font-size: 9.5vw !important; /* Significantly reduced title size for small screen */
        }
        .badge-fitness {
            width: 155px !important; /* Smaller width for compact layout */
            top: 49% !important; /* Lowered */
            padding: 8px !important;
            border-radius: 12px !important;
        }
        .badge-calories {
            width: 85px !important; /* Scaled down badge size */
            height: 85px !important;
            top: 49% !important; /* Lowered */
            padding: 8px !important;
            border-radius: 12px !important;
        }
        .badge-heart {
            width: 85px !important; /* Scaled down badge size */
            height: 85px !important;
            bottom: 14% !important; /* Lowered */
            padding: 8px !important;
            border-radius: 12px !important;
        }
        .floating-badge .badge-icon-wrapper {
            width: 24px !important;
            height: 24px !important;
            border-radius: 6px !important;
        }
        .floating-badge .badge-icon-wrapper .icon {
            width: 13px !important;
            height: 13px !important;
        }
        .floating-badge .badge-title {
            font-size: 0.5rem !important;
        }
        .floating-badge .badge-subtitle {
            font-size: 0.7rem !important;
        }
        .floating-badge .badge-chart {
            height: 16px !important;
            gap: 2px !important;
        }
        .floating-badge .chart-bar {
            width: 4px !important;
        }
    }
    
    .badge-heart .badge-info,
    .badge-calories .badge-info {
        gap: 0;
        margin-top: 4px;
    }
    
    .badge-heart .badge-title,
    .badge-calories .badge-title {
        font-size: 0.55rem;
    }
    
    .badge-heart .badge-subtitle,
    .badge-calories .badge-subtitle {
        font-size: 0.75rem;
    }
    
    .badge-heart .badge-icon-wrapper,
    .badge-calories .badge-icon-wrapper {
        width: 28px;
        height: 28px;
    }
    
    .badge-chart {
        height: 20px;
        gap: 3px;
    }
    
    .chart-bar {
        width: 5px;
    }
    
    .hero-footer {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 15px !important;
        padding: 0 !important;
    }
    
    .stat-left-item {
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .trainers-right {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-end !important; /* Flush right! */
        align-items: center !important;
        gap: 12px !important;
    }
    
    .trainers-label {
        font-size: 0.85rem !important;
        max-width: 150px !important;
        text-align: right !important; /* Right aligned text */
        display: block !important;
    }
    
    .trainer-avatar, .btn-add-trainer {
        width: 42px;
        height: 42px;
    }
    
    /* Program */
    .program {
        padding: 60px 0;
    }
    
    .program-container {
        padding: 0 16px;
    }
    
    .program-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .program-watermark {
        font-size: 3.5rem;
        top: 0;
    }
    
    .program-section-title {
        font-size: 1.7rem;
    }
    
    .program-card {
        flex: 0 0 80%;
        padding: 20px;
        min-width: auto;
    }
    
    .btn-nav {
        width: 44px;
        height: 44px;
    }
    
    .arrow-icon {
        width: 18px;
        height: 18px;
    }
    
    .classes-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
        top: 14px !important; /* Slightly lowered to overlap text */
        left: 50% !important;
        transform: translateX(-50%) rotate(-6deg) !important;
    }
    
    .classes-content {
        gap: 40px;
        max-width: 100%;
    }
    
    .class-main-image {
        height: 360px;
    }
    
    .badge-chart-detail {
        right: 12px !important;
        left: auto !important;
        top: -20px !important;
        bottom: auto !important;
        width: 120px !important;
        height: 90px !important;
        padding: 10px !important;
    }
    
    .badge-water {
        left: -5px;
        bottom: 140px;
    }
    
    .badge-gym-stats {
        right: 12px !important;
        left: auto !important;
        top: -20px !important;
        bottom: auto !important;
        width: 120px !important;
        height: 90px !important;
        padding: 10px !important;
    }
    
    .classes-col-left {
        margin-bottom: 25px !important; /* Reduced vertical space */
    }
    
    .classes-col-center {
        flex-direction: row !important; /* Side-by-side rectangles */
        flex-wrap: wrap !important; /* Wrap third badge to next line */
        gap: 12px !important;
        width: 100% !important;
        margin: 15px 0 !important; /* Reduced vertical spacing */
        justify-content: center !important;
    }
    
    .classes-col-center .floating-badge {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex: 1 !important;
        max-width: calc(50% - 6px) !important;
        height: 75px !important; /* Taller rectangular height */
        padding: 12px 14px !important;
        gap: 10px !important;
        transform: none !important;
    }
    
    .classes-col-center .floating-badge .badge-icon-wrapper {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .classes-col-center .floating-badge .badge-info {
        align-items: flex-start !important;
        text-align: left !important;
        margin-top: 0 !important;
        gap: 0 !important;
    }
    
    .classes-col-center .floating-badge .badge-title {
        font-size: 0.6rem !important;
    }
    
    .classes-col-center .floating-badge .badge-subtitle {
        font-size: 0.85rem !important;
    }
    
    .classes-section-title {
        font-size: 1.4rem !important; /* Reduced title size on mobile phone */
        line-height: 1.25;
    }
    
    .class-info-card {
        padding: 16px;
        border-radius: 18px;
    }
    
    .class-card-title {
        font-size: 1.05rem;
    }
    
    .class-card-description {
        font-size: 0.8rem;
    }
    
    /* Features */
    .features {
        padding: 60px 0;
    }
    
    .features-container {
        gap: 50px;
        padding: 0 16px;
    }
    
    .features-row {
        gap: 30px;
    }
    
    .feature-section-title {
        font-size: 1.6rem;
    }
    
    .feature-watermark {
        font-size: 3.5rem;
        top: -8px;
    }
    
    .feature-description {
        font-size: 0.9rem;
    }
    
    .feature-image {
        height: 240px;
    }
    
    .btn-read-more {
        padding: 10px 22px;
        font-size: 0.8rem;
    }
    
    .floating-orange-badge {
        padding: 8px 12px;
        border-radius: 10px;
    }
    
    .orange-badge-number {
        font-size: 1.1rem;
    }
    
    .orange-badge-label {
        font-size: 0.6rem;
    }
    
    .badge-free-features, .badge-free-videos {
        left: -8px;
        bottom: 20px;
    }
    
    /* Trainers */
    .trainers {
        padding: 60px 0;
    }
    
    .trainers-container {
        padding: 0 16px;
    }
    
    .trainers-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 30px;
    }
    
    .trainers-section-title {
        font-size: 1.5rem;
    }
    
    .trainer-profile-card {
        flex: 0 0 80%;
        min-width: auto;
    }
    
    .trainer-profile-image {
        height: 320px;
    }
    
    .trainers-cards-slider {
        padding: 5px 0 20px 0;
    }
    
    .btn-trainers-prev,
    .btn-trainers-next {
        width: 44px;
        height: 44px;
    }
    
    /* Workflow */
    .workflow {
        padding: 50px 0 80px 0;
    }
    
    .workflow-circle-area {
        padding: 0 16px;
        gap: 20px;
    }
    
    .workflow-center-wrapper {
        width: 230px; /* Increased from 180px */
        height: 230px; /* Increased from 180px */
    }
    
    .workflow-blue-badges .badge-dumbbell {
        top: 12% !important;
        right: 12px !important;
    }
    
    .workflow-blue-badges .badge-pulse {
        top: 50% !important;
        right: 2px !important;
    }
    
    .workflow-blue-badges .badge-apple {
        bottom: 12% !important;
        right: 12px !important;
    }
    
    .workflow-blue-icon-circle {
        width: 36px;
        height: 36px;
    }
    
    .blue-badge-svg {
        width: 16px;
        height: 16px;
    }
    
    .workflow-card {
        padding: 18px;
        border-radius: 16px;
    }
    
    .workflow-card-title {
        font-size: 1.1rem;
    }
    
    .workflow-card-description {
        font-size: 0.8rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        left: 50% !important;
        right: auto !important;
        top: -14px !important;
        bottom: auto !important;
        transform: translateX(-50%) !important;
    }

    /* Override desktop-specific step number positions for mobile */
    .step-1 .step-number,
    .step-2 .step-number,
    .step-3 .step-number,
    .step-4 .step-number,
    .step-5 .step-number,
    .step-6 .step-number {
        left: 50% !important;
        right: auto !important;
        top: -14px !important;
        bottom: auto !important;
        transform: translateX(-50%) !important;
    }
    
    /* CTA */
    .cta {
        height: auto;
        min-height: auto;
    }
    
    .cta-container {
        padding: 0 16px;
    }
    
    .cta-content {
        padding: 50px 0 30px 0;
        gap: 16px;
    }
    
    .cta-title {
        font-size: 1.7rem;
    }
    
    .cta-description {
        font-size: 0.9rem;
    }
    
    .btn-cta {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
    
    .cta-image-container {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 250px !important; /* Proper height (larger than 150px but not giant) */
        display: block !important;
        margin: 20px auto 0 auto !important;
        overflow: hidden !important;
    }
    
    .cta-image {
        width: 100% !important; /* Full width as requested */
        height: 100% !important;
        object-fit: cover !important; /* Covers full width */
        object-position: center top !important; /* Centers the athletes */
        mix-blend-mode: lighten !important; /* Blends black background out */
        margin: 0 auto !important;
        display: block !important;
        position: static !important;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 30px 0;
    }
    
    .footer-container {
        padding: 0 16px;
        gap: 30px;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-links-col {
        gap: 14px;
    }
}

/* ==========================================================================
   Preloaded Modal Overlay for Custom Embed Form
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 6, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    width: 95%;
    max-width: 600px;
    height: 90vh;
    max-height: 900px;
    background: #101012;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 20px 20px 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(39, 143, 240, 0.15);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.modal-iframe-container {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
