/* =========================================================
   DELHI DIAGNOSTICS - ULTRA ATTRACTIVE 3D SPATIAL HERO ENGINE
   ========================================================= */

:root {
    --spatial-depth: 1400px;
    --neon-cyan: #00f0ff;
    --neon-blue: #0284c7;
    --neon-orange: #ff7700;
    --neon-purple: #c084fc;
    --neon-pink: #f472b6;
    --neon-emerald: #34d399;
    --neon-yellow: #fde047;
}

/* 1. Spatial Hero Container */
.spatial-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 560px;
    perspective: var(--spatial-depth);
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
    border-radius: var(--radius-xl);
    overflow: visible;
}

.spatial-stage-box {
    position: relative;
    width: 100%;
    min-height: 560px;
    background: radial-gradient(circle at 50% 30%, #0c3559 0%, #061c33 65%, #020c18 100%);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(0, 240, 255, 0.5);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 240, 255, 0.35), inset 0 0 30px rgba(0, 240, 255, 0.15);
    transform-style: preserve-3d;
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.neon-night-mode .spatial-stage-box {
    background: radial-gradient(circle at 50% 30%, #170d2b 0%, #0c0618 65%, #04020a 100%);
    border-color: rgba(255, 119, 0, 0.6);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 119, 0, 0.4);
}

/* 2. Top HUD Toolbar */
.spatial-hud-toolbar {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.spatial-nav-pills {
    pointer-events: auto;
    display: flex;
    gap: 4px;
    background: rgba(2, 12, 24, 0.9);
    backdrop-filter: blur(14px);
    padding: 4px;
    border-radius: 40px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.spatial-nav-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.spatial-nav-btn.active, .spatial-nav-btn:hover {
    background: linear-gradient(135deg, #0284c7 0%, #00f0ff 100%);
    color: #020c18;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

.spatial-theme-toggle {
    pointer-events: auto;
    background: rgba(2, 12, 24, 0.9);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fde047;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

#spatialParticleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* 3. Multi-View Viewports */
.spatial-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 560px;
    display: none;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    z-index: 10;
    padding: 55px 16px 16px;
}

.spatial-viewport.active {
    display: flex;
    animation: spatialFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes spatialFadeIn {
    0% { opacity: 0; transform: scale(0.92) translateZ(-60px); }
    100% { opacity: 1; transform: scale(1) translateZ(0); }
}

/* =========================================================
   ULTRA-ATTRACTIVE 3D CYBER-MEDICAL HUMAN ANATOMY SCANNER
   ========================================================= */
.anatomy-scanner-hero-grid {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 18px;
    width: 100%;
    max-width: 540px;
    align-items: center;
    transform-style: preserve-3d;
}

/* Cybernetic Hologram Stage for Body */
.hologram-body-chamber {
    position: relative;
    width: 210px;
    height: 440px;
    background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.18) 0%, rgba(2, 12, 24, 0.7) 75%);
    border-radius: var(--radius-xl);
    border: 1.5px solid rgba(0, 240, 255, 0.45);
    box-shadow: inset 0 0 35px rgba(0, 240, 255, 0.25), 0 0 25px rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    overflow: hidden;
}

/* Dynamic Laser Scanning Beam */
.laser-scan-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #00f0ff 30%, #ffffff 50%, #00f0ff 70%, transparent 100%);
    box-shadow: 0 0 15px #00f0ff, 0 0 25px rgba(0, 240, 255, 0.8);
    z-index: 20;
    pointer-events: none;
    animation: laserSweep 3s ease-in-out infinite alternate;
}

@keyframes laserSweep {
    0% { top: 8%; opacity: 0.9; }
    100% { top: 90%; opacity: 0.9; }
}

/* Circular HUD Radar Grid */
.radar-grid-rings {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 50% 50%, transparent 20%, rgba(0, 240, 255, 0.05) 21%, transparent 22%),
        radial-gradient(circle at 50% 50%, transparent 40%, rgba(0, 240, 255, 0.05) 41%, transparent 42%),
        radial-gradient(circle at 50% 50%, transparent 60%, rgba(0, 240, 255, 0.05) 61%, transparent 62%),
        radial-gradient(circle at 50% 50%, transparent 80%, rgba(0, 240, 255, 0.05) 81%, transparent 82%);
    pointer-events: none;
    z-index: 2;
}

/* Futuristic Detailed Human Body SVG */
.body-svg-detailed {
    width: 170px;
    height: 400px;
    z-index: 10;
    filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.7));
}

/* Glowing Interactive Anatomical Hotspot Nodes */
.organ-node-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 60;
    pointer-events: auto;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.organ-pulse-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 10%, #00f0ff 60%, #0284c7 100%);
    border: 2.5px solid #ffffff;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.95), 0 0 30px rgba(0, 240, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #020c18;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.organ-wave-ring {
    position: absolute;
    inset: -8px;
    border: 2px solid #00f0ff;
    border-radius: 50%;
    animation: organPulse 1.8s infinite;
}

@keyframes organPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.1); opacity: 0; }
}

.organ-node-pin:hover .organ-pulse-dot,
.organ-node-pin.active .organ-pulse-dot {
    transform: scale(1.35) rotate(12deg);
    box-shadow: 0 0 25px #ffffff, 0 0 40px rgba(0, 240, 255, 1);
    border-color: #ffffff;
    color: #ffffff;
}

/* Exact Coordinates for 440px Body Height */
.node-brain { top: 48px; left: 50%; }
.node-heart { top: 140px; left: 53%; }
.node-breast { top: 158px; left: 34%; }
.node-liver { top: 188px; left: 45%; }
.node-fetus { top: 228px; left: 50%; }
.node-joints { top: 328px; left: 42%; }

/* Scanner Interactive Display Screen */
.scanner-display-card {
    background: rgba(3, 17, 34, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 240, 255, 0.6);
    border-radius: var(--radius-xl);
    padding: 22px 20px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 240, 255, 0.3);
    transform: translateZ(40px);
    animation: popCard 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popCard {
    0% { opacity: 0; transform: translateZ(10px) scale(0.95); }
    100% { opacity: 1; transform: translateZ(40px) scale(1); }
}

.scanner-badge-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* Quick Organ Selector Buttons under HUD */
.hero-organ-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.hero-organ-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #e2e8f0;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hero-organ-pill:hover, .hero-organ-pill.active {
    background: linear-gradient(135deg, #0284c7 0%, #00f0ff 100%);
    color: #020c18;
    font-weight: 800;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
    transform: scale(1.05);
}

/* View 1 Satellites & Stage */
.hologram-stage-3d {
    position: relative;
    width: 320px;
    height: 380px;
    transform-style: preserve-3d;
}

.hologram-pedestal {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) rotateX(65deg);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, rgba(0, 240, 255, 0.05) 55%, transparent 70%);
    border: 2px dashed rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.4), inset 0 0 30px rgba(0, 240, 255, 0.3);
    animation: rotatePedestal 20s linear infinite;
}

@keyframes rotatePedestal {
    0% { transform: translateX(-50%) rotateX(65deg) rotateZ(0deg); }
    100% { transform: translateX(-50%) rotateX(65deg) rotateZ(360deg); }
}

.hologram-card-core {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) translateZ(40px);
    width: 290px;
    height: 340px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.3);
    transform-style: preserve-3d;
}

.hologram-card-core img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.satellite-3d {
    position: absolute;
    padding: 8px 14px;
    border-radius: 30px;
    background: rgba(7, 53, 94, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
    z-index: 25;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.satellite-3d:hover {
    transform: scale(1.12) translateZ(60px);
    border-color: #00f0ff;
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.5);
}

.sat-1 { top: 30px; left: -25px; transform: translateZ(70px); animation: floatSat1 4s ease-in-out infinite; }
.sat-2 { top: 90px; right: -30px; transform: translateZ(85px); animation: floatSat2 4.5s ease-in-out infinite; }
.sat-3 { bottom: 60px; left: -30px; transform: translateZ(60px); animation: floatSat3 5s ease-in-out infinite; }
.sat-4 { bottom: 25px; right: -20px; transform: translateZ(90px); animation: floatSat4 4.2s ease-in-out infinite; }

@keyframes floatSat1 { 0%, 100% { transform: translateZ(70px) translateY(0); } 50% { transform: translateZ(70px) translateY(-8px); } }
@keyframes floatSat2 { 0%, 100% { transform: translateZ(85px) translateY(0); } 50% { transform: translateZ(85px) translateY(8px); } }
@keyframes floatSat3 { 0%, 100% { transform: translateZ(60px) translateY(0); } 50% { transform: translateZ(60px) translateY(6px); } }
@keyframes floatSat4 { 0%, 100% { transform: translateZ(90px) translateY(0); } 50% { transform: translateZ(90px) translateY(-8px); } }

/* Machinery & Doctor 3D Grids */
.machinery-3d-grid, .doctor-3d-hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    max-width: 480px;
    transform-style: preserve-3d;
}

.machine-3d-card, .doctor-3d-card {
    background: rgba(7, 53, 94, 0.88);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(0, 240, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 14px;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transform: translateZ(30px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
    cursor: pointer;
}

.machine-3d-card:hover, .doctor-3d-card:hover {
    transform: translateZ(60px) scale(1.03);
    border-color: #00f0ff;
    box-shadow: 0 16px 40px rgba(0, 240, 255, 0.4);
}

.machine-3d-card img, .doctor-3d-card img {
    width: 100%;
    height: 125px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile Quick Sticky Action Bar */
.mobile-sticky-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(7, 42, 74, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1.5px solid rgba(0, 240, 255, 0.4);
    padding: 10px 12px;
    z-index: 999;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.4);
}

.mobile-actions-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    transition: transform 0.15s ease;
}

.mobile-action-btn.call { background: #0284c7; }
.mobile-action-btn.whatsapp { background: #10b981; }
.mobile-action-btn.home-sample { background: #ea580c; }

@media (max-width: 990px) {
    .mobile-sticky-action-bar { display: block; }
    .anatomy-scanner-hero-grid { grid-template-columns: 1fr; }
    .hologram-body-chamber { width: 100%; max-width: 220px; margin: 0 auto; height: 380px; }
    .body-svg-detailed { height: 340px; }
    .node-brain { top: 40px; }
    .node-heart { top: 120px; }
    .node-breast { top: 135px; }
    .node-liver { top: 160px; }
    .node-fetus { top: 195px; }
    .node-joints { top: 280px; }
    .machinery-3d-grid, .doctor-3d-hub-grid { grid-template-columns: 1fr; }
}

/* 3D Glowing Cursor Follower */
.cursor-glow-3d {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.85) 0%, rgba(0, 210, 255, 0) 70%);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
}

.click-ripple-3d {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #00d2ff;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    animation: clickRippleAnim 0.75s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes clickRippleAnim {
    0% { width: 10px; height: 10px; opacity: 1; border-color: #ff7700; }
    100% { width: 90px; height: 90px; opacity: 0; border-color: #00d2ff; }
}

#threeJsHeroCanvasContainer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 8;
    pointer-events: auto;
}
