body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 20% 20%, #0f172a, #000);
    color: white;
    overflow-x: hidden;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Glass upgraded */
/* .glass {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s ease;
} */

.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s ease;
}

/* Premium hover */
.glass:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 80px rgba(255,255,255,0.08);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(90deg, #fff, #888);
    /* -webkit-background-clip: text; */
    -webkit-text-fill-color: transparent;
}

/* Glow effect */
.glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent);
    filter: blur(100px);
    z-index: -1;
}

/* Section spacing */
.section {
    max-width: 1200px;
    margin: 120px auto;
    padding: 20px;
}

.glow {
  position: fixed;              /* stays fixed on screen */
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent);
  filter: blur(120px);          /* makes it soft */
  top: -100px;
  left: -100px;
  z-index: -1;                  /* goes behind content */
}

/* Hover Zoom */
#diagram:hover {
  transform: scale(1.03);
}

/* Modal animation */
#modal {
  display: none;
}

#modal.show {
  display: flex;
}

/* Tooltip container */
.tooltip {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 20;
}

/* Dot */
.dot {
  width: 12px;
  height: 12px;
  background: #00ffcc;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ffcc;
  animation: pulse 1.5s infinite;
}

/* Tooltip text */
.tooltip-text {
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: white;
  white-space: nowrap;
  opacity: 0;
  transition: 0.3s;
}

/* Show on hover */
.tooltip:hover .tooltip-text {
  opacity: 1;
}

/* Pulse animation */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

/* Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  filter: blur(2px);
}

/* Typing cursor effect */
.typing::after {
  content: "|";
  animation: blink 5s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}