/* ═══════════════════════════════════════════
   NEGS Space Circuit Background
   Logo + aşağı akan elektronik devre ışıkları
   ═══════════════════════════════════════════ */

.space-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #fff;
  overflow: hidden;
}

/* ── Logo: gerçek, orijinal, belirgin ── */
.space-logo {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  max-width: 75vw;
  height: auto;
  opacity: 0;
  transition: opacity 1s ease;
}
.space-logo.loaded {
  opacity: 0.22;
}

/* ── SVG canvas ── */
.circuit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Traces: PCB yolları ── */
.circuit-trace {
  fill: none;
  stroke: rgba(224, 90, 32, 0.25);
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* ── Akan ışık efekti (pulse dot) ── */
.circuit-pulse {
  fill: #e05a20;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(224, 90, 32, 0.8)) drop-shadow(0 0 12px rgba(224, 90, 32, 0.4));
}

/* ── Via (halka) ── */
.circuit-via {
  fill: none;
  stroke: rgba(224, 90, 32, 0.3);
  stroke-width: 1.2;
  opacity: 0;
  transition: opacity 0.4s;
}
.circuit-via.active {
  opacity: 0.5;
}

/* ── Pad (dolu nokta) ── */
.circuit-pad {
  fill: #e05a20;
  opacity: 0;
  transition: opacity 0.4s;
}
.circuit-pad.active {
  opacity: 0.4;
}

/* ── Glow layer ── */
.circuit-glow {
  filter: drop-shadow(0 0 2px rgba(224, 90, 32, 0.15));
}

/* ═══ VARIANTS ═══ */
.space-canvas.subtle .space-logo.loaded { opacity: 0.12; }
.space-canvas.subtle .circuit-trace { stroke: rgba(224, 90, 32, 0.14); }
.space-canvas.subtle .circuit-via.active { opacity: 0.3; }
.space-canvas.subtle .circuit-pad.active { opacity: 0.25; }

.space-canvas.visible .space-logo.loaded { opacity: 0.22; }
.space-canvas.visible .circuit-trace { stroke: rgba(224, 90, 32, 0.25); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .space-logo { width: 240px; top: 8%; }
}

@media (prefers-reduced-motion: reduce) {
  .circuit-pulse { display: none; }
  .circuit-via, .circuit-pad { transition: none; }
}
