@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b0f14;
  --panel: #111821;
  --panel-2: #151f2a;
  --text: #f5f7fb;
  --muted: #9aa7b5;
  --line: rgba(207, 224, 236, 0.14);
  --accent: #9dff75;
  --accent-2: #78a6ff;
  --yellow: #ffd76e;
  --danger: #ff7f92;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); color: var(--accent); font-size: 0.92em; }
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 5;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
.site-header {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-weight: 500; }
.brand-mark { color: var(--accent); font-size: 1.2rem; }
.nav { display: flex; align-items: center; gap: 24px; color: var(--muted); font-family: var(--mono); font-size: .86rem; }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--text); }
.nav-github { color: var(--accent) !important; border: 1px solid rgba(157,255,117,.34); padding: 8px 12px; border-radius: 6px; }
.menu-button { display: none; background: transparent; border: 0; padding: 4px; }
.menu-button span { display: block; background: var(--text); width: 24px; height: 2px; margin: 4px; }

.section { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.hero { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; padding: 56px 0 110px; }
.eyebrow { font-family: var(--mono); letter-spacing: .12em; color: var(--accent); font-size: .74rem; margin: 0 0 18px; }
.status-dot { display: inline-block; width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 18px var(--accent); border-radius: 50%; margin-right: 8px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3.2rem, 6vw, 6.2rem); line-height: .98; letter-spacing: -.07em; margin-bottom: 26px; }
h1 span { color: var(--accent); }
.hero-text { max-width: 620px; color: var(--muted); font-size: 1.15rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 34px 0; }
.button { padding: 12px 16px; display: inline-flex; align-items: center; gap: 10px; border-radius: 7px; font-family: var(--mono); font-size: .82rem; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #071005; font-weight: 500; }
.button-ghost { border: 1px solid var(--line); color: var(--text); }
.terminal-card, .window { border: 1px solid var(--line); background: rgba(17,24,33,.78); box-shadow: 0 22px 80px rgba(0,0,0,.25); border-radius: 12px; overflow: hidden; }
.terminal-card { max-width: 590px; }
.terminal-top, .window-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.terminal-title, .window-label { margin-left: 5px; }
.terminal-dot, .window-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.red { background: var(--danger); }.yellow { background: var(--yellow); }.green { background: var(--accent); }
.terminal-body { padding: 20px; font-family: var(--mono); font-size: .82rem; line-height: 1.65; }
.terminal-body p { margin-bottom: 5px; }
.prompt { color: var(--accent); }.path { color: var(--accent-2); }.output { color: var(--muted); margin-left: 2px; }
.cursor { color: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-art { min-height: 440px; position: relative; display: grid; place-items: center; }
.orb { position: absolute; border-radius: 999px; filter: blur(2px); opacity: .5; }
.orb-one { width: 310px; height: 310px; background: radial-gradient(circle, rgba(120,166,255,.35), transparent 68%); top: 20px; left: 16px; }
.orb-two { width: 260px; height: 260px; background: radial-gradient(circle, rgba(157,255,117,.20), transparent 66%); bottom: 0; right: 10px; }
.window { width: min(100%, 470px); transform: rotate(2deg); position: relative; z-index: 1; }
.window pre { margin: 0; padding: 25px; min-height: 265px; overflow: auto; font-family: var(--mono); font-size: .8rem; line-height: 1.75; }
.muted { color: var(--muted); }.green-text { color: var(--accent); }.yellow-text { color: var(--yellow); }.accent-text { color: var(--accent-2); }

.projects-section, .now-section, .about-section { padding: 112px 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 670px; margin-bottom: 42px; }
h2 { font-size: clamp(2.1rem, 4vw, 3.8rem); letter-spacing: -.055em; line-height: 1; margin-bottom: 16px; }
.section-heading > p:not(.eyebrow), .about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project-card { border: 1px solid var(--line); border-radius: 12px; min-height: 340px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(150deg, rgba(21,31,42,.88), rgba(11,15,20,.88)); transition: transform .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(157,255,117,.45); }
.project-card-top { display: flex; justify-content: space-between; }
.project-number { color: var(--muted); font: .76rem var(--mono); }
.project-pill { color: var(--accent-2); border: 1px solid rgba(120,166,255,.35); padding: 5px 8px; border-radius: 5px; font: .65rem var(--mono); letter-spacing: .1em; }
.project-pill.rust { color: var(--accent); border-color: rgba(157,255,117,.32); }
.project-card h3 { font-size: 2rem; letter-spacing: -.045em; margin: 20px 0 10px; }
.project-card p { color: var(--muted); line-height: 1.65; margin-bottom: 22px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags span { font: .7rem var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 6px 8px; }
.project-links { display: flex; gap: 20px; margin-top: 22px; font: .8rem var(--mono); color: var(--accent); }
.project-links a:hover, .all-projects:hover { text-decoration: underline; }
.disabled { color: var(--muted); }
.coming-soon { border-style: dashed; background: rgba(17,24,33,.4); }
.all-projects { display: inline-flex; gap: 9px; margin-top: 26px; color: var(--accent); font: .86rem var(--mono); }

.now-list { border-top: 1px solid var(--line); }
.now-item { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.now-marker { color: var(--accent); font: .75rem var(--mono); padding-top: 5px; }
.now-item p { margin: 0; font-size: 1.17rem; color: var(--muted); line-height: 1.5; }
.now-item strong { color: var(--text); }

.about-section { display: grid; grid-template-columns: 1fr .8fr; gap: 80px; }
.about-links { border-top: 1px solid var(--line); }
.about-links a { display: flex; justify-content: space-between; gap: 10px; padding: 17px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.about-links a:hover { color: var(--accent); }
.about-links small { color: var(--muted); font-size: .72rem; }

.site-footer { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 48px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 20px; font: .74rem var(--mono); }
.site-footer p { margin: 0; }

@media (max-width: 800px) {
  .site-header { height: 66px; }
  .menu-button { display: block; position: relative; z-index: 12; }
  .nav { display: none; position: absolute; top: 56px; right: 0; flex-direction: column; align-items: flex-start; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
  .nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 72px; }
  .hero-art { min-height: 320px; }
  .project-grid, .about-section { grid-template-columns: 1fr; }
  .about-section { gap: 42px; }
  .site-footer { display: block; }
  .site-footer p + p { margin-top: 10px; }
}
@media (max-width: 520px) {
  .section, .site-header, .site-footer { width: min(100% - 28px, 1160px); }
  .hero { min-height: auto; padding-bottom: 78px; }
  .projects-section, .now-section, .about-section { padding: 76px 0; }
  .terminal-body, .window pre { font-size: .70rem; padding: 16px; }
  .project-card { min-height: 310px; padding: 22px; }
}
