/* =========================================================
   uttamrawat.com — Uttam Rawat, personal site
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* One blue scale drives the whole site, headed by the nav bar.
     deepest #061630 · body #081c3c · alt #0a2247 · cards #0e2b57 · nav #0d2a55 */
  --bg:            #081c3c;
  --bg-alt:        #0a2247;
  --surface:       rgba(150,190,255,.06);
  --surface-solid: #0e2b57;
  --border:        rgba(150,190,255,.14);
  --border-strong: rgba(150,190,255,.26);

  --text:          #eaf1ff;
  --text-soft:     #a8bcd9;
  --text-dim:      #7d93b4;

  --accent:        #f5a524;
  --accent-2:      #4f9dff;
  --accent-soft:   rgba(245,165,36,.14);

  --radius-s: 10px;
  --radius:   16px;
  --radius-l: 26px;

  --shadow:    0 18px 44px -22px rgba(0,0,0,.75);
  --shadow-lg: 0 34px 70px -30px rgba(0,0,0,.85);

  --maxw: 1180px;
  --nav-h: 72px;

  /* header bar — stays dark blue in both themes */
  --nav-bg:       #0d2a55;
  --nav-bg-2:     #0a1f42;
  --nav-text:     #f0f5ff;
  --nav-text-dim: #a9bcdc;
  --nav-border:   rgba(255,255,255,.12);
  --nav-hover:    rgba(255,255,255,.09);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Light mode keeps the same blue hue, just inverted in lightness */
html[data-theme="light"] {
  --bg:            #eef3fb;
  --bg-alt:        #ffffff;
  --surface:       rgba(13,42,85,.04);
  --surface-solid: #ffffff;
  --border:        rgba(13,42,85,.12);
  --border-strong: rgba(13,42,85,.22);

  --text:          #0d2a55;
  --text-soft:     #45608c;
  --text-dim:      #6b82a8;

  --accent:        #c97a06;
  --accent-2:      #1f6fd6;
  --accent-soft:   rgba(201,122,6,.12);

  --shadow:    0 18px 40px -26px rgba(13,42,85,.32);
  --shadow-lg: 0 30px 64px -32px rgba(13,42,85,.38);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.18; letter-spacing: -.022em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #0a1f42; font-weight: 700;
  padding: 10px 16px; border-radius: 8px; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Scroll progress ---------- */
.progress-bar {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 120; transition: width .1s linear;
}

/* ---------- Nav ----------
   The header keeps its dark-blue bar in both themes, so its own
   text/border colours are set here rather than inherited from the theme. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: linear-gradient(180deg, var(--nav-bg), var(--nav-bg-2));
  color: var(--nav-text);
  border-bottom: 1px solid var(--nav-border);
  transition: box-shadow .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.is-stuck {
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 12px 34px -20px rgba(3,12,28,.95);
  border-bottom-color: color-mix(in srgb, var(--accent) 34%, var(--nav-border));
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand__mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; font-size: .82rem; letter-spacing: .06em;
  color: #0a1f42;
  background: linear-gradient(135deg, var(--accent), #ffce7a);
  box-shadow: 0 8px 20px -10px rgba(245,165,36,.85);
}
.brand__text { font-size: 1.02rem; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative; padding: 9px 13px; border-radius: 999px;
  font-size: .93rem; font-weight: 500; color: var(--nav-text-dim);
  transition: color .2s ease, background-color .2s ease;
}
.nav__links a:hover { color: var(--nav-text); background: var(--nav-hover); }
.nav__links a.is-current { color: var(--nav-text); }
.nav__links a.is-current::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav__cta {
  margin-left: 6px; padding: 9px 18px !important;
  border: 1px solid rgba(255,255,255,.28); color: var(--nav-text) !important;
}
.nav__cta:hover { border-color: var(--accent); background: rgba(245,165,36,.18) !important; color: #ffd48a !important; }

.nav__actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 11px; border: 1px solid var(--nav-border); color: var(--nav-text-dim);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--nav-hover); transform: translateY(-1px); }
.icon-btn .ico { width: 19px; height: 19px; }
html[data-theme="dark"]  .ico--sun  { display: block; }
html[data-theme="dark"]  .ico--moon { display: none; }
html[data-theme="light"] .ico--sun  { display: none; }
html[data-theme="light"] .ico--moon { display: block; }

.burger { display: none; width: 42px; height: 40px; border-radius: 11px; border: 1px solid var(--nav-border); padding: 0 10px; }
.burger span {
  display: block; height: 2px; border-radius: 2px; background: var(--nav-text); margin: 4px 0;
  transition: transform .28s ease, opacity .2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: .96rem; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #ffc25c);
  color: #0a1f42; box-shadow: 0 16px 34px -18px rgba(245,165,36,.9);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 42px -18px rgba(245,165,36,1); }
.btn--ghost { border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.btn--small { padding: 11px 20px; font-size: .88rem; border-color: var(--border-strong); color: var(--text); }
.btn--small:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 54px) 0 60px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.blob--1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; top: -14%; right: -8%; background: radial-gradient(circle, rgba(245,165,36,.55), transparent 68%); }
.blob--2 { width: 40vw; height: 40vw; max-width: 540px; max-height: 540px; bottom: -18%; left: -12%; background: radial-gradient(circle, rgba(79,157,255,.42), transparent 68%); }
html[data-theme="light"] .blob { opacity: .38; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
  opacity: .55;
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: .82rem; font-weight: 600; color: var(--text-soft);
  letter-spacing: .01em; margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 0 rgba(47,191,113,.6); animation: pulse 2.4s infinite; }
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(47,191,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,191,113,0); }
}

.hero__title {
  font-size: clamp(2.7rem, 7.4vw, 4.6rem);
  font-weight: 800; letter-spacing: -.038em; margin-bottom: 10px;
  background: linear-gradient(120deg, var(--text) 28%, var(--accent) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__role {
  font-size: clamp(1rem, 2.4vw, 1.22rem); font-weight: 600;
  color: var(--accent); margin-bottom: 18px; letter-spacing: -.01em;
}
.hero__lede { font-size: 1.045rem; color: var(--text-soft); max-width: 60ch; margin-bottom: 30px; }
.hero__lede strong { color: var(--text); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; color: var(--text-dim); }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.hero__meta a { transition: color .2s ease; }
.hero__meta a:hover { color: var(--accent); }

/* Photo */
.hero__photo { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.photo-frame {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--border-strong); background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  transform: rotate(-1.4deg);
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.hero__photo:hover .photo-frame { transform: rotate(0deg) translateY(-4px); }
/* object-position keeps the face in frame across all crop widths — tweak if you swap the photo */
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 18%; }
.photo-glow {
  position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(to top, rgba(8,28,60,.78), transparent);
  pointer-events: none;
}
html[data-theme="light"] .photo-glow { background: linear-gradient(to top, rgba(13,42,85,.32), transparent); }
.photo-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(140deg, #14396f, #0a2247);
  font-size: 4.6rem; font-weight: 800; letter-spacing: .04em; color: var(--accent);
}
.photo-fallback[hidden] { display: none; }

.photo-badge {
  position: absolute; right: -8px; bottom: -18px;
  display: grid; gap: 0; padding: 13px 20px; border-radius: 18px;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); text-align: center;
}
.photo-badge strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.photo-badge span { font-size: .74rem; color: var(--text-dim); letter-spacing: .04em; text-transform: uppercase; }

/* Stats */
.stats {
  position: relative; z-index: 1;
  margin-top: 66px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  padding: 26px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.stat { text-align: center; padding: 6px 8px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--border);
}
.stat__num {
  display: block; font-size: clamp(1.7rem, 4.4vw, 2.35rem); font-weight: 800;
  letter-spacing: -.03em; color: var(--text); line-height: 1.15;
}
.stat__label { display: block; font-size: .78rem; color: var(--text-dim); letter-spacing: .02em; }

/* ---------- Marquee ---------- */
.marquee-wrap { padding: 44px 0 14px; overflow: hidden; }
.marquee-title {
  text-align: center; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 18px;
}
.marquee {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 26px; white-space: nowrap;
  animation: slide 38s linear infinite;
  will-change: transform;
}
.marquee__track span {
  font-size: clamp(1rem, 2.4vw, 1.4rem); font-weight: 700; letter-spacing: -.02em;
  color: var(--text-soft); opacity: .82;
}
.marquee__track i { color: var(--accent); font-style: normal; font-size: .6rem; opacity: .8; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Section shell ---------- */
.section { padding: 84px 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.sec-head { max-width: 760px; margin-bottom: 46px; }
.sec-kicker {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.sec-title { font-size: clamp(1.7rem, 4.2vw, 2.65rem); font-weight: 800; letter-spacing: -.032em; margin-bottom: 14px; }
.sec-sub { color: var(--text-soft); font-size: 1.02rem; margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.35fr .95fr; gap: 40px; align-items: start; }
.about-copy p { color: var(--text-soft); }
.about-copy .lead { font-size: 1.14rem; color: var(--text); font-weight: 500; }
.about-copy strong { color: var(--text); font-weight: 600; }

.about-card {
  padding: 30px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); position: sticky; top: calc(var(--nav-h) + 22px);
}
.about-card h3 { font-size: 1.06rem; margin-bottom: 18px; }
.facts { margin: 0 0 22px; display: grid; gap: 14px; }
.facts div { display: grid; gap: 2px; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.facts dd { margin: 0; font-size: .95rem; font-weight: 500; color: var(--text); }

/* ---------- Cards / expertise ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.card {
  padding: 28px 26px; border-radius: var(--radius-l);
  background: var(--surface-solid); border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(600px circle at 50% -20%, var(--accent-soft), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card__icon {
  width: 48px; height: 48px; display: grid; place-items: center; padding: 12px;
  border-radius: 14px; margin-bottom: 18px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--border);
}
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: .95rem; margin-bottom: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags li {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .01em;
  padding: 5px 10px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-soft);
}
.tags--sm li { font-size: .68rem; padding: 4px 9px; }

/* ---------- Skill meters ---------- */
.skill-meters {
  margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px 34px;
  padding: 30px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--border);
}
.meter__label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 8px; color: var(--text-soft); }
.meter__bar { display: block; height: 7px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.meter__bar i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.2s cubic-bezier(.2,.8,.3,1);
}
.skill-meters.is-visible .meter__bar i { width: var(--w); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 30px; display: grid; gap: 12px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2), transparent);
  opacity: .5; border-radius: 2px;
}
.tl {
  position: relative; padding: 24px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .28s ease, border-color .28s ease, background-color .28s ease;
}
.tl:hover { transform: translateX(5px); border-color: var(--border-strong); }
.tl__dot {
  position: absolute; left: -30px; top: 30px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.section--alt .tl__dot { background: var(--bg-alt); }
.tl__period {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em;
  color: var(--accent); margin-bottom: 6px;
}
.tl__org { font-size: 1.14rem; margin-bottom: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.tl__loc {
  font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); padding: 3px 8px; border: 1px solid var(--border); border-radius: 6px;
}
.tl__role { font-size: .92rem; font-weight: 600; color: var(--text-soft); margin-bottom: 8px; }
.tl__desc { font-size: .95rem; color: var(--text-dim); margin: 0; }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.chip {
  padding: 9px 18px; border-radius: 999px; font-size: .88rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-soft); background: var(--surface);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #0a1f42; font-weight: 700; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.proj {
  display: flex; flex-direction: column;
  padding: 28px 26px; border-radius: var(--radius-l);
  background: var(--surface-solid); border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, opacity .3s ease;
}
.proj:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.proj.is-hidden { display: none; }
.proj__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.proj__tag {
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 999px;
}
.proj__team { font-family: var(--mono); font-size: .72rem; color: var(--text-dim); }
.proj__title { font-size: 1.2rem; margin-bottom: 10px; }
.proj__desc { font-size: .92rem; color: var(--text-soft); margin-bottom: 16px; }
.proj__resp { display: grid; gap: 7px; margin-bottom: 18px; }
.proj__resp li {
  position: relative; padding-left: 20px; font-size: .875rem; color: var(--text-dim);
}
.proj__resp li::before {
  content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px;
  border-radius: 2px; background: var(--accent); opacity: .75; transform: rotate(45deg);
}
.proj .tags { margin-top: auto; }

/* ---------- Education ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.edu {
  padding: 26px 24px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .28s ease, border-color .28s ease;
}
.edu:hover { transform: translateY(-4px); border-color: var(--accent); }
.edu__year {
  font-family: var(--mono); font-size: 1.5rem; font-weight: 500;
  color: var(--accent); margin-bottom: 10px; letter-spacing: -.02em;
}
.edu h3 { font-size: 1.02rem; margin-bottom: 6px; }
.edu__inst { font-size: .88rem; color: var(--text-dim); margin: 0; }

.lang-strip {
  margin-top: 22px; padding: 26px 28px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--border);
  display: grid; gap: 12px;
}
.lang-strip h3 { font-size: 1.02rem; margin-bottom: 2px; }
.lang-row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px;
  padding-bottom: 11px; border-bottom: 1px solid var(--border);
}
.lang-row:last-child { border-bottom: 0; padding-bottom: 0; }
.lang-name { font-weight: 600; }
.lang-name em { font-style: normal; font-weight: 400; color: var(--text-dim); font-size: .86rem; }
.lang-lvl { font-size: .88rem; color: var(--text-soft); }

/* ---------- Contact ---------- */
.section--contact { padding-bottom: 90px; }
.cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  padding: 46px; border-radius: var(--radius-l);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(700px circle at 12% 0%, var(--accent-soft), transparent 62%),
    var(--surface-solid);
  box-shadow: var(--shadow-lg);
}
.cta .sec-head { margin: 0; }
.cta__copy .sec-title { margin-bottom: 12px; }
.cta__links { display: grid; gap: 12px; }
.contact-card {
  display: flex; align-items: center; gap: 15px;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.contact-card:hover { transform: translateX(4px); border-color: var(--accent); }
.contact-card--static:hover { transform: none; border-color: var(--border); }
.contact-card__ico {
  width: 42px; height: 42px; flex: none; padding: 11px; border-radius: 12px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--border);
}
.contact-card__body { display: grid; gap: 1px; min-width: 0; }
.contact-card__body strong { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.contact-card__body span { font-size: .97rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-card__arrow { width: 18px; height: 18px; margin-left: auto; flex: none; color: var(--text-dim); }

/* ---------- Footer ---------- */
/* Mirrors the header bar so the page is bookended in the same blue */
.footer {
  border-top: 1px solid var(--nav-border);
  background: linear-gradient(180deg, var(--nav-bg-2), var(--nav-bg));
  color: var(--nav-text);
  padding: 34px 0;
}
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer__brand { font-weight: 700; margin: 0; }
.footer__brand span { font-weight: 400; color: var(--nav-text-dim); font-size: .9rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__nav a { font-size: .9rem; color: var(--nav-text-dim); transition: color .2s ease; }
.footer__nav a:hover { color: var(--accent); }
.footer__copy { margin: 0; font-size: .84rem; color: var(--nav-text-dim); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; padding: 13px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent); color: #0a1f42;
  box-shadow: 0 14px 30px -14px rgba(245,165,36,.9);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.to-top svg { stroke-width: 2.2; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__copy { order: 2; }
  .hero__photo { order: 1; max-width: 300px; }
  .hero__meta { gap: 10px 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .cta { grid-template-columns: 1fr; gap: 30px; padding: 36px 30px; }
}

@media (max-width: 820px) {
  .burger { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 26px;
    background: linear-gradient(180deg, var(--nav-bg-2), #081a38);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--shadow);
    transform: translateY(-14px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__links a { padding: 13px 14px; border-radius: 12px; font-size: 1rem; }
  .nav__links a.is-current::after { display: none; }
  .nav__links a.is-current { background: rgba(245,165,36,.16); color: #ffc96b; }
  .nav__cta { margin: 8px 0 0; text-align: center; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 700px) {
  .section { padding: 62px 0; }
  .hero { padding-top: calc(var(--nav-h) + 34px); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 18px; margin-top: 54px; }
  .stat:nth-child(3)::before, .stat:nth-child(odd)::before { display: none; }
  .stat:nth-child(even)::before { display: block; }
  .stat:nth-child(3), .stat:nth-child(4) { padding-top: 18px; border-top: 1px solid var(--border); }
  .projects { grid-template-columns: 1fr; }
  .timeline { padding-left: 24px; }
  .tl__dot { left: -24px; width: 13px; height: 13px; top: 27px; }
  .tl { padding: 20px 20px; }
  .tl:hover { transform: none; }
  .skill-meters { padding: 22px; }
  .footer__inner { flex-direction: column; text-align: center; gap: 16px; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; padding: 12px; }
  .brand__text { display: none; }
  .cta { padding: 28px 22px; }
  .about-card, .card, .proj, .edu { padding: 24px 20px; }
}

@media (max-width: 420px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .photo-badge { right: -4px; bottom: -14px; padding: 10px 15px; }
  .photo-badge strong { font-size: 1.25rem; }
}

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

@media print {
  .nav, .to-top, .progress-bar, .marquee-wrap, .hero__bg, .filters { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
  .section { padding: 18px 0; page-break-inside: avoid; }
}
