﻿:root {
  --bg: #0b1020;
  --bg-soft: #131a2f;
  --panel: #161f38;
  --panel-2: #1e2a49;
  --mustard: #d4a017;
  --text: #d4a017;
  --muted: #d4a017;
  --primary: #4cc9f0;
  --primary-2: #3a86ff;
  --danger: #ef476f;
  --success: #d4a017;
  --warning: #d4a017;
  --border: #2a3760;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, #1f2d56 0%, transparent 35%),
    radial-gradient(circle at 85% 10%, #1e3d54 0%, transparent 30%),
    linear-gradient(180deg, #090e1d 0%, #0b1020 40%, #0e1630 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.page-title {
  margin: 18px 0 6px;
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-family: "Georgia", "Times New Roman", serif;
  letter-spacing: 1px;
  color: var(--text);
  text-shadow: 0 0 2px rgba(255, 225, 140, 0.2), 0 0 5px rgba(212, 160, 23, 0.22);
  animation: introGlow 1.8s ease-out 1;
  position: relative;
  z-index: 3;
}

.app-shell {
  position: relative;
  z-index: 2;
  width: min(980px, 92vw);
  margin: 8px auto 40px;
  display: grid;
  gap: 18px;
}

.ece-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.pcb-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 160, 23, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 160, 23, 0.11) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  opacity: 0.32;
  animation: gridPulse 4.5s ease-in-out infinite;
}

.scan-beam {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 24%;
  background: linear-gradient(180deg, rgba(255, 221, 135, 0), rgba(255, 221, 135, 0.2), rgba(255, 221, 135, 0));
  filter: blur(6px);
  animation: beamSweep 8.5s linear infinite;
}

.circuit-diagram {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.diagram-stroke path,
.diagram-stroke line,
.diagram-stroke circle {
  fill: none;
  stroke: rgba(255, 221, 135, 0.75);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14 10;
  animation: traceFlow 6.5s linear infinite;
}

.diagram-stroke text {
  fill: rgba(255, 221, 135, 0.88);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: "Consolas", "Courier New", monospace;
}

.gate-card {
  position: absolute;
  min-width: 80px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 221, 135, 0.6);
  border-radius: 8px;
  background: rgba(212, 160, 23, 0.12);
  color: rgba(255, 221, 135, 0.95);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(212, 160, 23, 0.3);
  animation: gateFloat 4s ease-in-out infinite;
}

.g-nand { top: 10%; right: 8%; animation-delay: 0s; }
.g-nor { top: 45%; left: 4%; animation-delay: 1.2s; }
.g-xor { top: 78%; right: 10%; animation-delay: 2.1s; }

.circuit-line {
  position: absolute;
  background: linear-gradient(90deg, rgba(212, 160, 23, 0.12), rgba(212, 160, 23, 0.5), rgba(212, 160, 23, 0.12));
  filter: drop-shadow(0 0 5px rgba(212, 160, 23, 0.28));
  animation: linePulse 6s ease-in-out infinite;
}

.c-line-1 { top: 12%; left: -10%; width: 55%; height: 2px; animation-delay: 0s; }
.c-line-2 { top: 35%; right: -8%; width: 42%; height: 2px; animation-delay: 1.1s; }
.c-line-3 { top: 58%; left: 8%; width: 46%; height: 2px; animation-delay: 2.2s; }
.c-line-4 { top: 76%; right: 12%; width: 35%; height: 2px; animation-delay: 0.8s; }
.c-line-5 { top: 22%; left: 64%; width: 2px; height: 48%; background: linear-gradient(180deg, rgba(212, 160, 23, 0.05), rgba(212, 160, 23, 0.28), rgba(212, 160, 23, 0.05)); }
.c-line-6 { top: 28%; left: 14%; width: 2px; height: 26%; background: linear-gradient(180deg, rgba(212, 160, 23, 0.1), rgba(212, 160, 23, 0.45), rgba(212, 160, 23, 0.1)); animation-delay: 1.8s; }
.c-line-7 { top: 66%; left: 48%; width: 40%; height: 2px; animation-delay: 2.6s; }

.circuit-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(212, 160, 23, 0.65);
  background: rgba(212, 160, 23, 0.35);
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.35);
  animation: nodeBlink 4.5s ease-in-out infinite;
}

.n-1 { top: 11.2%; left: 40%; animation-delay: 0s; }
.n-2 { top: 34.2%; right: 22%; animation-delay: 1s; }
.n-3 { top: 57.2%; left: 28%; animation-delay: 2s; }
.n-4 { top: 74.8%; right: 44%; animation-delay: 3s; }
.n-5 { top: 20.8%; left: 64%; animation-delay: 0.5s; }
.n-6 { top: 68.2%; left: 64%; animation-delay: 2.6s; }
.n-7 { top: 27.6%; left: 14%; animation-delay: 1.4s; }
.n-8 { top: 65.6%; left: 88%; animation-delay: 2.3s; }

.signal-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 221, 135, 0.95);
  box-shadow: 0 0 10px rgba(255, 221, 135, 0.7);
  animation: signalMove 8s linear infinite;
}

.s-1 { top: 12%; left: -5%; animation-delay: 0s; }
.s-2 { top: 35%; right: -5%; animation-delay: 2.2s; animation-direction: reverse; }
.s-3 { top: 58%; left: 6%; animation-delay: 4.2s; }

.wave-track {
  position: absolute;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.35);
  opacity: 0.65;
  overflow: hidden;
}

.wave-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 221, 135, 0) 0,
      rgba(255, 221, 135, 0) 10px,
      rgba(255, 221, 135, 0.7) 11px,
      rgba(255, 221, 135, 0.7) 14px
    );
  animation: waveFlow 2.8s linear infinite;
}

.w-1 { top: 44%; left: 10%; width: 30%; }
.w-2 { top: 82%; left: 54%; width: 28%; animation-delay: 1.2s; }

.component {
  position: absolute;
  opacity: 0.82;
  animation: compFloat 4.8s ease-in-out infinite;
}

.resistor {
  width: 46px;
  height: 16px;
  border: 1px solid rgba(212, 160, 23, 0.55);
  border-radius: 6px;
  background: rgba(212, 160, 23, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  box-shadow: 0 0 10px rgba(212, 160, 23, 0.2);
}

.resistor span {
  width: 4px;
  height: 9px;
  background: rgba(255, 221, 135, 0.75);
}

.r-1 { top: 17%; right: 12%; animation-delay: 0.3s; }
.r-2 { top: 70%; left: 16%; animation-delay: 1.6s; }

.capacitor {
  width: 30px;
  height: 18px;
  border: 1px solid rgba(212, 160, 23, 0.55);
  border-radius: 5px;
  background: rgba(212, 160, 23, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 0 10px rgba(212, 160, 23, 0.2);
}

.capacitor span {
  width: 2px;
  height: 12px;
  background: rgba(255, 221, 135, 0.82);
}

.c-1 { top: 48%; right: 8%; animation-delay: 0.8s; }
.c-2 { top: 86%; right: 32%; animation-delay: 2.4s; }

.wizard-card,
.results {
  background: linear-gradient(180deg, rgba(22, 31, 56, 0.94), rgba(14, 21, 41, 0.94));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.wizard-card {
  overflow: hidden;
}

.wizard-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.wizard-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.promo-quote {
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(212, 160, 23, 0.45);
  border-radius: 10px;
  background: rgba(212, 160, 23, 0.08);
  text-align: center;
}

.promo-quote-text {
  margin: 0;
  font-style: italic;
  color: var(--text);
}

.promo-quote-author {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.promo-quote-author span {
  font-weight: 700;
}

.progress-wrap {
  margin-top: 16px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--muted);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #0f1730;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #243258;
}

.progress-fill {
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 260ms ease;
}

.wizard-body {
  padding: 20px;
}

.inline-message {
  min-height: 22px;
  color: var(--warning);
  font-size: 0.92rem;
}

.step-panel {
  display: none;
  animation: fadeSlide 260ms ease;
}

.step-panel.is-active {
  display: block;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1730;
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.2);
}

input:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.skills-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-bottom: 10px;
}

.chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(58, 134, 255, 0.18);
  border: 1px solid rgba(58, 134, 255, 0.48);
  font-size: 0.88rem;
}

.chip button {
  border: none;
  background: transparent;
  color: var(--mustard);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  line-height: 1;
}

.chip-none {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.45);
}

.summary-box {
  border: 1px solid var(--border);
  background: rgba(10, 18, 39, 0.75);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}

.summary-box p {
  margin: 7px 0;
  color: var(--mustard);
}

.wizard-footer {
  display: flex;
  gap: 10px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(90deg, #6b4f00, #8a6700);
  color: #fff8e1;
}

.btn-muted {
  background: #1a2648;
  border-color: #2c3d6f;
  color: var(--text);
}

.btn-danger {
  margin-left: auto;
  background: rgba(239, 71, 111, 0.18);
  border-color: rgba(239, 71, 111, 0.6);
  color: var(--mustard);
}

.results {
  padding: 18px;
  display: none;
  animation: fadeSlide 280ms ease;
}

.results.show {
  display: block;
}

.result-header {
  margin-bottom: 12px;
}

.result-header h2 {
  margin: 0;
}

.eligibility {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid;
  font-weight: 600;
}

.eligibility.ok {
  color: var(--mustard);
  background: rgba(6, 214, 160, 0.12);
  border-color: rgba(6, 214, 160, 0.55);
}

.eligibility.nope {
  color: var(--mustard);
  background: rgba(239, 71, 111, 0.12);
  border-color: rgba(239, 71, 111, 0.55);
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.info-card {
  background: rgba(15, 24, 48, 0.75);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.info-card ul {
  margin: 0;
  padding-left: 18px;
}

.info-card li {
  margin: 4px 0;
  color: var(--mustard);
}

.timeline {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid #284074;
}

.timeline-phase {
  margin-bottom: 14px;
  position: relative;
  animation: fadeSlide 260ms ease;
}

.timeline-phase::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(76, 201, 240, 0.2);
}

.timeline-phase h4 {
  margin: 0 0 8px;
}

.timeline-phase ul {
  margin: 0;
  padding-left: 18px;
}

.timeline-phase li {
  margin: 5px 0;
  color: var(--mustard);
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes linePulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

@keyframes nodeBlink {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.3); opacity: 1; }
}

@keyframes signalMove {
  0% { transform: translateX(0); opacity: 0.2; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(120vw); opacity: 0.2; }
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.45; }
}

@keyframes beamSweep {
  0% { transform: translateY(-30%); opacity: 0; }
  12% { opacity: 0.8; }
  88% { opacity: 0.8; }
  100% { transform: translateY(125%); opacity: 0; }
}

@keyframes waveFlow {
  0% { transform: translateX(0); }
  100% { transform: translateX(28px); }
}

@keyframes compFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes traceFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -280; }
}

@keyframes gateFloat {
  0%, 100% { transform: translateY(0); opacity: 0.72; }
  50% { transform: translateY(-6px); opacity: 1; }
}

@keyframes introGlow {
  0% {
    text-shadow: 0 0 0 rgba(212, 160, 23, 0);
  }
  35% {
    text-shadow:
      0 0 4px rgba(255, 225, 140, 0.45),
      0 0 10px rgba(212, 160, 23, 0.5);
  }
  100% {
    text-shadow:
      0 0 1px rgba(255, 225, 140, 0.16),
      0 0 3px rgba(212, 160, 23, 0.22);
  }
}

@media (max-width: 720px) {
  .wizard-footer {
    flex-wrap: wrap;
  }

  .btn-danger {
    margin-left: 0;
  }

  .grid-cards {
    grid-template-columns: 1fr;
  }

  .skills-controls {
    grid-template-columns: 1fr;
  }
}


::placeholder {
  color: var(--mustard);
  opacity: 1;
}

