/*
Theme Name: Hieu Portfolio
Description: Portfolio 2026 home page, implemented from Figma.
Version: 4.2
*/
:root{--blue:#2563eb;--ink:#0f172a;--muted:#475569;--page:#f8fafc;--tint:#eff6ff}
*{box-sizing:border-box}
body{margin:0;background:var(--page);color:var(--ink);font-family:'Be Vietnam Pro','Hanken Grotesk',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3{line-height:1.2;letter-spacing:-.01em}
p,h1,h2,h3{margin:0}
a{color:inherit;text-decoration:none}
img{display:block}
.wrap{max-width:1128px;margin:0 auto;padding:42px 24px 50px;display:flex;flex-direction:column;gap:64px}
.eyebrow{font-weight:700;font-size:12px;color:var(--blue)}
h2.sec{font-weight:600;font-size:46px;margin-top:16px}
/* buttons */
.btn{display:inline-flex;align-items:center;padding:11px 23px;border-radius:8px;font-weight:600;font-size:14px;cursor:pointer;box-shadow:0 3px 10px rgba(15,23,42,.04);font-family:inherit}
.btn-primary{background:linear-gradient(#005eb8,#004d99);border:1px solid #00468c;color:#fff}
.btn-ghost{background:#fff;border:1px solid #d0d7de;color:#1e293b}
/* header */
.nav{background:#fff;border-radius:8px;box-shadow:0 2px 6px rgba(15,23,42,.03);display:flex;align-items:center;gap:32px;padding:14px 32px;min-height:76px}
.brand{display:flex;align-items:center;gap:12px;font-weight:700;margin-right:auto}
.brand b{font-size:26px}.brand span{font-size:12px}
.nav a.link{font-weight:500;font-size:15px;color:var(--muted);padding:6px 0;border-bottom:2px solid transparent;transition:color .15s,border-color .15s}
.nav a.link:hover{color:var(--ink)}
.nav a.link.active{color:var(--ink);border-color:var(--blue)}
/* hero */
.hero{display:flex;gap:34px;align-items:center}
.hero-text{flex:1;display:flex;flex-direction:column;gap:30px;align-items:flex-start}
.pill{background:#fff;border-radius:100px;padding:11px 16px;font-weight:600;font-size:12px;color:var(--blue);white-space:pre}
.hero h1{font-weight:600;font-size:64px}
.hero-text>p{font-size:20px;color:var(--muted);max-width:680px}
.actions{display:flex;gap:15px}
.card-photo{width:300px;flex:none;background:#fff;border-radius:24px;box-shadow:0 8px 22px rgba(15,23,42,.08);padding:32px 26px 30px;display:flex;flex-direction:column;align-items:center;gap:18px;white-space:nowrap}
.avatar{width:234px;background:var(--tint);border-radius:120px;padding:22px;display:flex;flex-direction:column;align-items:center;gap:10px;font-weight:700;font-size:11px;color:var(--blue)}
.card-photo .n{font-weight:700;font-size:17px}
.card-photo .r{font-weight:600;font-size:11px;color:var(--muted)}
.card-photo .l{font-size:12px;color:#64748b}
/* about */
.about{display:flex;gap:45px}
.about>div:first-child{width:490px;flex:none;display:flex;flex-direction:column;gap:19px}
.about h2{font-weight:600;font-size:43px}
.about-copy{width:540px;display:flex;flex-direction:column;gap:23px}
.about-copy p:first-child{font-size:19px}.about-copy p:last-child{font-size:16px;color:var(--muted)}
/* expertise */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin-top:30px}
.card{background:#fff;border-radius:12px;min-height:225px;padding:28px;display:flex;flex-direction:column;align-items:flex-start;gap:18px}
.card h3{font-weight:600;font-size:24px}
.card p{font-size:15px;color:var(--muted)}
/* projects */
.projects{display:flex;flex-direction:column;gap:42px}
.proj{display:flex;gap:50px;padding:10px 0;border-radius:12px;filter:drop-shadow(0 8px 11px rgba(15,23,42,.08))}
.diagram{width:490px;flex:none;background:var(--tint);border-radius:16px;padding:32px;display:flex;flex-direction:column;gap:20px;align-self:flex-start}
.diagram .eb{display:flex;gap:12px;font-size:12px;color:var(--blue);font-weight:600}
.diagram .eb b{font-weight:700}
.diagram h3{font-weight:600;font-size:24px;color:var(--ink)}
.steps{display:flex;flex-wrap:wrap;gap:16px}
.step{width:126px;min-height:134px;background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:14px 10px;display:flex;flex-direction:column;gap:11px}
.step b{font-size:11px;color:var(--blue);white-space:nowrap}
.step strong{font-weight:600;font-size:16px}
.step span{font-size:12px;color:var(--muted)}
.diagram .sum{font-weight:600;font-size:13px;color:#1d4ed8}
.diagram .note{font-size:11px;color:#64748b}
.proj-body{width:520px;display:flex;flex-direction:column;gap:25px;padding:20px 0;align-items:flex-start}
.proj-body .eyebrow{white-space:pre}
.proj-body h3{font-weight:600;font-size:37px}
.proj-body p.d{font-size:17px;color:var(--muted)}
.proj-bottom{display:flex;gap:20px;align-items:flex-start}
.tags{background:var(--page);border-radius:100px;padding:11px 16px;font-weight:600;font-size:12px;color:var(--blue);white-space:nowrap}
/* career */
.career{display:flex;flex-direction:column;gap:25px}
.job{display:flex;gap:45px;padding:14px 0}
.job>b{width:175px;flex:none;font-size:14px;color:var(--blue)}
.job div{display:flex;flex-direction:column;gap:10px}
.job strong{font-weight:600;font-size:23px}
.job span{font-size:16px;color:var(--muted)}
footer{display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}
footer b{color:var(--ink)}
@media(max-width:900px){.hero,.about,.proj{flex-direction:column}.cards{grid-template-columns:1fr}.about>div:first-child,.about-copy,.card-photo,.diagram,.proj-body{width:100%}.hero h1{font-size:44px}.steps{flex-wrap:wrap}.proj-bottom{flex-direction:column}.job{flex-direction:column;gap:8px}.nav .link{display:none}}
/* case study */
.wrap.case{gap:56px;padding-bottom:60px}
.case .eyebrow{white-space:pre}
.case-hero{display:flex;flex-direction:column;gap:29px;align-items:flex-start}
.case-hero .eyebrow{font-size:13px}
.case-hero h1{font-weight:600;font-size:52px}
.case-hero p:not(.eyebrow){font-size:20px;color:var(--muted);max-width:865px}
.meta{display:flex;gap:13px;flex-wrap:wrap}
.overview{display:flex;gap:54px;align-items:flex-start}
.ov-text{width:510px;padding-top:35px;display:flex;flex-direction:column;gap:24px}
.ov-text h2{font-weight:600;font-size:30px}
.ov-text p:not(.eyebrow){font-size:18px;color:var(--muted)}
.contrib{display:flex;flex-direction:column;gap:21px}
.contrib .sec{margin-top:0}
.row{display:flex;gap:24px;padding:21px 0}
.row b{width:65px;flex:none;font-size:22px;color:var(--blue)}
.row p{font-weight:500;font-size:20px}
.tech-head{display:flex;flex-direction:column;gap:20px}
.tech-head h2{font-weight:600;font-size:36px}
.tech-head .sub{font-size:14px;color:var(--muted)}
.flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px;align-items:center}
.fstep{background:#fff;border:1px solid #e2e8f0;border-radius:12px;min-height:112px;padding:20px;display:flex;flex-direction:column;gap:12px}
.fstep.alt{background:var(--tint)}
.fstep b{font-size:11px;color:var(--blue)}.fstep strong{font-weight:600;font-size:17px}
.tgrid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.tcard{background:#fff;border:1px solid #e2e8f0;border-radius:12px;min-height:190px;padding:24px 22px 26px;display:flex;flex-direction:column;gap:18px}
.tag{display:flex;gap:18px;font-weight:700}.tag b{font-size:12px;color:var(--blue)}.tag span{font-size:11px;color:var(--muted)}
.tcard strong{font-weight:600;font-size:22px}.tcard p{font-size:15px;color:var(--muted)}
.notes{background:var(--tint);border-radius:16px;padding:30px 30px 32px;display:flex;flex-direction:column;gap:20px}
.notes h2{font-weight:600;font-size:32px}
.note-row{display:flex;gap:16px}.note-row b{font-size:19px;color:var(--blue)}.note-row p{font-size:16px;color:var(--muted)}
.stack{background:#fff;border-radius:22px;padding:38px 37px;display:flex;flex-direction:column;gap:19px}
.stack h2{font-weight:600;font-size:26px}
.next{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:26px 32px 28px;display:flex;flex-direction:column;gap:12px}
.next strong{font-weight:600;font-size:27px}.next span{font-weight:600;font-size:14px;color:var(--blue)}
@media(max-width:900px){.overview{flex-direction:column}.ov-text{width:100%}.flow,.tgrid{grid-template-columns:1fr}.case-hero h1{font-size:36px}}
.ph{width:190px;height:190px;border-radius:50%;object-fit:cover}
.mph{width:82px;height:82px;border-radius:50%;object-fit:cover}
/* sticky top menu (offset for the WP admin bar when logged in) */
.nav,.mh{position:sticky;top:var(--hieu-top,0px);z-index:100}
.nav::before,.mh::before{content:"";position:absolute;left:-1px;right:-1px;bottom:100%;height:100vh;background:var(--page);pointer-events:none}
.nav{box-shadow:0 2px 12px rgba(15,23,42,.08)}
.mh{box-shadow:0 2px 12px rgba(15,23,42,.08)}
/* language switch */
.lang{font-weight:700;font-size:12px;color:var(--muted);border:1px solid #d0d7de;border-radius:6px;padding:6px 10px}
.lang:hover{color:var(--blue);border-color:var(--blue)}
.mright{display:flex;align-items:center;gap:8px}
/* project facts strip */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0;margin:0;background:#fff;border-radius:12px;box-shadow:0 2px 6px rgba(15,23,42,.03);width:100%}
.facts div{padding:18px 22px;border-left:1px solid #e2e8f0}
.facts div:first-child{border-left:0}
.facts dt{font-weight:700;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--blue)}
.facts dd{margin:6px 0 0;font-weight:600;font-size:15px;color:var(--ink)}
@media(max-width:900px){.facts{grid-template-columns:1fr 1fr}.facts div:nth-child(3){border-left:0}}
.nav .lang{margin-right:-12px}
.nav .btn{padding:12px 26px}
/* skills section */
.skill-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:30px}
.skill-card{background:#fff;border-radius:12px;padding:24px 26px;box-shadow:0 2px 6px rgba(15,23,42,.03)}
.skill-card h3{font-weight:700;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--blue);margin-bottom:14px}
.skill-card ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.skill-card li{background:var(--tint);color:#1d4ed8;font-weight:600;font-size:13px;padding:7px 13px;border-radius:100px}
@media(max-width:900px){.skill-grid{grid-template-columns:1fr}}
[id]{scroll-margin-top:110px}
.actions{flex-wrap:wrap}
.card-photo .tel a{color:inherit;font-weight:600}
.card-photo .tel a:hover{color:var(--blue)}
/* certifications */
.cert-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;margin-top:30px}
.cert-card{background:#fff;border-radius:12px;padding:22px 26px;box-shadow:0 2px 6px rgba(15,23,42,.03);display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.cert-card strong{font-weight:600;font-size:17px}
.cert-card span{font-size:14px;color:var(--muted)}
.cert-card a{margin-top:8px;display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:13px;color:var(--blue)}
/* mid-size desktops: tighter menu so five items never overflow */
@media(max-width:1100px){.nav{gap:20px;padding:12px 20px}.nav a.link{font-size:14px}.nav .lang{margin-right:-6px}.nav .btn{padding:11px 20px}}
/* menu without brand: links on the left, language + action on the right */
.nav .lang{margin-left:auto;margin-right:0}
@media(max-width:1100px){.nav .lang{margin-right:0}}
/* ---- layout balance: buttons never wrap, rows wrap cleanly instead of breaking ---- */
.btn{white-space:nowrap;justify-content:center;gap:8px;line-height:1.3;flex:none}
.actions{align-items:center;gap:12px 14px}
.proj-body{flex:1 1 0;min-width:0;width:auto;max-width:560px}
.proj-bottom{flex-wrap:wrap;align-items:center;gap:12px 16px}
.tags{white-space:normal;border-radius:18px;line-height:1.35;padding:10px 16px}
.cert-card a,.mwork span,.next span{white-space:nowrap}
@media(max-width:1100px){.proj{gap:32px}.diagram{width:44%;min-width:330px;padding:26px}.proj-body h3{font-size:30px}}
/* ---- menu flush with the top edge: no gap above it (page start or while scrolling) ---- */
.wrap{padding-top:0}
.nav,.mh{top:var(--hieu-top,0px);border-radius:0 0 12px 12px}
/* ===== desktop top bar: full-width, balanced (brand zone | centred links | actions) ===== */
.topbar{position:sticky;top:var(--hieu-top,0px);z-index:100;background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 2px 12px rgba(15,23,42,.05)}
.topbar::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:100vh;background:var(--page);pointer-events:none}
.topbar-in{max-width:1128px;margin:0 auto;padding:0 24px;height:68px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px}
.tb-brand{justify-self:start}
.tb-brand a,.tb-brand{display:flex;align-items:center;gap:12px;font-weight:700;color:var(--ink)}
.tb-brand b{font-size:26px}.tb-brand span{font-size:13px;letter-spacing:.02em}
.tb-links{display:flex;gap:36px;height:100%}
.tb-links a.link{display:flex;align-items:center;box-sizing:border-box;height:100%;font-weight:500;font-size:15px;color:var(--muted);border-bottom:3px solid transparent;transition:color .15s,border-color .15s}
.tb-links a.link:hover{color:var(--ink)}
.tb-links a.link.active{color:var(--ink);border-color:var(--blue)}
.tb-act{justify-self:end;display:flex;align-items:center;gap:14px}
.tb-act .btn{padding:11px 22px}
.wrap{padding-top:48px}
@media(max-width:980px){.topbar-in{grid-template-columns:1fr auto;padding:0 20px;gap:16px}.tb-brand{display:none}.tb-links{gap:22px;justify-self:start}.tb-links a.link{font-size:14px}.tb-act{gap:10px}.tb-act .btn{padding:10px 16px}}
.tb-brand a{font-weight:700;font-size:19px;letter-spacing:-.01em;color:var(--ink);white-space:nowrap}
