/* ============================================================
   JOON (TRẦN THỊ KHÁNH XUÂN) — Lead UI/UX & Game UI Artist
   clean modern light · violet accent
   ============================================================ */

:root {
    --bg: #f5f4fb;
    --panel: #ffffff;
    --ink: #1b1a23;
    --ink-soft: #6c6878;
    --ink-faint: #9b97a8;
    --line: rgba(27, 26, 35, .10);
    --line-2: rgba(27, 26, 35, .16);
    --violet: #5bbd5f;
    --violet-deep: #41a049;
    --violet-soft: #e9f6ea;
    --pink: #ff7eb6;
    --mint: #36d6c3;
    --amber: #ffb23e;
    --shadow: 0 18px 44px rgba(50, 130, 60, .14);
    --shadow-sm: 0 6px 18px rgba(50, 130, 60, .12);

    --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --mono: 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg); color: var(--ink);
    font-family: var(--sans); font-size: 16px; line-height: 1.7;
    overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--violet-deep); text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--violet); color: #fff; }
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; gap: .55em;
    font-family: var(--sans); font-weight: 700; font-size: .85rem; letter-spacing: .01em;
    padding: .85em 1.5em; border: 1.5px solid transparent; border-radius: 40px;
    cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 8px 20px rgba(91,189,95,.32); }
.btn-primary:hover { background: var(--violet-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(91,189,95,.4); }
.btn-ghost { background: var(--panel); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet-deep); transform: translateY(-2px); }
.btn-big { font-size: .95rem; padding: 1em 2rem; }

/* ============ HEADER ============ */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    display: flex; align-items: center; gap: 2rem; padding: 1.1rem 2.6rem;
    transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.scrolled { background: rgba(245,244,251,.85); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding-top: .8rem; padding-bottom: .8rem; }
.logo { display: flex; align-items: center; gap: .7rem; }
.logo-badge { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; color: #fff; background: var(--violet); border-radius: 12px; box-shadow: 0 6px 16px rgba(91,189,95,.4); }
.logo-badge .ic { width: 24px; height: 24px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong { font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.logo-text em { font-style: normal; font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; color: var(--ink-faint); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 1.7rem; }
.nav-link { font-size: .88rem; font-weight: 600; color: var(--ink-soft); position: relative; padding-bottom: 4px; transition: color .2s; }
.nav-link:hover, .nav-link.is-current { color: var(--ink); }
.nav-link.is-current::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--violet); }
.btn-head { padding: .55em 1.1em; font-size: .76rem; background: var(--panel); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-head:hover { border-color: var(--violet); color: var(--violet-deep); }
.btn-head .ic { color: var(--violet); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 3px; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; }
.blob-1 { width: 460px; height: 460px; background: var(--violet); right: -6%; top: -8%; opacity: .22; }
.blob-2 { width: 360px; height: 360px; background: #86d99a; left: -8%; bottom: -6%; opacity: .22; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto; padding: 8rem 2.6rem 5rem; display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center; }
.hero-inner > * { min-width: 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; color: var(--violet-deep); margin-bottom: 1.3rem; }
.hero-eyebrow .dot { width: 7px; height: 7px; background: var(--violet); border-radius: 50%; box-shadow: 0 0 0 4px var(--violet-soft); }
.hero-title { font-weight: 800; font-size: clamp(4rem, 10vw, 7rem); line-height: .95; letter-spacing: -.03em; }
.hero-aka { font-weight: 600; font-size: 1.1rem; color: var(--ink-soft); margin: .4rem 0 .8rem; }
.hero-quote { font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--violet-deep); margin-bottom: 1.2rem; }
.hero-lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 32rem; margin-bottom: 2rem; }
.hero-lead strong { color: var(--ink); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.hero-cta .btn-ghost .ic { color: var(--violet); }
.hero-stats { display: flex; gap: 2.6rem; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.hero-stats strong::after { content: ""; }
.hero-stats em { font-style: normal; font-size: .76rem; font-weight: 600; color: var(--ink-faint); margin-top: .4rem; }

/* hero game-UI mockup */
.hero-mock { position: relative; justify-self: center; width: min(330px, 80vw); }
.mock-screen {
    background: linear-gradient(160deg, #20302a, #18241e); border-radius: 26px; padding: 1.3rem 1.2rem 1.5rem;
    box-shadow: var(--shadow); border: 6px solid #fff; animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.mock-top { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.3rem; }
.mock-ava { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #9be0a0, var(--violet)); flex-shrink: 0; }
.mock-bars { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.mock-bars i { height: 6px; border-radius: 6px; background: rgba(255,255,255,.18); }
.mock-bars i:first-child { width: 70%; }
.mock-bars i:last-child { width: 45%; }
.mock-coin { font-family: var(--mono); font-size: .68rem; color: var(--amber); background: rgba(255,178,62,.14); padding: .35em .6em; border-radius: 40px; white-space: nowrap; }
.mock-title { font-weight: 800; font-size: .9rem; letter-spacing: .12em; color: #fff; margin-bottom: .9rem; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-bottom: 1.2rem; }
.mock-grid span { aspect-ratio: 1; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.mock-grid span:nth-child(1) { background: linear-gradient(135deg, var(--violet), #8fdc94); }
.mock-grid span:nth-child(3) { background: linear-gradient(135deg, var(--mint), #7af0e2); }
.mock-grid span:nth-child(5) { background: linear-gradient(135deg, #6cc24f, #a8e07f); }
.mock-cta { text-align: center; font-weight: 800; font-size: .82rem; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, var(--violet), var(--violet-deep)); padding: .85em; border-radius: 14px; box-shadow: 0 8px 18px rgba(91,189,95,.4); }
.mock-tag { position: absolute; top: -14px; left: -14px; font-family: var(--mono); font-size: .68rem; font-weight: 700; color: var(--violet-deep); background: #fff; border: 1.5px solid var(--violet); padding: .4em .8em; border-radius: 40px; box-shadow: var(--shadow-sm); }

.scroll-hint { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; color: var(--ink-faint); display: flex; align-items: center; gap: .5rem; }
.scroll-hint span { animation: bob 1.6s infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }

/* ============ SECTIONS ============ */
.section { max-width: 1180px; margin: 0 auto; padding: 6rem 2.6rem; }
.section-alt { max-width: none; padding-left: 0; padding-right: 0; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 2.6rem; padding-right: 2.6rem; }
.section-head { margin-bottom: 3rem; }
.section-index { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; color: var(--violet); }
.section-title { font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin: .5rem 0 .7rem; }
.section-sub { color: var(--ink-soft); font-size: 1.02rem; max-width: 44rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ WORK ============ */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.work-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s; }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-thumb { aspect-ratio: 16/10; display: grid; place-items: center; position: relative; overflow: hidden; }
.work-thumb .ic { width: 48px; height: 48px; color: #fff; opacity: .95; z-index: 1; }
.work-thumb::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.25) 1px, transparent 1px); background-size: 16px 16px; opacity: .35; }
.c1 .work-thumb { background: linear-gradient(135deg, #4fb35a, #8ad98f); }
.c2 .work-thumb { background: linear-gradient(135deg, #45bd8e, #8ae2b8); }
.c3 .work-thumb { background: linear-gradient(135deg, #6cc24f, #aee07c); }
.c4 .work-thumb { background: linear-gradient(135deg, #3aa468, #79cf97); }
.c5 .work-thumb { background: linear-gradient(135deg, #5bc47a, #9ee6a6); }
.c6 .work-thumb { background: linear-gradient(135deg, #4fbca2, #8fe2d0); }
.work-body { padding: 1.4rem 1.5rem 1.6rem; }
.work-cat { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; color: var(--violet-deep); }
.work-body h3 { font-weight: 700; font-size: 1.2rem; margin: .45rem 0 .55rem; letter-spacing: -.01em; }
.work-body p { font-size: .9rem; color: var(--ink-soft); margin-bottom: .9rem; }
.work-link { font-weight: 700; font-size: .85rem; color: var(--violet-deep); }
.work-card:hover .work-link { color: var(--violet); }
.work-all { display: flex; align-items: center; justify-content: center; gap: .55em; margin: 2.4rem auto 0; max-width: max-content; font-weight: 700; font-size: .95rem; color: var(--ink); padding: 1em 1.8em; border: 1.5px solid var(--line-2); border-radius: 40px; background: var(--panel); box-shadow: var(--shadow-sm); transition: all .2s; }
.work-all .ic { color: var(--violet); }
.work-all:hover { border-color: var(--violet); color: var(--violet-deep); transform: translateY(-2px); }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: start; }
.about-quote { font-weight: 700; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.3; letter-spacing: -.01em; }
.about-quote em { color: var(--violet); font-style: italic; }
.about-lead { font-size: 1.15rem; margin-bottom: 1.1rem; }
.about-lead strong { color: var(--violet-deep); }
.about-text > p { color: var(--ink-soft); }

/* ============ SKILLS ============ */
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.skill-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.skill-card .ic { width: 26px; height: 26px; color: var(--violet); }
.skill-card h4 { font-weight: 700; font-size: 1.1rem; margin: .9rem 0 .8rem; }
.skill-card ul { display: flex; flex-wrap: wrap; gap: .45rem; }
.skill-card li { font-size: .8rem; color: var(--ink-soft); padding: .35em .8em; background: var(--violet-soft); border-radius: 40px; }
.lang-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.lang-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; color: var(--ink-faint); }
.lang-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.lang-chips li { font-size: .82rem; color: var(--ink); padding: .4em 1em; border: 1px solid var(--line-2); border-radius: 40px; }

/* ============ EXPERIENCE ============ */
.timeline { display: grid; gap: 0; max-width: 820px; }
.tl-item { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; padding: 1.7rem 0; border-top: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-year { font-family: var(--mono); font-size: .8rem; color: var(--violet-deep); padding-top: .2rem; }
.tl-body h5 { font-weight: 700; font-size: 1.25rem; margin-bottom: .4rem; }
.tl-role { font-weight: 500; font-size: 1rem; color: var(--ink-soft); }
.tl-body p { font-size: .92rem; color: var(--ink-soft); }
.tl-edu .tl-year { color: var(--ink-faint); }

/* ============ CONTACT ============ */
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
.contact-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.6rem; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.contact-card:hover { transform: translateY(-3px); border-color: var(--violet); box-shadow: var(--shadow); }
.contact-card > span { display: flex; align-items: center; gap: .5em; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; color: var(--violet-deep); margin-bottom: .4rem; }
.contact-static { cursor: default; }
.contact-row .btn-big { margin-left: auto; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--ink-faint); }
.back-top:hover { color: var(--violet-deep); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-mock { order: -1; }
    .work-grid, .skill-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 880px) {
    .main-nav { position: fixed; top: 60px; right: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.8rem; display: none; box-shadow: var(--shadow); }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 1.1rem; }
    .nav-toggle { display: flex; margin-left: auto; }
    .main-nav { margin-left: 0; }
    .btn-head { order: 1; }
    .site-header { gap: 1rem; padding: .8rem 1.2rem; }
}
@media (max-width: 600px) {
    .hero-inner { padding: 7rem 1.3rem 4rem; }
    .section { padding: 4.5rem 1.3rem; }
    .section-alt > * { padding-left: 1.3rem; padding-right: 1.3rem; }
    .work-grid, .skill-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.6rem; }
    .hero-stats strong { font-size: 2rem; }
    .tl-item { grid-template-columns: 1fr; gap: .4rem; }
    .contact-row .btn-big { margin-left: 0; }
    .scroll-hint { display: none; }
    .btn-head { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } html { scroll-behavior: auto; } }
