/* ============================================================
   ASAMBHAV — EXHIBITION-GRADE SCI-FI UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600&family=Share+Tech+Mono&display=swap');

/* ── CSS Variables ── */
:root {
  --cyan:     #00f5ff;
  --cyan-dim: #00aacc;
  --magenta:  #ff00aa;
  --gold:     #ffd700;
  --bg-glass: rgba(0, 15, 30, 0.88);
  --border:   rgba(0, 245, 255, 0.35);
  --glow-sm:  0 0 8px rgba(0, 245, 255, 0.6);
  --glow-md:  0 0 18px rgba(0, 245, 255, 0.5), 0 0 40px rgba(0, 245, 255, 0.2);
  --glow-lg:  0 0 30px rgba(0, 245, 255, 0.6), 0 0 80px rgba(0, 245, 255, 0.2);
  --font-hud: 'Orbitron', sans-serif;
  --font-body:'Rajdhani', sans-serif;
  --font-mono:'Share Tech Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  overflow: hidden;
  background: #020408;
  font-family: var(--font-body);
  cursor: none; /* custom cursor below */
}

/* ══════════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════════ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  box-shadow: var(--glow-md);
  transition: transform 0.05s;
}
.cursor-ring {
  width: 28px; height: 28px;
  border: 1.5px solid var(--cyan);
  opacity: 0.6;
  transition: transform 0.12s ease, width 0.2s, height 0.2s, opacity 0.2s;
}
body:hover .cursor-ring { opacity: 1; }

/* ══════════════════════════════════════════
   CORNER HUD DECORATIONS
══════════════════════════════════════════ */
.hud-corner {
  position: fixed;
  width: 60px; height: 60px;
  pointer-events: none;
  z-index: 50;
}
.hud-corner::before,
.hud-corner::after {
  content: '';
  position: absolute;
  background: var(--cyan);
  opacity: 0.6;
  box-shadow: var(--glow-sm);
}
.hud-corner::before { width: 100%; height: 2px; }
.hud-corner::after  { width: 2px;  height: 100%; }

.hud-corner.tl { top: 20px; left: 20px; }
.hud-corner.tr { top: 20px; right: 20px; transform: scaleX(-1); }
.hud-corner.bl { bottom: 20px; left: 20px; transform: scaleY(-1); }
.hud-corner.br { bottom: 20px; right: 20px; transform: scale(-1); }

/* ══════════════════════════════════════════
   TOP STATUS BAR
══════════════════════════════════════════ */
#hud-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  background: linear-gradient(180deg, rgba(0,20,40,0.9) 0%, transparent 100%);
  border-bottom: 1px solid rgba(0,245,255,0.15);
  z-index: 40;
  font-family: var(--font-hud);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--cyan-dim);
}
#hud-bar .hud-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--cyan);
  text-shadow: var(--glow-sm);
}
#hud-bar .hud-status {
  display: flex;
  gap: 28px;
  align-items: center;
}
.hud-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  margin-right: 6px;
  animation: blink 2s ease-in-out infinite;
  box-shadow: var(--glow-sm);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ══════════════════════════════════════════
   BOTTOM CONTROL GUIDE
══════════════════════════════════════════ */
#control-guide {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
  align-items: center;
  z-index: 40;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(0,245,255,0.45);
  pointer-events: none;
}
.ctrl-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border: 1px solid rgba(0,245,255,0.4);
  border-radius: 4px;
  color: var(--cyan);
  font-size: 0.7rem;
  margin-right: 5px;
  box-shadow: var(--glow-sm);
}

/* ══════════════════════════════════════════
   INTERACTION PROMPT
══════════════════════════════════════════ */
#interaction-prompt {
  position: fixed;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%) translateY(0px);
  z-index: 40;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 14px;

  /* Glassmorphism HUD panel */
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 28px 12px 20px;
  backdrop-filter: blur(14px);

  font-family: var(--font-hud);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-transform: uppercase;
  text-shadow: var(--glow-sm);
  box-shadow: var(--glow-md), inset 0 0 20px rgba(0,245,255,0.04);

  animation: prompt-float 2.4s ease-in-out infinite;
  transition: opacity 0.3s, transform 0.3s;
}

#interaction-prompt::before {
  content: '[E]';
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255,215,0,0.8);
  border: 1px solid rgba(255,215,0,0.5);
  padding: 2px 8px;
  border-radius: 3px;
}

/* Scanline shimmer inside the prompt */
#interaction-prompt::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,245,255,0.03) 2px,
    rgba(0,245,255,0.03) 4px
  );
  pointer-events: none;
  border-radius: 4px;
}

/* Animated left accent bar */
.prompt-accent {
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--cyan);
  border-radius: 0 2px 2px 0;
  box-shadow: var(--glow-md);
  animation: accent-pulse 1.2s ease-in-out infinite;
}

@keyframes prompt-float {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50%       { transform: translateX(-50%) translateY(-5px); }
}
@keyframes accent-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.6); }
}

/* ══════════════════════════════════════════
   HIDDEN STATE
══════════════════════════════════════════ */
.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(20px) !important;
}
/* Popup-specific hidden (no translateX) */
#product-popup.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
}

/* ══════════════════════════════════════════
   POPUP OVERLAY
══════════════════════════════════════════ */
#product-popup {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  background: rgba(0, 5, 15, 0.75);
  backdrop-filter: blur(6px);
  transition: opacity 0.35s ease;
}

/* ── The Panel ── */
.popup-content {
  position: relative;
  width: 620px;
  max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-dim) transparent;

  background: linear-gradient(135deg,
    rgba(0, 18, 36, 0.97) 0%,
    rgba(0, 8, 20, 0.97) 60%,
    rgba(5, 0, 20, 0.97) 100%
  );
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0;

  box-shadow:
    var(--glow-lg),
    inset 0 0 60px rgba(0, 245, 255, 0.03),
    0 40px 80px rgba(0,0,0,0.8);

  animation: popup-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes popup-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

/* Scanlines overlay */
.popup-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 245, 255, 0.015) 3px,
    rgba(0, 245, 255, 0.015) 6px
  );
  pointer-events: none;
  z-index: 1;
  border-radius: 6px;
}

/* Moving scan line */
.popup-content::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(0,245,255,0.05), transparent);
  animation: scan-line 4s linear infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes scan-line {
  0%   { top: -80px; }
  100% { top: 100%; }
}

/* ── Popup Header Banner ── */
.popup-header {
  position: relative;
  padding: 28px 36px 20px;
  border-bottom: 1px solid rgba(0,245,255,0.15);
  background: linear-gradient(90deg,
    rgba(0,245,255,0.06) 0%,
    transparent 100%
  );
  z-index: 5;
}

.popup-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--magenta);
  text-shadow: 0 0 10px rgba(255,0,170,0.6);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.popup-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
}

#popup-title {
  font-family: var(--font-hud);
  font-size: 1.9rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  line-height: 1.1;
  text-shadow:
    0 0 20px rgba(0,245,255,0.5),
    0 0 60px rgba(0,245,255,0.15);
}

.popup-title-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: var(--glow-sm);
  margin-top: 10px;
}

/* ── Close Button ── */
#close-popup {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--cyan-dim);
  border: 1px solid rgba(0,245,255,0.3);
  border-radius: 3px;
  cursor: pointer;
  background: rgba(0,245,255,0.05);
  transition: all 0.2s;
  z-index: 10;
}
#close-popup:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0,245,255,0.12);
  box-shadow: var(--glow-sm);
}

/* ── Popup Body ── */
.popup-body {
  position: relative;
  padding: 24px 36px 32px;
  z-index: 5;
}

#popup-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(180, 220, 240, 0.85);
  line-height: 1.65;
  margin: 0 0 24px;
  letter-spacing: 0.03em;
}

/* ── Section Labels ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--cyan-dim);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,245,255,0.3), transparent);
}

/* ── Features List ── */
#popup-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#popup-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(200, 230, 245, 0.9);
  letter-spacing: 0.04em;
  line-height: 1.5;
  padding: 10px 14px;
  border-left: 2px solid transparent;
  background: rgba(0,245,255,0.035);
  border-radius: 0 4px 4px 0;
  transition: all 0.2s;
}

#popup-features li::before {
  content: '▸';
  color: var(--cyan);
  text-shadow: var(--glow-sm);
  font-size: 0.75rem;
  margin-top: 2px;
  flex-shrink: 0;
}

#popup-features li:hover {
  border-left-color: var(--cyan);
  background: rgba(0,245,255,0.07);
  color: #fff;
}

/* ── Use Case Block ── */
#popup-usecase {
  margin: 0;
  padding: 14px 18px;
  background: linear-gradient(90deg,
    rgba(255,0,170,0.07) 0%,
    rgba(255,0,170,0.02) 100%
  );
  border: 1px solid rgba(255,0,170,0.2);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,180,230,0.85);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
#popup-usecase strong {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--magenta);
  text-shadow: 0 0 8px rgba(255,0,170,0.5);
  display: block;
  margin-bottom: 5px;
  text-transform: uppercase;
}

/* ── Popup Footer ── */
.popup-footer {
  padding: 14px 36px;
  border-top: 1px solid rgba(0,245,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  position: relative;
}
.popup-footer-id {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(0,245,255,0.3);
  letter-spacing: 0.2em;
}
.popup-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-sm);
  animation: blink 1.5s ease-in-out infinite;
}

/* ══════════════════════════════════════════
   SCROLL UTILITY
══════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--cyan-dim);
  border-radius: 2px;
}