/*=============== VARIABLES ===============*/
:root {
  --header-height: 4rem;

  /* Dark theme (default) */
  --bg: hsl(228, 24%, 6%);
  --bg-soft: hsl(228, 20%, 9%);
  --surface: hsl(228, 18%, 11%);
  --surface-2: hsl(228, 16%, 14%);
  --border: hsl(228, 14%, 20%);
  --text: hsl(228, 12%, 88%);
  --text-soft: hsl(228, 10%, 66%);
  --text-dim: hsl(228, 8%, 48%);
  --title: hsl(228, 20%, 97%);

  --accent: hsl(255, 88%, 72%);
  --accent-2: hsl(190, 85%, 62%);
  --accent-strong: hsl(255, 80%, 66%);
  --accent-soft: hsla(255, 88%, 72%, 0.14);
  --gradient: linear-gradient(120deg, hsl(255, 88%, 70%), hsl(200, 88%, 64%));

  --shadow-sm: 0 2px 8px hsla(228, 40%, 2%, 0.35);
  --shadow-md: 0 12px 32px hsla(228, 40%, 2%, 0.45);
  --shadow-lg: 0 24px 60px hsla(228, 50%, 2%, 0.55);

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Sora", var(--font-body);

  --fs-hero: clamp(2.4rem, 6vw, 4.2rem);
  --fs-h2: clamp(1.8rem, 3.6vw, 2.6rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.2rem);
  --fs-base: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.78rem;

  --z-fixed: 100;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --max-width: 1120px;
}

.light-theme {
  --bg: hsl(228, 40%, 99%);
  --bg-soft: hsl(228, 38%, 97%);
  --surface: hsl(0, 0%, 100%);
  --surface-2: hsl(228, 36%, 96%);
  --border: hsl(228, 20%, 88%);
  --text: hsl(228, 24%, 22%);
  --text-soft: hsl(228, 14%, 40%);
  --text-dim: hsl(228, 10%, 55%);
  --title: hsl(228, 40%, 12%);

  --accent: hsl(255, 74%, 60%);
  --accent-2: hsl(196, 82%, 46%);
  --accent-strong: hsl(255, 74%, 56%);
  --accent-soft: hsla(255, 74%, 60%, 0.12);
  --gradient: linear-gradient(120deg, hsl(255, 74%, 60%), hsl(200, 82%, 52%));

  --shadow-sm: 0 2px 8px hsla(228, 30%, 40%, 0.1);
  --shadow-md: 0 12px 30px hsla(228, 30%, 40%, 0.14);
  --shadow-lg: 0 24px 56px hsla(228, 30%, 40%, 0.18);
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s, color 0.4s;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--title);
  line-height: 1.15;
  font-weight: 600;
}

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

ul {
  list-style: none;
}

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

.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;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/*=============== INITIAL LOADER ===============*/
.app-loader {
  display: none;
}

.js .app-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  animation: loader-failsafe 0.3s ease 4s forwards;
}

.js .app-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-loader__spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: loader-spin 0.75s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Never leave the page blocked if the deferred script fails to load. */
@keyframes loader-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/*=============== REUSABLE ===============*/
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section__subtitle {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: 0 8px 22px hsla(255, 80%, 50%, 0.28);
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px hsla(255, 80%, 50%, 0.38);
  filter: saturate(1.1);
}
.button svg {
  transition: transform 0.25s ease;
}
.button:hover svg {
  transform: translateY(1px);
}

.button--ghost {
  background: transparent;
  color: var(--title);
  border: 1px solid var(--border);
  box-shadow: none;
}
.button--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: var(--z-fixed);
  background: transparent;
  transition: background-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.header.scroll-header {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--title);
}
.nav__logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav__logo-text {
  font-size: 0.95rem;
}

.nav__list {
  display: flex;
  gap: 2rem;
}
.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__link:hover,
.nav__link.active-link {
  color: var(--title);
}
.nav__link.active-link::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__btn,
.nav__toggle,
.nav__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--text-soft);
  transition: color 0.25s, background-color 0.25s, transform 0.25s;
}
.nav__btn:hover,
.nav__toggle:hover,
.nav__close:hover {
  color: var(--title);
  background: var(--surface);
}
.nav__icon-sun {
  display: none;
}
.light-theme .nav__icon-sun {
  display: block;
}
.light-theme .nav__icon-moon {
  display: none;
}

.nav__toggle,
.nav__close {
  display: none;
}
.nav__overlay {
  display: none;
}

/*=============== HOME ===============*/
.home {
  padding-top: calc(var(--header-height) + clamp(2rem, 6vw, 4.5rem));
}
.home__container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.home__greeting {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-soft);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.home__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(150, 70%, 55%);
  box-shadow: 0 0 0 0 hsla(150, 70%, 55%, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 hsla(150, 70%, 55%, 0.55); }
  70% { box-shadow: 0 0 0 8px hsla(150, 70%, 55%, 0); }
  100% { box-shadow: 0 0 0 0 hsla(150, 70%, 55%, 0); }
}

.home__name {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}
.home__title {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}
.home__description {
  max-width: 46ch;
  color: var(--text-soft);
  font-size: var(--fs-lead);
  margin-bottom: 2rem;
}

.home__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.home__social {
  display: flex;
  gap: 0.75rem;
}
.home__social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: var(--surface);
  transition: transform 0.25s, color 0.25s, border-color 0.25s;
}
.home__social-link:hover {
  transform: translateY(-3px);
  color: var(--accent);
  border-color: var(--accent);
}

/* Home visual */
.home__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
  aspect-ratio: 1;
}
.home__blob {
  position: absolute;
  inset: -8%;
  background: var(--gradient);
  filter: blur(46px);
  opacity: 0.35;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  animation: morph 12s ease-in-out infinite;
  z-index: 0;
}
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; }
  50% { border-radius: 58% 42% 42% 58% / 55% 55% 45% 45%; }
}
.home__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 30% 70% 62% 38% / 42% 40% 60% 58%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: morph 12s ease-in-out infinite;
}
.home__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home__badge {
  position: absolute;
  right: -4%;
  bottom: 8%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow-md);
}
.home__badge-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
}
.home__badge-label {
  font-size: var(--fs-xs);
  color: var(--text-soft);
  max-width: 8ch;
}

/* Stats */
.home__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}
.home__stat {
  text-align: center;
}
.home__stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--title);
}
.home__stat-label {
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

/*=============== ABOUT ===============*/
.about__container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.about__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__lead {
  font-size: var(--fs-lead);
  color: var(--title);
  font-weight: 500;
  margin-bottom: 1rem;
}
.about__text {
  color: var(--text-soft);
  margin-bottom: 1.75rem;
}
.about__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.about__fact {
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.about__fact-label {
  display: block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}
.about__fact-value {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--title);
}

/*=============== EXPERIENCE / TIMELINE ===============*/
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
  opacity: 0.4;
}
.timeline__item {
  position: relative;
  padding-bottom: 2.25rem;
}
.timeline__item:last-child {
  padding-bottom: 0;
}
.timeline__marker {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.timeline__marker--edu {
  background: var(--accent-2);
}
.timeline__content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  transition: transform 0.25s, border-color 0.25s;
}
.timeline__content:hover {
  transform: translateX(4px);
  border-color: var(--accent);
}
.timeline__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}
.timeline__heading > div {
  min-width: 0;
}
.timeline__logo {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 6px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.timeline__logo--wide {
  width: 96px;
}
.timeline__period {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.timeline__role {
  font-size: var(--fs-h3);
}
.timeline__org {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}
.timeline__heading .timeline__org {
  margin-bottom: 0.75rem;
}
.timeline__points {
  display: grid;
  gap: 0.4rem;
}
.timeline__points li {
  position: relative;
  padding-left: 1.1rem;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.timeline__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@media screen and (max-width: 480px) {
  .timeline__heading {
    gap: 0.75rem;
  }
  .timeline__logo {
    width: 48px;
    height: 48px;
  }
  .timeline__logo--wide {
    width: 78px;
  }
}

/*=============== WORK / PROJECTS ===============*/
.work__featured {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.project:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: var(--shadow-md);
}
.project--feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
}
.project--feature:nth-child(even) {
  grid-template-columns: 1fr 1.05fr;
}
.project--feature:nth-child(even) .project__cover {
  order: 2;
}

.project__cover {
  position: relative;
  min-height: 260px;
  background: var(--surface-2);
  overflow: hidden;
}
.project__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project__cover--sm {
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.project__cover--olivia {
  background: linear-gradient(135deg, hsl(255, 60%, 30%), hsl(220, 70%, 22%));
}
.project__cover--booking {
  background: linear-gradient(135deg, hsl(190, 65%, 28%), hsl(160, 60%, 24%));
}
.project__cover--olivia,
.project__cover--booking {
  display: grid;
  place-items: center;
}
.project__cover--olivia::after,
.project__cover--booking::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, hsla(0, 0%, 100%, 0.14) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, hsla(0, 0%, 100%, 0.1) 0, transparent 45%);
}
.project__cover-tag {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: hsla(0, 0%, 100%, 0.92);
  letter-spacing: 0.02em;
  padding: 0.5rem 1.1rem;
  border: 1px solid hsla(0, 0%, 100%, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.project__body {
  padding: 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project__year {
  color: var(--accent);
  font-weight: 600;
}
.project__role {
  color: var(--text-dim);
  font-weight: 500;
}
.project__title {
  font-size: var(--fs-h3);
}
.project__title--sm {
  font-size: 1.15rem;
}
.project__desc {
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.project__tags li {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-soft);
  padding: 0.3rem 0.7rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.project__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.4rem;
  transition: gap 0.25s;
}
.project__link:hover {
  gap: 0.6rem;
}

.work__subhead {
  text-align: center;
  font-size: var(--fs-h3);
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 1.75rem;
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}
.work__grid .project__body {
  padding: 1.25rem 1.4rem;
}

/*=============== SKILLS ===============*/
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.skills__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.25s, border-color 0.25s;
}
.skills__card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.skills__title {
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skills__list li {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  padding: 0.4rem 0.8rem;
  background: var(--surface-2);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.skills__list li:hover {
  color: var(--title);
  border-color: var(--accent);
}

.certs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.certs__title {
  font-size: var(--fs-h3);
  margin-bottom: 1.25rem;
}
.certs__list {
  display: grid;
  gap: 0.5rem;
}
.certs__item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.certs__item:last-child {
  border-bottom: none;
}
.certs__name {
  font-weight: 500;
  color: var(--title);
  font-size: var(--fs-sm);
}
.certs__meta {
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

/*=============== CONTACT ===============*/
.contact__panel {
  max-width: 900px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact__panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: var(--gradient);
  opacity: 0.08;
  filter: blur(60px);
  pointer-events: none;
}
.contact__lead {
  position: relative;
  max-width: 52ch;
  margin: 0 auto 2rem;
  font-size: var(--fs-lead);
  color: var(--text-soft);
}
.contact__methods {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.4rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s;
}
.contact__card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.contact__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.contact__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.contact__value {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--title);
  word-break: break-word;
}
.contact__cta {
  position: relative;
}

/*=============== FOOTER ===============*/
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding-block: 2.5rem;
}
.footer__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--title);
}
.footer__tagline {
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer__link {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  transition: color 0.25s;
}
.footer__link:hover {
  color: var(--accent);
}
.footer__social {
  display: flex;
  gap: 0.6rem;
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.footer__social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.footer__copy {
  width: 100%;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/*=============== REVEAL ANIMATION ===============*/
/* Only hide when JS is available, so content is visible without JS. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/*=============== RESPONSIVE ===============*/
@media screen and (max-width: 968px) {
  .home__container,
  .about__container {
    grid-template-columns: 1fr;
  }
  .home__data {
    order: 2;
    text-align: center;
  }
  .home__visual {
    order: 1;
    width: min(78%, 320px);
  }
  .home__greeting {
    justify-content: center;
  }
  .home__buttons,
  .home__social {
    justify-content: center;
  }
  .home__description {
    margin-inline: auto;
  }
  .about__image {
    max-width: 380px;
    margin-inline: auto;
    order: 1;
  }
  .project--feature,
  .project--feature:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .project--feature:nth-child(even) .project__cover {
    order: 0;
  }
}

@media screen and (max-width: 768px) {
  body.nav-open {
    overflow: hidden;
  }
  .nav__menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 3rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: calc(var(--z-fixed) + 2);
    display: flex;
  }
  .nav__menu.show-menu {
    transform: translateX(0);
  }
  .nav__overlay {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-fixed) + 1);
    display: block;
    background: hsla(228, 30%, 2%, 0.68);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav__overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav__list {
    flex-direction: column;
    gap: 1.75rem;
  }
  .nav__link {
    font-size: 1.15rem;
  }
  .nav__toggle,
  .nav__close {
    display: grid;
  }
  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  .nav__logo-text {
    display: none;
  }
}

@media screen and (max-width: 560px) {
  .container {
    padding-left: max(1.15rem, env(safe-area-inset-left));
    padding-right: max(1.15rem, env(safe-area-inset-right));
  }
  .home__stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about__facts {
    grid-template-columns: 1fr;
  }
  .home__badge {
    right: 0;
  }
  .certs__item {
    flex-direction: column;
    gap: 0.15rem;
  }
  .footer__container {
    flex-direction: column;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --fs-hero: clamp(2.15rem, 12vw, 3rem);
    --fs-h2: clamp(1.65rem, 9vw, 2.1rem);
  }
  .section {
    padding-block: 3rem;
  }
  .section__header {
    margin-bottom: 2rem;
  }
  .home {
    padding-top: calc(var(--header-height) + 1.5rem);
  }
  .home__container {
    gap: 2rem;
  }
  .home__visual {
    width: min(82%, 270px);
  }
  .home__greeting {
    max-width: 100%;
    padding-inline: 0.75rem;
    line-height: 1.35;
    white-space: normal;
  }
  .home__description {
    margin-bottom: 1.5rem;
  }
  .home__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .home__buttons .button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
  .home__badge {
    padding: 0.6rem 0.8rem;
  }
  .home__badge-label {
    max-width: 14ch;
  }
  .home__stats {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }
  .about__image {
    width: min(88%, 320px);
  }
  .timeline {
    padding-left: 1.4rem;
  }
  .timeline__marker {
    left: -1.4rem;
  }
  .timeline__content {
    padding: 1.15rem;
  }
  .timeline__heading {
    flex-direction: column;
    gap: 0.6rem;
  }
  .timeline__logo {
    width: 48px;
    height: 48px;
  }
  .timeline__logo--wide {
    width: 78px;
  }
  .project__body,
  .work__grid .project__body,
  .skills__card {
    padding: 1.15rem;
  }
  .project__cover {
    min-height: 210px;
  }
  .skills__grid,
  .work__grid {
    gap: 1rem;
  }
  .contact__panel {
    padding: 1.5rem 1rem;
  }
  .contact__methods {
    grid-template-columns: 1fr;
  }
  .contact__value {
    overflow-wrap: anywhere;
  }
  .footer {
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  }
  .nav__menu {
    width: min(86vw, 320px);
    padding:
      max(3rem, env(safe-area-inset-top))
      max(1.5rem, env(safe-area-inset-right))
      max(2rem, env(safe-area-inset-bottom))
      1.5rem;
  }
  .nav__close {
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
  }
}

/*=============== REDUCED MOTION ===============*/
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
