:root {
  --bg: #080b12;
  --bg-soft: #101622;
  --bg-card: #141c2b;
  --text: #edf3ff;
  --muted: #9ba8bd;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #62f6d5;
  --accent-soft: rgba(98, 246, 213, 0.12);
  --warning: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(98, 246, 213, 0.12), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(89, 132, 255, 0.14), transparent 34rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(8, 11, 18, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  padding: 5rem 0;
}

.eyebrow,
.section-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.055em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.hero-text {
  max-width: 690px;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-weight: 750;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  color: #061015;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.terminal-card {
  background: linear-gradient(145deg, rgba(20, 28, 43, 0.96), rgba(9, 13, 22, 0.96));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-bar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.terminal-bar span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--muted);
  opacity: 0.75;
}

.terminal-bar span:nth-child(1) {
  background: #ff5f57;
}

.terminal-bar span:nth-child(2) {
  background: #ffbd2e;
}

.terminal-bar span:nth-child(3) {
  background: #28c840;
}

pre {
  padding: 1.4rem;
  overflow-x: auto;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: #d7fff5;
  font-size: 0.95rem;
}

.section {
  padding: 5.25rem 0;
  border-top: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
}

.section-copy,
.contact-section p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-copy p + p {
  margin-top: 1rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-card {
  min-height: 260px;
  background: rgba(20, 28, 43, 0.76);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.35rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(98, 246, 213, 0.45);
  background: rgba(20, 28, 43, 0.95);
}

.project-card p {
  color: var(--muted);
}

.tags,
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tags {
  margin-top: 1.5rem;
}

.tags span,
.skill-list span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
}

.skill-list span {
  color: var(--text);
  background: var(--accent-soft);
  border-color: rgba(98, 246, 213, 0.25);
}

.contact-section {
  max-width: 720px;
}

.contact-section .button {
  margin-top: 1.5rem;
}

.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.88rem;
  }

  .hero,
  .two-column,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 520px) {
  main,
  .nav,
  .footer {
    width: min(100% - 1.25rem, 1120px);
  }

  .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.25rem;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .terminal-card,
  .project-card {
    border-radius: 18px;
  }
}
