/* ==========================================================================
   DOCTORS MARKETING COMPANY - DESIGN SYSTEM & 3D VISUALS
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-primary: #00A5A8;
    --color-primary-hover: #00898B;
    --color-primary-glow: rgba(0, 165, 168, 0.35);
    --color-accent-cyan: #00F0FF;
    --color-accent-teal: #10b981;
    
    /* Backgrounds - Dark Theme Sections */
    --bg-dark-deep: #050b14;
    --bg-dark-surface: #0a1322;
    --bg-dark-card: #0f1c30;
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-dark-glow: rgba(0, 165, 168, 0.3);
    --border-highlight: rgba(0, 240, 255, 0.5);
    
    /* Backgrounds - Light Theme Sections */
    --bg-light-surface: #f8fafc;
    --bg-light-card: #ffffff;
    --border-light: rgba(15, 23, 42, 0.08);
    --border-light-glow: rgba(0, 165, 168, 0.2);

    /* Text Colors */
    --text-dark-primary: #ffffff;
    --text-dark-secondary: #94a3b8;
    --text-dark-muted: #64748b;

    --text-light-primary: #0f172a;
    --text-light-secondary: #334155;
    --text-light-muted: #64748b;

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark-deep);
    color: var(--text-dark-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* --------------------------------------------------------------------------
   DESKTOP CURSOR FOLLOWER AURA
   -------------------------------------------------------------------------- */
#dmc-cursor-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 240, 255, 0.4);
    background: rgba(0, 165, 168, 0.04);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.3s ease, 
                border-color 0.3s ease;
    will-change: transform;
}

#dmc-cursor-aura.active {
    width: 58px;
    height: 58px;
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--color-accent-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

@media (hover: none), (prefers-reduced-motion: reduce) {
    #dmc-cursor-aura {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-subtitle::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-primary);
    box-shadow: 0 0 12px var(--color-accent-cyan);
    animation: pulseDot 2s infinite alternate;
}

@keyframes pulseDot {
    0% { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--color-primary) 50%, var(--color-accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-teal {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead-text {
    font-size: 1.125rem;
    color: var(--text-dark-secondary);
    max-width: 650px;
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-padding {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
    position: relative;
}

.section-dark {
    background-color: var(--bg-dark-deep);
    color: var(--text-dark-primary);
}

.section-dark-surface {
    background-color: var(--bg-dark-surface);
    color: var(--text-dark-primary);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.section-light {
    background-color: var(--bg-light-surface);
    color: var(--text-light-primary);
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 4rem auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   REALISTIC MEDICAL PHOTOGRAPHY & 3D IMAGE TREATMENTS
   -------------------------------------------------------------------------- */
.medical-image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 165, 168, 0.18);
    transform-style: preserve-3d;
    perspective: 1200px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.35s ease, 
                border-color 0.35s ease;
    will-change: transform;
}

.medical-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    will-change: transform;
}

.medical-image-frame:hover {
    border-color: var(--color-accent-cyan);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 45px rgba(0, 240, 255, 0.25);
}

.medical-image-frame:hover img {
    transform: scale(1.05);
}

.image-dark-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 11, 20, 0.1) 0%, rgba(5, 11, 20, 0.75) 100%);
    pointer-events: none;
}

.image-glass-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(10, 19, 34, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 240, 255, 0.35);
    padding: 0.85rem 1.35rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #ffffff;
    transform: translateZ(32px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    z-index: 3;
}

.image-glass-badge-top {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 165, 168, 0.25);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.4);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent-cyan);
    transform: translateZ(28px);
    z-index: 3;
}

/* OVERLAPPING SPOTLIGHT COMPOSITION */
.spotlight-composition {
    position: relative;
    width: 100%;
    height: 480px;
    perspective: 1200px;
}

.spotlight-frame-primary {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 380px;
    z-index: 1;
}

.spotlight-frame-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 65%;
    height: 300px;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   SERVICE CARDS (ENRICHED WITH REAL PHOTOGRAPHY)
   -------------------------------------------------------------------------- */
.service-card {
    background: var(--bg-light-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s ease, 
                border-color 0.3s ease;
}

.service-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 20px 45px rgba(0, 165, 168, 0.16), 0 0 20px rgba(0, 240, 255, 0.1);
}

.service-card-img-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0, 165, 168, 0.15);
    transform: translateZ(16px);
}

.service-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-img-wrap img {
    transform: scale(1.08);
}

.service-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 20, 35, 0.5) 100%);
}

.service-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateZ(24px);
}

.service-card-title {
    font-size: 1.3rem;
    color: var(--text-light-primary);
    margin-bottom: 0.75rem;
    transform: translateZ(20px);
}

.service-card-desc {
    color: var(--text-light-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transform: translateZ(12px);
}

.service-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateZ(22px);
    transition: transform 0.25s ease, color 0.25s ease, gap 0.25s ease;
}

.service-card:hover .service-link {
    color: #007e80;
    gap: 0.85rem;
    transform: translateZ(26px) translateX(4px);
}

/* --------------------------------------------------------------------------
   CHALLENGE & AUDIENCE CARDS
   -------------------------------------------------------------------------- */
.challenge-card, .audience-card, .process-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s ease, 
                border-color 0.3s ease;
}

.challenge-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-accent-cyan), var(--color-primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.challenge-card:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 240, 255, 0.15);
}

.challenge-card:hover::before {
    opacity: 1;
}

.challenge-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    background: rgba(0, 165, 168, 0.12);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transform: translateZ(26px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.challenge-card:hover .challenge-icon {
    transform: translateZ(32px) scale(1.08);
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

.challenge-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transform: translateZ(18px);
}

.challenge-desc {
    color: var(--text-dark-secondary);
    font-size: 0.95rem;
    transform: translateZ(10px);
}

.audience-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 2.25rem;
}

.audience-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 165, 168, 0.2);
}

.audience-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    transform: translateZ(15px);
}

/* --------------------------------------------------------------------------
   SECTION C: CONNECTED HEALTHCARE ECOSYSTEM (CLEAN STEP FLOW, NO CANVAS)
   -------------------------------------------------------------------------- */
.ecosystem-container {
    background: var(--bg-dark-surface);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.ecosystem-container:hover {
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 165, 168, 0.15);
}

.ecosystem-flow {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
    position: relative;
}

/* Connecting line behind the steps (desktop only) */
.ecosystem-flow::before {
    content: '';
    position: absolute;
    top: 34px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: repeating-linear-gradient(90deg, rgba(0, 165, 168, 0.4) 0, rgba(0, 165, 168, 0.4) 6px, transparent 6px, transparent 12px);
    z-index: 0;
}

.flow-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
}

.flow-step-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark-glow);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.flow-step:hover .flow-step-icon {
    border-color: var(--color-accent-cyan);
    box-shadow: 0 0 22px rgba(0, 240, 255, 0.25);
    transform: translateY(-3px);
}

.flow-step-num {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--color-accent-cyan);
    font-family: var(--font-heading);
}

.flow-step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark-secondary);
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .ecosystem-flow {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 2.25rem;
    }
    .ecosystem-flow::before {
        display: none;
    }
}

@media (max-width: 560px) {
    .ecosystem-container {
        padding: 2rem 1.25rem;
    }
    .ecosystem-flow {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2rem;
    }
    .flow-step-icon {
        width: 58px;
        height: 58px;
        font-size: 1.35rem;
    }
    .flow-step-label {
        font-size: 0.8rem;
    }
}

/* --------------------------------------------------------------------------
   SECTION F: PROCESS TIMELINE (01 - 05)
   -------------------------------------------------------------------------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 4%;
    width: 92%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(0, 165, 168, 0.2) 0%, 
        rgba(0, 240, 255, 0.6) 50%, 
        rgba(16, 185, 129, 0.4) 100%);
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.process-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2.25rem 1.6rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.process-card:hover {
    box-shadow: 0 18px 40px rgba(0, 165, 168, 0.2);
    border-color: var(--color-primary);
}

.process-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.35;
    line-height: 1;
    margin-bottom: 1rem;
    transform: translateZ(24px);
    transition: all 0.3s ease;
}

.process-card:hover .process-number {
    opacity: 1;
    color: var(--color-primary);
    transform: translateZ(32px) scale(1.08);
    text-shadow: 0 0 16px rgba(0, 165, 168, 0.4);
}

.process-title {
    font-size: 1.15rem;
    color: var(--text-light-primary);
    margin-bottom: 0.5rem;
    transform: translateZ(16px);
}

.process-desc {
    font-size: 0.875rem;
    color: var(--text-light-secondary);
    transform: translateZ(10px);
}

/* --------------------------------------------------------------------------
   BUTTONS & CTAs
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 2.2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s ease, 
                background 0.3s ease;
    will-change: transform;
}

.btn:active {
    transform: scale(0.97) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #007e80 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 165, 168, 0.5), 0 0 15px rgba(0, 240, 255, 0.3);
    color: #ffffff;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dark-primary);
    border: 1px solid var(--border-dark);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(0, 165, 168, 0.12);
    border-color: var(--color-primary);
    color: var(--color-accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 165, 168, 0.2);
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
    padding: 0.75rem 0;
    background: rgba(5, 11, 20, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 165, 168, 0.2);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    transition: transform 0.25s ease;
}

.brand-logo:hover {
    transform: scale(1.02);
}

.brand-logo img {
    height: 74px;
    max-height: 74px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    display: block;
    transition: height 0.3s ease, transform 0.25s ease;
}

.site-header.scrolled .brand-logo img {
    height: 58px;
    max-height: 58px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark-secondary);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.25s ease, transform 0.2s ease;
}

.nav-link:hover {
    color: var(--color-accent-cyan);
    transform: translateY(-1px);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-cyan));
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    transition: transform 0.2s ease;
}

.mobile-toggle:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: var(--bg-dark-surface);
    border-left: 1px solid var(--border-dark);
    padding: 5rem 2rem 2rem 2rem;
    z-index: 1001;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-drawer.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links .nav-link {
    font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   HERO SECTION (FULL-SCREEN CINEMATIC VIDEO BACKGROUND)
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh; /* accounts for mobile browser UI bars */
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-dark-deep);
    padding-top: 6rem; /* clears the fixed transparent header */
}

/* FULL-BLEED MEDIA LAYER: clean fade-in entrance, no tilt/depth (plays once, then text fades in) */
.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-video-viewport {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #050b14;
    z-index: 0;
    opacity: 0;
    transform: scale(1.04);
    animation: heroMediaIntro 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroMediaIntro {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-cinema-vid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 7s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.hero-cinema-vid.active {
    opacity: 1;
    transform: scale(1);
}

/* Gradient + vignette scrim: keeps text readable regardless of how bright the scene is */
.hero-video-scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(5, 11, 20, 0.45) 0%, rgba(5, 11, 20, 0.6) 45%, rgba(5, 11, 20, 0.88) 100%),
        linear-gradient(180deg, rgba(5, 11, 20, 0.7) 0%, rgba(5, 11, 20, 0.35) 32%, rgba(5, 11, 20, 0.55) 62%, rgba(5, 11, 20, 0.92) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ACCESSIBLE STATIC FALLBACK (prefers-reduced-motion) */
.hero-3d-fallback {
    position: absolute;
    inset: 0;
    display: none;
    z-index: 1;
}

.hero-3d-fallback.active {
    display: block;
}

.hero-3d-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FOREGROUND TEXT OVERLAY */
.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 620px;
    text-align: left;
}

.hero-title,
.lead-text,
.hero-badge {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* MANUAL SLIDE NAVIGATION ARROWS (clean corporate slideshow style) */
.hero-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-nav-arrow:hover {
    background: rgba(0, 165, 168, 0.35);
    border-color: var(--color-accent-cyan);
    transform: translateY(-50%) scale(1.06);
}

.hero-nav-arrow svg {
    width: 20px;
    height: 20px;
}

.hero-nav-prev { left: 1.5rem; }
.hero-nav-next { right: 1.5rem; }

@media (max-width: 768px) {
    .hero-nav-arrow {
        width: 40px;
        height: 40px;
    }
    .hero-nav-arrow svg {
        width: 16px;
        height: 16px;
    }
    .hero-nav-prev { left: 0.75rem; }
    .hero-nav-next { right: 0.75rem; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-full);
    background: rgba(10, 19, 34, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.pulse-recording {
    color: #ef4444;
    font-size: 0.85rem;
    animation: pulseRecord 1.4s infinite alternate ease-in-out;
}

@keyframes pulseRecord {
    0% { opacity: 0.4; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1.25); text-shadow: 0 0 8px #ef4444; }
}

.hero-badge:hover {
    background: rgba(0, 165, 168, 0.22);
    border-color: var(--color-accent-cyan);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.hero-cta-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* ENTRANCE TRANSITION: heading, text and CTAs fade + rise in over the video */
.hero-anim {
    opacity: 0;
    transform: translateY(26px);
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--d, 0s);
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-anim {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Shorter variant used on inner pages (About, Services, Contact, Who We Help)
   — same cinematic video + text treatment, but doesn't push all page content below the fold */
.hero-section--page {
    min-height: 62vh;
    min-height: 62svh;
    padding-top: 7.5rem;
    padding-bottom: 3rem;
}

@media (max-width: 640px) {
    .hero-section--page {
        min-height: 56vh;
        min-height: 56svh;
        padding-top: 6.5rem;
    }
}

/* HERO RESPONSIVENESS */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 620px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: 5.25rem;
        padding-bottom: 2.5rem;
    }
    .hero-content {
        padding: 0 0.25rem;
    }
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-cta-group .btn {
        width: 100%;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   CTA BANNER
   -------------------------------------------------------------------------- */
.cta-banner {
    background: linear-gradient(135deg, #0a1728 0%, #030810 100%);
    border: 1px solid var(--border-dark-glow);
    border-radius: var(--radius-lg);
    padding: 4.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 165, 168, 0.18);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.cta-banner:hover {
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 25px 60px rgba(0, 165, 168, 0.25), 0 0 35px rgba(0, 240, 255, 0.15);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(0, 165, 168, 0.28) 0%, transparent 70%);
    pointer-events: none;
    animation: pulseCtaGlow 6s infinite alternate ease-in-out;
}

@keyframes pulseCtaGlow {
    0% { transform: translateX(-50%) scale(0.9); opacity: 0.7; }
    100% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

/* --------------------------------------------------------------------------
   CONTACT FORM
   -------------------------------------------------------------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-box {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    transition: border-color 0.3s ease;
}

.contact-info-box:hover {
    border-color: var(--border-dark-glow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 165, 168, 0.15);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    background: rgba(0, 240, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark-primary);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.9rem 1.25rem;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--text-dark-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-accent-cyan);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-response-msg {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: none;
}

.form-response-msg.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.form-response-msg.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
    background: #03070d;
    border-top: 1px solid var(--border-dark);
    padding-top: 5rem;
    padding-bottom: 2.5rem;
    color: var(--text-dark-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand img {
    height: 52px;
    width: auto;
    margin-bottom: 1.25rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-dark-primary);
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a:hover {
    color: var(--color-accent-cyan);
    transform: translateX(3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .lead-text { margin-left: auto; margin-right: auto; }
    .hero-content .lead-text { margin-left: 0; margin-right: 0; }
    .spotlight-composition { height: 380px; }
}

@media (max-width: 768px) {
    .brand-logo img {
        height: 56px;
        max-height: 56px;
    }
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .challenge-card, .service-card, .audience-card, .process-card, .medical-image-frame {
        transform: none !important;
    }
    .spotlight-composition { height: auto; display: flex; flex-direction: column; gap: 1.5rem; }
    .spotlight-frame-primary, .spotlight-frame-secondary { position: relative; width: 100%; height: 260px; }
}

/* --------------------------------------------------------------------------
   STICKY CONSULTATION CTA (site-wide, all pages)
   Desktop: floating pill fixed to the right side.
   Mobile: full-width bar fixed to the bottom (thumb-friendly, always visible).
   -------------------------------------------------------------------------- */
.sticky-cta-btn {
    position: fixed;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-cyan));
    box-shadow: 0 10px 30px rgba(0, 165, 168, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    /* Desktop: floating side button, vertically centered on the right edge */
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius-full);
}

.sticky-cta-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 14px 36px rgba(0, 165, 168, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.sticky-cta-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.sticky-cta-text {
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .sticky-cta-btn {
        /* Mobile: full-width bar pinned to the bottom, safe-area aware */
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        width: 100%;
        justify-content: center;
        border-radius: 0;
        padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
    }
    .sticky-cta-btn:hover {
        transform: none;
    }
    .sticky-cta-text {
        font-size: 1rem;
    }

    /* Keep page content from being hidden behind the sticky bottom bar */
    body {
        padding-bottom: 64px;
    }
}
