/* ==========================================================================
   MEDREACH PREMIUM WEB STYLESHEET - DESIGN REFINEMENT
   Healthcare Growth & Authority Partner
   ========================================================================== */

/* 1. Design System & CSS Variables
   ========================================================================== */
:root {
    /* Color Palette */
    --color-dark-navy: #040814;
    --color-med-navy: #090F21;
    --color-blue-dark: #121B33;
    --color-blue-mid: #1E2B4D;
    --color-medical-blue: #0077B6;
    --color-cyan: #00B4D8;
    --color-cyan-glow: rgba(0, 180, 216, 0.45);
    --color-cyan-light: #90E0EF;
    --color-white: #FFFFFF;
    --color-silver: #F1F5F9;
    --color-gray-light: #E2E8F0;
    --color-gray-mid: #94A3B8;
    --color-red-accent: #FF4D52;
    --color-red-glow: rgba(255, 77, 82, 0.35);
    --color-whatsapp: #20C997;
    --color-whatsapp-glow: rgba(32, 201, 151, 0.4);

    /* Fonts */
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    --font-primary: var(--font-en);

    /* Shadows & Glows */
    --shadow-glow-cyan: 0 0 25px var(--color-cyan-glow);
    --shadow-glow-red: 0 0 25px var(--color-red-glow);
    --shadow-glass: 0 10px 40px 0 rgba(0, 0, 0, 0.55);
    --border-glass: 1px solid rgba(255, 255, 255, 0.05);
    --border-glass-glow: 1px solid rgba(0, 180, 216, 0.2);
    
    /* Layout */
    --header-height: 80px;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
}

/* RTL / Arabic Settings Override */
[dir="rtl"] {
    --font-primary: var(--font-ar);
}

/* 2. Global Resets & Base Rules
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-dark-navy);
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark-navy);
    color: var(--color-silver);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.loading-lock {
    overflow: auto;
}

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

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

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-dark-navy);
}
::-webkit-scrollbar-thumb {
    background: var(--color-blue-dark);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

/* Medical Blueprints Overlay Grid */
.medical-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 60px 60px;
    background-image: 
        linear-gradient(to right, rgba(0, 180, 216, 0.012) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 180, 216, 0.012) 1px, transparent 1px);
    pointer-events: none;
    z-index: 1;
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

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

.section-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 24px;
    color: var(--color-white);
    letter-spacing: -0.5px;
}

/* Arabic typography overrides */
[dir="rtl"] .section-title,
[dir="rtl"] .hero-title,
[dir="rtl"] .step-title,
[dir="rtl"] .service-title,
[dir="rtl"] .program-title,
[dir="rtl"] .why-point-title,
[dir="rtl"] .comp-box-title {
    line-height: 1.5;
    letter-spacing: 0;
}

[dir="rtl"] p,
[dir="rtl"] .section-desc,
[dir="rtl"] .hero-subtitle,
[dir="rtl"] .problem-card-desc,
[dir="rtl"] .step-desc,
[dir="rtl"] .service-desc,
[dir="rtl"] .program-desc,
[dir="rtl"] .why-point-desc {
    line-height: 1.75;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-gray-mid);
    font-weight: 400;
    line-height: 1.6;
}

/* 3. Button Styles & Glowing Animations
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-sm {
    padding: 12px 24px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-medical-blue) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.55), var(--shadow-glow-cyan);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--color-cyan);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(32, 201, 151, 0.25);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(32, 201, 151, 0.55), 0 0 25px var(--color-whatsapp-glow);
}

/* Pulsing CTA Buttons */
.pulse-btn {
    animation: ctaPulse 2.5s infinite ease-in-out;
}

.pulse-btn:hover {
    animation-play-state: paused;
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 180, 216, 0.25), 0 0 0 0 rgba(0, 180, 216, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 25px rgba(0, 180, 216, 0.5), 0 0 15px 4px rgba(0, 180, 216, 0.4);
    }
}

/* 4. Glassmorphism Components
   ========================================================================== */
.glass-nav {
    background: rgba(4, 8, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.glass-card {
    background: rgba(18, 27, 51, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-glass);
    border-radius: 20px;
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(0, 180, 216, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), var(--shadow-glow-cyan);
}

/* 5. Header / Navbar
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    background: rgba(4, 8, 20, 0.92);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 44px;
    width: 44px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--color-white);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--color-cyan);
    letter-spacing: 2px;
}

.nav-menu {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray-mid);
    padding: 8px 0;
    position: relative;
}

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

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.lang-switch-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-gray-mid);
}

.lang-switch-btn:hover {
    border-color: var(--color-cyan);
    background: rgba(0, 180, 216, 0.08);
    color: var(--color-white);
}

.lang-text.active {
    color: var(--color-cyan);
    font-weight: 700;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.15);
}

/* Mobile Burger Menu Button */
.burger-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    cursor: pointer;
    z-index: 1001;
}

.burger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.burger-toggle.open .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-toggle.open .burger-bar:nth-child(2) { opacity: 0; }
.burger-toggle.open .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(4, 8, 20, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 999;
    padding: 120px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    box-shadow: -15px 0 35px rgba(0,0,0,0.6);
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .mobile-nav-overlay {
    right: auto;
    left: -100%;
    box-shadow: 15px 0 35px rgba(0,0,0,0.6);
    transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.open { right: 0; }
[dir="rtl"] .mobile-nav-overlay.open { right: auto; left: 0; }

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mobile-nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-silver);
}

.mobile-nav-link:hover {
    color: var(--color-cyan);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--color-cyan), var(--color-cyan-light));
    z-index: 1001;
    width: 0%;
    transition: width 0.1s ease-out;
}

[dir="rtl"] .scroll-progress-bar {
    left: auto;
    right: 0;
}

/* 6. Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(18, 27, 51, 0.25) 0%, rgba(4, 8, 20, 1) 90%), url('../assets/dark-bg.png') center/cover no-repeat;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 85% 45%, rgba(0, 180, 216, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.badge-partner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.15);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-cyan-light);
    letter-spacing: 1.5px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.text-light-weight {
    font-weight: 300;
    color: var(--color-white);
}

.font-extra-bold {
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-mid);
    margin-bottom: 40px;
    max-width: 540px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 50px;
}

/* Agency Metrics Sizing */
.hero-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 32px;
    max-width: 600px;
}

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

.metric-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.1;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--color-gray-mid);
    font-weight: 500;
}

.metric-divider {
    width: 1px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Visual Frame */
.hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Hero Growth Doctor Graphic */
.hero-doctor-container {
    position: relative;
    width: 100%;
    max-width: 660px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    z-index: 2;
}

.hero-doctor-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 95%;
    height: 95%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.14) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    filter: blur(60px);
    animation: pulseGlow 5s ease-in-out infinite alternate;
}

.hero-doctor-img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 119, 182, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
    animation: floatDoctor 6s ease-in-out infinite;
}

.hero-doctor-img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 119, 182, 0.15), 0 10px 25px rgba(0, 0, 0, 0.06);
}

@keyframes floatDoctor {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* 7. Problem Section
   ========================================================================== */
.problem-section {
    padding: 120px 0;
    background-color: var(--color-med-navy);
    position: relative;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 60px;
}

.problem-card {
    background: rgba(255, 77, 82, 0.02);
    border: 1px solid rgba(255, 77, 82, 0.08);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: var(--transition-smooth);
}

.problem-card:hover {
    border-color: var(--color-red-accent);
    box-shadow: 0 15px 35px rgba(255, 77, 82, 0.12), var(--shadow-glow-red);
    transform: translateY(-4px);
}

.card-icon-area {
    font-size: 2rem;
    margin-bottom: 24px;
}

.problem-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}

.problem-card-desc {
    font-size: 0.9rem;
    color: var(--color-gray-mid);
    line-height: 1.6;
}

/* Arabic Emotional Highlight Box */
.arabic-emotional-box {
    margin-top: 80px;
    background: linear-gradient(135deg, rgba(18, 27, 51, 0.5) 0%, rgba(4, 8, 20, 0.8) 100%);
    border: 1px solid rgba(0, 180, 216, 0.1);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow-glass);
}

.ar-quote {
    font-family: var(--font-ar);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.65;
    letter-spacing: 0;
}

.en-quote-sub {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-cyan-light);
    max-width: 700px;
    margin: 0 auto;
}

/* 8. Solution Section
   ========================================================================== */
.solution-section {
    padding: 120px 0;
    background: radial-gradient(circle at 50% 50%, rgba(18, 27, 51, 0.2) 0%, rgba(4, 8, 20, 1) 100%);
}

.solution-timeline {
    position: relative;
    max-width: 1050px;
    margin: 80px auto 0 auto;
    padding-left: 36px;
    display: flow-root;
}

[dir="rtl"] .solution-timeline {
    padding-left: 0;
    padding-right: 36px;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 17px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-cyan) 0%, var(--color-blue-dark) 100%);
    opacity: 0.4;
}

[dir="rtl"] .timeline-line {
    left: auto;
    right: 17px;
}

.timeline-step {
    position: relative;
    margin-bottom: 50px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: -36px;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-dark-navy);
    border: 2px solid var(--color-cyan);
    color: var(--color-cyan-light);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-cyan);
    z-index: 2;
    transform: translateX(-50%);
}

[dir="rtl"] .step-number {
    left: auto;
    right: -36px;
    transform: translateX(50%);
}

.step-content {
    background: rgba(18, 27, 51, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 28px;
    transition: var(--transition-smooth);
}

.timeline-step:hover .step-content {
    background: rgba(18, 27, 51, 0.45);
    border-color: rgba(0, 180, 216, 0.2);
    transform: translateX(6px);
}

[dir="rtl"] .timeline-step:hover .step-content {
    transform: translateX(-6px);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--color-gray-mid);
    line-height: 1.6;
}

/* 9. Services Section
   ========================================================================== */
.services-section {
    padding: 120px 0;
    background-color: var(--color-med-navy);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.service-card {
    background: rgba(18, 27, 51, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-color: rgba(0, 180, 216, 0.25);
    box-shadow: 0 15px 40px rgba(0,0,0,0.45), var(--shadow-glow-cyan);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2rem;
    color: var(--color-cyan);
    margin-bottom: 24px;
}

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--color-gray-mid);
    line-height: 1.6;
}

/* 10. Growth Programs Section
   ========================================================================== */
.programs-section {
    padding: 120px 0;
    background: radial-gradient(circle at 10% 20%, rgba(4, 8, 20, 1) 0%, rgba(18, 27, 51, 0.2) 100%);
}

.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.program-card {
    background: rgba(18, 27, 51, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
}

.program-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 180, 216, 0.25);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow-cyan);
}

.program-card.featured {
    background: linear-gradient(135deg, rgba(18, 27, 51, 0.55) 0%, rgba(9, 15, 33, 0.8) 100%);
    border: 1px solid rgba(0, 180, 216, 0.35);
    box-shadow: 0 10px 40px rgba(0, 180, 216, 0.12);
}

.program-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-gray-mid);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[dir="rtl"] .program-badge {
    right: auto;
    left: 24px;
}

.program-badge.highlighted {
    background: var(--color-cyan);
    color: var(--color-dark-navy);
    border: none;
}

.program-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 18px;
    padding-right: 80px;
}

[dir="rtl"] .program-title {
    padding-right: 0;
    padding-left: 80px;
}

.program-desc {
    font-size: 0.9rem;
    color: var(--color-gray-mid);
    margin-bottom: 28px;
    line-height: 1.6;
    flex-grow: 1;
}

.program-features {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--color-silver);
}

.program-features li i {
    color: var(--color-cyan);
}

/* 11. Our Process Section
   ========================================================================== */
.process-section {
    padding: 120px 0;
    background-color: var(--color-med-navy);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.process-step {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 36px;
    position: relative;
    transition: var(--transition-smooth);
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(0, 180, 216, 0.15);
    transform: translateY(-3px);
}

.process-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(0, 180, 216, 0.06);
    border: 1px solid rgba(0, 180, 216, 0.12);
    color: #0077B6;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.process-step:hover .process-icon {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-medical-blue) 100%);
    border-color: transparent;
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.25);
    transform: scale(1.05);
}

.process-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 180, 216, 0.12);
    position: absolute;
    top: 12px;
    right: 24px;
    line-height: 1;
}

[dir="rtl"] .process-num {
    right: auto;
    left: 24px;
}

.process-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}

.process-desc {
    font-size: 0.9rem;
    color: var(--color-gray-mid);
    line-height: 1.6;
}

/* 12. Why MedReach Section
   ========================================================================== */
.why-us-section {
    padding: 120px 0;
    background-color: var(--color-dark-navy);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.why-us-points {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.why-point {
    display: flex;
    gap: 20px;
}

.why-point-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.15);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.why-point-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
}

.why-point-desc {
    font-size: 0.9rem;
    color: var(--color-gray-mid);
    line-height: 1.6;
}

/* Comparison Box */
.why-us-comparison-box {
    background: rgba(18, 27, 51, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-glass);
}

.comp-box-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 32px;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.comp-col-header {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-silver);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comp-col ul {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comp-col li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.comp-col li i {
    margin-top: 4px;
    flex-shrink: 0;
}

.text-red {
    color: var(--color-red-accent);
}

/* 13. Instagram Profile Mockup Section
   ========================================================================== */
.instagram-section {
    padding: 120px 0;
    background-color: var(--color-med-navy);
}

.instagram-columns-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

@media (min-width: 992px) {
    .instagram-columns-wrapper {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.instagram-profile-box {
    padding: 24px;
    margin-top: 0 !important;
}

/* Actual Feed Preview Card */
.instagram-actual-preview {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: rgba(18, 27, 51, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-glass);
    border-radius: 20px;
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
}

.instagram-actual-preview:hover {
    border-color: rgba(0, 180, 216, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), var(--shadow-glow-cyan);
}

.actual-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.actual-preview-header i {
    font-size: 1.5rem;
}

.actual-preview-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-white);
    margin: 0;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan);
    animation: ctaPulse 1.8s infinite ease-in-out;
}

.actual-preview-desc {
    font-size: 0.85rem;
    color: var(--color-gray-mid);
    margin-bottom: 20px;
    line-height: 1.5;
}

.insta-image-link-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    aspect-ratio: 4 / 5;
    background: #090F21;
}

.insta-feed-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.insta-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 8, 20, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.insta-image-overlay i {
    font-size: 2.5rem;
    color: var(--color-white);
}

.insta-image-overlay span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-white);
}

.insta-image-link-wrapper:hover .insta-image-overlay {
    opacity: 1;
}

.insta-image-link-wrapper:hover .insta-feed-img {
    transform: scale(1.05);
}

.actual-preview-footer {
    margin-top: auto;
}

/* Header layout */
.insta-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.insta-avatar-container {
    flex-shrink: 0;
}

.insta-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.08);
    background-color: var(--color-white);
    padding: 2px;
    object-fit: contain;
}

.insta-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    flex-grow: 1;
    width: 100%;
}

.insta-user-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.insta-username {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.5px;
}

.insta-verified-badge {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.insta-action-buttons {
    display: flex;
    gap: 10px;
}

.insta-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.insta-btn.btn-follow {
    background-color: var(--color-cyan);
    color: var(--color-dark-navy);
}

.insta-btn.btn-follow:hover {
    background-color: var(--color-cyan-light);
}

.insta-btn.btn-message {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.insta-btn.btn-message:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--color-cyan);
}

.insta-stats-row {
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
}

.insta-stats-row span {
    color: var(--color-gray-mid);
}

.insta-bio-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.insta-full-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
}

.insta-category {
    font-size: 0.75rem;
    color: var(--color-gray-mid);
}

.insta-bio-text {
    font-size: 0.85rem;
    color: var(--color-silver);
    line-height: 1.6;
    margin: 8px 0;
}

.insta-bio-location {
    font-size: 0.8rem;
    color: var(--color-cyan-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.insta-bio-link {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tabs */
.insta-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.insta-tab {
    padding: 14px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-gray-mid);
    border-top: 2px solid transparent;
    transform: translateY(-1px);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.insta-tab:hover, .insta-tab.active {
    color: var(--color-white);
}

.insta-tab.active {
    border-top-color: var(--color-white);
}

/* Grid */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.insta-grid-item {
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.insta-item-visual {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px;
    text-align: center;
    position: relative;
}

/* Fallback card layouts styling */
.insta-item-visual.visual-p1 { background: linear-gradient(135deg, #090F21 0%, #0077B6 100%); }
.insta-item-visual.visual-p2 { background: linear-gradient(135deg, #040814 0%, #121B33 100%); }
.insta-item-visual.visual-p3 { background: linear-gradient(135deg, #1C2541 0%, #00B4D8 100%); }
.insta-item-visual.visual-p4 { background: linear-gradient(135deg, #090F21 0%, #FF4D52 100%); }
.insta-item-visual.visual-p5 { background: linear-gradient(135deg, #0F1D3A 0%, #20C997 100%); }
.insta-item-visual.visual-p6 { background: linear-gradient(135deg, #121B33 0%, #3A86C8 100%); }

.insta-grid-item.item-reel::after {
    content: '\f008';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    z-index: 2;
}

[dir="rtl"] .insta-grid-item.item-reel::after {
    right: auto;
    left: 8px;
}

.insta-slide-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.insta-slide-badge {
    font-size: 0.5rem;
    font-weight: 800;
    color: var(--color-cyan-light);
    border: 1px solid var(--color-cyan);
    padding: 1px 5px;
    border-radius: 4px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.insta-slide-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.3;
}

/* Grid overlay hover */
.insta-overlay-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 8, 20, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 3;
}

.insta-grid-item:hover .insta-overlay-hover {
    opacity: 1;
}

.insta-overlay-stat {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Lightbox Modal */
.insta-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(4, 8, 20, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    opacity: 1;
    transition: var(--transition-fast);
}

.insta-modal-overlay.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.insta-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.insta-modal-close:hover {
    color: var(--color-cyan);
}

[dir="rtl"] .insta-modal-close {
    right: auto;
    left: 20px;
}

.insta-modal-box {
    width: 90%;
    max-width: 950px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: instaModalZoom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes instaModalZoom {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.insta-modal-body {
    display: grid;
    grid-template-columns: 1fr;
}

.insta-modal-visual {
    background-color: #020408;
    aspect-ratio: 1/1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.insta-modal-slide-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.insta-modal-details {
    display: flex;
    flex-direction: column;
    background-color: var(--color-med-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    max-height: 480px;
}

.insta-modal-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: var(--color-white);
    object-fit: contain;
}

.modal-profile-info {
    display: flex;
    flex-direction: column;
}

.modal-user-verified {
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-username {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-white);
}

.modal-location {
    font-size: 0.7rem;
    color: var(--color-gray-mid);
}

.insta-modal-scrollable {
    flex-grow: 1;
    padding: 20px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.insta-modal-caption-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-caption-text {
    font-size: 0.85rem;
    color: var(--color-silver);
    line-height: 1.6;
}

.modal-hashtags {
    font-size: 0.8rem;
    color: var(--color-cyan-light), var(--color-cyan);
    font-weight: 600;
}

.insta-modal-comments {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-comment {
    font-size: 0.8rem;
    line-height: 1.4;
}

.comment-user {
    font-weight: 700;
    color: var(--color-white);
    margin-right: 8px;
}

[dir="rtl"] .comment-user {
    margin-right: 0;
    margin-left: 8px;
}

.comment-text {
    color: var(--color-gray-light);
}

.insta-modal-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(4, 8, 20, 0.2);
}

.modal-likes-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-likes-icons {
    display: flex;
    gap: 16px;
    font-size: 1.1rem;
    color: var(--color-silver);
    margin-bottom: 2px;
}

.modal-likes-icons i {
    cursor: pointer;
}

.modal-likes-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-white);
}

.modal-cta-box {
    margin-top: 2px;
}

@media (min-width: 992px) {
    .insta-header {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 60px;
    }
    
    .insta-info-container {
        align-items: flex-start;
        text-align: left;
    }
    
    .insta-user-row {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .insta-bio-row {
        align-items: flex-start;
    }
    
    .insta-modal-body {
        grid-template-columns: 1.15fr 0.85fr;
    }
    
    .insta-modal-details {
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        max-height: none;
        height: 100%;
    }
    
    [dir="rtl"] .insta-modal-details {
        border-left: none;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    [dir="rtl"] .insta-header {
        text-align: right;
    }
    
    [dir="rtl"] .insta-info-container {
        align-items: flex-start;
        text-align: right;
    }
    
    [dir="rtl"] .insta-bio-row {
        align-items: flex-start;
    }
}

/* 15. Final CTA & Digital Diagnosis Form
   ========================================================================== */
.final-cta-section {
    padding: 120px 0;
    background: radial-gradient(circle at 80% 20%, rgba(18, 27, 51, 0.3) 0%, rgba(4, 8, 20, 1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-white);
    margin-bottom: 24px;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--color-gray-mid);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.hl-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.instant-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.glow-whatsapp-effect {
    position: relative;
    overflow: hidden;
}

.glow-whatsapp-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--color-whatsapp-glow) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.5;
    animation: whatsappPulse 3s infinite;
}

@keyframes whatsappPulse {
    0%, 100% { scale: 0.8; opacity: 0.3; }
    50% { scale: 1.2; opacity: 0.6; }
}

/* Contact Form Styles */
.cta-form-container {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.form-header-area {
    text-align: center;
    margin-bottom: 36px;
}

.form-icon {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.form-header-area h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 4px;
}

.form-header-area p {
    font-size: 0.85rem;
    color: var(--color-gray-mid);
}

.diagnosis-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-silver);
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--color-gray-mid);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

[dir="rtl"] .input-icon {
    left: auto;
    right: 16px;
}

.input-wrapper input,
.input-wrapper select,
.diagnosis-form textarea {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: rgba(4, 8, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--color-white);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

[dir="rtl"] .input-wrapper input,
[dir="rtl"] .input-wrapper select {
    padding: 14px 44px 14px 16px;
}

.diagnosis-form textarea {
    padding: 14px 16px;
    resize: vertical;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.diagnosis-form textarea:focus {
    border-color: var(--color-cyan);
    background: rgba(4, 8, 20, 0.8);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.2);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper select:focus + .input-icon {
    color: var(--color-cyan);
}

.input-wrapper select option {
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    padding: 10px;
}

.btn-submit {
    margin-top: 10px;
    position: relative;
}

/* Success Overlay */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 8, 20, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 32px;
    transition: opacity 0.4s ease;
}

.form-success-overlay.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.success-box {
    text-align: center;
    animation: zoomInSuccess 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomInSuccess {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-check-icon {
    font-size: 4rem;
    color: var(--color-cyan);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--color-cyan-glow));
}

.success-box h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 12px;
}

.success-box p {
    font-size: 0.95rem;
    color: var(--color-gray-mid);
    margin-bottom: 24px;
    max-width: 320px;
}

/* Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

.loading-spinner.hidden {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 16. Footer
   ========================================================================== */
.main-footer {
    background-color: var(--color-dark-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--color-white);
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--color-gray-mid);
    line-height: 1.6;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-mid);
    font-size: 0.95rem;
}

.footer-socials a:hover {
    color: var(--color-white);
    background-color: var(--color-cyan);
    border-color: var(--color-cyan);
    transform: translateY(-2px);
}

.footer-links-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 24px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-gray-mid);
}

.footer-links a:hover {
    color: var(--color-cyan);
    padding-inline-start: 4px;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    font-size: 0.9rem;
    color: var(--color-gray-mid);
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact li i {
    color: var(--color-cyan);
    font-size: 0.95rem;
}

.footer-bottom {
    background-color: #02040a;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.01);
}

.footer-bottom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-gray-mid);
}

/* 17. Floating WhatsApp Widget
   ========================================================================== */
.floating-whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(32, 201, 151, 0.4);
    z-index: 998;
    transition: var(--transition-smooth);
}

[dir="rtl"] .floating-whatsapp-widget {
    right: auto;
    left: 30px;
}

.floating-whatsapp-widget::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--color-whatsapp);
    animation: whatsappRadar 2.5s infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes whatsappRadar {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-badge-msg {
    position: absolute;
    right: 66px;
    background: #121B33;
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

[dir="rtl"] .whatsapp-badge-msg {
    right: auto;
    left: 66px;
    transform: translateX(-10px);
}

.floating-whatsapp-widget:hover {
    transform: scale(1.08) translateY(-3px);
    background-color: #23dba5;
}

.floating-whatsapp-widget:hover .whatsapp-badge-msg {
    opacity: 1;
    transform: translateX(0);
}

[dir="rtl"] .floating-whatsapp-widget:hover .whatsapp-badge-msg {
    transform: translateX(0);
}

/* 18. Scroll Reveal Animations
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.scroll-reveal.fade-up {
    transform: translateY(35px);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* 19. Responsive Layout Media Queries
   ========================================================================== */

/* Tablet Portrait (768px and up) */
@media (min-width: 768px) {
    .section-title {
        font-size: 2.75rem;
    }
    
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .insta-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }


    .form-row-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-bottom-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Desktop Medium (992px and up) */
@media (min-width: 992px) {
    .nav-menu {
        display: block;
    }
    
    .burger-toggle {
        display: none;
    }
    
    .hide-mobile {
        display: inline-flex;
    }
    
    .hero-container {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 50px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-us-content {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: start;
    }

    .insta-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .cta-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

/* Large Screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1300px;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 4.25rem;
    }
    
    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .process-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 24px;
    }
    
    .timeline-line {
        left: 50%;
    }
    
    [dir="rtl"] .timeline-line {
        right: 50%;
        left: auto;
    }
    
    .timeline-step {
        width: 50%;
        margin-bottom: 24px;
        clear: both;
    }
    
    .timeline-step:nth-child(even) {
        float: right;
        padding-left: 48px;
    }
    
    [dir="rtl"] .timeline-step:nth-child(even) {
        float: left;
        padding-left: 0;
        padding-right: 48px;
    }
    
    .timeline-step:nth-child(odd) {
        float: left;
        padding-right: 48px;
        text-align: right;
    }
    
    [dir="rtl"] .timeline-step:nth-child(odd) {
        float: right;
        padding-right: 0;
        padding-left: 48px;
        text-align: left;
    }
    
    .timeline-step:nth-child(even) .step-number {
        left: -18px;
    }
    
    [dir="rtl"] .timeline-step:nth-child(even) .step-number {
        right: -18px;
        left: auto;
    }
    
    .timeline-step:nth-child(odd) .step-number {
        right: -54px;
        left: auto;
    }
    
    [dir="rtl"] .timeline-step:nth-child(odd) .step-number {
        left: -54px;
        right: auto;
    }
}

/* 20. Keyframe Animations
   ========================================================================== */
@keyframes drawPulse {
    0% { stroke-dashoffset: 1000; }
    80%, 100% { stroke-dashoffset: 0; }
}

@keyframes moveDot {
    0% { motion-offset: 0%; transform: translate(180px, 100px); opacity: 0; }
    10% { opacity: 1; }
    29% { transform: translate(220px, 30px); }
    30% { transform: translate(230px, 150px); }
    33% { transform: translate(250px, 100px); }
    75% { transform: translate(480px, 140px); }
    77% { transform: translate(495px, 20px); }
    80% { transform: translate(530px, 100px); opacity: 1;}
    90%, 100% { transform: translate(600px, 100px); opacity: 0; }
}

/* 21. Premium Light Theme Overrides (Inspired by light-bg.jpg)
   ========================================================================== */
:root {
    --color-dark-navy: #F3F7FA;
    --color-med-navy: #FFFFFF;
    --color-blue-dark: #EBF2F7;
    --color-blue-mid: #D9E5EE;
    --color-cyan-glow: rgba(0, 180, 216, 0.12);
    --color-cyan-light: #0077B6;
    --color-silver: #121B33; /* Redefined to dark navy for standard body text */
    --shadow-glow-cyan: 0 0 20px rgba(0, 180, 216, 0.2);
    --shadow-glow-red: 0 0 20px rgba(255, 77, 82, 0.18);
    --shadow-glass: 0 10px 30px rgba(9, 15, 33, 0.05);
    --border-glass: 1px solid rgba(0, 119, 182, 0.08);
}

/* Base Body Color adjustment */
body {
    color: #121B33 !important;
}

/* Headings Overrides to dark navy */
.section-title,
.problem-card-title,
.step-title,
.service-title,
.program-title,
.process-name,
.why-point-title,
.comp-box-title,
.user-name,
.cta-title,
.logo-title,
.form-header-area h3,
.success-box h3,
.insta-username,
.insta-full-name,
.comment-user,
.modal-likes-count,
.modal-username,
.modal-caption-text,
.metric-num,
.actual-preview-header h3,
.text-white,
.insta-stats-row strong,
.footer-links-title {
    color: #121B33 !important;
}

/* Active Nav Links Overrides */
.nav-link:hover, .nav-link.active {
    color: #0077B6 !important;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(0, 119, 182, 0.1) !important;
}

/* Background Gradients (Lightened & Inspired by clinical palette) */
.hero-section {
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.75) 0%, rgba(243, 247, 250, 0.95) 90%), url('../assets/light-bg.jpg') center/cover no-repeat !important;
}

.solution-section {
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5) 0%, rgba(243, 247, 250, 1) 100%) !important;
}

.programs-section {
    background: radial-gradient(circle at 10% 20%, rgba(243, 247, 250, 1) 0%, rgba(255, 255, 255, 0.5) 100%) !important;
}

.final-cta-section {
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.5) 0%, rgba(243, 247, 250, 1) 100%) !important;
    border-top: 1px solid rgba(0, 119, 182, 0.08) !important;
}

/* Card Styling overrides to clear light style */
.problem-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(255, 77, 82, 0.15) !important;
    box-shadow: 0 10px 30px rgba(9, 15, 33, 0.05) !important;
}

.step-content {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(0, 119, 182, 0.08) !important;
}

.timeline-step:hover .step-content {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 180, 216, 0.35) !important;
}

.service-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(0, 119, 182, 0.08) !important;
    box-shadow: 0 10px 30px rgba(9, 15, 33, 0.05) !important;
}

.service-card:hover {
    border-color: rgba(0, 180, 216, 0.4) !important;
    box-shadow: 0 15px 40px rgba(9, 15, 33, 0.12), var(--shadow-glow-cyan) !important;
}

.program-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(0, 119, 182, 0.08) !important;
}

.program-card.featured {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%) !important;
    border: 1px solid rgba(0, 180, 216, 0.4) !important;
    box-shadow: 0 15px 40px rgba(0, 180, 216, 0.15), var(--shadow-glow-cyan) !important;
}

.process-step {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(0, 119, 182, 0.08) !important;
}

.why-us-comparison-box {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 119, 182, 0.1) !important;
}

.comp-col-header {
    border-bottom: 1px solid rgba(0, 119, 182, 0.15) !important;
}

.instagram-actual-preview {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 119, 182, 0.08) !important;
}

/* Input Fields and Selects overrides */
.input-wrapper input,
.input-wrapper select,
.diagnosis-form textarea {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 119, 182, 0.15) !important;
    color: #121B33 !important;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.diagnosis-form textarea:focus {
    border-color: var(--color-cyan) !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.2) !important;
}

.input-wrapper select option {
    background-color: #FFFFFF !important;
    color: #121B33 !important;
}

/* Descriptions & Secondary text color */
.section-desc,
.problem-card-desc,
.step-desc,
.service-desc,
.program-desc,
.process-desc,
.why-point-desc,
.footer-desc,
.footer-links a,
.footer-contact li,
.footer-bottom-container,
.insta-stats-row span,
.insta-category,
.insta-tab,
.modal-location,
.insta-bio-text,
.program-features li {
    color: #475569 !important;
}

.logo-subtitle {
    color: var(--color-cyan) !important;
}

/* Buttons overrides */
.btn-secondary {
    background: rgba(0, 0, 0, 0.03) !important;
    color: #121B33 !important;
    border: 1px solid rgba(0, 119, 182, 0.15) !important;
}

.btn-secondary:hover {
    background: rgba(0, 119, 182, 0.08) !important;
    border-color: var(--color-cyan) !important;
}

.lang-divider {
    color: rgba(0, 119, 182, 0.2) !important;
}

.lang-switch-btn {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 119, 182, 0.12) !important;
}

/* Mobile Menu overrides for light design */
.burger-bar {
    background-color: #121B33 !important;
}

.mobile-nav-overlay {
    background: rgba(255, 255, 255, 0.98) !important;
}

.mobile-nav-link {
    color: #121B33 !important;
}

.mobile-nav-link:hover {
    color: var(--color-cyan) !important;
}

/* Phone Mockup Screen After - Force preservation of dark premium look */
.screen-after {
    color: #F1F5F9 !important;
}

.screen-after strong {
    color: #FFFFFF !important;
}

.screen-after .mock-bio p {
    color: #E2E8F0 !important;
}

.screen-after .btn-mock {
    color: #FFFFFF !important;
}

.screen-after .btn-mock.bg-cyan {
    color: #FFFFFF !important;
}

.screen-after .mock-hl-circle {
    color: #94A3B8 !important;
}

.screen-after .grid-after .mock-grid-item {
    color: #FFFFFF !important;
}

.footer-bottom {
    background-color: var(--color-blue-dark) !important;
}

/* Light theme modal comment & border styles */
.comment-text {
    color: #475569 !important;
}

.insta-modal-comments,
.insta-modal-profile,
.insta-modal-footer,
.insta-modal-details {
    border-color: rgba(0, 119, 182, 0.08) !important;
}

.insta-modal-footer {
    background: rgba(0, 119, 182, 0.03) !important;
}

/* Success Overlay Light Theme */
.form-success-overlay {
    background: rgba(243, 247, 250, 0.98) !important;
}

/* Program Badge Light Theme */
.program-badge {
    background: rgba(0, 119, 182, 0.05) !important;
    border: 1px solid rgba(0, 119, 182, 0.12) !important;
    color: #5A6E85 !important;
}

/* Floating Background Medical Icons styles */
.floating-bg-icon {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    color: var(--color-cyan) !important;
    animation: bgFloat 16s ease-in-out infinite alternate;
}

@keyframes bgFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-30px) rotate(15deg);
    }
}

/* Metric Divider color correction */
.metric-divider {
    background-color: rgba(0, 119, 182, 0.15) !important;
}

/* Arabic Emotional Box Light Theme & Blue Text Overrides */
.arabic-emotional-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%) !important;
    border: 1px solid rgba(0, 180, 216, 0.18) !important;
    box-shadow: 0 10px 30px rgba(9, 15, 33, 0.05) !important;
}

.ar-quote {
    color: #0077B6 !important; /* Deep Blue from logo/theme */
}

.en-quote-sub {
    color: #5A6E85 !important; /* Muted slate gray */
}

/* Hero Title text color corrections for light theme */
.text-light-weight,
.hero-title .text-light-weight,
[dir="rtl"] .hero-title .text-light-weight {
    color: #0077B6 !important;
}

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

/* Center the actual preview card when the mockup is removed */
.instagram-actual-preview {
    max-width: 500px;
    margin: 0 auto !important;
}

@media (min-width: 992px) {
    .instagram-columns-wrapper {
        grid-template-columns: 1fr !important;
    }
}

/* Timeline Step 1 Outer Floating Icon Styles */
.step-timeline-icon-outer {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: none; /* Hide on mobile */
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.step-timeline-icon {
    width: 130px;
    height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0, 119, 182, 0.12));
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.95;
}

.timeline-step:hover .step-timeline-icon {
    transform: scale(1.1) rotate(6deg);
}

/* Desktop positioning for empty space */
@media (min-width: 768px) {
    .step-timeline-icon-outer {
        display: flex;
    }
    
    /* LTR: Even steps have card on right, icon on left. Odd steps have card on left, icon on right. */
    .timeline-step:nth-child(even) .step-timeline-icon-outer {
        right: 100%;
        left: auto;
    }
    
    .timeline-step:nth-child(odd) .step-timeline-icon-outer {
        left: 100%;
        right: auto;
    }
    
    /* RTL: Even steps have card on left, icon on right. Odd steps have card on right, icon on left. */
    [dir="rtl"] .timeline-step:nth-child(even) .step-timeline-icon-outer {
        left: 100%;
        right: auto;
    }
    
    [dir="rtl"] .timeline-step:nth-child(odd) .step-timeline-icon-outer {
        right: 100%;
        left: auto;
    }
}



