:root{
  --bg0:#070312;
  --bg1:#0b0720;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.12);
  --text:#EDEBFF;
  --muted: rgba(237,235,255,0.72);
  --shadow: 0 18px 60px rgba(0,0,0,0.45);
  --radius: 18px;
  --accent1:#8B5CF6;
  --accent2:#22D3EE;
  --accent3:#A855F7;
}

[data-theme="light"]{
  --bg0:#f8f7ff;
  --bg1:#ffffff;
  --card: rgba(10,10,30,0.06);
  --card2: rgba(10,10,30,0.08);
  --border: rgba(10,10,30,0.12);
  --text:#0b0720;
  --muted: rgba(10,10,30,0.72);
  --shadow: 0 18px 60px rgba(10,10,30,0.12);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  padding-top: 72px;
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 20%, rgba(139,92,246,0.25), transparent 60%),
              radial-gradient(1000px 600px at 80% 30%, rgba(34,211,238,0.18), transparent 60%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  min-height:100vh;
}

a{ color:inherit; text-decoration:none; }
/* .container{ width:min(1100px, 92vw); margin:0 auto; } */
.container{
  width: min(1320px, 92vw);
  margin: 0 auto;
  padding: 0;
}


.bg{ position:fixed; inset:0; z-index:-2; overflow:hidden; }
.blob{
  position:absolute;
  width:520px; height:520px;
  filter: blur(40px);
  opacity:0.55;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--accent1), transparent 55%),
              radial-gradient(circle at 70% 40%, var(--accent2), transparent 55%),
              radial-gradient(circle at 50% 70%, var(--accent3), transparent 55%);
  animation: float 10s ease-in-out infinite;
}
.blob--1{ left:-160px; top:-180px; }
.blob--2{ right:-200px; top:140px; animation-delay: -2.5s; }
@keyframes float{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(30px, 20px) scale(1.05); }
}
.grain{
  position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  opacity:.15;
  mix-blend-mode: overlay;
  z-index:-1;
}

.header{
  position: fixed;
  top: 0;
  left: 0;      /* ✅ thêm */
  right: 0;     /* ✅ thêm */
  width: 100%;  /* ✅ thêm */

  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7,3,18,0.72), rgba(7,3,18,0.35));
  border-bottom: 1px solid rgba(255,255,255,0.10);
  z-index: 1000; /* ✅ tăng cho chắc */

  /* 👇 thêm dòng này */
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

[data-theme="light"] .header{
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.45));
  border-bottom: 1px solid rgba(10,10,30,0.10);
}

/* Ẩn header */
.header.hide {
  transform: translateY(-100%);
}

/* Scroll shadow */
.header.scrolled {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}

.brand{ font-weight:800; letter-spacing:-0.5px; }
.brand__dot{ color: var(--accent1); }

.nav{ margin-left: auto;display:flex; gap:18px; }
.nav a{
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 10px;
}
.nav a:hover{ color: var(--text); background: rgba(255,255,255,0.06); }

.header__actions{ display:flex; gap:10px; }
.icon-btn{
  width:40px; height:40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
}
.burger{ display:none; }

/* .hero{
  min-height: 100vh;
  display:flex;
  grid-template-columns: 1.1fr 0.9fr;
  gap:28px;
  padding: 56px 0 24px;
  align-items:center;
} */
 .hero{
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr; /* cân lại 2 bên */
  align-items: center;
  justify-content: center;  /* quan trọng: cân giữa */
  gap: 56px;
  padding: 0;               /* bỏ padding cũ gây lệch */
}

.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 13px;
}
.pill .dot{
  width:8px; height:8px; border-radius:999px;
  background: var(--accent2);
  box-shadow: 0 0 18px rgba(34,211,238,0.8);
}

/* .hero__title{
  margin: 14px 0 10px;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 0.95;
  letter-spacing:-1.2px;
} */
 .hero__title{
  margin: 14px 0 14px;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 0.92;
  letter-spacing: -1.8px;
}

/*Thêm nháy viết chữ */
.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}



.grad{
  background: linear-gradient(90deg, var(--accent1), var(--accent2), var(--accent3));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero__subtitle{
  margin:0 0 18px;
  color: var(--muted);
  max-width: 44ch;
}

.hero__cta{ display:flex; gap:12px; margin-bottom:16px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.18); }
.btn--primary{
  background: linear-gradient(90deg, rgba(139,92,246,0.9), rgba(34,211,238,0.65));
  border-color: rgba(255,255,255,0.10);
}
.btn--ghost{ background: rgba(255,255,255,0.05); }
.btn--sm{ padding: 10px 12px; border-radius: 12px; font-size: 13px; }

.social{ display:flex; gap:10px; }
.social__btn{
  width:38px; height:38px;
  display:grid; place-items:center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}
.social__btn:hover{ color: var(--text); background: rgba(255,255,255,0.08); }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card--hero{ padding: 16px; }
.card__top{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.chip{
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}
.illus{ width:100%; height:auto; display:block; }

.section{ padding: 44px 0; }
.section__title{ text-align:center; margin-bottom: 18px; }
.section__title h2{ margin:0; font-size: 28px; letter-spacing:-0.6px; }
.section__title p{ margin:8px 0 0; color: var(--muted); }

.grid{ display:grid; gap:18px; }
.grid--2{ grid-template-columns: 1fr 1fr; }

.kvs{ display:grid; gap:10px; margin-top: 14px; }
.kv{ display:flex; justify-content:space-between; padding:10px 12px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); }
.kv span{ color: var(--muted); }

.tags{ display:flex; gap:8px; flex-wrap:wrap; }
.tags--big .tag{ font-size: 13px; padding: 10px 12px; border-radius: 14px; }
.tag{
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
}

.bars{ margin-top: 14px; display:grid; gap:12px; }
.bar__top{ display:flex; justify-content:space-between; color: var(--muted); font-size: 13px; margin-bottom:8px; }
.bar__track{ height: 10px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); overflow:hidden; }
.bar__fill{
  width: var(--w);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(139,92,246,0.9), rgba(34,211,238,0.65));
}

.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.stat{ display:grid; gap:6px; align-content:start; }
.stat__label{ color: var(--muted); font-size: 13px; }
.stat__num{ font-size: 28px; letter-spacing:-0.6px; }
.stat__sub{ color: var(--muted); font-size: 13px; }

.tabs{ padding: 0; overflow:hidden; }
.tabs__bar{
  display:flex;
  gap:0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.tab{
  flex:1;
  padding: 14px 12px;
  border:0;
  background: transparent;
  color: var(--muted);
  cursor:pointer;
  font-weight:600;
}
.tab.is-active{
  color: var(--text);
  background: linear-gradient(90deg, rgba(139,92,246,0.25), rgba(34,211,238,0.10));
}
.tabs__panel{ display:none; padding: 16px; }
.tabs__panel.is-active{ display:block; }

.cards{ display:grid; gap:12px; }
.work{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}
.work h3{ margin:0 0 6px; }
.work p{ margin:0 0 10px; color: var(--muted); }
.work__actions{ display:flex; gap:10px; align-items:center; }

.form{ display:grid; gap:12px; }
label span{ display:block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  outline:none;
}
input:focus, textarea:focus{ border-color: rgba(34,211,238,0.45); }
.hint{ margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.comment-box{
  display:grid; gap:10px;
  max-height: 260px;
  overflow:auto;
  padding-right: 4px;
}
.comment{
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}
.comment b{ display:block; margin-bottom: 6px; }
.comment p{ margin:0 0 8px; color: var(--muted); }
.muted{ color: var(--muted); font-size: 12px; }

.contact-mini{ display:grid; gap:10px; margin-top: 14px; }
.mini{
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
}
.mini:hover{ color: var(--text); background: rgba(255,255,255,0.06); }

.footer{
  padding: 30px 0 46px;
  text-align:center;
  color: var(--muted);
}



@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; padding-top: 34px; }
  .grid--2{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: 1fr; }
  .nav{ display:none; }
  .burger{ display:inline-grid; place-items:center; }
  .nav.is-open{
    position:absolute;
    left: 4vw; right: 4vw; top: 64px;
    display:grid;
    gap:10px;
    padding: 14px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    backdrop-filter: blur(14px);
  }
}


/**Hieu ung dong cho hero-right**/
.illus--anim { width: min(520px, 100%); height: auto; }

.illus--anim .orb { transform-origin: 390px 120px; animation: orbFloat 4.5s ease-in-out infinite; }
.illus--anim .btn { transform-origin: 175px 260px; animation: btnPulse 3.2s ease-in-out infinite; }
.illus--anim .line { animation: shimmer 2.8s ease-in-out infinite; }
.illus--anim .l2 { animation-delay: .15s; }
.illus--anim .l3 { animation-delay: .30s; }
.illus--anim .stroke { animation: strokeMove 5s ease-in-out infinite; }
.illus--anim .dots { animation: dotsBlink 2.6s ease-in-out infinite; }
.illus--anim { transition: transform .35s ease, filter .35s ease; }
.illus--anim:hover { transform: translateY(-4px); filter: drop-shadow(0 20px 60px rgba(34,211,238,.12)); }

@keyframes orbFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes btnPulse {
  0%,100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-3px); opacity: 0.92; }
}

@keyframes shimmer {
  0%,100% { opacity: .65; }
  50% { opacity: 1; }
}

@keyframes strokeMove {
  0%,100% { opacity: .22; transform: translateX(0); }
  50% { opacity: .35; transform: translateX(6px); }
}

@keyframes dotsBlink {
  0%,100% { opacity: .55; }
  50% { opacity: 1; }
}

/* Tôn trọng người dùng không thích animation */
@media (prefers-reduced-motion: reduce) {
  .illus--anim * { animation: none !important; }
}

.card--photo{
  padding: 0;
  overflow: hidden;
}

.profile-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 16px; /* nếu card bo góc */
}



/* Animation */
/* ===== Scroll reveal (enter animation) ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1),
              transform .7s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* delay helpers (tuỳ chọn) */
.d-1 { transition-delay: .08s; }
.d-2 { transition-delay: .16s; }
.d-3 { transition-delay: .24s; }
.d-4 { transition-delay: .32s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
