/* ==========================================================================
   Portfolio — Lê Hiếu Kỳ
   Design tokens lay tu he thong thuong hieu Zyxel:
     primary #288719 · accent #6CBE45 · ink #010101/#222/#5E5E5E
     surface #FFF/#F5F5F5 · border #DDD · font Inter + Noto Sans
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --brand-800: #175c0e;
  --brand-700: #1f6b13;
  --brand-600: #288719;   /* mau hanh dong chinh */
  --brand-500: #3f9e2b;
  --brand-400: #6cbe45;   /* xanh logo */
  --brand-200: #b9e2a6;
  --brand-100: #ddf1d3;
  --brand-50:  #f2f9ef;

  --ink-900: #010101;
  --ink-800: #111111;
  --ink-700: #222222;
  --ink-600: #404040;
  --ink-500: #5e5e5e;
  --ink-400: #868686;

  --line:      #dddddd;
  --line-soft: #ececec;
  --surface:   #ffffff;
  --surface-2: #f7f9f6;
  --surface-3: #f5f5f5;

  --font: "Inter", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(1, 1, 1, .05);
  --shadow-md: 0 4px 16px rgba(1, 1, 1, .06);
  --shadow-lg: 0 18px 44px rgba(1, 1, 1, .10);
  --shadow-brand: 0 12px 28px rgba(40, 135, 25, .22);

  --nav-h: 68px;
  --wrap: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

::selection { background: var(--brand-200); color: var(--ink-900); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--brand-600); color: #fff;
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 3. Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff; font-weight: 800; font-size: .84rem; letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(40, 135, 25, .28);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand__text strong { font-size: .95rem; font-weight: 700; color: var(--ink-900); white-space: nowrap; }
.brand__text small { font-size: .74rem; color: var(--ink-500); white-space: nowrap; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links > a {
  position: relative;
  padding: 8px 14px; border-radius: var(--r-sm);
  font-size: .92rem; font-weight: 500; color: var(--ink-600);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__links > a:hover { color: var(--ink-900); background: var(--surface-3); }
.nav__links > a.is-active { color: var(--brand-700); font-weight: 600; }
.nav__links > a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--brand-600);
}

.nav__cta {
  margin-left: 6px;
  background: var(--brand-600) !important; color: #fff !important;
  font-weight: 600 !important; border-radius: var(--r-sm);
  box-shadow: 0 2px 8px rgba(40, 135, 25, .24);
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav__cta:hover { background: var(--brand-700) !important; transform: translateY(-1px); box-shadow: var(--shadow-brand); }
.nav__cta.is-active::after { display: none; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 8px; padding: 7px 13px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 600; letter-spacing: .03em; color: var(--ink-600);
  transition: all .2s var(--ease);
}
.lang-toggle:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); }
.lang-toggle .icon { opacity: .7; }

.nav__burger { display: none; padding: 8px; border-radius: var(--r-sm); color: var(--ink-700); }
.nav__burger:hover { background: var(--surface-3); }

.nav__progress {
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
  transition: width .1s linear;
}

/* ---------- 4. Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 76px) 0 72px; overflow: hidden; }

.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(760px 460px at 78% 4%, rgba(108, 190, 69, .16), transparent 62%),
    radial-gradient(600px 400px at 6% 92%, rgba(40, 135, 25, .08), transparent 65%),
    linear-gradient(180deg, var(--brand-50) 0%, var(--surface) 58%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(1, 1, 1, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 1, 1, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 520px at 50% 20%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 520px at 50% 20%, #000, transparent 78%);
}

.hero__inner {
  display: grid; grid-template-columns: 1.12fr .88fr;
  gap: 56px; align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 12px;
  background: var(--surface); border: 1px solid var(--brand-200);
  border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 600; color: var(--brand-700);
  box-shadow: var(--shadow-sm);
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500);
  box-shadow: 0 0 0 0 rgba(63, 158, 43, .55);
  animation: ping 2.2s infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(63, 158, 43, .5); }
  70%  { box-shadow: 0 0 0 9px rgba(63, 158, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 158, 43, 0); }
}

.hero__text > :first-child { margin-top: 0; }  /* khi an huy hieu thi ten khong bi day xuong */

.hero__name {
  margin-top: 22px;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -.025em;
  color: var(--ink-900);
}
.hero__role {
  margin-top: 14px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-weight: 600; color: var(--ink-600);
}
.hero__at { color: var(--line); margin: 0 2px; }
.hero__co {
  color: var(--brand-700);
  background: linear-gradient(transparent 68%, var(--brand-100) 0);
  padding: 0 2px;
  transition: background-size .25s var(--ease), color .2s var(--ease);
}
a.hero__co:hover { color: var(--brand-800); background: linear-gradient(transparent 4%, var(--brand-100) 0); }
.hero__tagline {
  margin-top: 20px; max-width: 54ch;
  font-size: 1.05rem; color: var(--ink-500); line-height: 1.75;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
  transition: all .22s var(--ease);
}
.btn .icon { transition: transform .22s var(--ease); }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: 0 3px 10px rgba(40, 135, 25, .24); }
.btn--primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.btn--primary:hover .icon { transform: translateX(3px); }
.btn--ghost { background: var(--surface); color: var(--ink-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); transform: translateY(-2px); }
.btn--onDark { background: #fff; color: var(--brand-700); box-shadow: 0 6px 18px rgba(1, 1, 1, .18); }
.btn--onDark:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(1, 1, 1, .24); }

.hero__social { display: flex; gap: 10px; margin-top: 30px; }
.hero__social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink-500); background: var(--surface);
  transition: all .22s var(--ease);
}
.hero__social a:hover {
  color: var(--brand-700); border-color: var(--brand-400);
  background: var(--brand-50); transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(40, 135, 25, .14);
}

/* So do mang trang tri */
.hero__art { display: grid; place-items: center; }
.netgraph { width: min(100%, 360px); height: auto; overflow: visible; }
.netgraph__links path {
  stroke-dasharray: 4 7;
  animation: flow 3.4s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -22; } }
.netgraph .n {
  fill: var(--surface); stroke: var(--brand-400); stroke-width: 1.8;
  animation: bob 4.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  transform-box: fill-box; transform-origin: center;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.netgraph .n--core {
  fill: url(#nglink); stroke: none;
  filter: drop-shadow(0 8px 18px rgba(40, 135, 25, .35));
  animation: corepulse 3.2s ease-in-out infinite;
}
@keyframes corepulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.netgraph__label {
  fill: #fff; font-family: var(--font); font-size: 15px; font-weight: 800; letter-spacing: .06em;
}

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 64px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  overflow: hidden;
}
.stats__item { background: var(--surface); padding: 26px 24px; text-align: center; }
.stats__value {
  display: block;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em;
  color: var(--brand-600); line-height: 1.1;
}
.stats__label {
  display: block; margin-top: 6px;
  font-size: .82rem; font-weight: 500; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: .07em;
}

/* ---------- 5. Section chung ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--surface-2); border-block: 1px solid var(--line-soft); }

.sec-head { margin-bottom: 48px; max-width: 62ch; }
.sec-head--sub { margin-top: 80px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--brand-400);
}
.eyebrow--on-dark { color: var(--brand-200); }
.eyebrow--on-dark::before { background: var(--brand-400); }

.sec-head h2 {
  margin-top: 12px;
  font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.2; color: var(--ink-900);
}
.sec-head__hint { margin-top: 12px; color: var(--ink-500); font-size: .96rem; }

/* ---------- 6. About ---------- */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.about__text { font-size: 1.08rem; line-height: 1.85; color: var(--ink-600); }

.about__facts {
  display: grid; gap: 2px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden;
}
.fact {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; background: var(--surface);
  transition: background-color .2s var(--ease);
}
.fact:hover { background: var(--brand-50); }
.fact__ico {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 8px; background: var(--brand-50); color: var(--brand-600);
}
.fact > span:last-child { display: flex; flex-direction: column; min-width: 0; font-weight: 500; color: var(--ink-800); }
.fact small {
  font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-400); margin-bottom: 2px;
}
.fact a { word-break: break-word; }
.fact a:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 7. Skills ---------- */
.skills { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; align-items: start; }
.skills__groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.skillcard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.skillcard:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.skillcard__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.skillcard__ico {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: var(--brand-50); color: var(--brand-600);
  border: 1px solid var(--brand-100);
}
.skillcard__head h3 { font-size: .98rem; font-weight: 700; color: var(--ink-900); letter-spacing: -.01em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  font-size: .845rem; font-weight: 500; color: var(--ink-600);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); transform: translateY(-2px); }
.chip.is-active {
  background: var(--brand-600); border-color: var(--brand-600); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(40, 135, 25, .26);
}

.skillpanel { position: sticky; top: calc(var(--nav-h) + 28px); }
.skillpanel__inner {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--brand-400);
  border-radius: var(--r-lg); padding: 28px;
  min-height: 190px; box-shadow: var(--shadow-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.skillpanel.is-filled .skillpanel__inner { border-left-color: var(--brand-600); box-shadow: var(--shadow-md); }
.skillpanel__group {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 8px; min-height: 1em;
}
.skillpanel h3 { font-size: 1.3rem; font-weight: 700; color: var(--ink-900); margin-bottom: 10px; letter-spacing: -.015em; }
.skillpanel p:last-child { color: var(--ink-500); line-height: 1.75; }
.skillpanel .is-swap { animation: swap .32s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 8. Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--brand-400), var(--line) 85%);
  border-radius: 2px;
}
.tl { position: relative; padding-bottom: 24px; }
.tl:last-child { padding-bottom: 0; }
.tl__dot {
  position: absolute; left: -34px; top: 26px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--line);
}
.tl--current .tl__dot { border-color: var(--brand-500); box-shadow: 0 0 0 5px rgba(63, 158, 43, .14); }

.tl__card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.tl__card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tl__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tl__top h3 { font-size: 1.3rem; font-weight: 700; color: var(--ink-900); letter-spacing: -.015em; }
.tl__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 8px 0 18px; font-size: .9rem; color: var(--ink-500);
}
.tl__meta strong { color: var(--brand-700); font-weight: 600; }
.tl__meta span::before { content: "·"; margin-right: 10px; color: var(--line); }

.tl__points { display: grid; gap: 10px; margin-bottom: 18px; }
.tl__points li { position: relative; padding-left: 22px; color: var(--ink-600); line-height: 1.7; }
.tl__points li::before {
  content: ""; position: absolute; left: 2px; top: .68em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-400);
}

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  padding: 4px 11px; border-radius: var(--r-sm);
  background: var(--surface-3); border: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  color: var(--ink-500); letter-spacing: -.01em;
}
.tag--live {
  background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700);
  font-family: var(--font); font-weight: 600; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: var(--r-pill);
}

/* ---------- 9. Education ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.edu {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.edu:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.edu__ico {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 11px; background: var(--brand-50); color: var(--brand-600);
  border: 1px solid var(--brand-100);
}
.edu h3 { font-size: 1.08rem; font-weight: 700; color: var(--ink-900); letter-spacing: -.01em; }
.edu__meta { margin-top: 4px; font-size: .9rem; color: var(--brand-700); font-weight: 500; }
.edu__meta span { color: var(--line); margin: 0 4px; }
.edu__note { margin-top: 10px; font-size: .92rem; color: var(--ink-500); line-height: 1.65; }

/* ---------- 10. Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proj {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.proj:hover { border-color: var(--brand-200); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.proj--featured {
  grid-column: span 3;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 12px 40px; align-items: start;
  background: linear-gradient(135deg, var(--surface) 60%, var(--brand-50));
  border-color: var(--brand-100);
}
.proj--featured .proj__head { grid-column: 1; }
.proj--featured .proj__name { grid-column: 1; font-size: 1.45rem; }
.proj--featured .proj__desc { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
.proj--featured .tags { grid-column: 1; }
.proj--featured .proj__link { grid-column: 2; margin-top: 4px; }

.proj__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.proj__kind {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-400);
}
.proj__name { font-size: 1.16rem; font-weight: 700; color: var(--ink-900); letter-spacing: -.015em; }
.proj__desc { margin: 12px 0 18px; color: var(--ink-500); line-height: 1.75; font-size: .95rem; flex: 1; }
.proj .tags { margin-top: auto; }
.proj__link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  font-size: .9rem; font-weight: 600; color: var(--brand-700);
}
.proj__link .icon { transition: transform .2s var(--ease); }
.proj__link:hover { color: var(--brand-800); }
.proj__link:hover .icon { transform: translate(2px, -2px); }

/* ---------- 11. Contact ---------- */
.contact { padding-bottom: 96px; }
.contact__panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: 56px; border-radius: 22px;
  background:
    radial-gradient(620px 420px at 88% 8%, rgba(108, 190, 69, .30), transparent 62%),
    linear-gradient(135deg, #17600f 0%, #288719 55%, #35a022 100%);
  color: #fff;
  box-shadow: 0 26px 60px rgba(23, 96, 15, .28);
}
.contact__panel h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; margin-top: 12px; }
.contact__text { margin: 16px 0 28px; color: rgba(255, 255, 255, .84); line-height: 1.75; max-width: 42ch; }

.contact__list { display: grid; gap: 10px; align-content: center; }
.ccard {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.ccard:hover { background: rgba(255, 255, 255, .17); border-color: rgba(255, 255, 255, .34); transform: translateX(4px); }
.ccard__ico { flex: none; color: rgba(255, 255, 255, .8); }
.ccard__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ccard__body small {
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62); margin-bottom: 1px;
}
.ccard__body a, .ccard__body { color: #fff; font-weight: 500; word-break: break-word; }
.ccard__body a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ccard__copy {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 8px; color: rgba(255, 255, 255, .7);
  border: 1px solid transparent;
  transition: all .2s var(--ease);
}
.ccard__copy:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.ccard__copy.is-done { color: #fff; background: rgba(255, 255, 255, .26); }

/* ---------- 12. Footer + to-top ---------- */
.foot { border-top: 1px solid var(--line-soft); background: var(--surface-2); padding: 30px 0; }
.foot__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: .88rem; color: var(--ink-500);
}
.foot__built { color: var(--ink-400); font-size: .83rem; }

.totop {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand-600); color: #fff;
  box-shadow: var(--shadow-brand);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .28s var(--ease);
}
.totop.is-show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--brand-700); transform: translateY(-3px); }

/* ---------- 13. Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .07s; }
[data-reveal-delay="2"] { transition-delay: .14s; }
[data-reveal-delay="3"] { transition-delay: .21s; }
[data-reveal-delay="4"] { transition-delay: .28s; }
[data-reveal-delay="5"] { transition-delay: .35s; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1080px) {
  .skills { grid-template-columns: 1fr; }
  .skillpanel { position: static; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .proj--featured { grid-column: span 2; }
}

@media (max-width: 900px) {
  .hero { padding-top: calc(var(--nav-h) + 52px); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; }
  .netgraph { width: min(66%, 260px); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .contact__panel { grid-template-columns: 1fr; gap: 36px; padding: 40px 32px; }
  .proj--featured { grid-template-columns: 1fr; gap: 0; }
  .proj--featured .proj__desc { grid-column: 1; grid-row: auto; margin: 12px 0 18px; }
  .proj--featured .proj__link { grid-column: 1; margin-top: 18px; }
}

@media (max-width: 860px) {
  .nav__burger { display: grid; place-items: center; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 22px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease), visibility .25s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__links > a { padding: 12px 14px; font-size: 1rem; }
  .nav__links > a.is-active::after { display: none; }
  .nav__cta { margin: 6px 0 0; text-align: center; justify-content: center; }
  .lang-toggle { margin: 4px 0 0; justify-content: center; }
  .brand__text small { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .sec-head { margin-bottom: 34px; }
  .sec-head--sub { margin-top: 56px; }
  .skills__groups { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .proj--featured { grid-column: span 1; }
  .stats { grid-template-columns: 1fr; margin-top: 46px; }
  .stats__item { padding: 20px; }
  .contact__panel { padding: 34px 24px; }
  .timeline { padding-left: 26px; }
  .tl__dot { left: -26px; }
  .tl__card, .proj, .skillcard, .edu { padding: 22px; }
  .foot__inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .totop { right: 16px; bottom: 16px; }
}

/* ---------- 15. Giam chuyen dong ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 16. In / xuat PDF ---------- */
@media print {
  .nav, .totop, .hero__art, .hero__actions, .hero__social, .skillpanel, .nav__progress { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .hero { padding: 0 0 18px; }
  .hero__bg { display: none; }
  .section { padding: 18px 0; break-inside: avoid; }
  .section--alt { background: none; border: 0; }
  .contact__panel { background: none !important; color: #000; box-shadow: none; padding: 0; }
  .contact__panel h2, .ccard__body, .ccard__body a { color: #000 !important; }
  .ccard { background: none; border-color: #ccc; }
  .ccard__copy, .btn { display: none !important; }
  .eyebrow--on-dark { color: #288719 !important; }
  .tl__card, .proj, .skillcard, .edu { border-color: #ccc; box-shadow: none; break-inside: avoid; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
