/* ==========================================================================
   PORTFOLIO NGUYỄN XUÂN DIỆU - DIGITAL TRANSFORMATION STYLESHEET
   Style: Digital Transformation / Tech Grid / Anti-Gravity / Neon Glow
   Color Theme: Bright Digital Canvas (#F4F9FC, #FFFFFF), Electric Blue (#0052FF),
                Neon Cyan (#00E5FF), Neon Green (#00E676)
   ========================================================================== */

/* --- 1. CSS VARIABLES & DESIGN TOKENS --- */
:root {
  /* Nền và Bề mặt */
  --bg-primary: #F4F9FC;
  --bg-surface: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-subtle: #EDF3F9;
  
  /* Màu chủ đạo & Điểm nhấn Neon */
  --color-primary: #0052FF;        /* Tech Royal Blue */
  --color-primary-dark: #003BB3;
  --color-primary-light: #EBF1FF;
  
  --color-neon-cyan: #00E5FF;      /* High-Voltage Cyan Glow */
  --color-neon-green: #00E676;     /* Terminal Green Success */
  --color-accent-blue: #0284C7;
  
  /* Văn bản & Phân cấp thị giác */
  --text-main: #0B132B;
  --text-body: #1E293B;
  --text-muted: #566981;
  --text-subtle: #8494A8;
  
  /* Viền & Đường lưới */
  --border-line: #E2E8F0;
  --border-tech: rgba(0, 82, 255, 0.16);
  --border-neon: rgba(0, 229, 255, 0.45);
  
  /* Hiệu ứng Phát sáng (Neon Glow) & Đổ bóng */
  --glow-cyan: 0 0 24px rgba(0, 229, 255, 0.35);
  --glow-blue: 0 0 28px rgba(0, 82, 255, 0.28);
  --glow-green: 0 0 20px rgba(0, 230, 118, 0.32);
  
  --shadow-card: 0 12px 32px -8px rgba(11, 19, 43, 0.06), 0 4px 12px -2px rgba(0, 82, 255, 0.04);
  --shadow-card-hover: 0 20px 40px -10px rgba(0, 82, 255, 0.14), 0 0 25px rgba(0, 229, 255, 0.22);
  --shadow-floating: 0 24px 48px -12px rgba(0, 82, 255, 0.18), 0 8px 24px rgba(0, 229, 255, 0.16);
  
  /* Phông chữ */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Chuyển động (Transitions) */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.32s var(--ease-spring);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-display);
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Lưới tọa độ kỹ thuật số (Tech Grid Pattern) */
.tech-grid-bg {
  background-color: var(--bg-primary);
  background-image: 
    linear-gradient(to right, rgba(0, 82, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 82, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: -1px -1px;
}

/* Container chuẩn */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Text utility classes */
.text-center { text-align: center; }
.text-neon-cyan { color: var(--color-neon-cyan) !important; }
.text-neon-green { color: var(--color-neon-green) !important; }
.text-neon-blue { color: var(--color-primary) !important; }
.text-primary { color: var(--color-primary) !important; }

.bg-primary { background-color: var(--color-primary) !important; color: #FFF !important; }
.bg-neon-cyan { background-color: var(--color-neon-cyan) !important; color: #003B46 !important; }
.bg-neon-green { background-color: var(--color-neon-green) !important; color: #003816 !important; }

/* --- 3. SCROLL PROGRESS BAR --- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-neon-cyan), var(--color-neon-green));
  box-shadow: 0 0 12px var(--color-neon-cyan);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* --- 4. NAVIGATION BAR --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 82, 255, 0.1);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px -6px rgba(0, 82, 255, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
}

.logo-icon {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-badge-it {
  font-family: var(--font-mono);
  color: #0052FF;
  font-weight: 900;
  background: var(--color-primary-light);
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 82, 255, 0.25);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  display: inline-block;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
  text-shadow: none;
}

.neon-dot {
  color: var(--color-neon-cyan);
  text-shadow: 0 0 8px var(--color-neon-cyan);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-primary);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.nav-cta {
  background: linear-gradient(135deg, var(--color-primary), #003BB3) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.32);
  margin-left: 0.5rem;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 82, 255, 0.45), 0 0 15px rgba(0, 229, 255, 0.4);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.mobile-toggle .bar {
  width: 24px;
  height: 2.5px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* --- 5. HERO SECTION --- */
.hero-section {
  position: relative;
  padding-block: 4.5rem 5rem;
  overflow: hidden;
}

/* Gradient Blobs phía sau */
.hero-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 70%);
  top: -100px;
  right: -50px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.14), transparent 70%);
  bottom: -50px;
  left: -80px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

/* Cột nội dung Hero */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1rem;
  background: #FFFFFF;
  border: 1px solid rgba(0, 82, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 82, 255, 0.08), 0 0 12px rgba(0, 229, 255, 0.15);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--color-neon-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-neon-green);
  animation: pulseBeacon 2s infinite ease-in-out;
}

.badge-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.hero-title {
  margin-bottom: 1.25rem;
}

.hero-greeting {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.hero-name {
  display: block;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-main);
  padding-bottom: 0.15rem;
}

.highlight-dot {
  color: var(--color-neon-cyan);
  display: inline-block;
  text-shadow: 0 0 12px var(--color-neon-cyan);
}

.hero-subtitle {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 0.85rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

.hero-desc strong {
  color: var(--text-main);
  font-weight: 700;
}

.hero-subdesc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* Nút bấm (Buttons) */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.65rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #003BB3 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 24px -4px rgba(0, 82, 255, 0.4), 0 0 15px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -4px rgba(0, 82, 255, 0.5), 0 0 24px rgba(0, 229, 255, 0.45);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1.5px solid var(--border-line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 82, 255, 0.12);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Hero Meta Pills */
.hero-meta-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-label {
  color: var(--text-subtle);
  font-weight: 500;
}

.meta-value {
  color: var(--text-main);
  font-weight: 700;
}

.meta-divider {
  color: var(--border-line);
}

/* --- 6. HERO VISUAL & ANTI-GRAVITY FLOATING CARD --- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-avatar-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 28px;
  background: var(--bg-surface);
  padding: 12px;
  box-shadow: var(--shadow-floating);
  border: 1.5px solid rgba(0, 229, 255, 0.4);
}

/* Glow Ring viền xung quanh */
.avatar-glow-ring {
  position: absolute;
  inset: -3px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-primary), var(--color-neon-green));
  opacity: 0.45;
  filter: blur(10px);
  z-index: -1;
  transition: opacity 0.4s ease;
}

.hero-avatar-card:hover .avatar-glow-ring {
  opacity: 0.8;
  filter: blur(14px);
}

.avatar-image-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #E2E8F0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-avatar-card:hover .avatar-img {
  transform: scale(1.03);
}

.avatar-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 19, 43, 0.6) 0%, transparent 40%);
  pointer-events: none;
}

/* Floating Badges gắn trên Hero */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(0, 82, 255, 0.15);
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.08), 0 0 15px rgba(0, 229, 255, 0.2);
  z-index: 2;
  transition: var(--transition-smooth);
}

.floating-badge:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 30px rgba(0, 82, 255, 0.2), 0 0 20px rgba(0, 229, 255, 0.4);
}

.badge-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.badge-info {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.badge-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Vị trí các floating badges */
.badge-taekwondo {
  top: 18px;
  left: -24px;
}

.badge-it {
  bottom: 60px;
  right: -24px;
}

.badge-gps {
  bottom: -18px;
  left: 20px;
  right: 20px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 230, 118, 0.4);
}

.pulse-beacon {
  width: 10px;
  height: 10px;
  background-color: var(--color-neon-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-neon-green);
  animation: pulseBeacon 1.8s infinite;
}

.gps-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}

/* --- 7. ANTI-GRAVITY FLOATING KEYFRAMES --- */
@keyframes floatAntiGravity {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.4deg);
  }
}

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

@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px var(--color-neon-green); }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 14px var(--color-neon-green); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px var(--color-neon-green); }
}

.anti-gravity-float {
  animation: floatAntiGravity 6s ease-in-out infinite;
}

.anti-gravity-subtle {
  animation: floatAntiGravitySubtle 4.5s ease-in-out infinite;
}

.anti-gravity-delay-1 {
  animation: floatAntiGravity 5.5s ease-in-out infinite 0.5s;
}

.anti-gravity-delay-2 {
  animation: floatAntiGravity 6.2s ease-in-out infinite 1.2s;
}

.anti-gravity-delay-3 {
  animation: floatAntiGravitySubtle 4.8s ease-in-out infinite 0.8s;
}

/* Thẻ số liệu Anti-gravity */
.anti-gravity-card {
  animation: floatAntiGravitySubtle 7s ease-in-out infinite;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.anti-gravity-card:hover {
  animation-play-state: paused;
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
}

/* --- 8. SECTION HEADERS CHUNG --- */
section[id], .hero-section {
  scroll-margin-top: 80px;
}

.section {
  padding-block: 5.5rem;
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
}

.eyebrow-tech {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 0.9rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.6;
}

/* --- 9. STATS SECTION (SỐ LIỆU NỔI BẬT) --- */
.stats-section {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.7) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 20px;
  padding: 1.75rem 1.4rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.stat-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-neon-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover .stat-card-glow {
  opacity: 1;
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.stat-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.stat-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-sub-ratio {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-neon-green);
}

.stat-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.stat-footer-bar {
  width: 100%;
  height: 4px;
  background: #EEF2F6;
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 99px;
  box-shadow: 0 0 8px rgba(0, 82, 255, 0.4);
}

/* --- 10. PROJECT SECTION (DỰ ÁN TRỌNG TÂM GPS) --- */
.project-overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-bottom: 3.5rem;
}

.project-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.project-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.pill-blue {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(0, 82, 255, 0.2);
}

.pill-green {
  background: #E8FBF1;
  color: #008744;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.pill-cyan {
  background: #E5FAFC;
  color: #007D8C;
  border: 1px solid rgba(0, 229, 255, 0.35);
}

.project-name {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.project-text {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Tech Stack Container */
.tech-stack-container {
  margin-block: 1.75rem 2rem;
  padding: 1.25rem;
  background: var(--bg-primary);
  border-radius: 16px;
  border: 1px solid rgba(0, 82, 255, 0.08);
}

.tech-stack-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 0.75rem;
}

.tech-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.tech-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.tech-dot.py { background-color: #3776AB; }
.tech-dot.dock { background-color: #2496ED; }
.tech-dot.ub { background-color: #E95420; }
.tech-dot.cf { background-color: #F38020; }
.tech-dot.gps { background-color: var(--color-neon-cyan); box-shadow: 0 0 6px var(--color-neon-cyan); }

/* Operational Metrics */
.operational-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-line);
}

.op-metric-item {
  display: flex;
  flex-direction: column;
}

.op-metric-value {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.op-metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
}

/* --- 11. RADAR INTERACTIVE CARD --- */
.radar-interactive-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(0, 82, 255, 0.18);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card), 0 0 25px rgba(0, 229, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.radar-card-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.radar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-neon-cyan);
  animation: pulseBeacon 1.5s infinite;
}

.radar-coords {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-subtle);
}

/* Radar SVG Styling */
.radar-svg-wrapper {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  margin-block: 0.5rem;
}

.radar-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.radar-ring {
  fill: none;
  stroke: rgba(0, 82, 255, 0.15);
  stroke-width: 1.5;
}

.radar-ring.r-safe {
  stroke: var(--color-neon-cyan);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.radar-axis, .radar-axis-diag {
  stroke: rgba(0, 82, 255, 0.1);
  stroke-width: 1;
}

.radar-axis-diag {
  stroke-dasharray: 2 4;
}

/* Radar Pulse Waves */
@keyframes radarPulse {
  0% { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

.radar-pulse-wave {
  fill: none;
  stroke: var(--color-neon-cyan);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: radarPulse 3.6s cubic-bezier(0.1, 0.6, 0.4, 1) infinite;
}

.wave-delayed {
  animation-delay: 1.8s;
}

/* Radar Sweeper (Tia quét tròn 360 độ) */
@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-sweeper-group {
  transform-origin: 170px 170px;
  animation: radarSweep 6s linear infinite;
}

.radar-sweep-edge {
  stroke: var(--color-neon-cyan);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px var(--color-neon-cyan));
}

/* Staff Point Ping Animations */
@keyframes staffPingAnim {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.staff-point .staff-ping {
  fill: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: staffPingAnim 2.2s infinite ease-out;
}

.valid-core { fill: var(--color-neon-green); filter: drop-shadow(0 0 6px var(--color-neon-green)); }
.valid-ping { stroke: var(--color-neon-green); stroke-width: 1.5; }

.info-core { fill: var(--color-neon-cyan); filter: drop-shadow(0 0 6px var(--color-neon-cyan)); }
.info-ping { stroke: var(--color-neon-cyan); stroke-width: 1.5; }

.s-1 .staff-ping { animation-delay: 0.3s; }
.s-2 .staff-ping { animation-delay: 1.1s; }
.s-3 .staff-ping { animation-delay: 1.8s; }
.s-4 .staff-ping { animation-delay: 0.7s; }

.staff-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  fill: var(--text-main);
}

.radar-hud-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  fill: var(--color-primary);
  letter-spacing: 0.06em;
}

.radar-radius-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  fill: var(--color-neon-green);
}

.radar-legend {
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding-top: 1rem;
  border-top: 1px solid var(--border-line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* --- 12. ARCHITECTURE FLOW DIAGRAM --- */
.architecture-flow-wrapper {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-line);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-card);
}

.flow-header {
  margin-bottom: 2.25rem;
}

.flow-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.flow-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.flow-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 750px;
}

/* Node Container */
.flow-nodes-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
}

.flow-node {
  background: var(--bg-primary);
  border: 1.5px solid var(--border-line);
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.flow-node:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 28px rgba(0, 82, 255, 0.12), 0 0 15px rgba(0, 229, 255, 0.2);
}

.node-icon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.node-icon-header svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}

.node-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
}

.node-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.node-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.node-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  align-self: flex-start;
}

/* Connectors & Pulse Animation */
.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 60px;
}

.connector-line {
  position: relative;
  width: 100%;
  height: 3px;
  background: #CBD5E1;
  border-radius: 99px;
}

@keyframes packetPulse {
  0% { left: 0%; opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.packet-pulse {
  position: absolute;
  top: -3.5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-neon-cyan);
  box-shadow: 0 0 10px var(--color-neon-cyan), 0 0 4px var(--color-primary);
  animation: packetPulse 2.2s infinite ease-in-out;
}

.pulse-2 { animation-delay: 0.75s; }
.pulse-3 { animation-delay: 1.5s; }

.connector-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-subtle);
  white-space: nowrap;
}

/* --- 13. PROJECT STEPS TIMELINE (6 GIAI ĐOẠN) --- */
.project-steps-timeline {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.steps-heading {
  margin-bottom: 2rem;
}

.steps-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.35rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.step-card {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-line);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  transition: var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 24px rgba(0, 82, 255, 0.08);
}

.step-num-badge {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  display: inline-block;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--color-primary);
}

.step-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Step 6 Highlight */
.step-highlight {
  background: #FFFFFF;
  border: 1.5px solid var(--color-neon-cyan);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.15);
}

.highlight-badge {
  color: var(--color-primary);
  border-bottom-color: var(--color-neon-cyan);
}

/* --- 14. JOURNEY SECTION (HÀNH TRÌNH) --- */
.journey-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, transparent 100%);
}

.timeline-container {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  padding-left: 2rem;
}

.timeline-container::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 7px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-neon-cyan), var(--color-primary), #CBD5E1);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--color-primary);
  z-index: 2;
}

.dot-current {
  border-color: var(--color-neon-cyan);
  background: var(--color-primary);
}

.dot-ping {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-neon-cyan);
  animation: pulseBeacon 2s infinite ease-out;
}

.timeline-date {
  margin-bottom: 0.6rem;
}

.date-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: #E2E8F0;
  color: var(--text-muted);
}

.current-badge {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(0, 82, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.timeline-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
}

.timeline-role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.timeline-role {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.timeline-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
}

.tag-blue { background: var(--color-primary-light); color: var(--color-primary); }
.tag-green { background: #E8FBF1; color: #008744; }
.tag-cyan { background: #E5FAFC; color: #007D8C; }
.tag-gray { background: #F1F5F9; color: var(--text-subtle); }

.timeline-org {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- 15. SKILLS SECTION (KỸ NĂNG) --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.skill-category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-line);
}

.cat-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-icon-box svg {
  width: 24px;
  height: 24px;
}

.cat-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.cat-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Skill Bars */
.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.skill-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.skill-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.skill-level {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: #EDF2F7;
  border-radius: 99px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 99px;
  box-shadow: 0 0 8px rgba(0, 82, 255, 0.3);
}

/* Soft Skills Grid */
.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.soft-skill-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-line);
  border-radius: 16px;
  padding: 1.35rem;
  transition: var(--transition-smooth);
}

.soft-skill-box:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(0, 82, 255, 0.08);
}

.soft-skill-icon {
  margin-bottom: 0.65rem;
}

.soft-skill-icon svg {
  width: 24px;
  height: 24px;
}

.soft-skill-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.soft-skill-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- 16. GALLERY SECTION (HÌNH ẢNH THỰC TẾ) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.gallery-image-box {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background-color: #E2E8F0;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.gallery-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  background: rgba(11, 19, 43, 0.8);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-caption {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.gallery-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- 17. CONTACT SECTION (KẾT NỐI VÀ LIÊN HỆ) --- */
.contact-card-main {
  background: var(--bg-surface);
  border: 1.5px solid rgba(0, 82, 255, 0.2);
  border-radius: 32px;
  padding: 3.5rem;
  box-shadow: var(--shadow-floating);
  position: relative;
  overflow: hidden;
}

.contact-card-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-neon-cyan), var(--color-neon-green));
}

.contact-header-wrap {
  text-align: center;
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.contact-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.contact-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-method-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-line);
  border-radius: 20px;
  padding: 1.75rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: var(--transition-smooth);
}

.contact-method-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 28px rgba(0, 82, 255, 0.1), 0 0 15px rgba(0, 229, 255, 0.2);
}

.method-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.method-details {
  display: flex;
  flex-direction: column;
}

.method-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 0.35rem;
}

.method-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-all;
}

.method-link {
  text-decoration: none;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.method-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Nút Sao chép (Copy Button) */
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-line);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  justify-content: center;
}

.btn-copy:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: 0 2px 8px rgba(0, 82, 255, 0.15);
}

.btn-copy.copied {
  background: #E8FBF1;
  color: #008744;
  border-color: rgba(0, 230, 118, 0.4);
}

.copy-icon {
  width: 14px;
  height: 14px;
}

/* --- 18. FOOTER --- */
.footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border-line);
  background: var(--bg-surface);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.footer-badge {
  font-weight: 700;
  color: var(--color-primary);
}

.footer-tech {
  color: var(--text-subtle);
}

/* --- 19. TOAST NOTIFICATION --- */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  background: #0B132B;
  color: #FFFFFF;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 15px rgba(0, 229, 255, 0.3);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-spring), opacity 0.35s ease;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  width: 22px;
  height: 22px;
  color: var(--color-neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon svg {
  width: 100%;
  height: 100%;
}

.toast-message {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* --- 20. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .hero-content {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
  }

  .hero-actions, .hero-meta-pills {
    justify-content: center;
  }

  .project-overview-grid {
    grid-template-columns: 1fr;
  }

  .radar-interactive-card {
    max-width: 500px;
    margin-inline: auto;
  }

  .flow-nodes-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .flow-connector {
    width: 2px;
    height: 40px;
    margin-inline: auto;
  }

  .connector-line {
    width: 2px;
    height: 100%;
  }

  .packet-pulse {
    top: 0;
    left: -4px;
    animation-name: packetPulseVertical;
  }

  @keyframes packetPulseVertical {
    0% { top: 0%; opacity: 0; }
    20%, 80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 16px 36px rgba(0, 82, 255, 0.12);
    border-bottom: 1.5px solid rgba(0, 82, 255, 0.15);
    gap: 0.75rem;
    animation: slideDownMobile 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes slideDownMobile {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Giữ trọn hiệu ứng Anti-gravity lơ lửng trên mobile */
  .hero-visual {
    margin-top: 1.5rem;
  }

  .hero-avatar-card {
    max-width: 340px;
    margin-inline: auto;
    padding: 10px;
  }

  .avatar-image-wrapper {
    height: 430px;
  }

  .floating-badge {
    position: absolute;
    width: auto;
    max-width: 85%;
    padding: 0.5rem 0.85rem;
    border-radius: 14px;
    z-index: 10;
  }

  .badge-taekwondo {
    top: 14px;
    left: -12px;
  }

  .badge-it {
    bottom: 55px;
    right: -12px;
  }

  .badge-gps {
    bottom: -15px;
    left: 12px;
    right: 12px;
    padding: 0.5rem 0.75rem;
  }

  .badge-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .badge-icon-wrap svg {
    width: 16px;
    height: 16px;
  }

  .badge-title {
    font-size: 0.78rem;
  }

  .badge-sub {
    font-size: 0.65rem;
  }

  .gps-label {
    font-size: 0.68rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .operational-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-image-box {
    height: 320px;
  }

  .soft-skills-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-block: 2.5rem 3.5rem;
  }

  .hero-greeting {
    font-size: 1.05rem;
  }

  .hero-name {
    font-size: 1.85rem;
    line-height: 1.25;
    word-break: keep-all;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    margin-top: 0.65rem;
    line-height: 1.45;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-subdesc {
    font-size: 0.88rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-avatar-card {
    max-width: 310px;
    padding: 8px;
  }
  
  .avatar-image-wrapper {
    height: 390px;
  }

  .badge-taekwondo {
    top: 10px;
    left: -8px;
  }

  .badge-it {
    bottom: 45px;
    right: -8px;
  }

  .badge-gps {
    bottom: -14px;
    left: 8px;
    right: 8px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1.25rem 0.9rem;
    border-radius: 16px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-title {
    font-size: 0.92rem;
  }

  .stat-desc {
    font-size: 0.78rem;
  }

  .contact-card-main {
    padding: 2rem 1.2rem;
    border-radius: 20px;
  }

  .project-info-card, .project-steps-timeline, .architecture-flow-wrapper {
    padding: 1.4rem;
    border-radius: 20px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .radar-interactive-card {
    padding: 1.25rem 0.85rem;
    border-radius: 20px;
  }

  .radar-legend {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}
