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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #e8eaef;
  background: #0c0f14;
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(61, 139, 253, 0.14), transparent 52%);
  overflow-x: clip;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

code {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: #141922;
  border: 1px solid #252b38;
}

a {
  color: #3d8bfd;
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover {
  color: #5ca0ff;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 4rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #252b38;
  background: rgba(12, 15, 20, 0.88);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.site-main {
  min-width: 0;
  width: 100%;
  padding-block: 3rem 4.5rem;
}

#hero,
.section[id],
.project-card[id],
#journey,
#social,
#contact-form {
  scroll-margin-top: calc(4rem + 1rem);
}

.section {
  padding-block: 4.5rem;
  border-top: 1px solid #252b38;
}

.section__head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8eaef;
}

.section__lead {
  margin: 0;
  color: #8b93a7;
  font-size: 1rem;
  line-height: 1.65;
}

.section__actions {
  margin: 2rem 0 0;
}

.section--cta {
  border-top: 1px solid #252b38;
  padding-bottom: 3rem;
}

.page-header {
  margin-bottom: 3rem;
}
.page-header .page-lead {
  margin-bottom: 0;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-lead {
  margin: 0 0 3rem;
  font-size: 1.125rem;
  color: #8b93a7;
  max-width: 42rem;
}

.site-footer {
  border-top: 1px solid #252b38;
  padding-block: 3rem;
  color: #8b93a7;
  font-size: 0.8125rem;
}

.site-footer__inner {
  display: grid;
  gap: 2rem;
  text-align: center;
}

.site-footer__name {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: #e8eaef;
}

.site-footer__title {
  margin: 0;
  font-size: 0.8125rem;
  color: #8b93a7;
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.site-footer__list a {
  color: #8b93a7;
  font-weight: 500;
}
.site-footer__list a:hover {
  color: #3d8bfd;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.75rem;
}

.site-logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: #e8eaef;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.site-logo:hover {
  color: #3d8bfd;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  min-width: 0;
}

.site-nav a {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: #8b93a7;
  font-size: 0.9375rem;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a.is-active {
  color: #e8eaef;
  background: #141922;
}

.site-nav a.site-nav__resume {
  border: 1px solid #252b38;
  color: #e8eaef;
}
.site-nav a.site-nav__resume:hover, .site-nav a.site-nav__resume:focus-visible {
  border-color: #3d8bfd;
  color: #3d8bfd;
  background: rgba(20, 25, 34, 0.65);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  padding: 0;
  flex-shrink: 0;
  background: #141922;
  border: 1px solid #252b38;
  border-radius: 6px;
  color: #8b93a7;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.theme-toggle:hover {
  border-color: #3d8bfd;
  color: #3d8bfd;
}
.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 139, 253, 0.45);
}

.theme-toggle__icon {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  box-shadow: inset 0 -3px 0 0 currentColor;
}

html[data-theme=light] .theme-toggle__icon {
  border-radius: 6px;
  box-shadow: none;
  border-width: 0;
  width: 0.65rem;
  height: 0.65rem;
  background: currentColor;
  box-shadow: 0.35rem 0.35rem 0 -0.05rem currentColor;
}

.nav-toggle {
  display: none;
  padding: 0.5rem;
  background: #141922;
  border: 1px solid #252b38;
  border-radius: 6px;
  color: #e8eaef;
  cursor: pointer;
  font-size: 0.8125rem;
  font-family: inherit;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.btn--primary {
  background: #3d8bfd;
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.btn--primary:hover {
  background: #5ca0ff;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: #252b38;
  color: #e8eaef;
}
.btn--ghost:hover {
  border-color: #3d8bfd;
  color: #3d8bfd;
}

.card {
  background: #141922;
  border: 1px solid #252b38;
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 220ms ease, background 220ms ease;
}

.card:hover {
  border-color: #343c4f;
  background: #1a2130;
}

.card--project {
  border-left: 3px solid #3d8bfd;
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.card__meta {
  margin: 0 0 1rem;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.8125rem;
  color: #8b93a7;
}

.card__text {
  margin: 0;
  color: #8b93a7;
  font-size: 0.9375rem;
  line-height: 1.6;
}

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

.projects-showcase {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #141922;
  border: 1px solid #252b38;
  border-radius: 16px;
  overflow: hidden;
  border-left: 3px solid #3d8bfd;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.project-card:hover {
  border-color: #343c4f;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  transform: translateY(-4px);
}
.project-card:hover .project-card__placeholder {
  filter: brightness(1.08);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16/10;
  background: #0a0d12;
  border-bottom: 1px solid #252b38;
}
.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
  background: radial-gradient(120% 90% at var(--pointer-x, 50%) var(--pointer-y, 45%), rgba(61, 139, 253, 0.35), transparent 55%);
}

.project-card:hover .project-card__media::after {
  opacity: 1;
}

.project-card__placeholder {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, rgba(61, 139, 253, 0.1) 0%, transparent 52%), repeating-linear-gradient(-38deg, rgba(37, 43, 56, 0.65), rgba(37, 43, 56, 0.65) 1px, transparent 1px, transparent 12px);
  color: #6b7289;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: filter 220ms ease;
}
.project-card__placeholder::after {
  content: "Screenshot";
}

.project-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  padding: 1.5rem 2rem 2rem;
}

.project-card__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #e8eaef;
}

.project-card__desc {
  margin: 0 0 1.5rem;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #8b93a7;
}

.project-card__cta {
  align-self: flex-start;
}

@keyframes hero-gradient-drift {
  0% {
    transform: translate(0%, 0%) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translate(2%, -3%) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translate(-1%, 2%) scale(1.02);
    opacity: 0.88;
  }
}
@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero {
  position: relative;
  isolation: isolate;
  padding-block: 3rem 4.5rem;
  border-radius: 16px;
  overflow: hidden;
  max-width: 100%;
}

.hero__surface {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 100% 80% at 10% 20%, rgba(61, 139, 253, 0.18), transparent 55%), radial-gradient(ellipse 90% 70% at 90% 60%, rgba(94, 234, 212, 0.06), transparent 50%), linear-gradient(155deg, rgba(20, 25, 34, 0.95) 0%, rgba(10, 13, 18, 0.65) 45%, rgba(20, 25, 34, 0.88) 100%);
  border: 1px solid #252b38;
  animation: hero-gradient-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(46rem, 100%);
  margin-inline: auto;
  padding-inline: clamp(0.5rem, 4vw, 2rem);
  box-sizing: border-box;
}

.hero__eyebrow {
  margin: 0 0 1.5rem;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: #8b93a7;
  animation: hero-fade-up 0.75s ease-out 0.05s both;
}

.hero__name {
  color: #3d8bfd;
  font-weight: 500;
}

.hero__eyebrow-sep {
  margin: 0 0.5rem;
  color: #343c4f;
}

.hero__role {
  color: #8b93a7;
  font-weight: 500;
}

.hero__headline {
  margin: 0 0 1.5rem;
  max-width: 100%;
  font-size: clamp(1.35rem, 2vw + 0.85rem, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.22;
  color: #e8eaef;
  text-wrap: balance;
  overflow-wrap: normal;
  hyphens: manual;
  animation: hero-fade-up 0.75s ease-out 0.14s both;
}

.hero__intro {
  margin: 0;
  max-width: 42rem;
  font-size: 1.0625rem;
  color: #8b93a7;
  line-height: 1.7;
  overflow-wrap: break-word;
  animation: hero-fade-up 0.75s ease-out 0.22s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  animation: hero-fade-up 0.75s ease-out 0.3s both;
}

.about-preview__text {
  margin: 0 0 1.5rem;
  color: #8b93a7;
  font-size: 1rem;
  line-height: 1.65;
}

.about-preview__link {
  align-self: flex-start;
}

.about-preview .card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-page {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.about-bio__heading {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8eaef;
}

.about-bio__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-bio__content p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #8b93a7;
}

.about-bio__content strong {
  color: #e8eaef;
  font-weight: 600;
}

.about-timeline-section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8eaef;
}

.about-timeline-section__lead {
  margin: 0 0 3rem;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #8b93a7;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, #3d8bfd 0%, rgba(61, 139, 253, 0.25) 55%, #252b38 100%);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: relative;
  z-index: 1;
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.35rem;
  margin-left: 0.19rem;
  border-radius: 50%;
  background: #3d8bfd;
  box-shadow: 0 0 0 4px rgba(61, 139, 253, 0.22);
  flex-shrink: 0;
}

.timeline__body {
  padding: 1.5rem 2rem;
  background: #141922;
  border: 1px solid #252b38;
  border-radius: 16px;
  border-left: 3px solid #3d8bfd;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.timeline__item:hover .timeline__body {
  border-color: #343c4f;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.timeline__period {
  margin: 0 0 0.25rem;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d8bfd;
}

.timeline__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #e8eaef;
}

.timeline__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #8b93a7;
}

.timeline__text strong {
  color: #e8eaef;
  font-weight: 600;
}

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

.skills-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(165deg, rgba(20, 25, 34, 0.98) 0%, rgba(10, 13, 18, 0.55) 100%);
  border: 1px solid #252b38;
  border-radius: 16px;
  border-top: 3px solid #3d8bfd;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.skills-card:hover {
  border-color: #343c4f;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.skills-card__title {
  margin: 0;
  font-size: 0.8125rem;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3d8bfd;
}

.skills-card__tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #e8eaef;
  background: #141922;
  border: 1px solid #252b38;
  border-radius: 10px;
  transition: border-color 150ms ease, color 150ms ease;
}
.skill-chip:hover {
  border-color: #3d8bfd;
  color: #3d8bfd;
}

.contact-cta {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  padding: 3rem;
  background: #141922;
  border: 1px solid #252b38;
  border-radius: 16px;
}

.contact-cta__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8eaef;
}

.contact-cta__text {
  margin: 0 0 2rem;
  color: #8b93a7;
  font-size: 1rem;
  line-height: 1.65;
}

.contact-section {
  margin-top: 0;
}

.contact-section__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-panel__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8eaef;
}

.contact-panel__lead {
  margin: 0 0 2rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #8b93a7;
}

.contact-panel__lead code {
  font-size: 0.9em;
}

.contact-panel--aside .contact-panel__lead {
  margin-bottom: 1.5rem;
}

.contact-form {
  margin: 0;
}

.contact-form .form-group:last-of-type {
  margin-bottom: 0;
}

.contact-form__footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #252b38;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #8b93a7;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: #e8eaef;
  background: #0a0d12;
  border: 1px solid #252b38;
  border-radius: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7289;
}
.form-group input:hover,
.form-group textarea:hover {
  border-color: #343c4f;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3d8bfd;
  background: rgba(12, 15, 20, 0.6);
  box-shadow: 0 0 0 3px rgba(61, 139, 253, 0.45);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.55;
}

.social-nav {
  margin: 0;
}

.social-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-links__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border: 1px solid #252b38;
  background: #0a0d12;
  color: #e8eaef;
  font-weight: 500;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}
.social-links__link:hover {
  border-color: #3d8bfd;
  color: #3d8bfd;
  background: rgba(20, 25, 34, 0.85);
  transform: translateX(4px);
}

.social-links__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #3d8bfd;
  background: rgba(61, 139, 253, 0.12);
  border: 1px solid rgba(61, 139, 253, 0.28);
  border-radius: 6px;
}

.social-links__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.social-links__name {
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
}

.social-links__hint {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: #6b7289;
}

.social-links__link:hover .social-links__hint {
  color: #8b93a7;
}

html.js-reveal .reveal-target {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js-reveal .reveal-target.is-revealed {
  opacity: 1;
  transform: none;
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[data-theme=light] {
  color-scheme: light;
}

html[data-theme=light] body {
  color: #0f172a;
  background: #f1f5f9;
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(37, 99, 235, 0.08), transparent 52%);
}

html[data-theme=light] a {
  color: #1d4ed8;
}

html[data-theme=light] a:hover {
  color: #2563eb;
}

html[data-theme=light] code {
  color: #0f172a;
  background: #e2e8f0;
  border-color: #cbd5e1;
}

html[data-theme=light] .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: #e2e8f0;
}

html[data-theme=light] .site-nav a {
  color: #475569;
}

html[data-theme=light] .site-nav a:hover,
html[data-theme=light] .site-nav a.is-active {
  color: #0f172a;
  background: #e2e8f0;
}

html[data-theme=light] .site-nav a.site-nav__resume {
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme=light] .site-nav a.site-nav__resume:hover,
html[data-theme=light] .site-nav a.site-nav__resume:focus-visible {
  border-color: #2563eb;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

html[data-theme=light] .nav-toggle {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme=light] .site-logo {
  color: #0f172a;
}

html[data-theme=light] .theme-toggle {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme=light] .theme-toggle:hover {
  border-color: #2563eb;
  color: #1d4ed8;
}

html[data-theme=light] .page-title,
html[data-theme=light] .section__title,
html[data-theme=light] .hero__headline,
html[data-theme=light] .contact-cta__title,
html[data-theme=light] .about-bio__heading,
html[data-theme=light] .about-timeline-section__title,
html[data-theme=light] .contact-panel__title,
html[data-theme=light] .project-card__title,
html[data-theme=light] .timeline__title,
html[data-theme=light] .card__title {
  color: #0f172a;
}

html[data-theme=light] .page-lead,
html[data-theme=light] .section__lead,
html[data-theme=light] .hero__intro,
html[data-theme=light] .hero__role,
html[data-theme=light] .hero__eyebrow .hero__role,
html[data-theme=light] .contact-cta__text,
html[data-theme=light] .about-bio__content strong,
html[data-theme=light] .timeline__text strong,
html[data-theme=light] .about-bio__content p,
html[data-theme=light] .about-timeline-section__lead,
html[data-theme=light] .contact-panel__lead,
html[data-theme=light] .project-card__desc,
html[data-theme=light] .timeline__text,
html[data-theme=light] .card__text,
html[data-theme=light] .card__meta {
  color: #475569;
}

html[data-theme=light] .hero__eyebrow {
  color: #64748b;
}

html[data-theme=light] .hero__eyebrow .hero__name {
  color: #1d4ed8;
}

html[data-theme=light] .card,
html[data-theme=light] .project-card,
html[data-theme=light] .skills-card,
html[data-theme=light] .timeline__body,
html[data-theme=light] .contact-cta,
html[data-theme=light] .contact-panel,
html[data-theme=light] .skill-chip {
  background: #fff;
  border-color: #e2e8f0;
}

html[data-theme=light] .card:hover,
html[data-theme=light] .project-card:hover,
html[data-theme=light] .skills-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

html[data-theme=light] .timeline__item:hover .timeline__body {
  border-color: #cbd5e1;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

html[data-theme=light] .section {
  border-top-color: #e2e8f0;
}

html[data-theme=light] .section--cta {
  border-top-color: #e2e8f0;
}

html[data-theme=light] .hero__surface {
  background: radial-gradient(ellipse 100% 80% at 10% 20%, rgba(37, 99, 235, 0.12), transparent 55%), radial-gradient(ellipse 90% 70% at 90% 60%, rgba(14, 165, 233, 0.08), transparent 50%), linear-gradient(155deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.9) 45%, rgba(255, 255, 255, 0.92) 100%);
  border-color: #e2e8f0;
}

html[data-theme=light] .project-card__media {
  background: #f1f5f9;
  border-bottom-color: #e2e8f0;
}

html[data-theme=light] .project-card__placeholder {
  color: #64748b;
  background: linear-gradient(155deg, rgba(37, 99, 235, 0.08) 0%, transparent 52%), repeating-linear-gradient(-38deg, rgba(148, 163, 184, 0.35), rgba(148, 163, 184, 0.35) 1px, transparent 1px, transparent 12px);
}

html[data-theme=light] .form-group input,
html[data-theme=light] .form-group textarea {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme=light] .form-group input:hover,
html[data-theme=light] .form-group textarea:hover {
  border-color: #94a3b8;
}

html[data-theme=light] .form-group input:focus,
html[data-theme=light] .form-group textarea:focus {
  background: #fff;
  border-color: #2563eb;
}

html[data-theme=light] .btn--ghost {
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme=light] .btn--ghost:hover {
  border-color: #2563eb;
  color: #1d4ed8;
}

html[data-theme=light] .btn--primary {
  background: #2563eb;
}

html[data-theme=light] .btn--primary:hover {
  background: #1d4ed8;
}

html[data-theme=light] .site-footer {
  border-top-color: #e2e8f0;
  color: #64748b;
}

html[data-theme=light] .site-footer__name {
  color: #0f172a;
}

html[data-theme=light] .site-footer__list a {
  color: #64748b;
}

html[data-theme=light] .site-footer__list a:hover {
  color: #2563eb;
}

html[data-theme=light] .social-links__link {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

html[data-theme=light] .social-links__link:hover {
  background: #fff;
}

html[data-theme=light] .social-links__hint {
  color: #64748b;
}

html[data-theme=light] .contact-form__footer {
  border-top-color: #e2e8f0;
}

html[data-theme=light] .timeline::before {
  background: linear-gradient(180deg, #2563eb 0%, rgba(37, 99, 235, 0.25) 55%, #cbd5e1 100%);
}

html[data-theme=light] .timeline__marker {
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

html[data-theme=light] .timeline__period,
html[data-theme=light] .skills-card__title {
  color: #1d4ed8;
}

@media (max-width: 900px) {
  html[data-theme=light] .site-nav {
    background: #fff;
    border-bottom-color: #e2e8f0;
  }
}
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: #0c0f14;
    border-bottom: 1px solid #252b38;
    display: none;
    z-index: 100;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-header__inner {
    position: relative;
  }
  .site-nav a {
    width: 100%;
    text-align: center;
    padding-block: 1rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .site-nav a.site-nav__resume {
    margin-top: 0.5rem;
    justify-content: center;
  }
  .site-logo {
    min-width: 0;
    flex-shrink: 1;
    font-size: clamp(0.9375rem, 3.5vw, 1.125rem);
  }
  .container {
    padding-inline: clamp(0.5rem, 4vw, 1.5rem);
  }
}
@media (min-width: 901px) {
  .nav-toggle {
    display: none !important;
  }
  .site-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.25rem;
    padding: 0;
    background: transparent;
    border: none;
  }
  .site-nav a {
    text-align: left;
    padding: 0.5rem 0.5rem;
    font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
  }
  .site-nav a.site-nav__resume {
    margin-top: 0;
  }
}
@media (max-width: 639px) {
  .site-main {
    padding-block: 2rem 3rem;
  }
  .hero {
    padding-block: 2rem 3rem;
  }
}
@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skills-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .projects-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-section__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: start;
  }
  .site-footer__inner {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: left;
  }
  .site-footer__list {
    justify-content: center;
  }
  .site-footer__copy {
    text-align: right;
  }
}
@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
  .hero {
    padding-block: 4.5rem 6rem;
  }
  .skills-categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .projects-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__surface {
    animation: none;
  }
  .hero__eyebrow,
  .hero__headline,
  .hero__intro,
  .hero__actions {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .skills-card:hover {
    transform: none;
  }
  .project-card:hover {
    transform: none;
  }
  .project-card:hover .project-card__placeholder {
    filter: none;
  }
  .project-card:hover .project-card__media::after {
    opacity: 0;
  }
  html.js-reveal .reveal-target {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .timeline__item:hover .timeline__body {
    box-shadow: none;
  }
  .social-links__link:hover {
    transform: none;
  }
}
