:root {
  --navy-950: #081a34;
  --navy-900: #0f2748;
  --navy-800: #16375f;
  --teal-500: #16b3aa;
  --teal-400: #49c9c1;
  --teal-100: #def7f4;
  --white: #ffffff;
  --slate-200: #d9e3ef;
  --slate-500: #62809c;
  --slate-700: #29435e;
  --shadow: 0 20px 50px rgba(8, 26, 52, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1120px;
  --page-text: var(--navy-900);
  --page-bg:
    radial-gradient(circle at top left, rgba(73, 201, 193, 0.12), transparent 30%),
    linear-gradient(180deg, #f6fbfd 0%, var(--white) 28%, #f8fbff 100%);
  --panel-bg: rgba(255, 255, 255, 0.88);
  --panel-border: rgba(15, 39, 72, 0.08);
  --header-bg: rgba(255, 255, 255, 0.86);
  --header-border: rgba(15, 39, 72, 0.08);
  --muted-text: var(--slate-700);
  --accent-soft: var(--teal-100);
  --alt-bg: linear-gradient(180deg, rgba(22, 179, 170, 0.05), rgba(255, 255, 255, 0));
  --card-glow: linear-gradient(180deg, rgba(22, 179, 170, 0.08), rgba(8, 26, 52, 0.02));
  --chip-shadow: 0 12px 30px rgba(8, 26, 52, 0.05);
}

body[data-theme="dark"] {
  --navy-950: #ffffff;
  --navy-900: #cfebf9;
  --navy-800: #cfebf9;
  --teal-500: #cfebf9;
  --teal-400: #ffffff;
  --teal-100: rgba(207, 235, 249, 0.14);
  --white: #ffffff;
  --slate-200: rgba(207, 235, 249, 0.2);
  --slate-500: #cfebf9;
  --slate-700: #cfebf9;
  --page-text: #cfebf9;
  --page-bg: linear-gradient(180deg, #333333 0%, #2e2e2e 100%);
  --panel-bg: rgba(255, 255, 255, 0.03);
  --panel-border: rgba(207, 235, 249, 0.16);
  --header-bg: rgba(51, 51, 51, 0.92);
  --header-border: rgba(207, 235, 249, 0.12);
  --muted-text: #cfebf9;
  --accent-soft: rgba(207, 235, 249, 0.14);
  --alt-bg: linear-gradient(180deg, rgba(207, 235, 249, 0.06), rgba(255, 255, 255, 0));
  --card-glow: linear-gradient(180deg, rgba(207, 235, 249, 0.08), rgba(255, 255, 255, 0.02));
  --chip-shadow: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--page-text);
  background: var(--page-bg);
}

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

code {
  font-family: inherit;
  background: rgba(22, 179, 170, 0.1);
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-950);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--slate-700);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero {
  padding: 5.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.project-card,
.credential-card,
.resume-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero-copy {
  padding: 3rem;
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--teal-500);
}

.hero h1,
.section-heading h2,
.credential-card h2 {
  margin: 0;
  color: var(--navy-950);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.96;
}

.role {
  margin: 0.85rem 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-800);
}

.summary,
.body-copy,
.project-card p,
.resume-panel p,
.detail-list,
.section-note {
  margin: 0;
  color: var(--muted-text);
  line-height: 1.75;
}

.hero-actions,
.resume-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button-primary {
  background: var(--teal-500);
  color: var(--white);
}

.button-primary:hover {
  background: #109d95;
}

.button-secondary {
  border: 1px solid var(--panel-border);
  color: var(--navy-900);
  background: transparent;
}

.button-secondary:hover {
  border-color: rgba(22, 179, 170, 0.45);
  color: var(--teal-500);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: transparent;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  width: 48px;
  height: 24px;
  border-radius: 999px;
  background: rgba(15, 39, 72, 0.14);
  transition: background-color 0.2s ease;
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(8, 26, 52, 0.18);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

body[data-theme="dark"] .theme-toggle-track {
  background: rgba(207, 235, 249, 0.42);
}

body[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(24px);
  background: #ffffff;
}

.hero-card {
  padding: 2rem;
  background: var(--card-glow);
}

.profile-card {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.profile-photo-shell {
  display: grid;
  overflow: hidden;
  min-height: 240px;
  border-radius: 20px;
  border: 1px solid var(--panel-border);
  background: rgba(22, 179, 170, 0.06);
}

.profile-photo {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.focus-list,
.detail-list {
  margin: 0;
  padding-left: 1.1rem;
}

.focus-list li,
.detail-list li {
  margin: 0.7rem 0;
  color: var(--navy-900);
}

.section {
  padding: 1.25rem 0 2.5rem;
  scroll-margin-top: 90px;
}

.alt-section {
  background: var(--alt-bg);
}

.section-shell {
  display: grid;
  gap: 1.6rem;
}

.narrow {
  max-width: 800px;
}

.section-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.section-heading {
  display: grid;
  gap: 0.45rem;
}

.tools-heading {
  margin-top: 0.75rem;
}

.section-heading h2,
.credential-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

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

.project-card {
  padding: 1.5rem;
}

.project-card h3 {
  margin: 0 0 0.85rem;
  color: var(--navy-950);
  font-size: 1.15rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.project-meta span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-500);
  background: var(--accent-soft);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.project-link {
  display: inline-flex;
  margin-top: 1.35rem;
  color: var(--navy-900);
  font-weight: 700;
}

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

.chips span {
  padding: 0.85rem 1rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--navy-900);
  font-weight: 700;
  box-shadow: var(--chip-shadow);
}

.credential-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.credential-card,
.resume-panel {
  padding: 2rem;
}

.contact-section {
  padding-bottom: 5rem;
}

.contact-links a {
  color: var(--navy-900);
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero-grid,
  .project-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 2rem;
  }

  .section-row {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .nav-shell {
    padding: 0.7rem 0;
    align-items: start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
    align-items: start;
    flex-direction: column;
  }

  .site-nav {
    gap: 0.8rem 1rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-copy,
  .hero-card,
  .project-card,
  .credential-card,
  .resume-panel {
    border-radius: 20px;
  }
}
