* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body.hud {
  background: radial-gradient(circle at center, #0a1a1f, #000);
  color: #e8ffff;
  min-height: 100vh;
  overflow: hidden;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,255,255,0.03),
    rgba(0,255,255,0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

.hud-center {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.core {
  width: 220px;
  height: 220px;
  filter: drop-shadow(0 0 25px rgba(0,255,255,0.6));
}


.core span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: cyan;
  animation: spin 4s linear infinite;
}

.core span:nth-child(2) {
  inset: 15px;
  animation-duration: 6s;
}

.core span:nth-child(3) {
  inset: 30px;
  animation-duration: 9s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

h1 {
  letter-spacing: 4px;
}

.ai-input {
  display: flex;
  gap: 10px;
}

.ai-input input {
  background: rgba(255,255,255,0.08);
  border: 1px solid cyan;
  padding: 14px;
  color: white;
  border-radius: 10px;
  width: 220px;
}

.ai-input button {
  background: cyan;
  border: none;
  padding: 14px 22px;
  font-weight: bold;
  cursor: pointer;
}

.web-hud {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 60px auto;
}

.center-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: cyan;
  color: #000;
  padding: 18px;
  border-radius: 50%;
  font-weight: bold;
}

/* 🔥 Enhance AI core presence */
.center-word {
  box-shadow:
    0 0 25px rgba(0,255,255,0.9),
    0 0 60px rgba(0,255,255,0.4);
}

.node {
  position: absolute;
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid cyan;
  cursor: pointer;
  transition: 0.3s;
}

.node:hover,
.node.active {
  background: cyan;
  color: #000;
  box-shadow: 0 0 20px cyan;
}

.top { top: 0; left: 50%; transform: translateX(-50%); }
.left { left: 0; top: 50%; transform: translateY(-50%); }
.bottom { bottom: 0; left: 50%; transform: translateX(-50%); }
.right { right: 0; top: 50%; transform: translateY(-50%); }
.diag { top: 15%; right: 15%; }

/* 🔥 UPDATED INFO PANEL (CLEAR TEXT FIX) */
.info-panel {
  max-width: 900px;
  margin: 24px auto 0 auto;
  padding: 22px 26px;

  background:
    linear-gradient(
      180deg,
      rgba(0, 40, 55, 0.95),
      rgba(0, 20, 30, 0.88)
    );

  border-radius: 18px;
  border-left: 3px solid rgba(0,255,255,0.45);

  line-height: 1.65;              /* better reading */
  font-size: 1.02rem;
  color: #ffffff;

  box-shadow:
    0 0 12px rgba(0,255,255,0.22),
    inset 0 0 6px rgba(0,255,255,0.12);

  /* reduce blur for PNG clarity */
  text-shadow: none;
}

.info-panel::before {
  content: "▌ KNOWLEDGE STREAM";
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: rgba(0,255,255,0.55);
  margin-bottom: 12px;
}

/* Highlight headings & keywords */
.info-panel strong,
.info-panel h2 {
  color: #00ffff;
  letter-spacing: 1px;
  text-shadow:
    0 0 6px rgba(0,255,255,0.6),
    0 0 12px rgba(0,255,255,0.35);
}

.info-panel h3 {
  margin-top: 22px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,255,255,0.25);
}

.info-panel p {
  margin-top: 8px;
}

/* FIX: Initial info text visibility */
.info-panel.idle {
  color: #00ffff;
  font-weight: 600;
  text-align: center;
  font-size: 1.1rem;
  opacity: 1;
  text-shadow:
    0 0 6px rgba(0,255,255,0.6),
    0 0 12px rgba(0,255,255,0.4);
}

footer {
  position: fixed;
  bottom: 10px; /* ⬅ stays BELOW button */
  width: 100%;
  text-align: center;
  opacity: 0.7;
  font-size: 0.85rem;
  color: #9ff;
  z-index: 500; /* lower than button */
  pointer-events: none;
}

.nodes-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.nodes-row .node {
  position: relative;
  padding: 12px 20px;
  border-radius: 20px;
  border: 1px solid cyan;
  background: rgba(0,255,255,0.1);
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
  z-index: 1;
}

.nodes-row .node:hover {
  transform: scale(1.05);
}

.nodes-row .node.active {
  background: cyan;
  color: #000;
  box-shadow: 0 0 25px cyan;
}

/* Optional connecting line from center to each node */
.nodes-row .node::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  width: 2px;
  height: 50px;
  background: cyan;
  transform: translateX(-50%);
  z-index: -1;
}

#downloadBtn {
  position: fixed;
  bottom: 70px; /* balanced */
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 28px;
  background: linear-gradient(45deg, cyan, magenta, yellow, lime);
  background-size: 300% 300%;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.95rem;
  z-index: 1000;
  box-shadow: 0 0 12px rgba(0,255,255,0.7);
  animation: gradientMove 5s ease infinite;
}

#downloadBtn:hover {
  transform: translateX(-50%) scale(1.08);
}

#backBtn {
  margin-top: 10px;
  padding: 10px 22px;
  border: none;
  border-radius: 25px;
  background: #444;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

#backBtn:hover {
  background: #666;
}

@keyframes gradientMove {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  opacity: 0.6;
  font-size: 0.85rem;
  padding-bottom: 5px;

}







