/* ===== Redesigned About Section ===== */
.about-section { position: relative; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 48px;
  align-items: start;
}
.about-left, .about-right {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 20px;
  padding: 34px 38px 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 28px -6px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
}
.about-left::before, .about-right::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 15%,rgba(59,130,246,0.25),transparent 60%),
              radial-gradient(circle at 85% 80%,rgba(99,102,241,0.18),transparent 65%);
  pointer-events: none; opacity:.9;
}
.about-bio { font-size: 0.98rem; line-height:1.6; color:#d1d5db; margin:0 0 22px; }
.about-bio strong { color:#3b82f6; font-weight:600; }
.about-info-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.about-info-list li { display:flex; gap:14px; align-items: flex-start; font-size:0.98rem; color:#f1f5f9; }
.about-info-list li i { width:22px; height:22px; display:flex; align-items:center; justify-content:center; color:#60a5fa; font-size:1.05rem; position:relative; top:1px; }

.about-interests-heading { font-size:1.2rem; font-weight:600; margin:0 0 18px; color:#3b82f6; letter-spacing:.5px; }
.interests-grid-new { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:20px; }
.interest-tile { position:relative; background:linear-gradient(135deg,#0f172a 0%,#1e293b 90%); border:1px solid rgba(255,255,255,0.06); border-radius:18px; padding:18px 14px 20px; text-align:center; color:#e2e8f0; font-size:0.85rem; font-weight:500; overflow:hidden; transition:.35s cubic-bezier(.4,.2,.2,1); }
.interest-tile::before { content:""; position:absolute; inset:0; background: linear-gradient(140deg,rgba(255,255,255,0.06),rgba(255,255,255,0)); opacity:.6; }
.interest-tile .icon-wrap { width:54px; height:54px; margin:0 auto 10px; border-radius:16px; display:flex; align-items:center; justify-content:center; font-size:1.5rem; color:#fff; position:relative; z-index:1; box-shadow:0 4px 18px -4px rgba(0,0,0,0.6); }
.interest-tile p { margin:0; position:relative; z-index:1; letter-spacing:.3px; }
.tile-web .icon-wrap { background:linear-gradient(135deg,#2563eb,#3b82f6); }
.tile-oss .icon-wrap { background:linear-gradient(135deg,#9333ea,#c026d3); }
.tile-music .icon-wrap { background:linear-gradient(135deg,#db2777,#ec4899); }
.tile-game .icon-wrap { background:linear-gradient(135deg,#059669,#10b981); }
.interest-tile:hover { transform:translateY(-8px) scale(1.04); box-shadow:0 14px 42px -6px rgba(0,0,0,0.55),0 0 0 1.5px rgba(255,255,255,0.07); }
.interest-tile:hover .icon-wrap { box-shadow:0 6px 26px -4px rgba(0,0,0,0.7); }

/* Entrance animation */
.fade-intro { opacity:0; transform:translateY(26px); animation:fadeIntro .9s ease forwards; }
.fade-intro.delay-100 { animation-delay:.18s; }
@keyframes fadeIntro { to { opacity:1; transform:translateY(0);} }

@media (max-width:820px){ .about-left, .about-right { padding:28px 26px 32px; } .interests-grid-new { grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:16px; } }
@media (max-width:560px){ .about-grid { gap:34px; } .about-info-list li { font-size:0.9rem; } .interest-tile { padding:16px 12px 18px; } .interest-tile .icon-wrap { width:48px; height:48px; font-size:1.3rem; } }
@media (max-width:400px){ .interests-grid-new { grid-template-columns:repeat(2,1fr); } }
/* ========== Quote (Hero) ========== */
.quote-container {
  text-align: center;
  margin: 0 auto;
  max-width: 760px;
  padding: 0 12px;
  min-height: 34px;
}
#intro-quote {
  display: inline-block;
  font-style: italic;
  font-size: 1.05rem;
  color: #bbb;
  line-height: 1.5;
  max-width: 100%;
  white-space: normal; /* Cho phép xuống dòng nếu dài */
  overflow: visible;
  margin: 16px auto 0;
  position: relative;
}
/* Con trỏ nhấp nháy trong lúc gõ */
#intro-quote.typing::after {
  content: '|';
  display: inline-block;
  margin-left: 6px;
  animation: blink 1s steps(1,end) infinite;
  opacity: .65;
}
/* Khi đã hoàn thành thì bỏ con trỏ */
#intro-quote.done::after { content: ''; }
@keyframes blink { 50% { opacity: 0; } }
.about-interests-icons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.interest-icon {
  width: 70px;
  height: 70px;
  font-size: 1.3rem;
  padding: 8px 0 0 0;
}
.interest-icon span {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 2px;
  word-break: break-word;
  text-align: center;
  display: block;
}
@media (max-width: 700px) {
  .about-interests-icons {
    gap: 10px;
  }
  .interest-icon {
    width: 52px;
    height: 52px;
    font-size: 1rem;
    padding: 4px 0 0 0;
  }
  .interest-icon span {
    font-size: 0.8rem;
  }
}
/* ===== Scroll To Top Button ===== */
#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 10000;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(59,130,246,0.15);
  cursor: pointer;
  transition: opacity 0.3s, background 0.3s;
  opacity: 0.85;
}
#scrollToTopBtn:hover {
  opacity: 1;
  background: linear-gradient(90deg, #60a5fa, #c084fc);
}
body.light-mode #scrollToTopBtn {
  background: linear-gradient(90deg, #60a5fa, #c084fc);
  color: #222;
}
/* ====== General Reset & Fonts ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 120%;
}

:root {
  --bg-dark-solid: #050816;
  --bg-dark-radial-1: radial-gradient(circle at 18% 22%, rgba(56, 189, 248, 0.24) 0%, transparent 58%);
  --bg-dark-radial-2: radial-gradient(circle at 80% 78%, rgba(129, 140, 248, 0.18) 0%, transparent 62%);
  --bg-dark-linear: linear-gradient(130deg, #020617 0%, #0f172a 38%, #1d4ed8 72%, #6366f1 100%);
  --before-dark-bg:
    radial-gradient(circle at 22% 24%, rgba(59, 130, 246, 0.45), transparent 62%),
    radial-gradient(circle at 68% 18%, rgba(129, 140, 248, 0.4), transparent 62%),
    radial-gradient(circle at 48% 78%, rgba(56, 189, 248, 0.3), transparent 70%);
  --after-dark-bg: conic-gradient(
    from 180deg at 50% 50%,
    rgba(59, 130, 246, 0.45) 0deg,
    rgba(129, 140, 248, 0.32) 135deg,
    rgba(96, 165, 250, 0.42) 220deg,
    rgba(56, 189, 248, 0.35) 320deg,
    rgba(59, 130, 246, 0.45) 360deg
  );
  --bg-light-solid: #f4f6ff;
  --bg-light-radial-1: radial-gradient(circle at 20% 24%, rgba(147, 197, 253, 0.28) 0%, transparent 58%);
  --bg-light-radial-2: radial-gradient(circle at 78% 74%, rgba(196, 181, 253, 0.2) 0%, transparent 62%);
  --bg-light-linear: linear-gradient(140deg, #fdfdff 0%, #e7f0ff 55%, #f4f6fa 100%);
  --before-light-bg:
    radial-gradient(circle at 24% 26%, rgba(147, 197, 253, 0.45), transparent 62%),
    radial-gradient(circle at 68% 18%, rgba(196, 181, 253, 0.32), transparent 64%),
    radial-gradient(circle at 48% 78%, rgba(191, 219, 254, 0.2), transparent 70%);
  --after-light-bg: conic-gradient(
    from 160deg at 50% 50%,
    rgba(147, 197, 253, 0.4) 0deg,
    rgba(196, 181, 253, 0.28) 135deg,
    rgba(191, 219, 254, 0.32) 240deg,
    rgba(147, 197, 253, 0.4) 360deg
  );
}

body.gradient-theme-aurora {
  --bg-dark-solid: #050816;
  --bg-dark-radial-1: radial-gradient(circle at 18% 22%, rgba(59, 130, 246, 0.28) 0%, transparent 58%);
  --bg-dark-radial-2: radial-gradient(circle at 80% 78%, rgba(99, 102, 241, 0.22) 0%, transparent 62%);
  --bg-dark-linear: linear-gradient(130deg, #020617 0%, #0f172a 38%, #1d4ed8 72%, #7c3aed 100%);
  --before-dark-bg:
    radial-gradient(circle at 22% 24%, rgba(59, 130, 246, 0.55), transparent 62%),
    radial-gradient(circle at 68% 18%, rgba(124, 58, 237, 0.45), transparent 62%),
    radial-gradient(circle at 48% 78%, rgba(56, 189, 248, 0.35), transparent 70%);
  --after-dark-bg: conic-gradient(
    from 180deg at 50% 50%,
    rgba(59, 130, 246, 0.55) 0deg,
    rgba(236, 72, 153, 0.38) 135deg,
    rgba(96, 165, 250, 0.5) 220deg,
    rgba(14, 165, 233, 0.45) 320deg,
    rgba(59, 130, 246, 0.55) 360deg
  );
  --bg-light-solid: #f4f6ff;
  --bg-light-radial-1: radial-gradient(circle at 20% 24%, rgba(96, 165, 250, 0.32) 0%, transparent 58%);
  --bg-light-radial-2: radial-gradient(circle at 78% 74%, rgba(244, 114, 182, 0.24) 0%, transparent 62%);
  --bg-light-linear: linear-gradient(140deg, #fdfcff 0%, #e9f2ff 55%, #f5f7fa 100%);
  --before-light-bg:
    radial-gradient(circle at 24% 26%, rgba(96, 165, 250, 0.5), transparent 62%),
    radial-gradient(circle at 68% 18%, rgba(192, 132, 252, 0.35), transparent 64%),
    radial-gradient(circle at 48% 78%, rgba(244, 114, 182, 0.22), transparent 70%);
  --after-light-bg: conic-gradient(
    from 160deg at 50% 50%,
    rgba(96, 165, 250, 0.5) 0deg,
    rgba(244, 114, 182, 0.3) 135deg,
    rgba(192, 132, 252, 0.4) 240deg,
    rgba(59, 130, 246, 0.5) 360deg
  );
}

body.gradient-theme-sunset {
  --bg-dark-solid: #130b22;
  --bg-dark-radial-1: radial-gradient(circle at 18% 20%, rgba(244, 114, 182, 0.26) 0%, transparent 60%);
  --bg-dark-radial-2: radial-gradient(circle at 78% 82%, rgba(253, 186, 116, 0.18) 0%, transparent 66%);
  --bg-dark-linear: linear-gradient(130deg, #160b29 0%, #7c2d4f 45%, #f5a97f 100%);
  --before-dark-bg:
    radial-gradient(circle at 22% 28%, rgba(244, 178, 208, 0.46), transparent 64%),
    radial-gradient(circle at 70% 18%, rgba(251, 191, 137, 0.4), transparent 66%),
    radial-gradient(circle at 50% 78%, rgba(226, 149, 120, 0.32), transparent 70%);
  --after-dark-bg: conic-gradient(
    from 200deg at 50% 50%,
    rgba(244, 178, 208, 0.42) 0deg,
    rgba(251, 191, 137, 0.36) 140deg,
    rgba(248, 181, 129, 0.38) 260deg,
    rgba(244, 178, 208, 0.42) 360deg
  );
  --bg-light-solid: #fff9f6;
  --bg-light-radial-1: radial-gradient(circle at 20% 26%, rgba(254, 205, 211, 0.32) 0%, transparent 60%);
  --bg-light-radial-2: radial-gradient(circle at 78% 74%, rgba(254, 215, 170, 0.24) 0%, transparent 64%);
  --bg-light-linear: linear-gradient(140deg, #fff9f7 0%, #ffeef0 50%, #fff4ea 100%);
  --before-light-bg:
    radial-gradient(circle at 24% 28%, rgba(254, 205, 211, 0.44), transparent 64%),
    radial-gradient(circle at 68% 20%, rgba(253, 210, 160, 0.36), transparent 66%),
    radial-gradient(circle at 48% 78%, rgba(253, 230, 200, 0.26), transparent 72%);
  --after-light-bg: conic-gradient(
    from 190deg at 50% 50%,
    rgba(254, 205, 211, 0.38) 0deg,
    rgba(253, 210, 160, 0.34) 150deg,
    rgba(253, 230, 200, 0.34) 280deg,
    rgba(254, 205, 211, 0.38) 360deg
  );
}

body.gradient-theme-ocean {
  --bg-dark-solid: #041526;
  --bg-dark-radial-1: radial-gradient(circle at 20% 18%, rgba(56, 189, 248, 0.26) 0%, transparent 60%);
  --bg-dark-radial-2: radial-gradient(circle at 78% 80%, rgba(45, 212, 191, 0.2) 0%, transparent 64%);
  --bg-dark-linear: linear-gradient(130deg, #071b2e 0%, #0b3a58 45%, #1d9bf0 100%);
  --before-dark-bg:
    radial-gradient(circle at 22% 28%, rgba(56, 189, 248, 0.45), transparent 62%),
    radial-gradient(circle at 70% 20%, rgba(45, 212, 191, 0.38), transparent 66%),
    radial-gradient(circle at 44% 78%, rgba(14, 165, 233, 0.34), transparent 70%);
  --after-dark-bg: conic-gradient(
    from 160deg at 50% 50%,
    rgba(56, 189, 248, 0.42) 0deg,
    rgba(45, 212, 191, 0.38) 150deg,
    rgba(37, 99, 235, 0.4) 270deg,
    rgba(56, 189, 248, 0.42) 360deg
  );
  --bg-light-solid: #eefaff;
  --bg-light-radial-1: radial-gradient(circle at 22% 24%, rgba(191, 219, 254, 0.28) 0%, transparent 60%);
  --bg-light-radial-2: radial-gradient(circle at 78% 74%, rgba(153, 246, 228, 0.22) 0%, transparent 64%);
  --bg-light-linear: linear-gradient(140deg, #effbff 0%, #dff6ff 50%, #e6f6ff 100%);
  --before-light-bg:
    radial-gradient(circle at 24% 28%, rgba(191, 219, 254, 0.4), transparent 64%),
    radial-gradient(circle at 70% 20%, rgba(153, 246, 228, 0.32), transparent 68%),
    radial-gradient(circle at 48% 78%, rgba(125, 211, 252, 0.25), transparent 72%);
  --after-light-bg: conic-gradient(
    from 150deg at 50% 50%,
    rgba(191, 219, 254, 0.36) 0deg,
    rgba(153, 246, 228, 0.32) 150deg,
    rgba(125, 211, 252, 0.34) 280deg,
    rgba(191, 219, 254, 0.36) 360deg
  );
}

body.gradient-theme-forest {
  --bg-dark-solid: #07180f;
  --bg-dark-radial-1: radial-gradient(circle at 20% 18%, rgba(52, 211, 153, 0.24) 0%, transparent 60%);
  --bg-dark-radial-2: radial-gradient(circle at 78% 80%, rgba(74, 222, 128, 0.2) 0%, transparent 64%);
  --bg-dark-linear: linear-gradient(130deg, #082017 0%, #0f3b2d 45%, #1fa66a 100%);
  --before-dark-bg:
    radial-gradient(circle at 24% 26%, rgba(74, 222, 128, 0.42), transparent 62%),
    radial-gradient(circle at 68% 18%, rgba(34, 197, 94, 0.4), transparent 66%),
    radial-gradient(circle at 46% 78%, rgba(21, 128, 61, 0.34), transparent 70%);
  --after-dark-bg: conic-gradient(
    from 200deg at 50% 50%,
    rgba(34, 197, 94, 0.42) 0deg,
    rgba(74, 222, 128, 0.38) 140deg,
    rgba(16, 185, 129, 0.38) 260deg,
    rgba(34, 197, 94, 0.42) 360deg
  );
  --bg-light-solid: #f3fff6;
  --bg-light-radial-1: radial-gradient(circle at 22% 24%, rgba(174, 239, 197, 0.28) 0%, transparent 60%);
  --bg-light-radial-2: radial-gradient(circle at 78% 74%, rgba(167, 243, 208, 0.22) 0%, transparent 64%);
  --bg-light-linear: linear-gradient(140deg, #f2fef5 0%, #e4fcef 50%, #fbfde9 100%);
  --before-light-bg:
    radial-gradient(circle at 24% 28%, rgba(174, 239, 197, 0.4), transparent 64%),
    radial-gradient(circle at 70% 20%, rgba(167, 243, 208, 0.32), transparent 68%),
    radial-gradient(circle at 48% 78%, rgba(134, 239, 172, 0.24), transparent 72%);
  --after-light-bg: conic-gradient(
    from 180deg at 50% 50%,
    rgba(167, 243, 208, 0.36) 0deg,
    rgba(134, 239, 172, 0.3) 140deg,
    rgba(253, 230, 138, 0.32) 280deg,
    rgba(167, 243, 208, 0.36) 360deg
  );
}

body {
  font-family: "Segoe UI", sans-serif;
  color: #eee;
  line-height: 1.6;
  text-align: center;
  background-color: var(--bg-dark-solid);
  background-image: var(--bg-dark-radial-1), var(--bg-dark-radial-2), var(--bg-dark-linear);
  background-repeat: no-repeat;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -18%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.42;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

body::before {
  filter: blur(52px);
  background: var(--before-dark-bg);
  animation: auroraFloat 26s ease-in-out infinite alternate;
}

body::after {
  filter: blur(110px);
  opacity: 0.25;
  background: var(--after-dark-bg);
  animation: auroraRotate 68s linear infinite;
}

body.gradient-transitioning {
  animation: gradientBodyPulse 1.1s ease;
}

body.gradient-transitioning::before {
  animation: auroraFloat 26s ease-in-out infinite alternate, gradientBeforePulse 1.1s ease;
}

body.gradient-transitioning::after {
  animation: auroraRotate 68s linear infinite, gradientAfterPulse 1.1s ease;
}

/* Performance: avoid painting off-screen sections */
section { content-visibility: auto; contain-intrinsic-size: 1px 1000px; }
img { image-rendering: auto; font-style: italic; }
img[loading="lazy"] { inline-size: auto; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html:focus-within { scroll-behavior: auto; }
  body::before,
  body::after {
    animation: none !important;
    opacity: 0.15;
    transform: none !important;
  }
  body.gradient-transitioning,
  body.gradient-transitioning::before,
  body.gradient-transitioning::after {
    animation: none !important;
    filter: none !important;
  }
}

@keyframes auroraFloat {
  0%   { transform: translate3d(-6%, -10%, 0) scale(0.95); opacity: 0.45; }
  45%  { transform: translate3d(5%, 6%, 0) scale(1.08); opacity: 0.62; }
  100% { transform: translate3d(-4%, 8%, 0) scale(1); opacity: 0.5; }
}

@keyframes auroraRotate {
  0%   { transform: rotate(0deg) scale(1.05); }
  50%  { transform: rotate(180deg) scale(1); }
  100% { transform: rotate(360deg) scale(1.05); }
}

@keyframes gradientBodyPulse {
  0% { filter: saturate(1) brightness(1); }
  40% { filter: saturate(1.15) brightness(1.08); }
  100% { filter: saturate(1) brightness(1); }
}

@keyframes gradientBeforePulse {
  0% { opacity: 0.42; }
  40% { opacity: 0.6; }
  100% { opacity: 0.42; }
}

@keyframes gradientAfterPulse {
  0% { opacity: 0.25; }
  40% { opacity: 0.38; }
  100% { opacity: 0.25; }
}

/* ===== Scroll Progress Bar ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  z-index: 9999;
  transition: width 0.2s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}


body.light-mode #scroll-progress {
  background: linear-gradient(90deg, #60a5fa, #c084fc);
}



/* ====== Header & Nav ====== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  padding: 12px 24px;
  background: #0b0d14;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo img {
  height: 40px;
}
.nav {
  display: flex;
  align-items: center;
}
.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #eee;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1.1rem;
  position: relative;
}
.nav a:hover {
  color: #077180;
}
.contact-btn {
  background: #00bcd4;
  padding: 8px 16px;
  border-radius: 6px;
  color: #111;
  font-weight: 600;
  font-size: 1.1rem;
}

.download-btn {
  background: linear-gradient(to right, #8b5cf6, #6366f1);
  color: white;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.download-btn i {
  font-size: 1.1rem;
}

.dark-toggle {
  background: #1a1c23;
  border: none;
  font-size: 18px;
  color: #eee;
  padding: 6px 10px;
  border-radius: 6px;
  margin-left: 16px;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  padding-top: 180px; /* đúng bằng hoặc lớn hơn chiều cao header */
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  position: relative;
}


.hero img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #00bcd4;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
  margin-bottom: 20px;
  animation: fadeIn 0.8s ease-in-out;
}

.hero-content {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-content h1, .hero-content h2, .location {
  opacity: 0;
  animation: fadeInUp 0.6s ease-in-out forwards;
}

.hero-content h1 {
  animation-delay: 0.5s;
}

.hero-content h2 {
  animation-delay: 0.8s;
}

.hero-content .location {
  animation-delay: 1.1s;
}

/* (Định nghĩa cũ #intro-quote đã thay bằng block phía trên – bỏ animation CSS để tránh cắt chữ) */

.cta-btn {
  background: linear-gradient(to right, #6a67ff, #8b5cf6);
  padding: 12px 24px;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-in-out forwards;
  animation-delay: 5s;
  margin-top: 24px;
}

.cta-btn:hover {
  opacity: 0.9;
}

@keyframes fadeInUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


.section-dark {
  width: 100%;
  background: rgba(8, 12, 26, 0.82);
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.6s ease;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #ffffff;
  position: relative;
  transition: color 0.45s ease;
}

.section-title::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  background: #3b82f6;
  margin: 12px auto 0;
  border-radius: 2px;
  opacity: 0;
  transition: width 0.55s ease, opacity 0.45s ease;
}

.section-title.is-visible::after {
  width: 72px;
  opacity: 1;
}

.section-title.is-visible {
  color: #e2e8f0;
}

/* ====== Skills Section ====== */
.skills-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 30px 10%;
}
.skill-bars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
  text-align: left;
}
.skill-item {
  width: 100%;
}
.skill-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 1rem;
  color: #ccc;
}
.skill-bar {
  background-color: #333;
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #4f46e5, #9333ea);
  border-radius: 10px;
}
.soft-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.soft-skills span {
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  display: inline-block;
  text-align: center;
  line-height: 1.4;
  transition: transform 0.3s ease;
  display: inline-block;
}

.soft-skills span:hover {
  transform: translateY(-5px) scale(1.05);
}

/* ====== About Section ====== */

/* ===== About Modern Section (only info & interests) ===== */
.about-wrapper-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
}
.about-info-modern {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  background: #1e1e2f;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(59,130,246,0.10);
  padding: 28px 36px;
  border: 1.5px solid #3b82f6;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 500;
  max-width: 420px;
}
.about-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
}
.about-info-item i {
  color: #60a5fa;
  font-size: 1.2rem;
}
.about-interests-modern {
  margin-top: 10px;
  text-align: center;
}
.about-interests-title {
  font-size: 1.2rem;
  color: #3b82f6;
  font-weight: 600;
  margin-bottom: 14px;
}
.about-interests-icons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.interest-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #3b82f6 60%, #8b5cf6 100%);
  color: #fff;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(59,130,246,0.18);
  font-size: 1.55rem; /* icon size */
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  position: relative;
  padding: 4px;
}
.interest-icon span {
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 4px;
  padding: 0 6px;
  line-height: 1.15;
  text-align: center;
  display: block;
}
.interest-icon:hover {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 10px 34px rgba(139,92,246,0.35);
  background: linear-gradient(135deg, #60a5fa 55%, #c084fc 100%);
}
/* Color variants */
.interest-web { background: linear-gradient(135deg,#2563eb,#3b82f6 55%,#6366f1); }
.interest-oss { background: linear-gradient(135deg,#9333ea,#7e22ce 55%,#c026d3); }
.interest-music { background: linear-gradient(135deg,#db2777,#ec4899 55%,#f472b6); }
.interest-game { background: linear-gradient(135deg,#0d9488,#059669 55%,#10b981); }
.interest-web:hover { box-shadow:0 0 0 3px rgba(99,102,241,.35),0 8px 28px rgba(59,130,246,.45); }
.interest-oss:hover { box-shadow:0 0 0 3px rgba(192,38,211,.35),0 8px 28px rgba(147,51,234,.45); }
.interest-music:hover { box-shadow:0 0 0 3px rgba(236,72,153,.35),0 8px 28px rgba(219,39,119,.45); }
.interest-game:hover { box-shadow:0 0 0 3px rgba(16,185,129,.35),0 8px 28px rgba(5,150,105,.45); }

/* Light mode adjustments */
body.light-mode .interest-icon { color:#fff; }
body.light-mode .interest-web { filter:brightness(1.05); }
body.light-mode .interest-oss { filter:brightness(1.05); }
body.light-mode .interest-music { filter:brightness(1.05); }
body.light-mode .interest-game { filter:brightness(1.05); }
@media (max-width: 700px) {
  .about-wrapper-modern { gap: 18px; margin-top: 18px; }
  .about-info-modern { padding: 16px 10px; font-size: 0.98rem; max-width: 98vw; }
  .about-interests-icons { gap: 14px; }
  .interest-icon { width: 70px; height: 70px; font-size: 1.15rem; }
  .interest-icon span { font-size: 0.65rem; padding: 0 4px; }
}

.goals-list ul {
  list-style: none; /* Bỏ marker mặc định */
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.goals-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: #111827; /* gần với slate-900 nhưng phù hợp tone */
  padding: 18px 22px;
  border-radius: 14px;
  color: #e5e7eb;
  font-size: 1rem;
  position: relative;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.goals-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.24);
}

.goals-list li::before {
  content: "🎯"; /* Có thể thay: "✓" "🚀" "✔️" */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg,#3b82f6,#8b5cf6);
  box-shadow: 0 6px 16px rgba(99,102,241,0.35);
  font-size: 1.1rem;
  line-height: 1;
}

.certificates-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.certificate-item {
  background-color: #1e293b;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px dashed #3b82f6;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 320px;
  color: #ccc;
}

.certificate-item i {
  font-size: 3rem;
  color: #3b82f6;
  margin-bottom: 16px;
}

.certificate-item h3 {
  color: #fff;
  margin-bottom: 8px;
}

.certificate-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
}

/* ===== Light Mode: Career Goals list ===== */
body.light-mode .goals-list li {
  background-color: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
body.light-mode .goals-list li::before {
  background: linear-gradient(135deg,#60a5fa,#c084fc);
  box-shadow: 0 6px 16px rgba(96,165,250,0.35);
}

/* ====== Contact Section ====== */
.contact-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: start;
  margin-top: 30px;
}

.contact-modern-info {
  color: #ddd;
  font-size: 1rem;
  text-align: left;
}

.contact-modern-info p {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-socials {
  margin-top: 16px;
}

.contact-socials a {
  font-size: 1.5rem;
  margin-right: 16px;
  color: #3b82f6;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-socials a:hover {
  color: #60a5fa;
  transform: scale(1.2);
}

.contact-modern-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-modern-form input,
.contact-modern-form textarea {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #3b82f6;
  background-color: #1e293b;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-modern-form input:focus,
.contact-modern-form textarea:focus {
  border-color: #60a5fa;
  outline: none;
}

.contact-modern-form button {
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  border: none;
  color: white;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.contact-modern-form button:hover {
  opacity: 0.9;
}

#contact a {
  color: #60a5fa;
  text-decoration: none; /* Bỏ gạch chân mặc định */
  font-weight: 500;
  transition: opacity 0.3s ease;
}

#contact a:hover {
  text-decoration: none; /* Giữ không gạch chân khi hover */
  opacity: 0.85; /* Gợi ý hiệu ứng nhẹ khi hover */
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #2a2a40;
  padding: 1.5rem;
  border-radius: 1rem;
  flex: 1 1 300px;
  min-height: 520px; /* hoặc auto nếu dùng flex-grow tốt */
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.project-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-bottom: 2px solid #0ea5e9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

.project-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.project-links {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  gap: 1rem;
}

.project-title {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
}

.project-description {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.tag {
  background-color: #334155;
  color: #e0f2fe;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.live {
  background-color: #3b82f6;
  color: white;
}

.live:hover {
  background-color: #2563eb;
}

.btn.github {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn.github:hover {
  border-color: #60a5fa;
  background-color: rgba(255, 255, 255, 0.05);
}

/* ====== Footer ====== */
footer {
  background-color: #0f172a;
  color: #e2e8f0;
  padding: 60px 20px 80px;
  font-size: 1.3rem;
  text-align: center;
  position: relative;
}

.back-to-top {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 24px;
  background-color: transparent;
  color: #60a5fa;
  border: 2px solid #60a5fa;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: #60a5fa;
  color: #0f172a;
}

/* Mặc định */
.section-dark {
  transition: background 0.6s ease, border-color 0.4s ease;
}

.section-light {
  background-color: whitesmoke;
  color: #1a1a1a;
  transition: background 0.4s ease, color 0.4s ease;
}


.section-light .section-title,
.section-light h3,
.section-light p,
.section-light span,
.section-light a {
  color: #1a1a1a;
}

/* Khi cuộn tới (đặc biệt) */
.active-section {
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  transform: scale(1.02);
  background-color: rgba(255, 255, 255, 0.03); /* Cho dark mode */
  z-index: 1;
}


.active-section {
  animation: bounceIn 0.8s ease;
  z-index: 1;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.interest-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

/* Các lớp delay tăng dần */
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.delay-500 {
  animation-delay: 0.5s;
}
.delay-600 {
  animation-delay: 0.6s;
}
.delay-700 {
  animation-delay: 0.7s;
}
.delay-800 {
  animation-delay: 0.8s;
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px); /* Giảm từ -60px */
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(40px); /* Giảm từ 60px */
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-left {
  animation: slideInLeft 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.slide-right {
  animation: slideInRight 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}


/* Hiệu ứng trượt */
.slide-left {
  animation: slideInLeft 0.8s ease forwards;
}

.slide-right {
  animation: slideInRight 0.8s ease forwards;
}

/* Các lớp delay (áp dụng cho slide hoặc interest-item) */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Hiệu ứng từng interest-item */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base state: chưa cuộn tới thì ẩn và trượt xuống */
.interest-item {
  opacity: 0;
  transform: translateY(20px);
}

/* Khi cuộn tới, class animate-fade-in-up được thêm → chạy animation */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Base state */
.skill-item {
  opacity: 0;
  transform: translateY(20px);
}

/* Khi cuộn tới */
.animate-skill {
  animation: fadeInUp 0.6s ease forwards;
}



/* Fade + slide up */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delay classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }


/* ====== Light Mode ====== */
body.light-mode {
  background-color: var(--bg-light-solid);
  background-image: var(--bg-light-radial-1), var(--bg-light-radial-2), var(--bg-light-linear);
  background-repeat: no-repeat;
  color: #1a1a1a;
  transition: background 0.4s ease, color 0.4s ease;
}

body.light-mode::before,
body.light-mode::after {
  filter: blur(42px);
  opacity: 0.38;
  mix-blend-mode: normal;
}

body.light-mode::before {
  background: var(--before-light-bg);
  animation: auroraFloat 24s ease-in-out infinite alternate;
}

body.light-mode::after {
  background: var(--after-light-bg);
  opacity: 0.24;
  animation: auroraRotate 72s linear infinite;
}

/* Header & Nav */
body.light-mode .header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


body.light-mode .nav a {
  color: #3b82f6;
  font-weight: bold;
}

body.light-mode .nav a.contact-btn {
  background-color: #f9fafb;
  border: 1px solid #1f51b4;
}
body.light-mode .nav a.active {
  color: #3b82f6;
  font-weight: bold;
}

.nav a.active::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
  transition: background 0.3s;
}

body.light-mode .nav a.active::after {
  background: linear-gradient(90deg, #60a5fa, #c084fc);
}

body.light-mode .hero-content h1 {
  color: #3B82F6;
}


body.light-mode .hero-content h2,
body.light-mode .hero-content .location,
body.light-mode #intro-quote {
  color: #333; 
}
body.light-mode blockquote {
  color: #333;
}

/* CTA & Buttons */
body.light-mode .cta-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

body.light-mode .btn.github {
  background: #333;
  color: #fff;
}

body.light-mode .btn.live {
  background: #3b82f6;
  color: #fff;
}

/* Section Layout */
body.light-mode .section-dark {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

body.light-mode .section-title,
body.light-mode h3 {
  color: #111;
}

body.light-mode .section-title.is-visible {
  color: #0f172a;
}

/* Project Card */
body.light-mode .project-card {
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

body.light-mode .project-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Tags */
body.light-mode .tag {
  background: #e0e0e0;
  color: #111;
}

/* Skills: Technical */
body.light-mode .skill-label span {
  color: #1a1a1a;
}

body.light-mode .skill-bar {
  background: #e0e0e0;
}

body.light-mode .skill-bar-fill {
  background: #3b82f6;
}

body.light-mode .skills-section h3 {
  color: #111;
}

/* Skills: Soft */
body.light-mode .soft-skills span {
  background: linear-gradient(90deg, #60a5fa, #c084fc);
  color: #fff;
}
/* Contact Section */
body.light-mode .contact-box,
body.light-mode .contact-box a,
body.light-mode .contact-box i {
  color: #1a1a1a;
}

/* ===== Light Mode: About + Interests (redesigned cards) ===== */
body.light-mode .about-left,
body.light-mode .about-right {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.02);
}
body.light-mode .about-left::before,
body.light-mode .about-right::before {
  background: radial-gradient(circle at 20% 15%,rgba(99,102,241,0.12),transparent 60%),
              radial-gradient(circle at 85% 80%,rgba(59,130,246,0.10),transparent 65%);
}
body.light-mode .about-bio { color:#374151; }
body.light-mode .about-bio strong { color:#2563eb; }
body.light-mode .about-info-list li { color:#1f2937; }
body.light-mode .about-info-list li i { color:#2563eb; }
body.light-mode .about-interests-heading { color:#2563eb; }

/* Interest tiles: bright surface with colorful icons */
body.light-mode .interest-tile {
  background: linear-gradient(135deg,#ffffff 0%,#f8fafc 90%);
  border: 1px solid rgba(0,0,0,0.06);
  color: #1f2937;
}
body.light-mode .interest-tile::before { opacity: .35; }
body.light-mode .interest-tile:hover {
  box-shadow: 0 14px 34px -8px rgba(0,0,0,0.12), 0 0 0 1.5px rgba(0,0,0,0.04);
}

/* ===== Light Mode: Contact ===== */
body.light-mode .contact-modern-info { color:#374151; }
body.light-mode .contact-modern-info a { color:#2563eb; }
body.light-mode .contact-modern-form input,
body.light-mode .contact-modern-form textarea {
  background-color: #ffffff;
  color: #111;
  border: 1px solid #cbd5e1;
}
body.light-mode .contact-modern-form input:focus,
body.light-mode .contact-modern-form textarea:focus {
  border-color: #3b82f6;
}

/* ===== Light Mode: Certificates ===== */
body.light-mode .certificate-item {
  background-color: #ffffff;
  color: #1f2937;
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
body.light-mode .certificate-item h3 { color:#111; }

/* ===== Light Mode: Career Goals list ===== */
body.light-mode .goals-list li {
  background-color: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Footer */
body.light-mode footer {
  background: #f0f0f0;
  color: #1a1a1a;
}

body.light-mode footer a {
  color: #1a1a1a;
}

body.light-mode footer a:hover {
  color: #3b82f6;
}
