:root {
  --bg: #0b1220;
  --bg-elevated: rgba(15, 23, 42, 0.78);
  --surface: rgba(15, 23, 42, 0.72);
  --surface-strong: rgba(15, 23, 42, 0.88);
  --surface-soft: rgba(20, 31, 56, 0.72);
  --text: #e5eefc;
  --text-muted: #98a7c5;
  --heading: #f8fbff;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(125, 211, 252, 0.28);
  --accent: #63d5ff;
  --accent-strong: #7c5cff;
  --accent-wash: rgba(99, 213, 255, 0.18);
  --shadow-lg: 0 24px 70px rgba(2, 8, 23, 0.34);
  --shadow-md: 0 14px 36px rgba(2, 8, 23, 0.2);
  --shadow-sm: 0 8px 24px rgba(2, 8, 23, 0.14);
  --radius-xl: 2rem;
  --radius-lg: 1.4rem;
  --radius-md: 1rem;
  --container: min(1120px, calc(100% - 2rem));
}

[data-theme="light"] {
  --bg: #eef4ff;
  --bg-elevated: rgba(255, 255, 255, 0.8);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(245, 249, 255, 0.86);
  --text: #17253d;
  --text-muted: #60708f;
  --heading: #0b172d;
  --border: rgba(90, 118, 154, 0.16);
  --border-strong: rgba(59, 130, 246, 0.26);
  --accent: #127eff;
  --accent-strong: #6f51ff;
  --accent-wash: rgba(18, 126, 255, 0.12);
  --shadow-lg: 0 24px 70px rgba(108, 142, 190, 0.22);
  --shadow-md: 0 14px 36px rgba(112, 139, 176, 0.16);
  --shadow-sm: 0 8px 24px rgba(112, 139, 176, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(99, 213, 255, 0.16), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(124, 92, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #0b1220 0%, #09101b 100%);
  color: var(--text);
  line-height: 1.65;
  transition: background-color 220ms ease, color 220ms ease;
}

body.menu-open {
  overflow: hidden;
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 20% 20%, rgba(18, 126, 255, 0.12), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(111, 81, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #eef4ff 0%, #e7f0ff 100%);
}

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

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(99, 213, 255, 0.26);
  color: var(--heading);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: clip;
  pointer-events: none;
}

.page-background__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.6;
}

.page-background__orb--one {
  top: 7rem;
  right: -10rem;
  width: 26rem;
  height: 26rem;
  background: rgba(99, 213, 255, 0.2);
}

.page-background__orb--two {
  bottom: 8rem;
  left: -8rem;
  width: 22rem;
  height: 22rem;
  background: rgba(124, 92, 255, 0.16);
}

.page-background__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 75%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 20px rgba(99, 213, 255, 0.4);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  gap: 1rem;
  background: rgba(4, 10, 22, 0.94);
  color: #f8fbff;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.page-loader__mark {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.9), rgba(99, 213, 255, 0.9));
  box-shadow: 0 16px 40px rgba(99, 213, 255, 0.16);
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1100;
  padding: 1rem 0 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand__mark {
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-soft);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__text {
  display: grid;
  gap: 0.05rem;
}

.brand__text strong {
  font-size: 0.98rem;
  color: var(--heading);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link,
.nav-cta {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--accent-wash);
  color: var(--heading);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(82, 129, 255, 0.28);
}

.nav-cta:hover {
  transform: translateY(-1px);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--heading);
}

.theme-toggle__track {
  position: relative;
  width: 2.5rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
}

.theme-toggle__thumb {
  position: absolute;
  top: 0.17rem;
  left: 0.18rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  transition: transform 180ms ease;
}

[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(1.12rem);
}

.theme-toggle__label {
  font-size: 0.84rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--heading);
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  margin: 0.17rem auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  padding: 5rem 0;
}

.section-eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__header {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section__header h2,
.hero__content h1,
.profile-card__role,
.info-panel h3,
.skill-card h3,
.project-card h3,
.timeline__item h3,
.contact-copy h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--heading);
}

.section__header h2 {
  font-size: clamp(1.8rem, 1.25rem + 2vw, 3rem);
  line-height: 1.15;
}

.hero {
  padding-top: 4rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 360px);
  gap: 3rem;
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(2.6rem, 1.65rem + 3vw, 4.9rem);
  line-height: 1.05;
  max-width: 12ch;
}

.hero__lede,
.hero__location-line,
.about-copy p,
.info-panel p,
.skill-card li,
.project-card p,
.timeline__item p,
.contact-copy p,
.form-status,
.profile-card__meta-item p {
  color: var(--text-muted);
}

.hero__lede {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  font-size: 1.03rem;
}

.hero__location-line {
  margin: 1rem 0 0;
  font-size: 0.98rem;
}

.hero__typing {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  box-shadow: var(--shadow-sm);
}

.hero__typing-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(82, 129, 255, 0.25);
}

.button--secondary {
  background: var(--surface-soft);
  border-color: var(--border);
  color: var(--heading);
}

.button--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.hero__contact-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 1.8rem 0 0;
  list-style: none;
}

.hero__contact-strip li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero__contact-strip span,
.profile-card__meta-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__contact-strip a {
  color: var(--heading);
  font-weight: 700;
  word-break: break-word;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__socials,
.contact-copy__socials {
  margin-top: 1.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-soft);
  color: var(--heading);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.social-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--accent-wash);
  box-shadow: var(--shadow-md);
}

.social-link--placeholder {
  opacity: 0.44;
  cursor: default;
}

.social-link--placeholder:hover {
  transform: none;
  border-color: var(--border);
  background: var(--surface-soft);
  box-shadow: var(--shadow-sm);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.profile-card {
  width: 100%;
  padding: 1.25rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow-lg);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 74px rgba(2, 8, 23, 0.3);
}

.profile-card__header {
  display: grid;
  gap: 0.45rem;
}

.profile-card__name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--heading);
}

.profile-card__role {
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem);
  line-height: 1.28;
}

.profile-card__image-shell {
  margin: 1rem 0;
  padding: 0.6rem;
  border-radius: 1.7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-card__image {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 1.25rem;
}

.profile-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(99, 213, 255, 0.1);
  border: 1px solid rgba(99, 213, 255, 0.22);
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: 700;
}

.profile-card__meta {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.profile-card__meta-item {
  padding-top: 0.25rem;
}

.profile-card__meta-item strong {
  display: block;
  color: var(--heading);
  font-size: 1.2rem;
}

.profile-card__meta-item p {
  margin: 0;
}

.profile-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.profile-card__chips li {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--heading);
  font-size: 0.88rem;
  font-weight: 700;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.about-copy,
.contact-copy,
.contact-form,
.info-panel,
.skill-card,
.project-card,
.timeline__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.about-copy,
.contact-copy,
.contact-form {
  padding: 1.5rem;
}

.about-copy p:first-child,
.contact-copy p:first-of-type {
  margin-top: 0;
}

.about-panels {
  display: grid;
  gap: 1rem;
}

.info-panel {
  padding: 1.35rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.info-panel:hover,
.skill-card:hover,
.project-card:hover,
.timeline__item:hover,
.contact-form:hover,
.contact-copy:hover,
.about-copy:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.info-panel h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.info-panel p {
  margin: 0;
}

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

.skill-card {
  padding: 1.35rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.skill-card ul,
.project-card__stack {
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.skill-card li,
.project-card__stack li {
  position: relative;
  padding-left: 1rem;
}

.skill-card li + li,
.project-card__stack li + li {
  margin-top: 0.6rem;
}

.skill-card li::before,
.project-card__stack li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent);
}

.projects-grid {
  display: grid;
  gap: 1.2rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card__media {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(99, 213, 255, 0.18), transparent 45%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(17, 34, 61, 0.75));
}

.project-card__media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.project-card__content {
  padding: 1.45rem;
}

.project-card__problem {
  margin: 0.75rem 0 0.45rem;
  color: var(--heading);
  font-weight: 700;
}

.project-card__outcome {
  margin: 1rem 0 0;
}

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.8rem;
  bottom: 0.8rem;
  left: 1.4rem;
  width: 1px;
  background: rgba(148, 163, 184, 0.24);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.35rem 1.35rem 1.35rem 0.95rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.timeline__marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #ffffff;
  font-family: "Sora", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.timeline__item h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.timeline__item p {
  margin: 0;
}

.contact-copy h2 {
  font-size: clamp(1.8rem, 1.35rem + 1.6vw, 3rem);
  line-height: 1.14;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.contact-details a,
.contact-details span,
.footer__links a {
  color: var(--heading);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 1rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
}

.contact-form span {
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--heading);
  outline: none;
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
  background: rgba(255, 255, 255, 0.72);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(99, 213, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(99, 213, 255, 0.12);
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
}

.footer {
  padding: 0 0 2rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.footer__inner p {
  margin: 0;
  color: var(--text-muted);
}

.footer__links {
  justify-content: flex-end;
  align-items: center;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: var(--surface-strong);
  color: var(--heading);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero__grid,
  .about-grid,
  .contact-grid,
  .project-card {
    grid-template-columns: 1fr;
  }

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

  .hero__content h1 {
    max-width: 13ch;
  }

  .project-card__media {
    min-height: 14rem;
  }
}

@media (max-width: 860px) {
  .navbar__inner {
    position: relative;
    border-radius: 1.5rem;
  }

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

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 1.35rem;
    background: var(--surface-strong);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link,
  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .theme-toggle__label,
  .brand__text span {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero__contact-strip,
  .skills-grid,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .project-card__actions,
  .footer__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .footer__links {
    justify-content: center;
    align-items: center;
  }

  .button,
  .back-to-top {
    width: 100%;
  }

  .profile-card {
    padding: 1rem;
  }

  .profile-card__chips {
    gap: 0.55rem;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    padding-left: 1.2rem;
  }

  .timeline::before {
    left: 1.8rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
