:root {
  color-scheme: dark;
  --bg: #07090f;
  --surface: #0f1720;
  --surface-2: #161c26;
  --surface-border: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #a8b1c2;
  --primary: #7f9cf5;
  --primary-strong: #4f6efb;
  --radius: 24px;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at top, rgba(127, 156, 245, 0.15), transparent 30%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus-visible {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.85rem 1rem;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  z-index: 20;
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 15, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #4c67f8);
  color: white;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
}

.nav-resume {
  padding: 0.85rem 1.15rem;
  border: 1px solid rgba(127, 156, 245, 0.4);
  border-radius: 999px;
  color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 4rem 0 2rem;
}

.hero-copy-wrap {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #8c9cd2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 4vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-copy {
  margin: 1.75rem 0;
  font-size: 1.05rem;
  max-width: 720px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #07101f;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.card {
  background: rgba(22, 28, 38, 0.88);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.profile-card {
  width: 100%;
  min-width: 0;
}

.profile-card dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.profile-card dt {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.profile-card dd {
  margin: 0.35rem 0 0;
  font-weight: 600;
}

.section {
  padding: 3rem 0;
}

.compact-section {
  padding-top: 0;
}

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

.stat-grid article {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.stat-grid strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 2.5vw, 2.75rem);
}

.experience-list,
.impact-grid {
  display: grid;
  gap: 1.5rem;
}

.experience-card ul,
.impact-card ul {
  padding-left: 1.25rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

.impact-card {
  display: grid;
  gap: 1rem;
}

.card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-labels span {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 0.85rem;
}

.project-feature {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 1.5rem;
  align-items: start;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.chip-row span {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
}

.text-link {
  color: var(--primary);
  text-decoration: none;
}

.skills-table {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skills-table h3 {
  margin-top: 0;
}

.contact-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer {
  padding: 2rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .project-feature {
    grid-template-columns: 1fr;
  }
  .skills-table {
    grid-template-columns: 1fr;
  }
  .contact-panel {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    width: 100%;
    order: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-menu.is-open {
    max-height: 520px;
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
  }

  .nav-resume {
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
  }

  .brand {
    order: 1;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .experience-list,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 1.5rem);
  }
  h1 {
    font-size: 2.5rem;
  }
  .nav-menu a {
    padding: 0.85rem 0;
  }
}