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

:root {
  --bg: #08090d;
  --surface: #101219;
  --surface-2: #151821;
  --text: #f4f5f7;
  --muted: #9ca3af;
  --line: #252936;
  --accent: #7c5cff;
  --accent-2: #9a83ff;
  --green: #61e294;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  line-height: 1.6;
}

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

.container { width: min(var(--max), calc(100% - 40px)); margin: auto; }
.narrow { max-width: 850px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 9, 13, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font: 700 28px "Space Grotesk", sans-serif;
  letter-spacing: -1px;
}
.logo span { color: var(--accent-2); }

nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: 14px; transition: .2s; }
nav a:hover { color: var(--text); }

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 35%, rgba(124,92,255,.18), transparent 30%),
    radial-gradient(circle at 15% 80%, rgba(97,226,148,.08), transparent 25%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: center;
  padding: 90px 0;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: 1.1; }

h1 {
  font-size: clamp(48px, 7vw, 82px);
  letter-spacing: -4px;
  max-width: 850px;
}
h1 span {
  background: linear-gradient(90deg, #fff, #a895ff);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text {
  color: var(--muted);
  font-size: 18px;
  max-width: 680px;
  margin-top: 26px;
}

.actions { display: flex; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .2s, border-color .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.primary { background: var(--accent); }
.primary:hover { background: var(--accent-2); }
.secondary { border: 1px solid var(--line); color: var(--muted); }
.secondary:hover { color: var(--text); border-color: #444958; }

.terminal {
  background: #0c0e13;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0,0,0,.35);
}
.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
.terminal-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #3b3f4b;
}
.terminal-body { padding: 26px; font: 14px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-body p { margin-bottom: 4px; }
.green { color: var(--green); }
.muted { color: #858b99; }

.section { padding: 110px 0; }
.section.alt { background: var(--surface); }
.section h2 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.lead { color: var(--muted); font-size: 19px; max-width: 800px; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 45px;
}
.skill-card, .project-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: transform .2s, border-color .2s;
}
.skill-card:hover, .project-card:hover {
  transform: translateY(-4px);
  border-color: #424757;
}
.icon, .project-number {
  color: var(--accent-2);
  font: 700 12px ui-monospace, monospace;
  margin-bottom: 22px;
}
.skill-card h3, .project-card h3 { font-size: 22px; margin-bottom: 10px; }
.skill-card p, .project-card p { color: var(--muted); font-size: 14px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 45px;
}
.project-card.featured { background: linear-gradient(145deg, #171528, var(--surface-2)); }
.tag {
  display: inline-block;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  margin-bottom: 15px;
}

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0c0e12;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 55px 0;
}
.stats-grid div {
  text-align: center;
  border-right: 1px solid var(--line);
}
.stats-grid div:last-child { border-right: 0; }
.stats strong {
  display: block;
  font: 700 30px "Space Grotesk", sans-serif;
}
.stats span { color: var(--muted); font-size: 12px; }

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 55px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #12141c, #0d0f14);
}
.contact-box p:not(.eyebrow) { color: var(--muted); max-width: 650px; }

footer {
  border-top: 1px solid var(--line);
  padding: 25px 0;
  color: #737986;
  font-size: 12px;
}
.footer-inner { display: flex; justify-content: space-between; }

@media (max-width: 850px) {
  nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .stats-grid div:nth-child(2) { border-right: 0; }
  .contact-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--max)); }
  .hero-grid { padding: 65px 0; }
  h1 { font-size: 48px; letter-spacing: -2.5px; }
  .section { padding: 75px 0; }
  .skill-grid, .project-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid div { border-right: 0; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }
  .contact-box { padding: 30px; }
}
