@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0a0014;
  color: #00ff9f;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  overflow-x: hidden;
}

/* scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    transparent, transparent 2px,
    rgba(0, 0, 0, 0.15) 2px, rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0, 255, 159, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 159, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
}

a { color: #ff00ff; }
a:hover { color: #00ffff; text-shadow: 0 0 10px #00ffff; }

/* ---- header ---- */

.header {
  text-align: center;
  padding: 2rem 1rem;
  border-bottom: 2px dashed #ff00ff;
}

.header h1 {
  font-family: 'Press Start 2P', cursive;
  font-size: 2.5rem;
  color: #ff00ff;
  text-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff, 3px 3px 0 #00ffff;
  animation: glitch 3s infinite;
}

.header .tagline {
  margin-top: 1rem;
  color: #00ffff;
  font-size: 1.4rem;
  letter-spacing: 0.3rem;
}

.marquee-bar {
  background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
  color: #0a0014;
  font-weight: bold;
  font-size: 1.3rem;
  padding: 0.4rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-bar .scroll {
  display: inline-block;
  animation: scroll 20s linear infinite;
}

/* ---- visitor counter ---- */

.visitor-counter {
  text-align: center;
  padding: 0.8rem;
  font-size: 1rem;
  color: #888;
  border-bottom: 1px solid #1a1a2e;
}

.visitor-counter span {
  background: #000;
  border: 1px inset #333;
  color: #0f0;
  padding: 2px 8px;
  font-family: 'VT323', monospace;
}

/* ---- nav ---- */

.nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  flex-wrap: wrap;
  border-bottom: 2px dashed #1a1a2e;
}

.nav a {
  border: 1px solid #ff00ff;
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  color: #00ff9f;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.6rem;
  text-transform: uppercase;
  transition: all 0.2s;
}

.nav a:hover {
  background: #ff00ff;
  color: #0a0014;
  box-shadow: 0 0 15px #ff00ff;
}

/* ---- sections ---- */

.section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  border: 1px solid #1a1a2e;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: linear-gradient(90deg, #ff00ff, #00ffff, #00ff9f);
}

.section h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #333;
}

.section h2.aviation { color: #00ffff; text-shadow: 0 0 10px #00ffff; }
.section h2.evs { color: #00ff9f; text-shadow: 0 0 10px #00ff9f; }
.section h2.electronics { color: #ff00ff; text-shadow: 0 0 10px #ff00ff; }

.section p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.section ul {
  list-style: none;
  padding-left: 1rem;
}

.section ul li::before {
  content: '> ';
  color: #ff00ff;
}

.section ul li {
  padding: 0.3rem 0;
}

/* ---- blink ---- */

.blink {
  animation: blink 1s step-end infinite;
  color: #ffff00;
}

/* ---- divider ---- */

.divider {
  text-align: center;
  padding: 0.5rem;
  color: #333;
  font-size: 0.9rem;
  letter-spacing: 0.5rem;
  overflow: hidden;
}

/* ---- construction banner ---- */

.construction {
  text-align: center;
  padding: 1.5rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  color: #ffff00;
  animation: blink 1.5s step-end infinite;
}

/* ---- footer ---- */

.footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 2px dashed #1a1a2e;
  color: #555;
  font-size: 1rem;
}

.footer .badges {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  border: 1px solid #333;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-family: 'Press Start 2P', cursive;
  color: #888;
  background: #0a0a1a;
}

/* ---- webring ---- */

.webring {
  text-align: center;
  padding: 1rem;
  border-top: 1px dashed #1a1a2e;
  color: #555;
  font-size: 1.1rem;
}

/* ---- animations ---- */

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes scroll {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

@keyframes glitch {
  0%, 94% { text-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff, 3px 3px 0 #00ffff; }
  95% { text-shadow: -3px 0 #ff0000, 3px 0 #00ffff; transform: translate(2px, -1px); }
  96% { text-shadow: 3px 0 #ff0000, -3px 0 #00ffff; transform: translate(-2px, 1px); }
  97% { text-shadow: -3px 0 #ff0000, 3px 0 #00ffff; transform: translate(1px, 2px); }
  98%, 100% { text-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff, 3px 3px 0 #00ffff; transform: translate(0); }
}

/* ---- responsive ---- */

@media (max-width: 600px) {
  .header h1 { font-size: 1.4rem; }
  .section { margin: 1rem; }
  .nav a { font-size: 0.5rem; padding: 0.4rem 0.8rem; }
}
