html { padding: 0; margin: 0;}

@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('../font/start/PressStart2P-Regular.ttf') format('truetype');
}

:root {
  --green: #25d425;
  --bg: #000000;
}

a {color: var(--green);}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--green);
  font-family: 'Press Start 2P', monospace;
  overflow: hidden;
  overflow-y: scroll;
  animation: powerGlow 6s ease-in-out infinite;
}

@keyframes powerGlow {
  0% { filter: brightness(0.95) contrast(1); }
  50% { filter: brightness(1.1) contrast(1.15); }
  100% { filter: brightness(0.95) contrast(1); }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.25) 3px
  );
  pointer-events: none;
  z-index: 2;
  animation: scanDrift 10s linear infinite;
}

@keyframes scanDrift {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0px); }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, transparent 60%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
  z-index: 2;
}

body::before {
  animation: scanDrift 10s linear infinite, signalLoss 12s infinite;
}

@keyframes signalLoss {
  0%, 97%, 100% { opacity: 1; }
  98% { opacity: 0.2; }
  99% { opacity: 0; }
}

.screen {
  padding: 20px;
  min-height: 100vh;
  box-sizing: border-box;
  animation: flicker 0.15s infinite, jitter 0.25s infinite;
  max-width: 600px;
  margin: 0 auto;
}

@keyframes flicker {
  0% { opacity: 0.97; }
  50% { opacity: 1; }
  100% { opacity: 0.98; }
}

@keyframes jitter {
  0% { transform: translate(0px, 0px); }
  25% { transform: translate(0.5px, 0px); }
  50% { transform: translate(-0.5px, 0px); }
  75% { transform: translate(0.3px, 0px); }
  100% { transform: translate(0px, 0px); }
}

.flash {
  position: fixed;
  inset: 0;
  background: #33ff33;
  opacity: 0;
  z-index: 6;
  pointer-events: none;
  animation: flash 0.2s ease;
  animation-delay: 5s;
}

@keyframes flash {
  0% { opacity: 0; }
  50% { opacity: 0.85; }
  100% { opacity: 0; }
}

.boot-overlay {
  position: fixed;
  inset: 0;
  background: black;
  padding: 20px;
  z-index: 5;
  animation: fadeOut 0.8s ease forwards;
  animation-delay: 5.2s;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

.line {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid transparent;
  width: 0;
  animation: typing 1.2s steps(30, end) forwards, blink 1s step-end;
}

.line:nth-child(1) { animation-delay: 0s; }
.line:nth-child(2) { animation-delay: 1.3s; }
.line:nth-child(3) { animation-delay: 2.6s; }
.line:nth-child(4) { animation-delay: 3.9s; }

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: #fff }
}

.menu a {
  display: block;
  margin: 10px 0;
  color: var(--green);
  text-decoration: none;
  transition: 0.2s;
}

.menu a:hover {
  text-decoration: underline;
  color: white;
}

body:has(#about:target) .menu a[href="#about"],
body:has(#contact:target) .menu a[href="#contact"],
body:has(#services:target) .menu a[href="#services"],
body:has(#skills:target) .menu a[href="#skills"],
body:has(#presence:target) .menu a[href="#presence"] {
  color: #ffffff;
  text-shadow: 0 0 8px var(--green);
}

.section {
  display: none;
  margin-top: 20px;
  
  color: #fff;
}

.section:target {
  display: block;
}

.bar {
  border: 2px solid var(--green);
  height: 18px;
  margin: 5px 0 15px;
}

.fill {
  height: 100%;
  background: var(--green);
}

.footer {
  position: absolute;
  bottom: 10px;
  left: 20px;
  font-size: 10px;
  opacity: 0.6;
  width: 89%;
}


.menu {
    opacity: 0.8;
}
.menu a {
  position: relative;
}

.menu:hover {
    opacity: 1;
}

body:has(#about:target) .menu a[href="#about"]::after,
body:has(#contact:target) .menu a[href="#contact"]::after,
body:has(#skills:target) .menu a[href="#skills"]::after,
body:has(#services:target) .menu a[href="#services"]::after,
body:has(#presence:target) .menu a[href="#presence"]::after {
  content: ">";
  position: absolute;
  left: -2px;
  color: white;
  opacity: 0.8;
  animation: ghost 2s ease-out forwards;
}

@keyframes ghost {
  from { opacity: 1; }
  to { opacity: 0; transform: translateX(-3px); }
}

.boot-memory {
  opacity: 0.25;
  font-size: 10px;
  margin-bottom: 10px;
}
.boot-memory div {
    padding-bottom: 2px;
}