/* Advanced 3D WebGL Hero & Holographic Showcase */
.hero-3d-stage-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #0a2540 0%, #031122 100%);
    box-shadow: 0 30px 70px rgba(7, 53, 94, 0.45), 0 0 40px rgba(0, 180, 216, 0.25);
    border: 1.5px solid rgba(0, 180, 216, 0.4);
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#advanced3dCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
}

#advanced3dCanvas:active {
    cursor: grabbing;
}

.stage-hud-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.hud-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hud-badge-iso {
    background: rgba(7, 53, 94, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 180, 216, 0.5);
    color: #00b4d8;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.3);
}

.hud-badge-iso .live-dot {
    width: 8px;
    height: 8px;
    background: #00a884;
    border-radius: 50%;
    box-shadow: 0 0 8px #00a884;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.hud-mode-controls {
    pointer-events: auto;
    display: flex;
    background: rgba(3, 17, 34, 0.8);
    backdrop-filter: blur(12px);
    padding: 4px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    gap: 4px;
}

.hud-mode-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hud-mode-btn.active, .hud-mode-btn:hover {
    background: var(--bg-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4);
}

.hud-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00b4d8, #00ffcc, #00b4d8, transparent);
    box-shadow: 0 0 15px #00ffcc, 0 0 30px #00b4d8;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hud-scanline.scanning {
    opacity: 1;
    animation: laserScan 2.5s ease-in-out infinite alternate;
}

@keyframes laserScan {
    0% { top: 5%; }
    100% { top: 92%; }
}

.stage-hotspot-pin {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 15;
}

.pin-pulse-core {
    width: 22px;
    height: 22px;
    background: radial-gradient(circle, #00b4d8 30%, #0b4f8a 100%);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.65rem;
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pin-wave-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 32px;
    height: 32px;
    border: 1.5px solid #00b4d8;
    border-radius: 50%;
    animation: pinPulse 2s infinite;
}

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

.stage-hotspot-pin:hover .pin-pulse-core {
    transform: scale(1.3) rotate(15deg);
    background: #00a884;
}

.pin-tooltip-card {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(7, 53, 94, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 180, 216, 0.5);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.78rem;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 180, 216, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    text-align: left;
}

.pin-tooltip-card h5 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: #00b4d8;
    margin-bottom: 3px;
}

.pin-tooltip-card p {
    font-size: 0.72rem;
    color: #e2e8f0;
}

.stage-hotspot-pin:hover .pin-tooltip-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0px);
}

.hud-interactive-hint {
    background: rgba(3, 17, 34, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-interactive-hint i {
    color: #00b4d8;
    animation: dragHint 2s infinite ease-in-out;
}

@keyframes dragHint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}
