:root {
  color-scheme: dark;
  --bg: #050806;
  --panel: rgba(7, 18, 13, 0.88);
  --panel-strong: #091c13;
  --text: #d8ffe6;
  --muted: #7ca58b;
  --line: rgba(71, 255, 151, 0.22);
  --green: #47ff97;
  --cyan: #4ee7ff;
  --yellow: #f8d66d;
  --red: #ff5f7e;
  --shadow: 0 0 36px rgba(71, 255, 151, 0.14);
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(78, 231, 255, 0.12), transparent 34rem),
    radial-gradient(circle at 82% 24%, rgba(71, 255, 151, 0.09), transparent 26rem),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.matrix-bg,
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.matrix-bg {
  z-index: -2;
  opacity: 0.36;
}

.scanline {
  z-index: -1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: screen;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(71, 255, 151, 0.18);
  background: rgba(5, 8, 6, 0.78);
  backdrop-filter: blur(16px);
}

.brand,
.top-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  color: var(--green);
  font-weight: 800;
}

.brand-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.top-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.top-nav a:hover {
  color: var(--text);
  text-shadow: 0 0 12px var(--green);
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.hero {
  min-height: calc(100vh - 4rem);
  display: grid;
  align-items: center;
  padding-top: 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.prompt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 1rem;
  color: var(--green);
  font-size: clamp(0.82rem, 1.8vw, 0.96rem);
}

.path,
.cmd,
.muted {
  color: var(--muted);
}

.ascii {
  margin: 0 0 1.25rem;
  overflow: hidden;
  color: var(--green);
  font-size: clamp(0.58rem, 1.8vw, 0.96rem);
  line-height: 1.12;
  text-shadow: 0 0 18px rgba(71, 255, 151, 0.44);
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  min-height: 2.3em;
  margin: 0;
  color: #f4fff8;
  font-size: clamp(2.35rem, 7vw, 5.7rem);
  line-height: 1;
}

.cursor {
  color: var(--green);
  animation: blink 1s steps(1) infinite;
}

.tagline {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: #b8d8c3;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn:hover,
.project-card:hover {
  transform: translateY(-3px);
}

.btn.primary {
  background: var(--green);
  color: #021006;
  box-shadow: 0 0 26px rgba(71, 255, 151, 0.24);
}

.btn.ghost {
  color: var(--green);
  background: rgba(71, 255, 151, 0.05);
}

.status-panel,
.terminal-window,
.project-card,
.stat,
.hobby-lines {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.status-panel {
  overflow: hidden;
}

.panel-top,
.window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(71, 255, 151, 0.08);
}

.panel-top span,
.dots span {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
  background: var(--green);
}

.panel-top span:nth-child(2),
.dots span:nth-child(2) {
  background: var(--yellow);
}

.panel-top span:nth-child(3),
.dots span:nth-child(3) {
  background: var(--red);
}

.status-lines,
.terminal-body {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.status-lines p,
.terminal-body p,
.hobby-lines p,
.footer p {
  margin: 0;
  line-height: 1.85;
}

.status-lines p + p,
.terminal-body p + p {
  margin-top: 0.72rem;
}

.online,
.green {
  color: var(--green);
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-title h2 {
  margin: 0;
  color: #f4fff8;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.window-bar {
  justify-content: space-between;
  color: var(--muted);
}

.dots {
  display: flex;
  gap: 0.45rem;
}

.terminal-list {
  margin: 0.5rem 0 0;
  padding-left: 1.3rem;
  color: #b8d8c3;
  line-height: 1.9;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  min-height: 17rem;
  padding: 1.25rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-card:hover {
  border-color: rgba(71, 255, 151, 0.58);
  background: rgba(10, 31, 21, 0.94);
}

.card-head,
.tags,
.stats-grid,
.social-grid {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.card-head {
  justify-content: space-between;
}

.card-head a {
  color: var(--cyan);
  font-size: 0.85rem;
}

.chip,
.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: rgba(71, 255, 151, 0.07);
}

.chip {
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
}

.project-card h3 {
  margin: 1.25rem 0 0.8rem;
  color: #f4fff8;
  font-size: 1.15rem;
}

.project-card p {
  margin: 0;
  color: #b8d8c3;
  line-height: 1.75;
}

.tags {
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.tags span {
  padding: 0.28rem 0.5rem;
  font-size: 0.76rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.stat {
  padding: 1.3rem;
}

.stat strong {
  display: block;
  color: var(--green);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 0.65rem;
  color: var(--muted);
}

.progress-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.progress-item {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: center;
  color: #b8d8c3;
}

.bar {
  height: 0.7rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(71, 255, 151, 0.08);
}

.bar i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 18px rgba(71, 255, 151, 0.5);
  animation: grow 1.2s ease both;
}

.hobby-lines {
  padding: 1.3rem;
  color: #b8d8c3;
}

.social-grid {
  flex-wrap: wrap;
}

.social-grid a {
  display: grid;
  place-items: center;
  width: 3.3rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: rgba(71, 255, 151, 0.06);
  font-weight: 900;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.social-grid a:hover {
  transform: translateY(-4px) rotate(-2deg);
  color: #021006;
  background: var(--green);
}

.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.egg {
  color: rgba(216, 255, 230, 0.58);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes grow {
  from {
    width: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-grid,
  .project-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .progress-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

@media (max-width: 520px) {
  .section {
    width: min(100% - 1rem, 1120px);
  }

  .top-nav a {
    font-size: 0.78rem;
  }

  .ascii {
    font-size: 0.48rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .social-grid a {
    width: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
