@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&display=swap');

:root {
  --bg: #0d0d0d;
  --surface: rgba(18, 18, 18, 0.9);
  --border: rgba(80, 80, 80, 0.3);
  --text: #c8c8c8;
  --text-dim: #555;
  --accent: #a0a0a0;
  --highlight: #e8e8e8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#static-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.08;
}

.noise {
  display: none;
}

.container {
  position: relative;
  z-index: 10;
  max-width: 640px;
  margin: 0 auto;
  padding: 6rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
}

/* Header */
header {
  text-align: left;
}

.name {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--highlight);
  letter-spacing: -0.02em;
}

.tagline {
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* Terminal */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

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

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 1.5rem;
  line-height: 1.7;
  font-size: 0.85rem;
}

.terminal-body p {
  margin-bottom: 0.75rem;
}

.terminal-body p:last-child {
  margin-bottom: 0;
}

.prompt {
  color: var(--accent);
  margin-right: 0.5rem;
}

.output {
  padding-left: 1.2rem;
  border-left: 2px solid var(--border);
  margin-left: 0.5rem;
  color: var(--text);
}

.cursor {
  color: var(--text-dim);
  animation: blink 1.2s step-end infinite;
}

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

/* Projects */
.section-heading {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease;
}

.project-card:hover {
  border-color: var(--accent);
}

.project-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--highlight);
}

.project-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.5;
}

/* Links */
.links-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
}

.links-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.link-card {
  padding: 0.6rem 1.2rem;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 3px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link-card:hover {
  color: var(--highlight);
  border-color: var(--accent);
}

/* Footer */
footer {
  padding-top: 1rem;
}

.footer-text {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 300;
  opacity: 0.6;
}

/* Rat Thing */
#rat-thing {
  position: fixed;
  bottom: 12px;
  left: -80px;
  z-index: 100;
  width: 64px;
  height: 24px;
  opacity: 0;
  pointer-events: none;
  image-rendering: pixelated;
  display: none;
}

#rat-thing canvas {
  display: block;
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    padding: 3rem 1.25rem;
  }

  .name {
    font-size: 1.4rem;
  }
}
