/* Global Settings */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&family=Share+Tech+Mono&display=swap');

:root {
  --color-main: #39FF14;
  --color-main-dim: rgba(57, 255, 20, 0.3);
  --color-pink: #FF00FF;
  --color-blue: #00FFFF;
  --color-red: #FF0000;
  --bg-color: #050505;
  --crt-curvature: 3px;
}

body {
  background-color: var(--bg-color);
  color: var(--color-main);
  font-family: 'Share Tech Mono', 'JetBrains Mono', monospace;
  overflow-x: hidden;
  margin: 0;
  height: 100vh;
  /* Custom Cursor */
  cursor: crosshair;
}

/* Hide scrollbar for immersive feel, but allow scrolling */
body::-webkit-scrollbar {
  width: 4px;
}
body::-webkit-scrollbar-track {
  background: #000;
}
body::-webkit-scrollbar-thumb {
  background: var(--color-main);
}

/* --- CRT Screen Effects --- */

/* The physical screen container */
.crt-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

/* Screen Curvature & Vignette */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,0.6) 100%);
  box-shadow: inset 0 0 5rem rgba(0,0,0,0.7);
}

/* Scanlines - More subtle and high-res */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    to bottom,
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 998;
}

/* Flicker Animation */
.flicker {
  animation: flicker 0.15s infinite;
  opacity: 1;
}

@keyframes flicker {
  0% { opacity: 0.97; }
  5% { opacity: 0.95; }
  10% { opacity: 0.9; }
  15% { opacity: 0.95; }
  20% { opacity: 0.99; }
  50% { opacity: 0.95; }
  80% { opacity: 0.9; }
  100% { opacity: 0.98; }
}

/* RGB Split / Chromatic Aberration Text */
.glitch-text {
  position: relative;
  display: inline-block;
  mix-blend-mode: lighten;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch-text::before {
  color: var(--color-pink);
  z-index: -1;
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text::after {
  color: var(--color-blue);
  z-index: -2;
  animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

/* Intensive Glitch Keyframes */
@keyframes glitch-anim-1 {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

@keyframes glitch-anim-2 {
  0% { transform: translate(0); }
  20% { transform: translate(2px, -2px); }
  40% { transform: translate(2px, 2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(-2px, 2px); }
  100% { transform: translate(0); }
}

/* --- Components --- */

/* Terminal Box */
.terminal-box {
  background: rgba(0, 10, 0, 0.8);
  border: 1px solid var(--color-main);
  box-shadow: 0 0 10px var(--color-main-dim);
  backdrop-filter: blur(4px);
  position: relative;
}

.terminal-header {
  background: var(--color-main);
  color: black;
  padding: 4px 8px;
  font-weight: bold;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Button Styles */
.cyber-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  background: transparent;
  color: var(--color-main);
  border: 1px solid var(--color-main);
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  overflow: hidden;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10;
}

.cyber-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-main);
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: -1;
}

.cyber-btn:hover {
  color: #000;
  box-shadow: 0 0 20px var(--color-main-dim);
}

.cyber-btn:hover::before {
  transform: translateX(100%);
}

.cyber-btn-glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-main);
  opacity: 0;
  z-index: -1;
}

/* Roadmap Items */
.roadmap-item {
  border-left: 2px solid var(--color-main);
  padding-left: 20px;
  margin-bottom: 20px;
  position: relative;
}
.roadmap-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  background: #000;
  border: 2px solid var(--color-main);
}
.roadmap-item.active::before {
  background: var(--color-main);
}

/* --- Utilities --- */
.blink {
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.text-shadow-glow {
  text-shadow: 0 0 5px var(--color-main), 0 0 10px var(--color-main);
}

.bg-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(57, 255, 20, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(57, 255, 20, 0.05) 1px, transparent 1px);
}

/* Boot Screen */
#boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px;
  font-family: 'Share Tech Mono', monospace;
  color: var(--color-main);
  font-size: 14px;
  line-height: 1.5;
  cursor: none; 
}
