:root {
  --bg: #f6f8fc;
  --surface: #fff;
  --surface-2: #edf1f8;
  --ink: #17243b;
  --muted: #627089;
  --line: #dce3ee;
  --blue: #345eea;
  --blue-2: #6d8cff;
  --navy: #111d34;
  --navy-2: #192943;
  --white: #f7f9ff;
  --shadow: 0 24px 70px rgba(27, 48, 87, 0.12);
  --radius: 22px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
.brand {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.045em;
}
a {
  color: inherit;
}
.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--blue);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-wrap {
  width: min(1120px, calc(100% - 40px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 30px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--blue);
  color: white;
  border-radius: 10px;
  font-size: 18px;
}
.brand-dot {
  color: var(--blue);
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav > a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.primary-nav > a:hover,
.primary-nav > a:focus-visible {
  color: var(--blue);
}
.primary-nav .nav-contact {
  color: var(--blue);
}
.theme-toggle,
.menu-toggle {
  border: 0;
  cursor: pointer;
}
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 20px;
}
.menu-toggle {
  display: none;
  background: none;
}
.hero {
  min-height: 650px;
  padding-block: 92px 88px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.17em;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
}
.section-heading .eyebrow {
  font-size: 16px;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: #26ad7c;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(38, 173, 124, 0.12);
}
.eyebrow-line {
  height: 1px;
  width: 35px;
  background: var(--line);
}
.hero-kicker {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(46px, 5.8vw, 75px);
  line-height: 1.08;
  margin: 0 0 24px;
  font-weight: 800;
}
.hero h1 span,
.section-heading h2 span,
.contact-inner h2 span {
  color: var(--blue);
}
.hero-intro {
  font-size: 21px;
  line-height: 1.5;
  font-weight: 600;
  max-width: 540px;
  margin: 0 0 13px;
}
.hero-summary {
  font-size: 15px;
  color: var(--muted);
  max-width: 550px;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 19px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 9px 22px rgba(52, 94, 234, 0.22);
}
.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.hero-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 35px;
  color: var(--muted);
  font-size: 12px;
}
.hero-meta strong {
  font-size: 18px;
  color: var(--ink);
}
.hero-meta i {
  height: 17px;
  width: 1px;
  background: var(--line);
}
.hero-card {
  height: 410px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, #182744, #0e1930);
  color: #fff;
  padding: 34px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.profile-icon {
  position: absolute;
  right: 32px;
  top: 36px;
  width: 94px;
  height: 94px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #a9bcff;
  z-index: 1;
}
.profile-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}
.card-orbit {
  position: absolute;
  border: 1px solid rgba(139, 166, 255, 0.2);
  border-radius: 50%;
  width: 330px;
  height: 330px;
  right: -95px;
  top: -130px;
}
.orbit-two {
  width: 240px;
  height: 240px;
  right: -48px;
  top: -85px;
  border-color: rgba(139, 166, 255, 0.15);
}
.hero-card-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #9eafd0;
  font-weight: 700;
}
.hero-card h2 {
  font-size: 33px;
  line-height: 1.18;
  margin: 12px 0 22px;
}
.focus-list {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
}
.focus-list span {
  font-size: 13px;
  color: #dce5fb;
}
.trust-strip {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.trust-inner {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.trust-inner span {
  font-size: 12px;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: var(--muted);
}
.trust-inner b {
  color: var(--blue);
  font-size: 14px;
}
.section {
  padding-block: 105px;
}
.section-heading {
  margin-bottom: 48px;
}
.section-heading h2,
.contact-inner h2 {
  font-size: clamp(37px, 4.7vw, 57px);
  line-height: 1.12;
  margin: 0;
  font-weight: 800;
}
.section-subtitle {
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
  margin: 17px 0 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
}
.large-copy {
  font: 600 25px/1.45 "Manrope";
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.about-lead > p:last-child {
  font-size: 15px;
  color: var(--muted);
  max-width: 430px;
}
.about-details {
  display: grid;
  gap: 23px;
}
.detail-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.detail-number {
  font: 700 13px "Manrope";
  color: var(--blue);
  padding-top: 4px;
}
.detail-item h3 {
  font-size: 18px;
  margin: 0 0 5px;
}
.detail-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.section-muted {
  background: var(--surface-2);
}
.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}
.heading-note {
  max-width: 290px;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 4px;
}
.timeline {
  border-top: 1px solid var(--line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.timeline-date span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-top: 5px;
}
.timeline-content {
  position: relative;
  padding-left: 28px;
}
.timeline-marker {
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 12%, transparent);
}
.timeline-content h3 {
  font-size: 22px;
  margin: 0;
}
.company {
  font-size: 13px;
  color: var(--blue);
  font-weight: 700;
  margin: 4px 0 13px;
}
.timeline-content ul {
  padding-left: 17px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.timeline-content li {
  padding: 3px 0;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.skill-card h3 {
  font-size: 20px;
  margin: 14px 0;
}
.skill-tags,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.skill-tags span,
.project-tags span {
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-2);
  padding: 6px 9px;
  border-radius: 5px;
}
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark .eyebrow {
  color: #9bb0ff;
}
.section-dark .section-heading h2 span {
  color: #8da7ff;
}
.section-dark .heading-note {
  color: #a7b4ca;
}
.project-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 17px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 24px;
}
.project-count {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #9eabc1;
  font-weight: 700;
}
.filter-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #bdc8da;
  border-radius: 6px;
  padding: 7px 11px;
  font: 600 12px "DM Sans";
  cursor: pointer;
}
.filter-button.active,
.filter-button:hover {
  background: #345eea;
  border-color: #345eea;
  color: white;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.project-card {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.project-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.project-card-link:focus-visible {
  outline: 2px solid #9bb0ff;
  outline-offset: -3px;
  border-radius: 15px;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(141, 167, 255, 0.5);
}
.project-card[hidden] {
  display: none;
}
.project-body {
  padding: 22px;
}
.project-body h3 {
  font-size: 22px;
  margin: 0;
}
.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.project-github-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: #c4d0e3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.project-github-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.project-card-link:hover .project-github-icon,
.project-card-link:focus-visible .project-github-icon {
  color: white;
  background-color: var(--blue);
}
.project-body > p:not(.project-note) {
  font-size: 13px;
  color: #b1bfd4;
  margin: 0 0 16px;
  min-height: 60px;
}
.project-tags span {
  background: rgba(255, 255, 255, 0.08);
  color: #c4d0e3;
}
.project-note {
  font-size: 12px;
  color: #899bb7;
  margin: 15px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.education-list {
  border-top: 1px solid var(--line);
}
.education-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.education-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border-radius: 10px;
  color: var(--blue);
}
.education-item h3 {
  font-size: 18px;
  margin: 0 0 4px;
}
.education-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.education-period {
  font-size: 12px;
  color: var(--muted);
}
.contact-section {
  background: #eaf0ff;
  padding-block: 88px;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.contact-copy {
  font-size: 15px;
  color: #61708c;
  max-width: 390px;
  margin: 0;
}
.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 14px 24px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    background-color 0.2s;
}
.contact-cta:hover {
  transform: translateY(-2px);
  background: var(--navy-2);
}
.site-footer {
  background: var(--navy);
  color: #9cabc2;
  padding: 22px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-inner .brand {
  color: white;
  font-size: 18px;
}
.footer-inner .brand-mark {
  width: 29px;
  height: 29px;
}
.footer-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-social-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.footer-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.footer-email-link svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: white;
  background-color: var(--navy-2);
}
.footer-inner p,
.footer-inner > span {
  font-size: 12px;
  margin: 0;
}
.js .section-shell:not(.hero) {
  animation: fade-up 0.6s ease both;
}
@keyframes fade-up {
  from {
    opacity: 0.7;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
:focus-visible {
  outline: 3px solid #83a0ff;
  outline-offset: 3px;
}
html[data-theme="dark"] {
  --bg: #101a2d;
  --surface: #17243b;
  --surface-2: #1d2c46;
  --ink: #f1f5ff;
  --muted: #a7b5cb;
  --line: #30415e;
  --blue: #8da7ff;
  --blue-2: #a7b9ff;
  --navy: #0b1322;
  --navy-2: #14213a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}
html[data-theme="dark"] .contact-section {
  background: #182744;
}
html[data-theme="dark"] .contact-copy {
  color: #aebbd1;
}
@media (max-width: 850px) {
  .primary-nav {
    gap: 16px;
  }
  .hero {
    gap: 35px;
  }
  .hero-card {
    height: 380px;
    padding: 26px;
  }
  .about-grid {
    gap: 45px;
  }
  .heading-note {
    max-width: 230px;
  }
}
@media (max-width: 680px) {
  .section-shell,
  .nav-wrap,
  .trust-inner {
    width: min(100% - 36px, 520px);
  }
  .site-header {
    height: 66px;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
  }
  .menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 18px 22px 22px;
    box-shadow: 0 18px 30px rgba(20, 35, 65, 0.1);
    align-items: stretch;
    gap: 0;
  }
  .primary-nav.open {
    display: flex;
    flex-direction: column;
  }
  .primary-nav > a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  .primary-nav .nav-contact {
    border: 0;
  }
  .theme-toggle {
    margin-top: 10px;
  }
  .hero {
    padding-block: 62px 58px;
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: unset;
  }
  .hero h1 {
    font-size: clamp(46px, 13.2vw, 64px);
  }
  .hero-intro {
    font-size: 19px;
  }
  .hero-card {
    height: 340px;
  }
  .profile-icon {
    width: 76px;
    height: 76px;
  }
  .trust-inner {
    justify-content: center;
    padding: 18px 0;
    gap: 10px 13px;
  }
  .trust-inner span {
    font-size: 12px;
  }
  .trust-inner b {
    font-size: 12px;
  }
  .section {
    padding-block: 72px;
  }
  .section-heading {
    margin-bottom: 32px;
  }
  .section-heading h2,
  .contact-inner h2 {
    font-size: 42px;
  }
  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .large-copy {
    font-size: 23px;
  }
  .heading-row {
    display: block;
  }
  .heading-note {
    margin-top: 18px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }
  .timeline-date span {
    display: inline;
    margin-left: 8px;
  }
  .timeline-content {
    padding-left: 22px;
  }
  .timeline-content h3 {
    font-size: 20px;
  }
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .skill-card {
    padding: 20px;
  }
  .project-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .filter-list {
    gap: 6px;
  }
  .filter-button {
    font-size: 12px;
    padding: 7px 9px;
  }
  .project-body > p:not(.project-note) {
    min-height: 0;
  }
  .education-item {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }
  .education-period {
    grid-column: 2;
  }
  .contact-section {
    padding-block: 65px;
  }
  .contact-inner {
    gap: 28px;
  }
  .footer-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .footer-inner p {
    order: 3;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
