/* ═══════════════════════════════════════════════════════
   TENET5 METAVERSE LAYER — NVIDIA Omniverse Aesthetic
   Holographic UI, volumetric glow, neural network patterns
   LIRIL AI — Powered by NVIDIA RTX 5070 Ti + Intel NPU
   ═══════════════════════════════════════════════════════ */

/* ── NVIDIA Green Accent System ─────────────────────── */
:root {
  --nv-green: #76b900;
  --nv-green-glow: rgba(118, 185, 0, 0.3);
  --nv-green-subtle: rgba(118, 185, 0, 0.08);
  --intel-blue: #0071c5;
  --intel-glow: rgba(0, 113, 197, 0.3);
  --holo-cyan: #00ffd5;
  --holo-glow: rgba(0, 255, 213, 0.15);
  --neural-purple: #b16ced;
  --neural-glow: rgba(177, 108, 237, 0.2);
  --grid-line: rgba(118, 185, 0, 0.06);
}

/* ── Holographic Grid Background ────────────────────── */
.metaverse-grid {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 8s ease-in-out infinite;
  opacity: 0.4;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

/* ── Neural Network Particle Effect ─────────────────── */
.neural-particles {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, var(--nv-green-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, var(--intel-glow) 0%, transparent 50%),
    radial-gradient(circle at 50% 10%, var(--neural-glow) 0%, transparent 40%);
  animation: neuralShift 12s ease-in-out infinite;
}

@keyframes neuralShift {
  0%, 100% { background-position: 0% 0%, 100% 100%, 50% 0%; }
  33% { background-position: 30% 20%, 70% 80%, 60% 10%; }
  66% { background-position: 10% 40%, 90% 60%, 40% 20%; }
}

/* ── Holographic Card Effect ────────────────────────── */
.holo-card {
  background: rgba(10, 15, 25, 0.85);
  border: 1px solid rgba(118, 185, 0, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow:
    0 0 20px rgba(118, 185, 0, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(118, 185, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.holo-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--nv-green-subtle) 60deg,
    transparent 120deg,
    var(--intel-glow) 180deg,
    transparent 240deg,
    var(--neural-glow) 300deg,
    transparent 360deg
  );
  animation: holoRotate 20s linear infinite;
  opacity: 0.3;
}

@keyframes holoRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Scan Line Effect ───────────────────────────────── */
.scan-line {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--nv-green), var(--holo-cyan), transparent);
  z-index: 5;
  pointer-events: none;
  animation: scanDown 6s linear infinite;
  opacity: 0.4;
}

@keyframes scanDown {
  0% { top: -2px; }
  100% { top: 100vh; }
}

/* ── NVIDIA/Intel Power Badge ───────────────────────── */
.power-badge {
  position: fixed;
  bottom: 40px;
  right: 12px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
}

.power-badge .nv-badge {
  background: rgba(118, 185, 0, 0.1);
  border: 1px solid rgba(118, 185, 0, 0.3);
  color: var(--nv-green);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

.power-badge .intel-badge {
  background: rgba(0, 113, 197, 0.1);
  border: 1px solid rgba(0, 113, 197, 0.3);
  color: var(--intel-blue);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

/* ── Glowing Text Effects ───────────────────────────── */
.glow-green {
  color: var(--nv-green);
  text-shadow: 0 0 10px var(--nv-green-glow), 0 0 30px rgba(118, 185, 0, 0.1);
}

.glow-cyan {
  color: var(--holo-cyan);
  text-shadow: 0 0 10px rgba(0, 255, 213, 0.3), 0 0 30px rgba(0, 255, 213, 0.1);
}

.glow-purple {
  color: var(--neural-purple);
  text-shadow: 0 0 10px var(--neural-glow), 0 0 30px rgba(177, 108, 237, 0.1);
}

/* ── Volumetric Number Display ──────────────────────── */
.vol-number {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 900;
  background: linear-gradient(135deg, var(--nv-green), var(--holo-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px var(--nv-green-glow));
}

/* ── Data Stream Animation ──────────────────────────── */
.data-stream {
  position: fixed;
  right: 0;
  top: 0;
  width: 3px;
  height: 100vh;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--nv-green) 20%,
    var(--holo-cyan) 50%,
    var(--neural-purple) 80%,
    transparent 100%
  );
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
  animation: dataFlow 4s linear infinite;
}

@keyframes dataFlow {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ── Responsive — disable heavy effects on mobile ──── */
@media (max-width: 768px) {
  .metaverse-grid { display: none; }
  .neural-particles { display: none; }
  .scan-line { display: none; }
  .data-stream { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .metaverse-grid, .neural-particles, .scan-line, .data-stream { display: none; }
  .holo-card::before { animation: none; }
}
