/* Ngo Thanh Tung Portfolio */
:root {
  --bg: #080b12;
  --panel: #0e131d;
  --panel-2: #111824;
  --text: #f2f4f8;
  --muted: #9aa4b2;
  --line: rgba(255,255,255,.10);
  --accent: #b7ff5a;
  --accent-2: #d8ff9e;
  --max: 1180px;
  --body-size: 16px;
  --body-lg: 1.125rem;
  --body-md: 1rem;
  --body-sm: .95rem;
  --heading-font: "Space Grotesk", "Inter", sans-serif;
  --body-font: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 8%, rgba(183,255,90,.09), transparent 24rem),
    radial-gradient(circle at 8% 35%, rgba(76,110,255,.07), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: var(--body-size);
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::selection { background: var(--accent); color: #081006; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.site-header {
  position: sticky; top: 0; z-index: 15;
  max-width: var(--max); margin: 0 auto;
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(18px);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(8,11,18,.72); border-bottom: 1px solid var(--line);
}
.brand {
  font: 700 25px "Space Grotesk", sans-serif; letter-spacing: -.08em;
}
.brand span { color: var(--accent); }
.nav { display: flex; gap: 30px; }
.nav a { color: var(--muted); font-size: 13px; font-weight: 600; transition: color .2s; }
.nav a:hover { color: var(--text); }
.header-cta {
  border: 1px solid var(--line); padding: 9px 14px; border-radius: 99px;
  font-size: 12px; font-weight: 700;
}
.header-cta span, .btn span, .contact-links span { color: var(--accent); margin-left: 8px; }
.section { max-width: var(--max); margin: 0 auto; padding: 120px 28px; }
.hero {
  min-height: calc(100vh - 80px); display: grid; grid-template-columns: 1.2fr .8fr;
  gap: 70px; align-items: center; padding-top: 85px;
}
.eyebrow, .mini-label, .section-label, .role {
  text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800;
}
.eyebrow { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
h1, h2, h3 { font-family: var(--heading-font); line-height: 1.04; letter-spacing: -.055em; margin: 0; }
h1 { font-size: clamp(52px, 7vw, 92px); max-width: 850px; margin: 20px 0 28px; font-weight: 700; }
h2 { font-weight: 700; }
h3 { font-weight: 650; }
h1 em, h2 span, .contact-section em { color: var(--accent); font-style: normal; }
p { margin: 0; }
.hero-text { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.125rem); }
.hero-actions { display: flex; gap: 12px; margin: 34px 0 46px; }
.btn { padding: 13px 18px; border-radius: 7px; font-size: 13px; font-weight: 800; }
.btn-primary { background: var(--accent); color: #0a1006; }
.btn-ghost { border: 1px solid var(--line); }
.quick-stats { display: flex; gap: 36px; }
.quick-stats div { display: grid; gap: 1px; }
.quick-stats strong { font: 700 24px "Space Grotesk"; }
.quick-stats span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.hero-card {
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  border: 1px solid var(--line); border-radius: 18px; padding: 1px;
  box-shadow: 0 40px 100px rgba(0,0,0,.35); transform: rotate(2deg);
}
.terminal-body {
  min-height: 410px; padding: 36px 32px; border-radius: 17px;
  background: #0a0e16; font: 14px/2 "SFMono-Regular", Consolas, monospace;
  color: #dbe2ed;
}
.terminal-top { height: 42px; display: flex; gap: 7px; align-items: center; padding: 0 18px; background: #0d121b; border-radius: 17px 17px 0 0; }
.terminal-top span { width: 8px; height: 8px; border-radius: 50%; background: #303946; }
.muted { color: #7f8b9d; }
.key { color: #9fd4ff; }
.string { color: #d6ff91; }
.indent { padding-left: 20px; margin: 0; }
.indent2 { padding-left: 40px; margin: 0; }
.terminal-body p { margin: 0; }
.terminal-line { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--accent); }
.prompt { margin-right: 7px; }
.split-section { display: grid; grid-template-columns: 200px 1fr; gap: 50px; border-top: 1px solid var(--line); }
.section-label { color: #677181; padding-top: 8px; font-size: 15px; font-weight: 700; letter-spacing: .12em; }
.section-content h2 { font-size: clamp(42px, 5vw, 66px); max-width: 800px; }
.lead { max-width: 720px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.125rem); margin: 28px 0 50px; }
.about-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.about-grid article, .project-card, .education-card {
  border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 12px;
}
.about-grid article { padding: 26px; min-height: 210px; }
.card-number { color: var(--accent); font: 700 12px monospace; }
.about-grid h3 { font-size: 25px; margin: 48px 0 10px; }
.about-grid p, .project-card p, .project-card li { color: var(--muted); font-size: var(--body-md); }
.timeline { margin-left: 250px; }
.timeline-item { display: grid; grid-template-columns: 180px 1fr; gap: 40px; padding: 38px 0; border-top: 1px solid var(--line); }
.timeline-date { color: #697383; font: 700 12px monospace; padding-top: 5px; }
.timeline-content h3 { font-size: 31px; margin: 3px 0 20px; }
.role { color: var(--accent); margin: 0; }
.timeline-content ul { margin: 0; padding-left: 18px; }
.timeline-content li { color: var(--muted); font-size: var(--body-md); margin: 8px 0; }
.tags, .project-footer, .skill-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tags { margin-top: 20px; }
.tags span, .project-footer span, .skill-cloud span {
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 9px; color: #aab4c2; font-size: 10px;
}
.current .timeline-date { color: var(--accent); }
.skills-section { background: rgba(255,255,255,.012); }
.skill-block { padding-bottom: 38px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.mini-label { color: #717d8f; margin: 0 0 15px; font-size: 14px; font-weight: 600; }
.skill-cloud span { padding: 8px 11px; font-size: 14px; }
.competencies { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.competencies div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.competencies strong { color: var(--accent); font: 700 11px monospace; }
.competencies span { font-size: 14px; }
.project-grid { margin-left: 250px; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.project-card { padding: 28px; min-height: 310px; display: flex; flex-direction: column; }
.project-card.featured { grid-row: span 2; min-height: 634px; background: linear-gradient(160deg, rgba(183,255,90,.07), rgba(255,255,255,.02)); }
.project-top { display: flex; justify-content: space-between; color: #6d7889; font: 700 11px monospace; }
.project-card h3 { font-size: 30px; margin: auto 0 18px; }
.project-card.featured h3 { font-size: 42px; }
.project-card ul { padding-left: 18px; }
.project-footer { margin-top: auto; padding-top: 22px; }
.education-card { margin-left: 250px; padding: 36px; display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.education-card h2 { font-size: 30px; max-width: 650px; margin: 6px 0 10px; }
.education-card p { color: var(--muted); margin: 0; }
.cv-detail-section { border-top: 1px solid var(--line); }
.cv-detail-section .section-label { max-width: 180px; font-size: 15px; line-height: 1.45; }
.cv-detail-section .section-content { min-width: 0; }
.cv-bullet-list { list-style: none; margin: 0; padding: 0; }
.cv-bullet-list li { position: relative; color: var(--muted); font-size: var(--body-md); margin: 0; padding: 0 0 17px 25px; }
.cv-bullet-list li + li { padding-top: 17px; border-top: 1px solid var(--line); }
.cv-bullet-list li::before { content: ""; position: absolute; top: 10px; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(183,255,90,.45); }
.cv-bullet-list li + li::before { top: 27px; }
.technical-skill-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.technical-skill-list div { min-height: 132px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s, border-color .2s; }
.technical-skill-list div:hover { background: rgba(183,255,90,.045); border-color: rgba(183,255,90,.3); }
.technical-skill-list strong { display: block; color: var(--accent); font-family: var(--heading-font); font-size: 17px; line-height: 1.2; }
.technical-skill-list p { color: var(--muted); margin-top: 12px; font-size: .95rem; line-height: 1.6; }
.grade { text-align: right; display: grid; gap: 3px; min-width: 100px; }
.grade span, .grade small { color: var(--muted); font-size: 11px; }
.grade strong { font: 700 28px "Space Grotesk"; }
.contact-section { max-width: none; border-top: 1px solid var(--line); padding: 150px max(28px, calc((100vw - var(--max)) / 2 + 250px)); }
.contact-section h2 { font-size: clamp(50px, 7vw, 88px); margin: 20px 0; }
.contact-copy { color: var(--muted); max-width: 600px; }
.contact-links { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 22px; }
.contact-links a { font: 600 14px "Space Grotesk"; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.footer { max-width: var(--max); margin: auto; padding: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: #687384; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.footer a:hover { color: var(--accent); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 50px; }
  .hero-card { max-width: 650px; width: 100%; transform: none; }
  .split-section { grid-template-columns: 1fr; gap: 25px; }
  .timeline, .project-grid, .education-card { margin-left: 0; }
  .contact-section { padding: 100px 28px; }
  .cv-detail-section .section-label { max-width: none; }
}
@media (max-width: 650px) {
  .site-header { padding: 17px 18px; }
  .header-cta { padding: 8px 11px; }
  .section { padding: 85px 18px; }
  h1 { font-size: 48px; }
  .hero-text { font-size: 1rem; }
  .quick-stats { gap: 18px; flex-wrap: wrap; }
  .quick-stats strong { font-size: 20px; }
  .hero-card { display: none; }
  .about-grid, .project-grid, .competencies, .technical-skill-list { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; }
  .timeline-content h3 { font-size: 26px; }
  .project-card.featured { grid-row: auto; min-height: 420px; }
  .project-card.featured h3 { font-size: 34px; }
  .education-card { flex-direction: column; align-items: flex-start; }
  .grade { text-align: left; }
  .footer { flex-direction: column; padding: 25px 18px; }
  .contact-section { padding: 85px 18px; }
  .contact-section h2 { font-size: 50px; }
}
