@font-face {
  font-family: Poppins-Regular;
  src: url('../fonts/Poppins/Poppins-Regular.ttf');
}

@font-face {
  font-family: Poppins-Bold;
  src: url('../fonts/Poppins/Poppins-Bold.ttf');
}

@font-face {
  font-family: Lato-Regular;
  src: url('../fonts/Lato/Lato-Regular.ttf');
}

@font-face {
  font-family: Lato-Bold;
  src: url('../fonts/Lato/Lato-Bold.ttf');
}

:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --panel: #101720;
  --panel-strong: #151e2a;
  --line: #263342;
  --line-soft: rgba(159, 176, 199, 0.18);
  --text: #eef3f8;
  --muted: #aab6c5;
  --dim: #748195;
  --accent: #91d7c3;
  --accent-strong: #c5f4e7;
  --amber: #d8bd7a;
  --code: #b9c7d9;
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: Lato-Regular, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(145, 215, 195, 0.08), transparent 28rem),
    linear-gradient(180deg, #0a0d12 0%, #0d1118 44%, #090b10 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}

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

p,
h1,
h2,
h3 {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 13, 18, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Poppins-Bold, Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-strong);
  background: var(--panel);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  font-size: 14px;
  color: var(--muted);
}

.site-nav a,
.text-link,
.footer-links a {
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus,
.text-link:hover,
.text-link:focus,
.footer-links a:hover,
.footer-links a:focus {
  color: var(--accent-strong);
}

.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  min-height: 78vh;
  padding: 84px 0 72px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.card-label {
  font-family: Lato-Bold, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--accent);
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 18px;
  font-family: Poppins-Bold, Arial, sans-serif;
  font-size: 64px;
  line-height: 1.06;
  color: var(--text);
}

.hero-summary {
  max-width: 690px;
  margin-top: 28px;
  font-size: 22px;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: Lato-Bold, Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: rgba(255,255,255,0.035);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
  border-color: rgba(197, 244, 231, 0.58);
  background: rgba(145, 215, 195, 0.08);
}

.button-primary {
  border-color: rgba(145, 215, 195, 0.62);
  color: #06120f;
  background: var(--accent-strong);
}

.button-primary:hover,
.button-primary:focus {
  color: #06120f;
  background: #e6fff8;
}

.terminal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 32, 0.82);
  box-shadow: 0 24px 80px var(--shadow);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.03);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--dim);
}

.terminal-bar span:nth-child(1) {
  background: #d87575;
}

.terminal-bar span:nth-child(2) {
  background: var(--amber);
}

.terminal-bar span:nth-child(3) {
  background: var(--accent);
}

.terminal-card pre {
  margin: 0;
  padding: 22px;
  white-space: pre-wrap;
}

.terminal-card code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--code);
}

.split-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(24px, 5vw, 72px);
  padding: 82px 0;
  border-top: 1px solid var(--line-soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

h2 {
  margin-top: 10px;
  font-family: Poppins-Bold, Arial, sans-serif;
  font-size: 38px;
  line-height: 1.16;
  color: var(--text);
}

h3 {
  font-family: Poppins-Bold, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.28;
  color: var(--text);
}

.section-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.inline-list li {
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  font-size: 14px;
  color: var(--text);
  background: rgba(255,255,255,0.028);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-card,
.library-grid > div,
.resume-panel {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(16, 23, 32, 0.58);
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 330px;
  padding: 22px;
}

.work-card p:not(.card-label),
.library-grid p,
.resume-list {
  color: var(--muted);
}

.work-card ul {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.work-card li {
  position: relative;
  padding-left: 16px;
  color: var(--code);
  font-size: 14px;
}

.work-card li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-family: Lato-Bold, Arial, sans-serif;
  color: var(--accent-strong);
}

.section-link {
  margin-top: 22px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.library-grid > div {
  min-height: 190px;
  padding: 22px;
}

.library-grid h3 {
  margin-bottom: 12px;
}

.resume-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 32px;
  margin-top: 82px;
  margin-bottom: 82px;
  padding: 28px;
}

.resume-list {
  display: grid;
  gap: 12px;
}

.resume-list strong {
  color: var(--text);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 0 60px;
  border-top: 1px solid var(--line-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255,255,255,0.025);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .split-section,
  .resume-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 70px 0;
  }

  .card-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .work-card,
  .library-grid > div {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .section-shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    padding: 14px;
  }

  .site-nav {
    gap: 16px;
    font-size: 13px;
  }

  .brand {
    font-size: 13px;
  }

  .hero {
    padding: 54px 0 68px;
  }

  .hero h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-summary {
    font-size: 18px;
  }

  .hero-actions,
  .button,
  .footer-links,
  .footer-links a {
    width: 100%;
  }

  .split-section {
    padding: 58px 0;
  }

  .resume-panel {
    margin-top: 58px;
    margin-bottom: 58px;
    padding: 20px;
  }
}
