/* ---- retro night theme ---- */
:root {
  --bg: #05010f;
  --ink: #e8e6ff;
  --dim: #9a94c9;
  --accent: #7df9ff;
  --pink: #ff7df9;
  --gold: #ffe95c;
  --panel: rgba(16, 10, 46, 0.85);
  --border: #4b3f8f;
}

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

html { scroll-behavior: smooth; }

body {
  background: radial-gradient(ellipse at 50% -20%, #1b0f4a 0%, var(--bg) 60%);
  color: var(--ink);
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.9;
  image-rendering: pixelated;
  overflow-x: hidden;
}

/* canvas starfield behind everything */
#starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
}

/* CRT scanlines */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(0, 0, 0, 0.15) 3px 4px
  );
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--gold); text-shadow: 0 0 8px var(--gold); }

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 5vw;
  background: rgba(5, 1, 15, 0.9);
  border-bottom: 4px solid var(--border);
}

.logo { color: var(--pink); text-shadow: 0 0 10px var(--pink); font-size: 14px; }

nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { font-size: 10px; }

/* ---- hero ---- */
.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 5vw;
}

.boot-line { color: var(--dim); font-size: 10px; margin-bottom: 24px; }

.hero h1 {
  font-size: clamp(24px, 6vw, 48px);
  color: #fff;
  text-shadow:
    4px 4px 0 #37267c,
    0 0 24px var(--accent);
  margin-bottom: 24px;
}

.tagline { color: var(--accent); font-size: clamp(10px, 2vw, 14px); margin-bottom: 40px; }

.cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.btn {
  display: inline-block;
  padding: 14px 22px;
  font-size: 11px;
  color: var(--bg);
  background: var(--gold);
  border: 4px solid #fff;
  box-shadow: 6px 6px 0 #000;
  transition: transform 0.05s steps(1);
}
.btn:hover {
  color: var(--bg);
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 #000;
  text-shadow: none;
}

/* ---- panels ---- */
main { max-width: 1000px; margin: 0 auto; padding: 0 5vw; }

.panel {
  margin: 48px 0;
  padding: 28px;
  background: var(--panel);
  border: 4px solid var(--border);
  box-shadow:
    8px 8px 0 rgba(0, 0, 0, 0.6),
    inset 0 0 30px rgba(75, 63, 143, 0.25);
}

.panel h2 {
  font-size: 16px;
  color: var(--gold);
  text-shadow: 3px 3px 0 #7a5b00;
  margin-bottom: 24px;
  border-bottom: 4px dashed var(--border);
  padding-bottom: 14px;
}

.star { color: var(--pink); animation: twinkle 1.2s steps(2) infinite; }
@keyframes twinkle { 50% { opacity: 0.3; } }

/* gibberish glitch text */
.glitch { color: var(--accent); animation: glitchflick 0.4s steps(2) infinite; }
@keyframes glitchflick { 50% { color: var(--pink); } }

.panel-body { display: flex; gap: 28px; flex-wrap: wrap; }
.panel-text { flex: 1 1 320px; }
.panel-text p { margin-bottom: 14px; font-size: 11px; }
.panel-text strong { color: var(--pink); }

/* profile photo in a retro CRT frame */
.portrait { flex: 0 0 auto; align-self: flex-start; }
.portrait img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 4px solid #fff;
  outline: 4px solid var(--border);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.6), 0 0 24px rgba(125, 249, 255, 0.35);
  filter: contrast(1.1) saturate(1.1);
}
/* faint scan flicker over the photo to match the CRT vibe */
.portrait { position: relative; }
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 180px;
  height: 180px;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0, 0, 0, 0.18) 3px 4px);
  pointer-events: none;
}

/* ---- cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.card {
  padding: 20px;
  background: rgba(5, 1, 15, 0.7);
  border: 4px solid var(--border);
  box-shadow: 5px 5px 0 #000;
  transition: transform 0.05s steps(1);
}
.card:hover { transform: translate(-3px, -3px); border-color: var(--accent); }

.card-icon {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  background: var(--pink);
  color: var(--bg);
  font-size: 12px;
  box-shadow: 3px 3px 0 #000;
}

.card h3 { font-size: 11px; color: var(--accent); margin-bottom: 12px; }
.card p { font-size: 10px; color: var(--dim); line-height: 2; }

/* ---- contact ---- */
.contact-body { display: block; }
.contact-intro { font-size: 11px; margin-bottom: 20px; }

.contact-list { list-style: none; }
.contact-list li {
  font-size: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: rgba(5, 1, 15, 0.7);
  border-left: 4px solid var(--pink);
}
.contact-list .key { color: var(--gold); margin-right: 10px; }
.contact-note { font-size: 9px; color: var(--dim); margin-top: 10px; }

/* ---- footer ---- */
footer {
  margin-top: 64px;
  padding: 32px 5vw 48px;
  text-align: center;
  border-top: 4px solid var(--border);
  background: rgba(5, 1, 15, 0.9);
}
footer p { font-size: 10px; color: var(--dim); margin-bottom: 12px; }
.insert-coin { color: var(--gold); animation: blink 1.4s steps(1) infinite; }

@media (max-width: 600px) {
  body { font-size: 12px; }
  .panel { padding: 18px; }
  .portrait { display: none; }
}
