/* ===== Research Page Hero Banners ===== */
.research-hero {
  position: relative;
  height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

/* ===== Quantum Computing — Orbiting Qubits ===== */
.hero-quantum {
  background: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.08) 0%, var(--bg-card) 70%);
}

.quantum-nucleus {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 30px rgba(108, 99, 255, 0.6), 0 0 60px rgba(108, 99, 255, 0.3);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.quantum-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.quantum-orbit:nth-child(2) { width: 120px; height: 120px; animation: orbitSpin 8s linear infinite; }
.quantum-orbit:nth-child(3) { width: 200px; height: 200px; animation: orbitSpin 12s linear infinite reverse; transform: translate(-50%, -50%) rotateX(60deg); }
.quantum-orbit:nth-child(4) { width: 280px; height: 280px; animation: orbitSpin 16s linear infinite; transform: translate(-50%, -50%) rotateX(75deg) rotateZ(45deg); }

.quantum-orbit::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.8);
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.quantum-orbit:nth-child(3)::after { background: #e94560; box-shadow: 0 0 12px rgba(233, 69, 96, 0.8); width: 6px; height: 6px; top: -3px; }
.quantum-orbit:nth-child(4)::after { background: #f5a623; box-shadow: 0 0 12px rgba(245, 166, 35, 0.8); width: 10px; height: 10px; top: -5px; }

@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Bloch sphere grid lines */
.quantum-grid {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(108, 99, 255, 0.06);
  border-radius: 50%;
}

.quantum-grid::before,
.quantum-grid::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(108, 99, 255, 0.04);
  border-radius: 50%;
}

.quantum-grid::before {
  top: 20%;
  left: 0;
  right: 0;
  bottom: 20%;
}

.quantum-grid::after {
  left: 20%;
  top: 0;
  bottom: 0;
  right: 20%;
}

/* ===== AI — Neural Network ===== */
.hero-ai {
  background: radial-gradient(ellipse at center, rgba(233, 69, 96, 0.06) 0%, var(--bg-card) 70%);
}

.neural-layer {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.neural-layer:nth-child(1) { left: 20%; }
.neural-layer:nth-child(2) { left: 40%; }
.neural-layer:nth-child(3) { left: 60%; }
.neural-layer:nth-child(4) { left: 80%; }

.neuron {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  animation: neuronPulse 3s ease-in-out infinite;
}

.neuron:nth-child(odd) { animation-delay: 0.5s; }
.neuron:nth-child(even) { animation-delay: 1.5s; }

.neural-layer:nth-child(2) .neuron { background: #e94560; }
.neural-layer:nth-child(3) .neuron { background: #f5a623; }
.neural-layer:nth-child(4) .neuron { background: #00c9a7; }

@keyframes neuronPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); box-shadow: none; }
  50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 16px currentColor; }
}

/* Neural connections */
.neural-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.neural-connections line {
  stroke: rgba(108, 99, 255, 0.08);
  stroke-width: 1;
}

.neural-signal {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-light);
  opacity: 0;
  animation: signalTravel 4s ease-in-out infinite;
}

.neural-signal:nth-child(2) { animation-delay: 1s; top: 30%; }
.neural-signal:nth-child(3) { animation-delay: 2s; top: 60%; }
.neural-signal:nth-child(4) { animation-delay: 3s; top: 45%; }

@keyframes signalTravel {
  0% { left: 18%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 82%; opacity: 0; }
}

/* ===== Autonomous — Road Grid ===== */
.hero-autonomous {
  background: radial-gradient(ellipse at center, rgba(0, 201, 167, 0.06) 0%, var(--bg-card) 70%);
}

.road-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.road-h, .road-v {
  position: absolute;
  background: var(--text-secondary);
}

.road-h {
  height: 1px;
  width: 100%;
}

.road-h:nth-child(1) { top: 30%; }
.road-h:nth-child(2) { top: 50%; }
.road-h:nth-child(3) { top: 70%; }

.road-v {
  width: 1px;
  height: 100%;
}

.road-v:nth-child(4) { left: 25%; }
.road-v:nth-child(5) { left: 50%; }
.road-v:nth-child(6) { left: 75%; }

.scan-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00c9a7, transparent);
  opacity: 0.6;
  animation: scanMove 4s ease-in-out infinite;
}

@keyframes scanMove {
  0% { top: 10%; opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { top: 90%; opacity: 0; }
}

.car-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #00c9a7;
  box-shadow: 0 0 12px rgba(0, 201, 167, 0.6);
}

.car-dot:nth-child(1) { animation: carMoveH 6s linear infinite; top: 30%; }
.car-dot:nth-child(2) { animation: carMoveV 8s linear infinite; left: 50%; }
.car-dot:nth-child(3) { animation: carMoveH 5s linear infinite reverse; top: 70%; }

@keyframes carMoveH {
  0% { left: -10px; }
  100% { left: calc(100% + 10px); }
}

@keyframes carMoveV {
  0% { top: -10px; }
  100% { top: calc(100% + 10px); }
}

/* Radar sweep */
.radar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 201, 167, 0.2);
  border-radius: 50%;
}

.radar::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 201, 167, 0.8), transparent);
  transform-origin: left center;
  animation: radarSweep 3s linear infinite;
}

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

/* ===== Security — Shield Pulse ===== */
.hero-security {
  background: radial-gradient(ellipse at center, rgba(233, 69, 96, 0.06) 0%, var(--bg-card) 70%);
}

.shield-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: rgba(233, 69, 96, 0.15);
}

.shield-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(233, 69, 96, 0.1);
  border-radius: 50%;
  animation: shieldPulse 3s ease-out infinite;
}

.shield-ring:nth-child(2) { width: 80px; height: 80px; }
.shield-ring:nth-child(3) { width: 140px; height: 140px; animation-delay: 0.5s; }
.shield-ring:nth-child(4) { width: 200px; height: 200px; animation-delay: 1s; }
.shield-ring:nth-child(5) { width: 260px; height: 260px; animation-delay: 1.5s; }

@keyframes shieldPulse {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.8); border-color: rgba(233, 69, 96, 0.3); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); border-color: rgba(233, 69, 96, 0); }
}

/* Binary rain */
.binary-col {
  position: absolute;
  top: -20px;
  font-family: monospace;
  font-size: 10px;
  color: rgba(233, 69, 96, 0.15);
  line-height: 1.4;
  animation: binaryFall 8s linear infinite;
  white-space: nowrap;
}

.binary-col:nth-child(6) { left: 10%; animation-delay: 0s; }
.binary-col:nth-child(7) { left: 25%; animation-delay: 2s; }
.binary-col:nth-child(8) { left: 40%; animation-delay: 4s; }
.binary-col:nth-child(9) { left: 55%; animation-delay: 1s; }
.binary-col:nth-child(10) { left: 70%; animation-delay: 3s; }
.binary-col:nth-child(11) { left: 85%; animation-delay: 5s; }

@keyframes binaryFall {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(400px); opacity: 0; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .research-hero {
    height: 200px;
    border-radius: 14px;
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .research-hero {
    height: 160px;
    border-radius: 10px;
    margin-bottom: 28px;
  }

  .quantum-nucleus { width: 14px; height: 14px; }
  .quantum-orbit:nth-child(2) { width: 80px; height: 80px; }
  .quantum-orbit:nth-child(3) { width: 140px; height: 140px; }
  .quantum-orbit:nth-child(4) { width: 200px; height: 200px; }

  .shield-icon { font-size: 2.5rem; }
}
