/* Solarized Dark Theme - Extended Palette */
:root {
  --base03: #002b36;
  --base02: #073642;
  --base01: #586e75;
  --base00: #657b83;
  --base0: #839496;
  --base1: #93a1a1;
  --base2: #eee8d5;
  --base3: #fdf6e3;
  --yellow: #b58900;
  --orange: #cb4b16;
  --red: #dc322f;
  --magenta: #d33682;
  --violet: #6c71c4;
  --blue: #268bd2;
  --cyan: #2aa198;
  --green: #859900;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  font-size: 18px;
}

body {
  background-color: #001a20;
  color: var(--base0);
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", "Consolas", "Monaco", monospace;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Terminal window container */
main {
  width: 100%;
  max-width: 650px;
}

.terminal-window {
  background-color: var(--base03);
  border: 1px solid var(--base02);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(42, 161, 152, 0.1);
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Terminal chrome (title bar) */
.terminal-chrome {
  background-color: var(--base02);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red {
  background-color: var(--red);
}

.dot-yellow {
  background-color: var(--yellow);
}

.dot-green {
  background-color: var(--green);
}

.terminal-title {
  margin-left: auto;
  margin-right: auto;
  padding-right: 2.5rem;
  color: var(--base01);
  font-size: 0.8rem;
}

/* Terminal body with CRT effect */
.terminal {
  position: relative;
  padding: 2rem;
}

/* CRT scan-line overlay */
.terminal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 10;
}

/* Vignette effect */
.terminal::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
  z-index: 11;
}

.terminal-content {
  position: relative;
  z-index: 5;
}

/* Subtle screen flicker */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  97% { opacity: 1; }
  98% { opacity: 0.97; }
  99% { opacity: 1; }
}

.terminal-content {
  animation: flicker 8s infinite;
}

/* Prompt */
.prompt {
  color: var(--base01);
  margin-bottom: 3rem;
  font-size: 0.9rem;
}

.prompt-symbol {
  color: var(--yellow);
  font-weight: 700;
  margin-right: 0.5em;
}

/* Name */
h1 {
  color: var(--base2);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px rgba(133, 153, 0, 0.2);
}

.name-accent {
  color: var(--green);
}

/* Tagline */
.tagline {
  color: var(--base1);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.separator {
  color: var(--base01);
  margin: 0 0.25rem;
}

/* Blinking cursor */
.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background-color: var(--cyan);
  margin-left: 0.1em;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ASCII Art Lambda */
.ascii-art {
  color: var(--magenta);
  font-size: 0.65rem;
  line-height: 1.1;
  margin-bottom: 3rem;
  opacity: 0.8;
  user-select: none;
  letter-spacing: 0;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

nav a {
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
}

nav a::before {
  content: "[";
  color: var(--base01);
  margin-right: 0.15em;
  transition: color 0.2s ease;
}

nav a::after {
  content: "]";
  color: var(--base01);
  margin-left: 0.15em;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--base2);
  text-shadow: 0 0 10px rgba(42, 161, 152, 0.5);
}

nav a:hover::before,
nav a:hover::after {
  color: var(--orange);
}

/* Responsive */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  body {
    padding: 1rem;
  }

  .terminal {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .prompt {
    margin-bottom: 2rem;
  }

  .tagline {
    margin-bottom: 2rem;
  }

  .ascii-art {
    margin-bottom: 2rem;
    font-size: 0.6rem;
  }

  nav ul {
    gap: 1rem;
  }
}

@media (max-width: 400px) {
  .terminal-chrome {
    padding: 0.6rem 0.75rem;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .terminal-title {
    font-size: 0.7rem;
  }

  h1 {
    font-size: 1.85rem;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .ascii-art {
    font-size: 0.55rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}
