:root {
  --bg-color: hsl(0, 0%, 0%);
  --primary: hsl(180, 100%, 50%);
  --accent: hsl(300, 100%, 50%);
  --text-shadow: 0 0 4px var(--primary);
  --border: 2px solid var(--accent);
  --scanline-color: rgba(0, 255, 255, 0.05);
  --hover-bg: rgba(255, 0, 255, 0.07);
  --card-bg: rgba(0, 255, 255, 0.07);
  --font: "Courier New", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font);
  text-decoration: none;
}

body {
  background: var(--bg-color);
  color: var(--primary);
  text-shadow: var(--text-shadow);
}

/* Header */
header {
  border-bottom: var(--border);
  padding: 15px;
  text-align: center;
  background: #111;
}

.nav-menu a {
  margin: 0 12px;
  color: var(--primary);
  text-decoration: none;
}

.nav-menu a:hover {
  color: var(--accent);
}

.brand {
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent);
  font-weight: bold;
  margin-bottom: 8px;
}

/* Hero */
.hero-panel {
  padding: 120px 25px;
  text-align: center;
}

.glitch-title {
  font-size: 2rem;
  animation: glitch-flicker 2s infinite;
}

.hero-sub {
  color: var(--accent);
  margin-top: 10px;
}

/* Sections */
.section-block {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

.section-title {
  margin-bottom: 20px;
}

/* Grid Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 25px;
}

.data-card {
    display: flex;
    justify-content: center; align-items: center;
  padding: 25px;
  border: var(--border);
  background: var(--card-bg);
  transition: 0.2s;
  color: var(--primary);
}

.data-card:hover {
  background: var(--hover-bg);
  border-color: var(--accent);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: var(--accent);
  border-top: var(--border);
}

/* CRT Scanlines */
.crt-overlay {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    var(--scanline-color) 0px,
    var(--scanline-color) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
}

.cv-hidden {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  color: #0ff;
  padding: 30px;
  border: 2px solid #ff00ff;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 0 30px #0ff;
}

.cv-visible {
  display: block;
  animation: glitch-flicker 0.5s infinite;
}


/* Flicker effect */
@keyframes glitch-flicker {
  0% {opacity: 1;}
  5% {opacity: .4;}
  10% {opacity: 1;}
  50% {opacity: .8;}
  60% {opacity: 1;}
  100% {opacity: .6;}
}
