:root {
  --terminal-bg: #07090b;
  --terminal-dim: #4f5d63;
  --terminal-text: #e6edf1;
  --terminal-accent: #33ff66;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--terminal-bg);
  color: var(--terminal-text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

body {
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 5%, rgba(51, 255, 102, 0.05), transparent 45%),
    radial-gradient(circle at 90% 95%, rgba(255, 180, 120, 0.03), transparent 45%),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.42) 0,
    rgba(0, 0, 0, 0.42) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 2;
  animation: flicker 6s infinite;
}

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

  50% {
    opacity: 0.94;
  }

  52% {
    opacity: 1;
  }
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 7rem) clamp(1.5rem, 5vw, 3rem) 6rem;
  position: relative;
  z-index: 3;
}

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 0.95em;
  background: var(--terminal-accent);
  box-shadow: 0 0 12px rgba(51, 255, 102, 0.65);
  margin-left: 0.18em;
  vertical-align: -0.08em;
  animation: blink 1.1s steps(2, end) infinite;
}

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

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(3rem, 8vh, 5rem);
}

.section-label {
  color: var(--terminal-text);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(236, 241, 243, 0.1);
}

.projects {
  list-style: none;
  padding: 0;
  margin: 0;
}

.projects li + li {
  margin-top: 1px;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: clamp(1.1rem, 2vw, 1.5rem) 0;
  text-decoration: none;
  color: inherit;
  align-items: baseline;
  border-bottom: 1px solid rgba(236, 241, 243, 0.08);
  transition:
    padding-left 320ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 280ms ease;
}

.projects li:first-child .row {
  border-top: 1px solid rgba(236, 241, 243, 0.08);
}

.row:hover {
  padding-left: 1rem;
  border-color: rgba(51, 255, 102, 0.35);
}

.info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.name {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: color 240ms ease;
}

.desc {
  color: var(--terminal-dim);
  font-size: clamp(0.82rem, 1.1vw, 0.94rem);
  margin-top: 0.35rem;
  line-height: 1.5;
  max-width: 56ch;
  transition: color 240ms ease;
}

.row:hover .name {
  color: var(--terminal-accent);
  text-shadow: 0 0 10px rgba(51, 255, 102, 0.4);
}

.row:hover .desc {
  color: var(--terminal-text);
}

.host {
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  color: var(--terminal-dim);
  white-space: nowrap;
  transition: color 240ms ease;
}

.host::before {
  content: "> ";
  color: var(--terminal-accent);
  opacity: 0.45;
  transition: opacity 200ms ease;
}

.row:hover .host {
  color: var(--terminal-accent);
}

.row:hover .host::before {
  opacity: 1;
}

@media (max-width: 600px) {
  .row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .host {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .cursor {
    animation: none;
  }

  .row {
    transition: none;
  }
}
