/* ==========================================================================
   IMIGO DIGI AI TECHNOLOGIES — BOOT SEQUENCE & AI TOUR HUD
   Interactive Boot, Hologram AI Guide, Voice Waveform, and Tour Steps
   Theme: Deep Charcoal + Royal Plum (#37003c)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. AI Boot Sequence Overlay
   -------------------------------------------------------------------------- */
#boot-sequence-overlay {
  position: fixed;
  inset: 0;
  background-color: #050507;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#boot-sequence-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 650px;
  width: 90%;
  position: relative;
  z-index: 2;
}

/* Central Glowing Quantum AI Orb */
.quantum-orb-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.quantum-orb-core {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--neon-brand);
  box-shadow: 0 0 40px var(--neon-brand), 0 0 80px rgba(55, 0, 60, 0.8);
  animation: orb-breathe 2.4s ease-in-out infinite;
}

.quantum-orb-ring-1 {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1.5px dashed rgba(217, 70, 239, 0.7);
  animation: spin-slow 10s linear infinite;
}

.quantum-orb-ring-2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(217, 70, 239, 0.4);
  animation: spin-slow 16s linear reverse infinite;
}

.quantum-orb-ring-3 {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 1px dotted rgba(255, 255, 255, 0.15);
  animation: spin-slow 22s linear infinite;
}

@keyframes orb-breathe {
  0%, 100% {
    transform: scale(0.92);
    box-shadow: 0 0 30px var(--neon-brand), 0 0 60px rgba(55, 0, 60, 0.7);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 50px var(--neon-brand), 0 0 100px rgba(55, 0, 60, 0.95);
  }
}

/* Scanning Laser Bar */
.scanning-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--neon-brand) 50%, transparent 100%);
  box-shadow: 0 0 15px var(--neon-brand);
  animation: scan-vertical 2.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan-vertical {
  0% { top: 15%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 85%; opacity: 0; }
}

.boot-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.boot-subtitle {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.3em;
  color: var(--neon-brand);
  margin-bottom: 24px;
}

.boot-diagnostics {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   2. Holographic Female AI Guide Overlay
   -------------------------------------------------------------------------- */
#ai-guide-hologram {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 360px;
  background: rgba(11, 14, 24, 0.92);
  border: 1px solid var(--border-brand);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--neon-brand-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius-md);
  padding: 20px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

#ai-guide-hologram.minimized {
  transform: translateY(calc(100% + 50px));
  opacity: 0;
  pointer-events: none;
}

.hologram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.hologram-agent-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hologram-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--neon-brand);
  background: radial-gradient(circle, rgba(55, 0, 60, 0.6) 0%, rgba(11, 14, 24, 0.9) 70%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hologram-avatar-svg {
  width: 28px;
  height: 28px;
  color: var(--neon-brand);
  animation: float-gentle 3s ease-in-out infinite;
}

.hologram-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
}

.hologram-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--neon-brand);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hologram-wave-visualizer {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.wave-bar {
  width: 3px;
  background: var(--neon-brand);
  border-radius: 2px;
  height: 4px;
  transition: height 0.1s ease;
}

.speaking .wave-bar:nth-child(1) { animation: wave-anim 0.6s ease infinite 0.1s; }
.speaking .wave-bar:nth-child(2) { animation: wave-anim 0.5s ease infinite 0.3s; }
.speaking .wave-bar:nth-child(3) { animation: wave-anim 0.7s ease infinite 0.2s; }
.speaking .wave-bar:nth-child(4) { animation: wave-anim 0.4s ease infinite 0.4s; }
.speaking .wave-bar:nth-child(5) { animation: wave-anim 0.6s ease infinite 0.15s; }

@keyframes wave-anim {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}

.hologram-speech-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #e5e9f4;
  min-height: 68px;
  position: relative;
}

.hologram-speech-box::before {
  content: 'GUIDE AUDIO TRANSCRIPT';
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--neon-brand);
  margin-bottom: 6px;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   3. Guided AI Tour Floating Control Bar
   -------------------------------------------------------------------------- */
#tour-controls-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 16, 26, 0.95);
  border: 1px solid var(--border-brand);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px var(--neon-brand-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 40px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9500;
  transition: all 0.4s ease;
}

#tour-controls-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 40px);
}

.tour-step-info {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-brand);
  white-space: nowrap;
}

.tour-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tour-ctrl-btn:hover {
  background: var(--neon-brand);
  color: #ffffff;
  border-color: var(--neon-brand);
}

.tour-btn-exit {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tour-btn-exit:hover {
  border-color: #ff4757;
  color: #ff4757;
}

/* Tour Focus / Spotlight effect */
.tour-highlight {
  position: relative;
  z-index: 8500 !important;
  box-shadow: 0 0 0 9999px rgba(5, 5, 8, 0.88), 0 0 40px var(--neon-brand-glow) !important;
  border-color: var(--neon-brand-bright) !important;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* --------------------------------------------------------------------------
   4. Cyber Tour Completion Modal
   -------------------------------------------------------------------------- */
.tour-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.tour-modal-backdrop.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tour-modal-card {
  background: #0d101a;
  border: 1.5px solid var(--neon-brand);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 45px var(--neon-brand-soft);
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  padding: 36px 32px;
  text-align: center;
  position: relative;
  transform: scale(1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tour-modal-backdrop.hidden .tour-modal-card {
  transform: scale(0.92);
}

.tour-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--neon-brand-soft);
  border: 1px solid var(--border-brand);
  color: var(--neon-brand);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.tour-modal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.tour-modal-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.tour-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tour-modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 540px) {
  .tour-modal-row {
    grid-template-columns: 1fr;
  }
}

