@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Tajawal:wght@300;400;500;700&display=swap');

/* ==========================================================================
   DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
    --bg-dark: #030914;
    --bg-card: rgba(10, 22, 47, 0.45);
    --bg-glass: rgba(10, 22, 47, 0.65);
    
    /* Brand Colors */
    --color-green-light: #74BD37;
    --color-green-dark: #04982C;
    --color-blue: #083B6F;
    --color-blue-glow: rgba(8, 59, 111, 0.5);
    --color-green-glow: rgba(116, 189, 55, 0.3);
    
    /* Neutral Colors */
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(116, 189, 55, 0.15);
    
    /* Fonts */
    --font-header: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
    
    /* Shadows & Glows */
    --shadow-neon: 0 0 15px var(--color-green-glow);
    --shadow-blue-neon: 0 0 20px var(--color-blue-glow);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-green-light) var(--bg-dark);
}

html {
    scroll-behavior: smooth;
    direction: rtl; /* Arabic Right-to-Left Layout */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-blue), var(--color-green-light));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-green-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 700;
}

/* ==========================================================================
   CINEMATIC BACKGROUND & PRELOADER
   ========================================================================== */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #06112a 0%, #030914 100%);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader-logo {
    width: 180px;
    height: 180px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px var(--color-blue-glow));
    animation: pulseGlow 2s infinite alternate;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-blue), var(--color-green-light));
    position: absolute;
    top: 0;
    right: 0; /* Align right for RTL progress fill */
    transition: width 0.3s ease;
}

@keyframes pulseGlow {
    0% { transform: scale(0.98); filter: drop-shadow(0 0 8px var(--color-blue-glow)); }
    100% { transform: scale(1.02); filter: drop-shadow(0 0 25px var(--color-green-glow)); }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(3, 9, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    transition: var(--transition-smooth);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, var(--color-green-light), var(--color-blue));
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--color-green-light);
}

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

.btn-book-nav {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-green-dark) 100%);
    border: 1px solid var(--color-green-light);
    color: var(--text-white);
    padding: 10px 22px;
    border-radius: 30px;
    font-family: var(--font-header);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-neon);
    transition: var(--transition-smooth);
}

.btn-book-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--color-green-light);
    background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-blue) 100%);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Biotech Clinical Grid paper background for medical themes */
.hero, .interactive-section, #booking {
    background-image: 
        radial-gradient(circle at 50% 50%, transparent 20%, #030914 92%),
        linear-gradient(rgba(116, 189, 55, 0.02) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(116, 189, 55, 0.02) 1.5px, transparent 1.5px);
    background-size: 100% 100%, 35px 35px, 35px 35px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

/* Hero Background Video CSS rules */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12; /* Low opacity as requested */
}
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(3, 9, 20, 0.15) 0%, 
        rgba(3, 9, 20, 0.45) 60%, 
        #030914 100%); /* Smooth gradient fade out in the bottom */
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
}

.hero-badge {
    background: rgba(116, 189, 55, 0.1);
    border: 1px solid var(--color-green-light);
    color: var(--color-green-light);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-family: var(--font-header);
}

.hero-badge span {
    width: 8px;
    height: 8px;
    background-color: var(--color-green-light);
    border-radius: 50%;
    animation: flash 1.5s infinite alternate;
}

@keyframes flash {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.25;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 30%, var(--color-green-light) 70%, var(--color-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 600px;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--color-green-light), var(--color-green-dark));
    color: var(--bg-dark);
    font-family: var(--font-header);
    font-weight: 800;
    border: none;
    padding: 16px 35px;
    border-radius: 35px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-neon);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--color-green-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1.5px solid var(--color-blue);
    font-family: var(--font-header);
    font-weight: 700;
    padding: 15px 32px;
    border-radius: 35px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(8, 59, 111, 0.2);
    border-color: var(--color-green-light);
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--color-green-light);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero-visual {
    position: relative;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.9);
}

/* ==========================================================================
   Holographic Spine Column Console Styles
   ========================================================================== */
.spine-console {
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 25px 20px;
    width: 480px; /* Wider to accommodate both spine column and readout side-by-side */
    box-shadow: var(--shadow-blue-neon), inset 0 0 15px rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    will-change: transform;
    backdrop-filter: blur(20px);
}
.spine-console::before {
    content: '';
    position: absolute;
    top: -2.5px;
    left: -2.5px;
    right: -2.5px;
    bottom: -2.5px;
    background: linear-gradient(135deg, var(--color-blue), transparent, var(--color-green-light));
    z-index: -1;
    border-radius: 25px;
    opacity: 0.45;
    pointer-events: none;
}
/* Laser line for the console */
.spine-console::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-green-light), transparent);
    opacity: 0.35;
    pointer-events: none;
    animation: scanLine 6s linear infinite;
}

/* Spine Column SVG wrapper */
.spine-column-wrap {
    flex: 0 0 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 380px;
    border-left: 1px solid var(--border-color);
    padding-left: 15px;
}
.spine-svg {
    height: 100%;
    width: 100%;
    filter: drop-shadow(0 0 8px rgba(8, 59, 111, 0.3));
}

/* Vertebrae Group SVG shapes */
.vertebra-group {
    cursor: pointer;
    transition: var(--transition-smooth);
}
.vertebra-group rect {
    fill: rgba(8, 59, 111, 0.25);
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 0.8;
    transition: fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
}
.vertebra-group .spine-label {
    fill: var(--text-muted);
    font-family: monospace;
    font-size: 8px;
    opacity: 0;
    transition: opacity 0.3s ease, fill 0.3s ease;
    pointer-events: none;
}
.sacrum-path {
    fill: rgba(8, 59, 111, 0.15);
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 0.8;
}

/* Hover vertebrae states */
.vertebra-group:hover rect {
    fill: rgba(116, 189, 55, 0.45);
    stroke: var(--color-green-light);
    filter: drop-shadow(0 0 5px var(--color-green-light));
}
.vertebra-group:hover .spine-label {
    opacity: 0.7;
    fill: var(--color-green-light);
}

/* Active vertebrae states */
.vertebra-group.active rect {
    fill: var(--color-green-light);
    stroke: #ffffff;
    filter: drop-shadow(0 0 12px var(--color-green-light));
}
.vertebra-group.active .spine-label {
    opacity: 1.0;
    fill: #ffffff;
    font-weight: bold;
}

/* Diagnostic Readout sidebar */
.spine-readout-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 380px;
    justify-content: space-between;
}
.readout-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}
.pulse-scan-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--color-green-light);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-green-light);
    animation: flash 1s infinite alternate;
}
.readout-header h4 {
    font-size: 1.05rem;
    color: #ffffff;
}

.readout-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
    justify-content: center;
    margin-top: 15px;
}
.readout-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.readout-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}
.readout-row span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.readout-row strong {
    font-size: 0.95rem;
    color: #ffffff;
}
.neon-text {
    color: var(--color-green-light) !important;
    text-shadow: 0 0 5px var(--color-green-glow);
}

/* Oscillo Waveform monitor */
.waveform-monitor {
    background: rgba(3, 9, 20, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 90px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Holographic Grid pattern */
.monitor-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(116, 189, 55, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(116, 189, 55, 0.05) 1px, transparent 1px);
    background-size: 15px 15px;
    pointer-events: none;
}
.monitor-svg {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}
.monitor-wave {
    stroke: var(--color-green-light);
    stroke-width: 2.2;
    fill: none;
    filter: drop-shadow(0 0 4px var(--color-green-light));
    animation: waveScroll 2s linear infinite;
    transform-origin: center;
}
@keyframes waveScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-60px); }
}
.frequency-indicator {
    position: absolute;
    bottom: 5px;
    left: 10px; /* Align to the left margin of the monitor */
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--color-green-light);
    z-index: 3;
    background: rgba(3, 9, 20, 0.85);
    padding: 1px 6px;
    border-radius: 4px;
    border: 0.5px solid rgba(116, 189, 55, 0.15);
}

/* Frequency Controller Slider */
.frequency-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}
.frequency-control label {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.freq-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
}
.freq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--color-green-light);
    cursor: pointer;
    box-shadow: 0 0 10px var(--color-green-light);
    transition: transform 0.1s ease;
}
.freq-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Adjustments for smaller screen layouts */
@media (max-width: 768px) {
    .spine-console {
        width: 100%;
        max-width: 420px;
        flex-direction: column;
        height: auto;
        padding: 30px 20px;
    }
    .spine-column-wrap {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        padding-left: 0;
        padding-bottom: 20px;
        height: 250px;
        width: 100%;
        flex: none;
    }
    .spine-readout-card {
        width: 100%;
        height: auto;
        margin-top: 20px;
        gap: 20px;
    }
}

/* Custom Cursor (visible only on hover-capable desktop devices) */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
    
    a, button, select, input, textarea, .anatomical-point, .menu-toggle, .btn-save-notes, .social-icon {
        cursor: none !important;
    }
    
    #custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 999999;
        display: block;
    }
    
    .cursor-dot {
        position: absolute;
        width: 6px;
        height: 6px;
        background-color: var(--color-green-light);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 1000000;
        transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    }
    
    .cursor-ring {
        position: absolute;
        width: 32px;
        height: 32px;
        border: 1.5px solid var(--color-green-light);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 999999;
        transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, transform 0.08s ease-out;
        box-shadow: 0 0 10px rgba(116, 189, 55, 0.25);
    }
    
    /* Hover state expansions */
    body.cursor-hovering .cursor-dot {
        width: 8px;
        height: 8px;
        background-color: #ffffff;
    }
    
    body.cursor-hovering .cursor-ring {
        width: 48px;
        height: 48px;
        border-color: var(--color-green-light);
        border-width: 2px;
        box-shadow: 0 0 20px var(--color-green-glow);
    }
}

.logo-showcase {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.logo-showcase img {
    height: 120px;
}

.doctor-card-info {
    text-align: center;
}

.doctor-card-info h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.doctor-card-info p {
    color: var(--color-green-light);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.contact-quick {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    font-size: 0.9rem;
    text-align: right;
}

.contact-quick-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.contact-quick-item svg {
    color: var(--color-green-light);
    flex-shrink: 0;
}

/* ==========================================================================
   SECTION STANDARD STYLING
   ========================================================================== */
.section-padding {
    padding: 100px 0;
    position: relative;
}

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

.section-subtitle {
    color: var(--color-green-light);
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--color-green-light);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 15px;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.service-card.animation-done {
    transition: var(--transition-smooth);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-green-light));
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 40px rgba(116, 189, 55, 0.08), var(--shadow-blue-neon);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(8, 59, 111, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    border: 1px solid rgba(8, 59, 111, 0.3);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: rgba(116, 189, 55, 0.15);
    border-color: var(--color-green-light);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px rgba(116, 189, 55, 0.2);
}

.service-icon svg {
    width: 38px;
    height: 38px;
    color: var(--color-green-light);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon svg {
    color: var(--text-white);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   ANATOMICAL BODY MAP & CONDITIONS SECTION
   ========================================================================== */
.interactive-section {
    backdrop-filter: blur(5px);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   ECG Heartbeat Divider Styling
   ========================================================================== */
.ecg-divider {
    width: 100%;
    height: 60px;
    background: transparent;
    overflow: hidden;
    position: relative;
    z-index: 10;
    margin-top: -30px;
    margin-bottom: -30px;
}
.ecg-divider svg {
    width: 100%;
    height: 100%;
}
.ecg-track {
    stroke: rgba(116, 189, 55, 0.08);
    stroke-width: 1.5;
    fill: none;
}
.ecg-pulse {
    stroke: var(--color-green-light);
    stroke-width: 2.5;
    fill: none;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: pulseECG 8s linear infinite;
    filter: drop-shadow(0 0 5px var(--color-green-light));
}
@keyframes pulseECG {
    0% { stroke-dashoffset: 1200; }
    100% { stroke-dashoffset: 0; }
}



/* Diagnostic Metrics Progress Bars inside Body Map card */
.diagnostic-metrics {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.metric-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.metric-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}
.metric-label span:last-child {
    color: var(--color-green-light);
    font-family: monospace;
}
.metric-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}
.metric-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-green-light));
    box-shadow: 0 0 10px var(--color-green-glow);
    transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 0%; /* Start at 0% for animation */
}
.metric-bar-fill.blue {
    background: linear-gradient(90deg, var(--color-green-light), var(--color-blue));
    box-shadow: 0 0 10px var(--color-blue-glow);
}

.interactive-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* 3D skeleton mockup SVG container */
.body-map-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 600px;
}

.body-svg {
    height: 100%;
    max-height: 550px;
    filter: drop-shadow(0 0 10px rgba(8, 59, 111, 0.2));
}

.anatomical-point {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.anatomical-point circle {
    fill: var(--color-blue);
    stroke: var(--text-white);
    stroke-width: 1.5;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 5px var(--color-blue-glow));
}

.anatomical-point text {
    fill: var(--text-muted);
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 12px;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

/* Hover & Active points styling */
.anatomical-point:hover circle,
.anatomical-point.active circle {
    fill: var(--color-green-light);
    stroke: var(--color-green-light);
    r: 9;
    filter: drop-shadow(0 0 12px var(--color-green-light));
}

.anatomical-point:hover text,
.anatomical-point.active text {
    fill: var(--color-green-light);
    opacity: 1;
    font-size: 13px;
    font-weight: bold;
}

/* Body parts path overlay glow */
.body-part-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1.5;
    transition: var(--transition-smooth);
}

.body-part-path.highlighted {
    stroke: var(--color-green-light);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 8px var(--color-green-glow));
}

/* Conditions Panel Details */
.conditions-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.conditions-info-box {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.conditions-info-box::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-green-light), transparent);
}

.condition-title-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.condition-zone-icon {
    width: 50px;
    height: 50px;
    background: rgba(116, 189, 55, 0.1);
    border: 1px solid var(--color-green-light);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-green-light);
}

.condition-zone-name {
    font-size: 1.8rem;
    color: #ffffff;
}

.conditions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.conditions-list li {
    position: relative;
    padding-right: 30px;
    font-size: 1.05rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    animation: slideUpFade 0.4s forwards;
}

.conditions-list li::before {
    content: '\2714';
    position: absolute;
    right: 0;
    color: var(--color-green-light);
    font-size: 1rem;
    background: rgba(116, 189, 55, 0.15);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

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

.conditions-panel-hint {
    margin-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-book-condition {
    margin-top: 25px;
    align-self: flex-start;
    padding: 12px 28px;
    font-size: 0.95rem;
}

/* ==========================================================================
   BOOKING & APPOINTMENTS SECTION
   ========================================================================== */
.booking-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--shadow-blue-neon), 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    backdrop-filter: blur(15px);
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.booking-form-wrap h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.booking-form-wrap p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-group label {
    display: block;
    font-family: var(--font-header);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-green-light);
}

.form-control {
    width: 100%;
    background: rgba(3, 9, 20, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 14px 18px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-green-light);
    box-shadow: 0 0 12px rgba(116, 189, 55, 0.2);
    background: rgba(3, 9, 20, 0.9);
}

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

/* Custom dropdown styled */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2374BD37' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 40px;
}

.booking-info-sidebar {
    border-right: 1px solid var(--border-color);
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-contact-card {
    background: rgba(8, 59, 111, 0.1);
    border: 1px solid rgba(8, 59, 111, 0.2);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 25px;
}

.sidebar-contact-card h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.sidebar-list-icon {
    width: 38px;
    height: 38px;
    background: rgba(116, 189, 55, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-green-light);
    flex-shrink: 0;
}

.sidebar-list-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-list-text h5 {
    font-size: 1rem;
    color: var(--text-white);
    font-family: var(--font-body);
    font-weight: 500;
}

.sidebar-hours {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 18px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.sidebar-hours h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.hours-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hours-row span:last-child {
    color: var(--color-green-light);
    font-weight: 600;
}

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

.btn-submit {
    width: 100%;
    padding: 16px;
    justify-content: center;
    font-size: 1.1rem;
}

/* AJAX Form responses container */
#form-message {
    margin-top: 20px;
    padding: 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    display: none;
    text-align: center;
}

#form-message.success {
    background: rgba(4, 152, 44, 0.15);
    border: 1px solid var(--color-green-dark);
    color: #a3ffd0;
    display: block;
}

#form-message.error {
    background: rgba(255, 50, 50, 0.15);
    border: 1px solid #ff3333;
    color: #ffcccc;
    display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #02060f;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
    position: relative;
    z-index: 10;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-info img {
    height: 70px;
    margin-bottom: 20px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 400px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--color-green-light);
    bottom: 0;
    right: 0;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-green-light);
    padding-right: 5px;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-contact-details p {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact-details svg {
    color: var(--color-green-light);
}

.footer-bottom {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--color-green-light);
    border-color: var(--color-green-light);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 10px var(--color-green-light);
}

/* ==========================================================================
   ADMIN LOGIN & DASHBOARD STYLING
   ========================================================================== */
.admin-login-body {
    background: radial-gradient(circle at center, #06112a 0%, #02060f 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.admin-login-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    box-shadow: var(--shadow-blue-neon), 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-header img {
    height: 80px;
    margin-bottom: 15px;
}

.admin-login-header h2 {
    font-size: 1.5rem;
    color: #ffffff;
}

.admin-login-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-dashboard-container {
    width: 95%;
    max-width: 1400px;
    margin: 40px auto;
}

.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 15px 30px;
    border-radius: 18px;
    backdrop-filter: blur(10px);
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-logo img {
    height: 40px;
}

.dashboard-logo h2 {
    font-size: 1.3rem;
    color: #ffffff;
}

.dashboard-logo span {
    background: var(--color-green-light);
    color: var(--bg-dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-logout {
    background: transparent;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-family: var(--font-header);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-logout:hover {
    background: #ff6b6b;
    color: var(--text-white);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 25px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-card-info h5 {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-card-info h2 {
    font-size: 2.2rem;
    color: #ffffff;
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-card.total .stat-card-icon { background: rgba(8, 59, 111, 0.2); color: var(--color-blue); border: 1px solid var(--color-blue); }
.stat-card.pending .stat-card-icon { background: rgba(255, 179, 0, 0.15); color: #ffb300; border: 1px solid #ffb300; }
.stat-card.confirmed .stat-card-icon { background: rgba(116, 189, 55, 0.15); color: var(--color-green-light); border: 1px solid var(--color-green-light); }
.stat-card.completed .stat-card-icon { background: rgba(4, 152, 44, 0.15); color: var(--color-green-dark); border: 1px solid var(--color-green-dark); }

/* Dashboard bookings table panel */
.dashboard-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.panel-title h3 {
    font-size: 1.4rem;
    color: #ffffff;
}

.panel-actions {
    display: flex;
    gap: 15px;
}

.search-input {
    width: 250px;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.bookings-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-bottom: 1.5px solid var(--border-color);
    color: var(--color-green-light);
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.9rem;
}

.bookings-table td {
    padding: 16px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-white);
    font-size: 0.92rem;
    vertical-align: middle;
}

.bookings-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

/* Status pills */
.status-pill {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-pill.pending { background: rgba(255, 179, 0, 0.15); color: #ffd166; border: 1px solid rgba(255, 179, 0, 0.3); }
.status-pill.confirmed { background: rgba(8, 59, 111, 0.2); color: #66b2ff; border: 1px solid rgba(8, 59, 111, 0.4); }
.status-pill.completed { background: rgba(4, 152, 44, 0.15); color: #80ffaa; border: 1px solid rgba(4, 152, 44, 0.3); }
.status-pill.cancelled { background: rgba(255, 50, 50, 0.1); color: #ff9999; border: 1px solid rgba(255, 50, 50, 0.2); }

.action-select-status {
    background: rgba(3, 9, 20, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 5px 10px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.action-select-status:focus {
    border-color: var(--color-green-light);
    outline: none;
}

.notes-textarea {
    width: 100%;
    min-height: 40px;
    max-height: 80px;
    background: rgba(3, 9, 20, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    padding: 6px 10px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    transition: var(--transition-smooth);
    resize: none;
}

.notes-textarea:focus {
    background: rgba(3, 9, 20, 0.8);
    border-color: var(--color-green-light);
    outline: none;
}

.btn-save-notes {
    background: var(--color-blue);
    border: none;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: var(--font-header);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-save-notes:hover {
    background: var(--color-green-light);
    color: var(--bg-dark);
}

.no-records {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .interactive-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .body-map-wrapper {
        height: 500px;
    }
    
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .booking-info-sidebar {
        border-right: none;
        border-top: 1px solid var(--border-color);
        padding-right: 0;
        padding-top: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(3, 9, 20, 0.95);
        backdrop-filter: blur(15px);
        padding: 30px;
        border-bottom: 1px solid var(--border-color);
        gap: 20px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .btn-book-nav {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        height: 380px;
    }
    
    .hero-glow-card {
        width: 100%;
        max-width: 320px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .booking-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
}
