:root {
  --ink: #101828;
  --ink-strong: #07111f;
  --muted: #5f6b7a;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --line: #dce2e8;
  --accent: #1f5eff;
  --accent-dark: #1446c6;
  --dark: #0b1220;
  --dark-soft: #121c2d;
  --max-width: 1160px;
  --radius: 18px;
  --shadow: 0 20px 55px rgba(16, 24, 40, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: white;
  background: var(--accent);
}

img {
  max-width: 100%;
}

button,
a {
  font: inherit;
}

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

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

h1,
h2,
h3,
.brand {
  font-family: "Manrope", system-ui, sans-serif;
}

h1,
h2,
h3 {
  color: var(--ink-strong);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 880px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 6.8vw, 6.2rem);
  font-weight: 800;
}

h1 span {
  color: var(--accent);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  font-weight: 750;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 700;
}

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

.skip-link {
  position: absolute;
  z-index: 999;
  top: -60px;
  left: 20px;
  padding: 10px 14px;
  color: white;
  background: var(--dark);
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(220, 226, 232, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--ink-strong);
  border-radius: 50%;
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a,
.footer-links a,
.social-links a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.footer-links a:hover,
.social-links a:hover {
  color: var(--accent);
}

.nav-resume {
  padding: 9px 16px;
  color: white;
  background: var(--ink-strong);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.nav-resume:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(310px, 0.72fr);
  align-items: center;
  gap: 70px;
  padding-block: 100px;
}

.availability {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 7px 12px;
  color: #126b43;
  background: #ebf8f1;
  border: 1px solid #c8ead8;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.availability span {
  width: 8px;
  height: 8px;
  background: #1b9b62;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(27, 155, 98, 0.13);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-description {
  max-width: 760px;
  margin-bottom: 14px;
  color: #344054;
  font-size: clamp(1.15rem, 1.9vw, 1.38rem);
  line-height: 1.68;
}

.hero-subtext {
  max-width: 700px;
  color: var(--muted);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 25px rgba(31, 94, 255, 0.2);
}

.button-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 14px 30px rgba(31, 94, 255, 0.25);
}

.button-secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: #aeb8c4;
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-panel {
  padding: 28px;
  color: white;
  background: var(--dark);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-kicker,
.panel-number {
  color: #9fb2cc;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel-list article {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding-block: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-list article:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.panel-list article > span {
  color: #6f8cb4;
  font-size: 0.76rem;
  font-weight: 800;
}

.panel-list h2 {
  margin-bottom: 7px;
  color: white;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.panel-list p {
  margin: 0;
  color: #aebcd0;
  font-size: 0.92rem;
  line-height: 1.62;
}

.section {
  padding-block: 110px;
}

.section-dark {
  color: white;
  background: var(--dark);
}

.section-dark h2 {
  color: white;
}

.section-soft {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 80px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: start;
  color: #9fb2cc;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-label span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.section-label p {
  margin: 0;
}

.section-label.light {
  color: var(--accent);
}

.about-copy > p {
  max-width: 830px;
  color: #b7c2d2;
  font-size: 1.08rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 50px;
}

.stats-grid div {
  min-height: 135px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
}

.stats-grid strong {
  color: white;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
}

.stats-grid span {
  color: #9fb0c6;
  font-size: 0.86rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 80px;
  margin-bottom: 54px;
}

.section-heading > div:last-child {
  max-width: 800px;
}

.section-heading h2 {
  margin-bottom: 10px;
}

.section-heading > div:last-child > p {
  margin: 0;
  color: var(--muted);
}

.projects-list {
  border-top: 1px solid var(--line);
}

.project-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 50px;
  padding-block: 52px;
  border-bottom: 1px solid var(--line);
}

.featured-project {
  margin-top: 24px;
  padding: 42px;
  background: #f8faff;
  border: 1px solid #d9e3ff;
  border-radius: var(--radius);
}

.project-index {
  color: #a1aab6;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-topline p {
  margin: 0;
}

.project-summary {
  max-width: 880px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.04rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.metrics.compact-metrics {
  max-width: 620px;
  grid-template-columns: repeat(2, 1fr);
}

.metrics div {
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  color: var(--ink-strong);
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
}

.metrics span {
  color: var(--muted);
  font-size: 0.8rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 5px 10px;
  color: #495566;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.project-links {
  margin-top: 24px;
}

.project-links a {
  color: var(--accent);
  font-weight: 800;
}

.project-links a:hover {
  color: var(--accent-dark);
}

.experience-list {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.experience-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
  padding: 40px;
  border-bottom: 1px solid var(--line);
}

.experience-card:last-child {
  border-bottom: 0;
}

.experience-date {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.company {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.experience-main h3 {
  margin-bottom: 16px;
}

.experience-main ul {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
}

.experience-main li + li {
  margin-top: 8px;
}

.education-card .experience-main > p:last-child {
  color: var(--muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.skills-grid article {
  min-height: 260px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.skills-grid article:hover {
  border-color: #bac6d3;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.skill-number {
  margin-bottom: 50px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.skills-grid article > p:last-child {
  margin: 0;
  color: var(--muted);
}

.awards-section {
  color: white;
  background: var(--accent);
}

.awards-section h2 {
  max-width: 650px;
  margin: 0;
  color: white;
}

.awards-section .eyebrow {
  color: #dce6ff;
}

.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: end;
}

.award-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.award-details div {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
}

.award-details strong {
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
}

.award-details span {
  color: #e3eaff;
  font-size: 0.82rem;
}

.contact-card {
  padding: 80px;
  text-align: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 26px;
}

.contact-card h2 {
  max-width: 830px;
  margin-inline: auto;
}

.contact-card > p:not(.eyebrow) {
  max-width: 760px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-actions {
  justify-content: center;
}

.contact-email {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent);
  font-weight: 800;
}

.footer {
  color: #9ba8b8;
  background: var(--dark);
}

.footer-inner {
  min-height: 160px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 50px;
}

.footer strong {
  color: white;
  font-family: "Manrope", sans-serif;
}

.footer p {
  margin: 3px 0 0;
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 55px;
    padding-block: 80px;
  }

  .hero-panel {
    max-width: 650px;
  }

  .about-grid,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .awards-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner > p:last-child {
    grid-column: 1 / -1;
    margin-bottom: 26px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .nav {
    min-height: 68px;
  }

  .brand > span:last-child {
    display: none;
  }

  .section {
    padding-block: 78px;
  }

  .project-card,
  .experience-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .featured-project,
  .experience-card {
    padding: 26px;
  }

  .metrics,
  .metrics.compact-metrics,
  .skills-grid,
  .award-details {
    grid-template-columns: 1fr;
  }

  .project-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .skills-grid article {
    min-height: auto;
  }

  .skill-number {
    margin-bottom: 30px;
  }

  .contact-card {
    padding: 50px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 42px;
  }

  .footer-inner > p:last-child {
    grid-column: auto;
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.75rem;
  }

  .nav-resume {
    padding: 8px 12px;
  }

  .hero {
    padding-block: 62px;
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .social-links {
    gap: 15px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
