/* ─── TOKENS ─── */
:root {
  --black:   #050506;
  --coal:    #111114;
  --carbon:  #1a1a1f;
  --ash:     #2e2e36;
  --mist:    #b5b5c2;
  --white:   #fdfdfd;
  --cream:   #e8e3dc;

  --red:     #d93829;
  --red-hi:  #ff4f3d;
  --gold:    #d4b242;
  --gold-hi: #f0c040;
  --gold-dim: #8a6f1c;

  --radius: 6px;
  --mono: 'DM Mono', monospace;
  --serif: 'Crimson Pro', Georgia, serif;
  --display: 'Bebas Neue', sans-serif;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: default;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--coal);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(5,5,6,0.98), transparent);
  transition: background 0.3s ease, padding 0.3s ease;
}

nav.scrolled {
  padding: 12px 48px;
  background: rgba(5, 5, 6, 1);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-mark {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.1em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.r-badge {
  width: 44px;
  height: 44px;
  background: var(--carbon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gold-dim);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  object-fit: cover;
  object-position: center 15%;
  padding: 2px;
  transition: border-color 0.3s;
}

.r-badge:hover {
  border-color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 64px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,56,41,0.12) 0%, transparent 65%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,178,66,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-left {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

h1 {
  font-family: var(--display);
  font-size: clamp(48px, 10vw, 130px);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 28px;
}

h1 .accent {
  color: var(--red);
}

.hero-desc {
  font-size: 19px;
  color: var(--mist);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 40px;
  font-style: italic;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
}

.btn-primary:hover {
  background: var(--red-hi);
  border-color: var(--red-hi);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(217,56,41,0.2);
}

.btn-ghost {
  background: rgba(212,178,66,0.03);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(212,178,66,0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212,178,66,0.1);
}

/* ─── SECTIONS ─── */
section {
  padding: 120px 64px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 64px;
}

.section-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.1em;
}

h2 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1;
}

.divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--ash), transparent);
}

/* ─── ABOUT ─── */
#about {
  background: var(--coal);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  color: var(--cream);
  margin-bottom: 24px;
  font-size: 19px;
  line-height: 1.8;
}

.about-text p:first-child::first-letter {
  font-family: var(--display);
  font-size: 64px;
  float: left;
  line-height: 0.8;
  margin: 8px 12px 0 0;
  color: var(--red);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--ash);
  border-radius: 4px;
  color: var(--mist);
  background: var(--black);
  transition: all 0.2s;
}

.tag:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,178,66,0.05);
}

.contact-card {
  background: var(--carbon);
  border: 1px solid var(--ash);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-card h3 {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 28px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ash);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--mist);
}

.contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-row .lbl {
  color: var(--red);
  width: 70px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.contact-row a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}

.contact-row a:hover {
  color: var(--gold);
}

/* ─── EXPERIENCE / EDUCATION ─── */
#education {
  background: var(--black);
}

#experience {
  background: var(--coal);
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exp-item {
  background: var(--carbon);
  border: 1px solid var(--ash);
  border-left: 4px solid var(--ash);
  border-radius: var(--radius);
  padding: 36px 40px;
  transition: all 0.3s ease;
}

.exp-item:hover {
  border-left-color: var(--red);
  border-color: var(--ash);
  background: var(--coal);
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#education .exp-item {
  background: var(--coal);
}

#education .exp-item:hover {
  background: var(--carbon);
}

.exp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
}

.exp-role {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}

.exp-period {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  background: rgba(212,178,66,0.05);
}

.exp-company {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
}

.exp-desc {
  color: var(--mist);
  font-size: 17px;
  line-height: 1.8;
}

/* ─── PUBLICATIONS ─── */
#publications {
  background: var(--black);
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.pub-card {
  background: var(--coal);
  border: 1px solid var(--ash);
  border-top: 4px solid var(--ash);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pub-card:hover {
  border-top-color: var(--red);
  border-color: var(--gold-dim);
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.pub-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--carbon);
  border-bottom: 1px solid var(--ash);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.pub-card:hover .pub-img img {
  transform: scale(1.05);
}

.pub-body {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.pub-venue {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.pub-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 16px;
  font-weight: 700;
  flex-grow: 1;
}

.pub-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.pub-role {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pub-link {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid var(--ash);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.pub-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ─── AWARDS ─── */
#awards {
  background: var(--coal);
}

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.award-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 40px;
  background: var(--carbon);
  border: 1px solid var(--ash);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.award-row:hover {
  background: var(--black);
  border-color: var(--gold-dim);
  transform: translateX(4px);
}

.award-pos {
  font-family: var(--display);
  font-size: 44px;
  color: var(--red);
  width: 70px;
  flex-shrink: 0;
  text-align: center;
  line-height: 1;
}

.award-info {
  flex: 1;
}

.award-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.award-event {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-transform: uppercase;
}

.award-note {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--mist);
  text-align: right;
}

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  border-top: 1px solid var(--ash);
  padding: 48px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-mark {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--mist);
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ash);
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

/* ─── MODAL (PHÓNG TO ẢNH) ─── */
.modal {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 5, 6, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: visibility 0.3s, opacity 0.3s ease;
}

.modal.show {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  object-fit: contain;
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--mist);
  font-size: 44px;
  font-family: var(--display);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}

.modal-close:hover {
  color: var(--red-hi);
  transform: scale(1.1);
}

/* ─── ENTRANCE ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav {
    padding: 16px 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-mark {
    font-size: 20px;
  }

  #hero {
    padding: 120px 24px 60px;
    text-align: center;
  }

  .hero-eyebrow {
    justify-content: center;
    font-size: 12px;
  }

  .hero-eyebrow::before,
  .hero-eyebrow::after {
    display: none;
  }

  .hero-desc {
    font-size: 17px;
    margin-left: auto;
    margin-right: auto;
  }

  section {
    padding: 60px 24px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-card {
    padding: 24px;
  }

  .exp-item {
    padding: 24px;
  }

  .exp-role {
    font-size: 24px;
  }

  .pub-body {
    padding: 24px;
  }

  .award-row {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 24px;
  }

  .award-note {
    text-align: center;
  }

  footer {
    padding: 40px 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }

  .exp-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .modal-close {
    top: 10px;
    right: 20px;
  }
}
