/* ============================================================
   Thanh Vien Nguyen — Executive CV
   Luxury technology theme · dark navy/black · cyan/teal accents
   Pure CSS, no external dependencies (no CDN fonts/assets)
   ============================================================ */

:root {
  --bg: #060b12;
  --bg-2: #0a1220;
  --panel: rgba(16, 26, 42, 0.55);
  --panel-solid: #0d1a2b;
  --line: rgba(120, 200, 220, 0.14);
  --line-strong: rgba(120, 200, 220, 0.28);
  --ink: #e8eef5;
  --ink-soft: #b9c6d6;
  --muted: #7f92a8;
  --cyan: #38e0d0;
  --cyan-2: #22d3ee;
  --teal: #2dd4bf;
  --gold: #c79a3b;
  --navy: #0b1a30;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --maxw: 1080px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-2); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; }

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(56, 224, 208, 0.28); color: #fff; }

/* ---------- Background layers ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 200, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 200, 220, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}
.bg-glow { position: fixed; z-index: -2; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .5; }
.bg-glow--a { top: -180px; left: 50%; transform: translateX(-50%); width: 760px; height: 520px;
  background: radial-gradient(circle, rgba(34, 211, 238, .34), transparent 62%); }
.bg-glow--b { bottom: -220px; right: -120px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(45, 212, 191, .20), transparent 64%); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; }

.section { padding: 4.5rem 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .9rem;
  opacity: .95;
}
.section__title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: .01em;
  color: #f4f8fc;
}
.section__title::after { content: ""; }

.rule {
  width: 72px; height: 2px; margin: 1.1rem 0 2rem;
  background: linear-gradient(90deg, var(--cyan), var(--teal) 55%, transparent);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 6.5rem 0 3.5rem; text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 7.4vw, 4.6rem);
  letter-spacing: .14em;
  text-indent: .14em; /* balance tracking */
  background: linear-gradient(180deg, #ffffff 8%, #bfe9ec 58%, #6fd8d0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: 0 0 42px rgba(34, 211, 238, .18);
  margin-bottom: .35rem;
}
.hero__headline {
  font-size: clamp(.82rem, 1.7vw, 1.02rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: .55rem;
}
.hero__headline .sep { color: var(--cyan); opacity: .55; padding: 0 .35rem; }
.hero__sub {
  font-size: clamp(.82rem, 1.5vw, .96rem);
  color: var(--teal);
  letter-spacing: .03em;
  margin-bottom: 1.6rem;
}
.hero__sub .dot { color: var(--muted); padding: 0 .3rem; }

.hero__contact {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem;
  color: var(--ink-soft); font-size: .92rem; margin-bottom: 2rem;
}
.hero__contact li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__contact .ico { color: var(--cyan); font-size: .8rem; opacity: .85; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  letter-spacing: .04em;
  padding: .82rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .2s ease;
  -webkit-appearance: none;
}
.btn--primary {
  color: #04121a; border-color: transparent;
  background: linear-gradient(120deg, var(--cyan), var(--teal) 70%);
  box-shadow: 0 10px 30px rgba(34, 211, 238, .28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(34, 211, 238, .42); color: #04121a; text-decoration: none; }
.btn--ghost { color: var(--ink); background: rgba(255, 255, 255, .03); backdrop-filter: blur(6px); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--cyan); text-decoration: none; }

/* ---------- Metrics ---------- */
.section--metrics { padding-top: 1.5rem; }
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.metric {
  background: linear-gradient(180deg, rgba(13, 26, 43, .92), rgba(9, 17, 30, .92));
  padding: 1.7rem 1.3rem; text-align: center;
  display: flex; flex-direction: column; gap: .45rem;
}
.metric__num {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: .01em;
  text-shadow: 0 0 26px rgba(34, 211, 238, .3);
}
.metric__label { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- Profile ---------- */
.lead {
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  color: var(--ink-soft);
  max-width: 62ch;
  line-height: 1.8;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: .5rem; padding-left: 1.9rem; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(45, 212, 191, .35) 60%, transparent);
  border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 2.4rem 0; }
.tl-item:last-child { padding-bottom: .2rem; }
.tl-node {
  position: absolute; left: -1.9rem; top: .45rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .12), 0 0 18px rgba(34, 211, 238, .5);
  transform: translateX(0);
}
.tl-head { margin-bottom: .55rem; }
.tl-role { font-size: 1.14rem; color: #f4f8fc; font-weight: 650; letter-spacing: .01em; }
.tl-dash { color: var(--cyan); opacity: .7; }
.tl-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .3rem; font-size: .9rem; }
.tl-company { color: var(--teal); font-weight: 600; }
.tl-when { color: var(--muted); font-style: italic; font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; }

.bullets { display: grid; gap: .5rem; }
.bullets li {
  position: relative; padding-left: 1.25rem; color: var(--ink-soft); font-size: .96rem;
}
.bullets li::before {
  content: "◆"; position: absolute; left: 0; top: 0; font-size: .6rem; line-height: 1.9;
  color: var(--cyan); opacity: .85;
}
.bullets--tight li { font-size: .93rem; }

/* ---------- Competencies ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .7rem; }
.chip {
  font-size: .88rem; color: var(--ink);
  padding: .6rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  transition: border-color .22s ease, color .22s ease, transform .22s ease, background .22s ease;
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); background: rgba(34, 211, 238, .06); }

/* ---------- Venture ---------- */
.panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 30, 48, .7), rgba(9, 17, 30, .7));
  padding: 1.7rem 1.7rem 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.6rem;
}
.panel__head { margin-bottom: .9rem; }
.portfolio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.3rem;
  background: var(--panel);
  transition: transform .22s ease, border-color .22s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.card h4 { color: var(--cyan); font-size: 1.02rem; margin-bottom: .4rem; letter-spacing: .01em; }
.card h4 a { color: inherit; text-decoration: none; }
.card h4 a:hover { color: #8cf5eb; }
.card p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Education ---------- */
.cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.4rem; }
.col__title { color: #f4f8fc; font-size: 1.05rem; margin-bottom: .9rem; }
.col__title::after, .col__sub::after { content: none; }
.col__sub { color: var(--cyan); font-size: .92rem; margin: 1.6rem 0 .7rem; letter-spacing: .02em; }
.inline-tags { display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.inline-tags li { color: var(--muted); font-size: .88rem; }
.inline-tags li::after { content: "•"; color: var(--teal); margin-left: .9rem; opacity: .6; }
.inline-tags li:last-child::after { content: ""; }

/* ---------- Contact ---------- */
.section--contact { padding-bottom: 5rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.contact-item { background: rgba(10, 18, 32, .92); padding: 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.contact-item__k { font-family: var(--mono); font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.contact-item__v { color: var(--ink); font-size: .96rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 1.8rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.footer__muted { letter-spacing: .1em; text-transform: none; opacity: .75; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--cyan); color: #04121a; padding: .7rem 1.1rem; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .portfolio { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 2rem, var(--maxw)); }
  .hero { padding: 4.5rem 0 2.5rem; }
  .hero__contact { flex-direction: column; gap: .5rem; }
  .section { padding: 3.2rem 0; }
  .metrics { grid-template-columns: 1fr; }
  .timeline { padding-left: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .chip, .card { transition: none !important; }
}

/* ============================================================
   PRINT — professional A4 executive stylesheet (light)
   ============================================================ */
@page { size: A4; margin: 14mm 15mm; }

@media print {
  :root {
    --ink: #16212e;
    --ink-soft: #2b3947;
    --muted: #5d6b7a;
    --line: #d3dde6;
    --line-strong: #c2cfda;
  }
  html, body { background: #fff !important; color: #16212e !important; font-size: 10.2pt; line-height: 1.42; }
  .bg-grid, .bg-glow, .skip-link, .footer__muted { display: none !important; }
  .wrap { width: 100% !important; margin: 0 !important; }

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

  .hero { padding: 0 0 8pt; text-align: left; border-bottom: 1.6pt solid #0d7a78; margin-bottom: 12pt; }
  .hero__inner { align-items: flex-start; }
  .hero__name {
    background: none !important; -webkit-text-fill-color: #0f2338 !important; color: #0f2338 !important;
    text-shadow: none !important; font-size: 26pt; letter-spacing: .1em; text-indent: 0; margin-bottom: 4pt;
  }
  .hero__headline { color: #1f5d8f; font-size: 9.5pt; margin-bottom: 3pt; }
  .hero__headline .sep { color: #6b7c8c; }
  .hero__sub { color: #0d7a78; margin-bottom: 7pt; }
  .hero__contact { justify-content: flex-start; gap: .2rem 1rem; color: #2b3947; font-size: 9pt; margin-bottom: 6pt; }
  .hero__contact .ico { color: #0d7a78; }
  .hero__actions, .print-hide { display: none !important; }

  .section { padding: 9pt 0; }
  .section + .section { border-top: 1px solid var(--line); }
  .eyebrow { color: #0d7a78; font-size: 7.2pt; margin-bottom: 3pt; letter-spacing: .22em; }
  .section__title { color: #0f2338; font-size: 15pt; margin-bottom: 2pt; }
  .rule { margin: 4pt 0 8pt; height: 1.4pt; }

  .section--metrics { padding-top: 2pt; }
  .metrics { box-shadow: none; border: 1px solid #c8d4de; border-radius: 6px; }
  .metric { background: #f2f7fb !important; padding: 8pt 6pt; }
  .metric__num { color: #0d7a78; text-shadow: none; font-size: 14pt; }
  .metric__label { color: #2b3947; font-size: 7.8pt; }

  .lead { color: #2b3947; font-size: 10pt; max-width: none; line-height: 1.45; }

  .timeline { padding-left: 14pt; }
  .timeline::before { background: #0d7a78; width: 1.2pt; }
  .tl-item { padding-bottom: 9pt; page-break-inside: avoid; }
  .tl-node { border-color: #0d7a78; box-shadow: none; background: #fff; width: 9pt; height: 9pt; left: -14.5pt; top: 3pt; }
  .tl-role { color: #0f2338; font-size: 11pt; }
  .tl-meta { font-size: 9pt; }
  .tl-company { color: #1f5d8f; }
  .tl-when { color: #5d6b7a; font-size: 8.2pt; }
  .bullets li { color: #2b3947; font-size: 9.3pt; page-break-inside: avoid; }
  .bullets li::before { color: #0d7a78; }

  .chips { gap: .3rem .5rem; }
  .chip { border: 1px solid #c8d4de; color: #16212e; background: #f7fafc; font-size: 8.4pt; padding: 3pt 7pt; }

  .panel { border: 1px solid #c8d4de; background: #f7fafc; box-shadow: none; padding: 8pt 10pt; page-break-inside: avoid; margin-bottom: 8pt; }
  .portfolio { grid-template-columns: repeat(2, 1fr); gap: 6pt; }
  .card { border: 1px solid #d3dde6; background: #fff; box-shadow: none; padding: 7pt 8pt; page-break-inside: avoid; }
  .card h4 { color: #1f5d8f; font-size: 9pt; }
  .card p { color: #2b3947; font-size: 8.4pt; }

  .cols { grid-template-columns: 1.25fr 1fr; gap: 12pt; }
  .col__title { color: #0f2338; font-size: 10.5pt; }
  .col__sub { color: #0d7a78; }
  .inline-tags li { color: #4a5866; font-size: 8.4pt; }

  .section--contact { padding-bottom: 0; }
  .contact-grid { border: 1px solid #c8d4de; margin-bottom: 0; }
  .contact-item { background: #f7fafc !important; padding: 7pt 9pt; }
  .contact-item__k { color: #5d6b7a; }
  .contact-item__v { color: #16212e; }

  .footer { border-top: 1px solid var(--line); padding: 6pt 0 0; }
  .footer__inner { color: #5d6b7a; }

  a { color: #16212e !important; text-decoration: none; }
  .section, .metrics, .panel, .card { break-inside: avoid; }
}
