/* ===================================================================
   TRUONG XUAN VUONG - TECH PORTFOLIO STYLESHEET (V2 ULTRA SMOOTH)
   Optimized for High-FPS Transitions, Cyber Micro-interactions & SEO
   =================================================================== */

/* --- ROOT VARIABLES --- */
:root {
  /* Tech Palette */
  --bg-dark: #07090e;
  --bg-card: rgba(13, 17, 28, 0.75);
  --bg-card-hover: rgba(20, 27, 45, 0.9);
  --bg-surface: #0e121d;
  --bg-glass: rgba(18, 24, 38, 0.65);

  /* Neon Tech Accents */
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #7928ca;
  --accent-emerald: #00ff87;
  --accent-glow: rgba(0, 242, 254, 0.35);

  /* Text Colors */
  --text-main: #f3f4f6;
  --text-muted: #94a3b8;
  --text-dim: #94a3b8; /* Tối ưu WCAG AA contrast trên nền đen */
  --text-cyan: #38bdf8;

  /* Borders & Dividers */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(0, 242, 254, 0.35);
  --border-active: rgba(0, 242, 254, 0.85);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-tech: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions & High Performance Curves */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.35s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-smooth);

  /* Layout */
  --container-max: 1200px;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}


/* Custom Tech Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid rgba(0, 242, 254, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
}

/* Accessibility Keyboard Focus-Visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.filter-tab-btn:focus-visible,
.terminal-tab:focus-visible,
.lang-btn:focus-visible {
  outline: 2px solid var(--accent-cyan) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6) !important;
}

/* Background Interactive Canvas */
#tech-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.75;
}

/* Glowing Ambient Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -3;
  pointer-events: none;
  animation: floatOrb 22s infinite alternate ease-in-out;
}

.orb-1 {
  width: 550px;
  height: 550px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.16) 0%, rgba(0,0,0,0) 70%);
}

.orb-2 {
  width: 650px;
  height: 650px;
  bottom: 8%;
  left: -220px;
  background: radial-gradient(circle, rgba(121, 40, 202, 0.18) 0%, rgba(0,0,0,0) 70%);
  animation-duration: 28s;
}

.orb-3 {
  width: 480px;
  height: 480px;
  top: 42%;
  right: 12%;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.12) 0%, rgba(0,0,0,0) 70%);
  animation-duration: 20s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, -35px) scale(1.12); }
  100% { transform: translate(-35px, 45px) scale(0.92); }
}

/* --- REUSABLE UTILITIES & TYPOGRAPHY --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6.5rem 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.section-header {
  margin-bottom: 3.5rem;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-tech);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
  position: relative;
}

/* ===================================================================
   SECTION HEADER LINE: CHẠY RA KÉO DÀI HẾT CHỮ, CHỈ ĐÓNG LẠI KHI LƯỚT ĐI
   =================================================================== */
.section-header {
  margin-bottom: 3.5rem;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-tech);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
  position: relative;
}

.section-line {
  width: 100%; /* Kéo dài hết 100% dòng chữ tiêu đề */
  min-width: 140px;
  height: 3px;
  background: rgba(0, 242, 254, 0.08);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

/* Đốm laser trắng ngọc dẫn đường chạy từ TRÁI sang PHẢI */
.section-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0%;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffffff, 0 0 20px #00f2fe;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: left 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 2;
  will-change: left, opacity;
}

/* Thanh xanh dương neon kéo dài hết chữ (Luôn đi từ TRÁI sang PHẢI) */
.section-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #00f2fe 0%, #38bdf8 50%, #2563eb 100%);
  box-shadow: 0 0 14px #00f2fe, 0 0 25px rgba(56, 189, 248, 0.75);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left center; /* Xuất phát mở ra từ TRÁI sang PHẢI */
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  will-change: transform, opacity;
}

/* KHI CHƯA LƯỚT ĐI: Đi từ TRÁI sang PHẢI phóng dài 100% hết chữ & GIỮ NGUYÊN ĐÓ */
.section-header.visible .section-line::before {
  left: 100%; /* Đầu kim chạy từ trái sang phải */
  opacity: 1;
}

.section-header.visible .section-line::after {
  transform-origin: left center; /* Bung mở từ TRÁI sang PHẢI */
  transform: scaleX(1);
  opacity: 1;
}

/* KHI LƯỚT ĐI: Tiếp tục đi từ TRÁI sang PHẢI (đuôi bên trái cuốn sang phải biến mất) */
.section-header.leaving .section-line::before {
  left: 100%;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.section-header.leaving .section-line::after {
  transform-origin: right center; /* Thu ngắn lại về bên PHẢI (cuốn từ trái sang phải) */
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.35s;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, var(--accent-cyan) 60%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-secondary {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.text-cyan { color: var(--accent-cyan) !important; }
.text-danger { color: #ff4d4f !important; }
.text-success { color: #00ff87 !important; }
.text-dim { color: var(--text-dim) !important; }
.font-semibold { font-weight: 600; }

.link-inline {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.link-inline:hover {
  text-decoration: underline;
}

/* --- BUTTONS & INTERACTIVE ELEMENTS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: #050b14;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
  color: #000;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.btn-glow:hover::after {
  transform: scale(1);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  border-color: var(--border-neon);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-glass);
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.btn-full {
  width: 100%;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-bottom var(--transition-normal);
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.site-header.scrolled {
  background: rgba(7, 9, 14, 0.94);
  border-bottom-color: rgba(0, 242, 254, 0.2);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo-code {
  color: var(--accent-cyan);
  font-weight: 500;
}

.logo-name {
  background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.status-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
  margin-left: 0.4rem;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseNeon 2s infinite ease-in-out;
}

@keyframes pulseNeon {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link i {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan);
}

.nav-link:hover i,
.nav-link.active i {
  color: var(--accent-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* --- HERO SECTION --- */
.hero-section {
  padding-top: calc(var(--nav-height) + 4rem);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

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

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.9rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseNeon 1.8s infinite;
}

.hero-title {
  font-family: var(--font-tech);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.code-tag {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-desc strong {
  color: #fff;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.social-links-hero {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 1.15rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

/* ===================================================================
   HERO TERMINAL CARD (BORDER BEAM & RADAR SCANNING - CHUYÊN NGHIỆP)
   =================================================================== */
.hero-terminal-card {
  position: relative;
  background: rgba(10, 14, 24, 0.92);
  border-radius: 16px;
  backdrop-filter: blur(24px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 242, 254, 0.08);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-terminal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 242, 254, 0.18);
}

/* 1. Tia sáng chạy viền xoay mượt mà (Border Beam Effect) */
.border-beam {
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0%,
    transparent 70%,
    var(--accent-cyan) 85%,
    var(--accent-blue) 95%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 10;
  animation: rotateBeam 8s linear infinite;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBeam {
  to {
    --angle: 360deg;
  }
}

/* 2. Radar Scanline: Vạch quét radar trượt mượt mà */
.radar-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(180deg, rgba(0, 242, 254, 0.08) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
  animation: radarScan 6s infinite ease-in-out;
}

@keyframes radarScan {
  0% { transform: translateY(-100%); opacity: 0; }
  15% { opacity: 0.8; }
  85% { opacity: 0.8; }
  100% { transform: translateY(480px); opacity: 0; }
}

/* Terminal Window Bar (Tier 1: Window Controls + Title + Actions) */
.terminal-window-bar {
  background: rgba(13, 17, 28, 0.96);
  padding: 0.55rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 5;
  user-select: none;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}
.hero-terminal-card:hover .dot { transform: scale(1.08); }

.dot.red { background-color: #ff5f56; box-shadow: 0 0 6px rgba(255, 95, 86, 0.4); }
.dot.yellow { background-color: #ffbd2e; box-shadow: 0 0 6px rgba(255, 189, 46, 0.4); }
.dot.green { background-color: #27c93f; box-shadow: 0 0 6px rgba(39, 201, 63, 0.4); }

.terminal-window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.terminal-window-title i {
  font-size: 0.72rem;
  opacity: 0.85;
}

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.terminal-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.24rem 0.55rem;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.terminal-action-btn:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.terminal-action-btn.auto-toggle.active {
  color: var(--accent-cyan);
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(0, 242, 254, 0.08);
}

.terminal-action-btn.auto-toggle.paused {
  color: var(--text-dim);
  border-color: var(--border-glass);
  background: transparent;
}

.auto-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Terminal Tabs Strip (Tier 2: Dedicated Tab Navigation) */
.terminal-tabs-bar {
  background: rgba(10, 14, 23, 0.94);
  padding: 0.35rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 5;
}

.terminal-tabs {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.terminal-tabs::-webkit-scrollbar { display: none; }

.terminal-tab {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.32rem 0.38rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.terminal-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-tab i {
  flex-shrink: 0;
  font-size: 0.74rem;
}

.terminal-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.terminal-tab.active {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.09);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: inset 0 -1.5px 0 var(--accent-cyan), 0 0 12px rgba(0, 242, 254, 0.08);
  font-weight: 500;
}

.tab-pulse {
  width: 5px;
  height: 5px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--accent-emerald);
  animation: pulseNeon 1.5s infinite;
  flex-shrink: 0;
}

/* Auto-cycle progress bar */
.terminal-progress-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  box-shadow: 0 0 8px var(--accent-cyan);
  transition: width 0.05s linear;
}

/* Laser Shutter Sweep Beam */
.terminal-shutter-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--accent-cyan) 50%, var(--accent-blue) 80%, transparent 95%);
  box-shadow: 0 0 16px var(--accent-cyan);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

.terminal-shutter-beam.sweep {
  animation: shutterSweep 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes shutterSweep {
  0% { top: 0%; opacity: 0; }
  25% { opacity: 1; height: 3px; }
  85% { opacity: 0.8; height: 2px; }
  100% { top: 100%; opacity: 0; }
}

/* Console Execution Output View */
.terminal-console-output {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* Staggered Stream Line Animations */
.stream-item {
  opacity: 0;
  transform: translateY(8px);
  animation: streamAppear 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.d-1 { animation-delay: 0.03s; }
.d-2 { animation-delay: 0.10s; }
.d-3 { animation-delay: 0.18s; }
.d-4 { animation-delay: 0.26s; }
.d-5 { animation-delay: 0.34s; }
.d-6 { animation-delay: 0.42s; }
.d-7 { animation-delay: 0.50s; }
.d-8 { animation-delay: 0.58s; }

@keyframes streamAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Terminal Screen Morphing Container */
.terminal-screen-wrapper {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-screen-wrapper.fade-out {
  opacity: 0;
  transform: translateY(-8px) scale(0.99);
  filter: blur(4px);
}

.terminal-screen-wrapper.fade-in {
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  filter: blur(4px);
}

.console-cmd {
  color: #fff;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.console-cmd .prompt {
  color: var(--accent-emerald);
  font-weight: bold;
}

.console-cmd .cmd-text {
  color: var(--accent-cyan);
}

.console-line {
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
}

.console-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.75rem 0;
}

.console-box {
  background: rgba(0, 242, 254, 0.03);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 0.6rem 0;
}

.console-box-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.console-item {
  display: flex;
  gap: 0.6rem;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.console-item .k {
  color: var(--text-dim);
  min-width: 85px;
}

.console-item .v {
  color: #f1f5f9;
}

.console-json-result {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  color: #e2e8f0;
  margin-bottom: 0.6rem;
}

.terminal-cursor {
  display: inline-block;
  color: var(--accent-cyan);
  animation: blinkCursor 0.9s step-end infinite;
}

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

.terminal-body {
  padding: 1.4rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  color: #cbd5e1;
  overflow-x: auto;
  overflow-y: auto;
  position: relative;
  z-index: 3;
  min-height: 385px;
  height: 385px;
}

/* Ngắt dòng code thông minh chống tràn và cắt cụt chữ trên mobile */
.terminal-body pre code {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
}

.cli-line, .cli-output, .cli-welcome-box pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-body .kw { color: #ff7b72; }
.terminal-body .var { color: #79c0ff; }
.terminal-body .type { color: #ffa657; }
.terminal-body .prop { color: #7ee787; }
.terminal-body .str { color: #a5d6ff; }
.terminal-body .num { color: #79c0ff; }
.terminal-body .comment { color: #8b949e; font-style: italic; }

/* ===================================================================
   INTERACTIVE WEB TERMINAL (CLI BASH MODE)
   =================================================================== */
.tab-pulse.cli-pulse {
  background-color: #ffbd2e;
  box-shadow: 0 0 6px #ffbd2e;
}

.terminal-tab[data-mode="cli"].active {
  color: #ffbd2e;
  background: rgba(255, 189, 46, 0.12);
  border-color: rgba(255, 189, 46, 0.35);
}

.cli-screen-wrapper {
  height: 100%;
  min-height: 350px;
  display: flex;
  flex-direction: column;
}

.cli-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.cli-banner {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.cli-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.cli-os-title {
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cli-os-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.cli-os-help {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cli-cmd-highlight {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.cli-history {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.cli-history-entry {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cli-echo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
}

.cli-echo-cmd {
  color: #00f0ff;
  font-weight: 600;
}

.cli-output {
  padding-left: 0.5rem;
  border-left: 2px solid rgba(0, 240, 255, 0.25);
  margin-top: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.cli-output pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
}

.cli-input-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.5rem;
  flex-shrink: 0;
}

.cli-prompt-user {
  color: #00ff88;
  font-weight: 700;
}

.cli-prompt-sep {
  color: #64748b;
}

.cli-prompt-path {
  color: #38bdf8;
}

.cli-prompt-dollar {
  color: var(--accent-cyan);
  font-weight: 700;
}

.cli-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  caret-color: var(--accent-cyan);
  padding: 0;
}

.terminal-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  background: rgba(12, 16, 26, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.2rem;
  position: relative;
  z-index: 4;
}

.stat-box { text-align: center; }

.stat-number {
  font-family: var(--font-tech);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-glass);
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.about-image-card {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-frame {
  position: relative;
  width: min(320px, 86vw);
  height: min(390px, 105vw);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 242, 254, 0.35);
  background: var(--bg-card);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 242, 254, 0.15);
  transition: all var(--transition-normal);
}

.avatar-frame:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 242, 254, 0.3);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform var(--transition-slow);
}

.avatar-frame:hover .avatar-img {
  transform: scale(1.05);
}

.avatar-tech-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 9, 14, 0.9) 100%);
  z-index: 1;
}

.avatar-badge {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(10, 15, 26, 0.85);
  border: 1px solid var(--border-neon);
  border-radius: 30px;
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.about-heading {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 1.2rem;
}

.info-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.info-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.info-chip:hover {
  border-color: var(--border-neon);
  transform: translateY(-2px);
}

.info-chip i {
  font-size: 1.3rem;
  margin-top: 0.2rem;
}

.info-chip strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 0.15rem;
}

.info-chip span {
  font-size: 0.95rem;
  color: #fff;
}

.copyable-text {
  cursor: pointer;
  text-decoration: underline dotted var(--accent-cyan);
  transition: color var(--transition-fast);
}

.copyable-text:hover {
  color: var(--accent-cyan);
}

/* ===================================================================
   EXPERIENCE SECTION: DYNAMIC LASER TIMELINE (TRÔI CHẢY MƯỢT MÀ)
   =================================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Trục nền tĩnh */
.timeline::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 20px;
  width: 2px;
  height: var(--timeline-track-height, calc(100% - 36px));
  background: rgba(255, 255, 255, 0.08);
}

/* Tia Laser chạy theo tiến trình cuộn trang */
.timeline-laser-progress {
  position: absolute;
  top: 16px;
  left: 20px;
  width: 2px;
  height: 0px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  box-shadow: 0 0 12px var(--accent-cyan);
  z-index: 1;
  transition: height 0.15s ease-out;
}

.timeline-item {
  position: relative;
  padding-left: 55px;
  margin-bottom: 3.5rem;
}

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

/* Chấm tròn và vòng hào quang sóng năng lượng */
.timeline-dot-wrapper {
  position: absolute;
  left: 11px;
  top: 6px;
  width: 20px;
  height: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  background: var(--bg-dark);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all var(--transition-normal);
  z-index: 2;
}

.timeline-dot.active,
.timeline-item:hover .timeline-dot {
  background: var(--accent-cyan);
  border-color: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 16px var(--accent-cyan);
}

.timeline-dot-ring {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px dashed var(--accent-cyan);
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--transition-normal);
  pointer-events: none;
}

.timeline-dot.active + .timeline-dot-ring,
.timeline-item:hover .timeline-dot-ring {
  opacity: 0.8;
  transform: scale(1.4);
  animation: spinRing 8s linear infinite;
}

@keyframes spinRing {
  to { transform: scale(1.4) rotate(360deg); }
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(14px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.timeline-node-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.timeline-card:hover {
  border-color: var(--border-neon);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 242, 254, 0.12);
  transform: translateX(6px);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.timeline-role {
  font-family: var(--font-tech);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  padding: 0.2rem 0.6rem;
  background: rgba(0, 242, 254, 0.08);
  border-radius: 20px;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-company i {
  color: var(--accent-cyan);
  margin-right: 0.3rem;
}

.timeline-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.timeline-bullets {
  list-style: none;
  margin-bottom: 1.2rem;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

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

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  color: var(--text-cyan);
}

/* ===================================================================
   TIMELINE TERMINATION ENDPOINT (CHẤM TRÒN KẾT THÚC & ĐIỂM NỐI TƯƠNG LAI)
   =================================================================== */
.timeline-endpoint {
  position: relative;
  padding-left: 55px;
  margin-top: 2.8rem;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.timeline-endpoint .endpoint-dot-wrapper {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot.endpoint-dot {
  width: 16px;
  height: 16px;
  background: var(--bg-dark);
  border: 2px solid rgba(0, 240, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
  transition: all var(--transition-normal);
  z-index: 2;
}

.timeline-dot.endpoint-dot.active,
.timeline-endpoint:hover .timeline-dot.endpoint-dot,
.timeline-endpoint.endpoint-reached .timeline-dot.endpoint-dot {
  background: var(--accent-cyan);
  border-color: #ffffff;
  transform: scale(1.35);
  box-shadow: 0 0 20px var(--accent-cyan), 0 0 35px rgba(0, 240, 255, 0.7);
}

.endpoint-ring {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px dashed var(--accent-cyan);
  opacity: 0.3;
  transform: scale(0.7);
  transition: all var(--transition-normal);
  pointer-events: none;
}

.timeline-dot.endpoint-dot.active + .endpoint-ring,
.timeline-endpoint:hover .endpoint-ring,
.timeline-endpoint.endpoint-reached .endpoint-ring {
  opacity: 0.9;
  transform: scale(1.4);
  animation: spinRing 6s linear infinite;
}

.endpoint-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(10, 15, 30, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
}

.timeline-endpoint.endpoint-reached .endpoint-badge,
.timeline-endpoint:hover .endpoint-badge {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.18), inset 0 0 15px rgba(0, 240, 255, 0.08);
  transform: translateX(4px);
}

.endpoint-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  position: relative;
  flex-shrink: 0;
}

.endpoint-status-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.endpoint-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.endpoint-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}

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

/* ===================================================================
   SKILLS SECTION: MOUSE SPOTLIGHT GLOW (MƯỢT MÀ, TRÔI CHẢY)
   =================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.6rem;
}

.skill-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  will-change: transform;
}

/* Spotlight Overlay: Vầng sáng tỏa ra mượt mà từ vị trí con trỏ chuột */
.spotlight-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 242, 254, 0.16),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.skill-card:hover .spotlight-overlay {
  opacity: 1;
}

.skill-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.15);
}

.skill-card > * {
  position: relative;
  z-index: 2;
}

.skill-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 1.2rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.skill-card:hover .skill-card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
  background: rgba(0, 242, 254, 0.15);
}

.skill-card-title {
  font-family: var(--font-tech);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.skill-card-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.38rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  color: #e2e8f0;
  transition: all var(--transition-fast);
}

.pill:hover {
  background: rgba(0, 242, 254, 0.14);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.2);
}

/* --- PROJECTS SECTION --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.project-card:hover {
  border-color: var(--border-neon);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 242, 254, 0.18);
}

.project-banner {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-banner img {
  transform: scale(1.08);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 17, 28, 0.95) 100%);
  z-index: 1;
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  background: rgba(10, 15, 26, 0.85);
  border: 1px solid var(--border-neon);
  border-radius: 20px;
  color: var(--accent-cyan);
  backdrop-filter: blur(6px);
}

.badge-nda {
  position: absolute;
  bottom: 0.9rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 20px;
  color: #fbbf24;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.link-btn-nda {
  cursor: pointer;
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.06);
}

.link-btn-nda:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: #fbbf24;
  color: #fef08a;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
}

.project-content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-family: var(--font-tech);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  color: var(--text-cyan);
}

.project-links {
  display: flex;
  gap: 0.8rem;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.link-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.link-btn.primary {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--border-neon);
  color: var(--accent-cyan);
}

.link-btn.primary:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

/* --- TECH STACK FILTER TABS --- */
.project-filter-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2.2rem;
}

.project-filter-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem;
  background: rgba(13, 20, 36, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: 40px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.project-filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 30px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-tab-btn i {
  font-size: 0.88rem;
}

.filter-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.filter-tab-btn.active {
  background: rgba(0, 240, 255, 0.14);
  border-color: var(--border-neon);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  transition: all var(--transition-fast);
}

.filter-tab-btn.active .filter-count {
  background: var(--accent-cyan);
  color: #040712;
  font-weight: 700;
}

/* Card Filter Animation */
.project-card {
  animation: filterCardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.project-card.filtered-hide {
  display: none !important;
}

@keyframes filterCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Architecture Buttons on Cards */
.banner-arch-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: rgba(10, 15, 28, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-radius: 20px;
  color: var(--accent-cyan);
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.banner-arch-pill i {
  color: #00f0ff;
  font-size: 0.82rem;
  transition: transform var(--transition-fast);
}

.banner-arch-pill:hover {
  background: var(--accent-cyan);
  color: #040712;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.6);
  transform: translateY(-2px);
}

.banner-arch-pill:hover i {
  color: #040712;
  transform: rotate(15deg);
}

.link-btn.arch-highlight-btn {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--accent-cyan);
}

.link-btn.arch-highlight-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
  color: #fff;
}

/* --- CV & CONTACT SECTION --- */
.contact-cv-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.cv-highlight-card {
  background: linear-gradient(135deg, rgba(13, 20, 36, 0.9) 0%, rgba(20, 14, 38, 0.9) 100%);
  border: 1px solid var(--border-neon);
  border-radius: 20px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2.2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 242, 254, 0.12);
  transition: all var(--transition-normal);
}

.cv-highlight-card:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 45px rgba(0, 242, 254, 0.2);
  transform: translateY(-2px);
}

.cv-icon-badge {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.25);
}

.badge-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
  margin-bottom: 0.4rem;
}

.cv-info-content h3 {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.cv-info-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin-bottom: 0.8rem;
}

.cv-meta-details {
  display: flex;
  gap: 1.4rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.cv-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 200px;
}

/* Contact Details Grid */
.contact-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-direct-box,
.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 2.2rem;
  backdrop-filter: blur(14px);
}

.contact-direct-box h3,
.contact-form-box h3 {
  font-family: var(--font-tech);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.contact-method-item:hover {
  background: rgba(0, 242, 254, 0.06);
  border-color: var(--border-neon);
}

.method-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.method-info {
  flex-grow: 1;
}

.method-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.method-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.method-value:hover {
  color: var(--accent-cyan);
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
}

/* Contact Form Elements */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(10, 14, 24, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  background: rgba(10, 14, 24, 0.95);
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border-glass);
  background: #040509;
  padding: 2.5rem 0;
  margin-top: 4rem;
}

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

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

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

.footer-status-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  padding: 0.35rem 0.8rem;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 20px;
}

.footer-security-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #a7f3d0;
  padding: 0.35rem 0.8rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.12);
  transition: all var(--transition-fast);
  cursor: default;
}

.footer-security-pill:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.14);
}

.security-dot-pulse {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseSecurityDot 2s infinite ease-in-out;
}

@keyframes pulseSecurityDot {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
    box-shadow: 0 0 6px #10b981;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
    box-shadow: 0 0 12px #34d399, 0 0 18px rgba(16, 185, 129, 0.5);
  }
}

.status-indicator {
  width: 6px;
  height: 6px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--font-tech);
  transition: color var(--transition-fast);
}

.back-to-top:hover {
  color: var(--accent-cyan);
}

/* ===================================================================
   FLOATING QUICK ACTION PILL (BOOK A CALL TRIGGER)
   =================================================================== */
.floating-quick-action {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1.25rem;
  background: rgba(12, 17, 32, 0.94);
  border: 1px solid var(--border-neon);
  border-radius: 40px;
  color: #fff;
  font-family: var(--font-tech);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, box-shadow var(--transition-fast), background var(--transition-fast);
}

.floating-quick-action.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-quick-action:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 240, 255, 0.5);
  transform: translateY(-3px);
  color: var(--accent-cyan);
}

.floating-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: pulseNeon 1.8s infinite ease-in-out;
}

.floating-quick-action i {
  font-size: 1rem;
  color: var(--accent-cyan);
}

/* --- TOAST NOTIFICATION --- */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.85rem 1.4rem;
  background: rgba(13, 17, 28, 0.95);
  border: 1px solid var(--accent-cyan);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-tech);
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.3);
  backdrop-filter: blur(12px);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

/* ===================================================================
   CONVERSION UX: CYBER BUTTONS, SCHEDULE BOX & TELEGRAM FORM
   =================================================================== */
.btn-cyber-cal {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12) 0%, rgba(138, 43, 226, 0.22) 100%);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #fff;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.8rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.92rem;
}

.btn-cyber-cal:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25) 0%, rgba(138, 43, 226, 0.4) 100%);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35), 0 0 35px rgba(138, 43, 226, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

/* Quick Meeting Booking Card */
.quick-meeting-box {
  background: linear-gradient(135deg, rgba(16, 24, 44, 0.85) 0%, rgba(26, 18, 48, 0.85) 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  margin-top: 1.2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(0, 240, 255, 0.04);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.quick-meeting-box:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 240, 255, 0.15);
  transform: translateY(-2px);
}

.quick-meeting-box .meeting-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.meeting-status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  position: relative;
}

.meeting-status-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  animation: pulseDot 2s infinite;
}

.meeting-badge-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  font-weight: 700;
}

.quick-meeting-box h4 {
  font-family: var(--font-tech);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.quick-meeting-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.9rem;
}

/* Form Header & Telegram Live Badge */
.form-box-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}

.form-telegram-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

.badge-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
}

.form-box-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.form-telegram-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.8rem;
  line-height: 1.4;
}

/* Feedback Alert */
.form-alert {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  animation: fadeInAlert 0.3s ease;
}

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

.form-alert.success {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.35);
  color: #a7f3d0;
}

.form-alert.error {
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.35);
  color: #fca5a5;
}

.form-alert-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

/* ===================================================================
   CYBER MODAL SYSTEM (PDF VIEWER & CALENDAR SCHEDULER)
   =================================================================== */
body.modal-open {
  overflow: hidden !important;
}

.cyber-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cyber-modal.active {
  opacity: 1;
  visibility: visible;
}

.cyber-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cyber-modal-container {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, rgba(12, 17, 32, 0.98) 0%, rgba(18, 14, 38, 0.98) 100%);
  border: 1px solid var(--border-neon);
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 50px rgba(0, 240, 255, 0.18);
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-modal.active .cyber-modal-container {
  transform: scale(1) translateY(0);
}

.cyber-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(10, 15, 28, 0.7);
  gap: 1rem;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-title-group i {
  font-size: 1.6rem;
}

.modal-title {
  font-family: var(--font-tech);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.modal-subtitle {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cyber-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cyber-modal-close:hover {
  background: rgba(255, 71, 87, 0.15);
  border-color: #ff4757;
  color: #ff6b81;
  transform: rotate(90deg);
}

.cyber-modal-body {
  padding: 1.4rem 1.6rem;
  overflow-y: auto;
  flex: 1;
}

/* CV PDF Viewer Modal Specific */
.cv-modal-container {
  max-width: 1020px;
  height: 90vh;
}

.cv-modal-body {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
}

.cv-mobile-notice {
  display: none;
  background: rgba(0, 240, 255, 0.06);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  padding: 0.8rem 1.2rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.cv-mobile-actions {
  display: flex;
  gap: 0.6rem;
  margin-left: auto;
}

.cv-pdf-frame {
  width: 100%;
  flex: 1;
  border: none;
  background: #1e2230;
}

/* Quick Meeting Schedule Modal Specific */
.schedule-modal-container {
  max-width: 720px;
  max-height: 90vh;
}

.schedule-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.schedule-feat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.schedule-topics {
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.2rem;
}

.topics-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.topics-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-pill {
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.schedule-direct-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.schedule-main-btn {
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  font-size: 0.95rem;
}

.schedule-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  margin: 1rem 0;
}

.schedule-divider::before,
.schedule-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-divider span {
  padding: 0 1rem;
}

.schedule-iframe-wrapper {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: #0d1220;
  height: 380px;
}

.cal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===================================================================
   EASTER EGG: THANH HÓA 36 / RAU MÁ SIGNATURE MODE
   =================================================================== */
.thanhhoa-modal-container {
  max-width: 580px;
  text-align: center;
  padding: 2.2rem 2.2rem;
  position: relative;
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 60px rgba(0, 255, 136, 0.25);
}

.thanhhoa-badge-glow {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.25) 0%, rgba(10, 15, 28, 0.8) 70%);
  border: 2px solid #00ff88;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 35px rgba(0, 255, 136, 0.45);
}

.thanhhoa-leaf-icon {
  font-size: 2.2rem;
  position: absolute;
  top: -8px;
  right: -6px;
  animation: pulseDot 2s infinite;
}

.thanhhoa-number-badge {
  font-family: var(--font-tech);
  font-size: 2rem;
  font-weight: 900;
  color: #00ff88;
  letter-spacing: -1px;
}

.thanhhoa-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #00ff88;
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
}

.thanhhoa-title {
  font-family: var(--font-tech);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.thanhhoa-quote {
  font-family: var(--font-tech);
  font-size: 1.08rem;
  color: #a7f3d0;
  border-left: 3px solid #00ff88;
  text-align: left;
  background: rgba(0, 255, 136, 0.08);
  padding: 1rem 1.2rem;
  border-radius: 8px;
  font-style: italic;
  margin: 1.2rem 0;
  line-height: 1.5;
}

.thanhhoa-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  text-align: left;
}

.thanhhoa-chips {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.thanhhoa-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  text-align: left;
}

.thanhhoa-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.thanhhoa-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Falling Leaf Shower Animation */
.leaf-shower-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}

.falling-leaf-item {
  position: absolute;
  top: -60px;
  animation: fallLeaf linear forwards;
  will-change: transform, opacity;
  user-select: none;
}

@keyframes fallLeaf {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 1;
  }
  80% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(110vh) rotate(540deg) scale(1.1);
    opacity: 0;
  }
}

/* ===================================================================
   SYSTEM ARCHITECTURE BREAKDOWN MODAL SYSTEM
   =================================================================== */
.architecture-modal-container {
  max-width: 1060px;
  max-height: 92vh;
}

.architecture-modal-body {
  padding: 1.6rem 2rem 2.4rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.3) rgba(10, 15, 28, 0.8);
}

.architecture-modal-body::-webkit-scrollbar {
  width: 6px;
}

.architecture-modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 4px;
}

/* Modal Header Project Selector Tabs */
.arch-project-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

.arch-selector-btn {
  padding: 0.4rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.arch-selector-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.arch-selector-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--border-neon);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Arch Overview Card */
.arch-overview-card {
  background: linear-gradient(135deg, rgba(16, 24, 46, 0.85) 0%, rgba(26, 18, 48, 0.85) 100%);
  border: 1px solid var(--border-neon);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.6rem;
  position: relative;
  overflow: hidden;
}

.arch-overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-cyan);
}

.arch-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.arch-project-name {
  font-family: var(--font-tech);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.arch-project-type-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--border-neon);
  color: var(--accent-cyan);
}

.arch-project-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.arch-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.arch-stack-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #cbd5e1;
}

.arch-stack-tag.highlight {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.35);
  color: var(--accent-cyan);
}

/* Metrics Highlights Ribbon */
.arch-metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.arch-metric-card {
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.arch-metric-card:hover {
  border-color: var(--border-neon);
  transform: translateY(-2px);
}

.arch-metric-icon {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  margin-bottom: 0.2rem;
}

.arch-metric-value {
  font-family: var(--font-tech);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.arch-metric-value .accent-highlight {
  color: #00ff88;
}

.arch-metric-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.arch-metric-subtext {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* Section Subheaders inside modal */
.arch-section-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-tech);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.arch-section-header i {
  color: var(--accent-cyan);
  font-size: 1rem;
}

.arch-section-header .arch-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.4), transparent);
}

/* Visual Architecture Flow Diagram */
.arch-diagram-wrapper {
  background: rgba(10, 15, 28, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.25) transparent;
}

.arch-flow-diagram {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.4rem;
  min-width: 760px;
}

.arch-flow-node {
  flex: 1;
  background: rgba(18, 25, 44, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all var(--transition-fast);
}

.arch-flow-node:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  transform: translateY(-3px);
}

.arch-flow-node-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.arch-flow-node-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
}

.arch-flow-node-title {
  font-family: var(--font-tech);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.arch-flow-node-detail {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
}

.arch-flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  min-width: 38px;
  position: relative;
}

.arch-flow-connector-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.3), var(--accent-cyan), rgba(0, 240, 255, 0.3));
  position: relative;
}

.arch-flow-connector-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #38bdf8;
  margin-top: 0.35rem;
  white-space: nowrap;
}

/* Deep Dive Engineering Breakdown Grid */
.arch-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.arch-breakdown-card {
  background: rgba(13, 20, 36, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.arch-breakdown-card.card-problem {
  border-left: 3px solid #ff4757;
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.06) 0%, rgba(13, 20, 36, 0.8) 100%);
}

.arch-breakdown-card.card-solution {
  border-left: 3px solid #00ff88;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.06) 0%, rgba(13, 20, 36, 0.8) 100%);
}

.arch-breakdown-card.card-infra {
  border-left: 3px solid var(--accent-cyan);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.06) 0%, rgba(13, 20, 36, 0.8) 100%);
}

.arch-breakdown-card.card-impact {
  border-left: 3px solid #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(13, 20, 36, 0.8) 100%);
}

.arch-breakdown-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-tech);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
}

.arch-breakdown-card.card-problem .arch-breakdown-header i { color: #ff6b81; }
.arch-breakdown-card.card-solution .arch-breakdown-header i { color: #00ff88; }
.arch-breakdown-card.card-infra .arch-breakdown-header i { color: var(--accent-cyan); }
.arch-breakdown-card.card-impact .arch-breakdown-header i { color: #fbbf24; }

.arch-breakdown-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.arch-breakdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.arch-breakdown-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.arch-breakdown-list li i {
  font-size: 0.78rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.card-problem .arch-breakdown-list li i { color: #ff6b81; }
.card-solution .arch-breakdown-list li i { color: #00ff88; }
.card-infra .arch-breakdown-list li i { color: var(--accent-cyan); }
.card-impact .arch-breakdown-list li i { color: #fbbf24; }

.arch-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
}

/* ===================================================================
   LANGUAGE SWITCHER (VI / EN)
   =================================================================== */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 0.18rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  gap: 0.25rem;
  transition: all var(--transition-fast);
}

.lang-switcher:hover {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  color: #030712;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  font-weight: 700;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  user-select: none;
}

/* ===================================================================
   TESTIMONIALS & SOCIAL PROOF RECOMMENDATIONS
   =================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  background: rgba(13, 18, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.6rem;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 242, 254, 0.12);
}

.testimonial-card.highlighted {
  border-color: rgba(0, 242, 254, 0.3);
  background: linear-gradient(180deg, rgba(16, 26, 48, 0.85) 0%, rgba(13, 18, 30, 0.8) 100%);
}

.card-glow-badge {
  position: absolute;
  top: -11px;
  right: 18px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #030712;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.author-avatar-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(79, 70, 229, 0.25));
  border: 1.5px solid rgba(0, 242, 254, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.author-verified {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #0b0f19;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.author-meta {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.author-company {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}
.author-company i {
  font-size: 0.7rem;
  margin-right: 0.25rem;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
  color: #ffbd2e;
  font-size: 0.75rem;
}

.rating-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.testimonial-quote {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.2rem;
  flex: 1;
}

.testimonial-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.t-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.15);
  color: var(--text-dim);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* Endorsements Banner */
.endorsements-banner {
  margin-top: 2.5rem;
  background: rgba(13, 18, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  backdrop-filter: blur(16px);
}

.endorsement-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.e-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
}

.e-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}

.endorsement-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
}

/* ===================================================================
   RESPONSIVE MEDIA QUERIES (ULTRA OPTIMIZED FOR ALL SMARTPHONES)
   =================================================================== */

/* --- COMPACT LAPTOPS & SPLIT SCREEN DESKTOPS (993px - 1180px) --- */
@media (min-width: 993px) and (max-width: 1180px) {
  .nav-list {
    gap: 0.95rem;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.35rem 0;
  }

  /* Ẩn bớt icon FontAwesome trong menu để thanh header luôn thoáng đãng */
  .nav-link i {
    display: none;
  }

  .header-actions {
    gap: 0.65rem;
  }

  .brand-logo {
    font-size: 1.15rem;
  }
}

/* --- TABLETS & MEDIUM SCREENS (<= 992px) --- */
@media (max-width: 992px) {
  :root {
    --nav-height: 68px;
  }

  .site-header {
    height: var(--nav-height);
  }

  /* Header & Navigation Hamburger kích hoạt từ 992px */
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-neon);
    padding: 1.8rem 1.5rem;
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 0.6rem 0;
    width: 100%;
  }

  .nav-link i {
    display: inline-block;
  }

  .mobile-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
  }

  .section {
    padding: 5rem 0;
  }

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

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

  .cv-highlight-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.2rem 1.8rem;
  }

  .cv-icon-badge {
    margin: 0 auto;
  }

  .cv-meta-details {
    justify-content: center;
  }

  .contact-details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

/* --- PHABLETS & MOBILE LANDSCAPE (<= 768px) --- */
@media (max-width: 768px) {
  /* GPU & Mobile Performance Optimization */
  .glow-orb.orb-3 {
    display: none !important;
  }

  .glow-orb {
    filter: blur(50px) !important;
    -webkit-filter: blur(50px) !important;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 4.2rem 0;
  }

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

  /* Hero Section Mobile */
  .hero-section {
    padding-top: calc(var(--nav-height) + 1.8rem);
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
  }

  .hero-desc {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }

  .hero-buttons .btn {
    width: 100%;
    height: 48px;
    font-size: 1rem;
  }

  .social-links-hero {
    gap: 0.65rem;
    margin-top: 0.5rem;
  }

  .social-icon {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }

  /* Hero Terminal Card Mobile */
  .hero-terminal-card {
    border-radius: 14px;
  }

  .terminal-window-bar {
    padding: 0.45rem 0.75rem;
  }

  .terminal-window-title {
    font-size: 0.68rem;
  }

  .terminal-tabs-bar {
    padding: 0.3rem 0.45rem;
  }

  .terminal-tabs {
    gap: 0.2rem;
  }

  .terminal-tab {
    padding: 0.28rem 0.25rem;
    font-size: 0.68rem;
    gap: 0.25rem;
  }

  .terminal-body {
    padding: 1rem 0.9rem;
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .terminal-footer {
    padding: 0.85rem 0.8rem;
  }

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

  .stat-label {
    font-size: 0.65rem;
  }

  /* About Info Mobile */
  .about-heading {
    font-size: 1.25rem;
    line-height: 1.45;
  }

  .info-chips-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .info-chip {
    padding: 0.85rem 1rem;
  }

  /* Timeline Laser Progress Mobile */
  .timeline::before {
    left: 14px;
  }

  .timeline-laser-progress {
    left: 14px;
  }

  .timeline-item {
    padding-left: 38px;
    margin-bottom: 2.5rem;
  }

  .timeline-dot-wrapper {
    left: 5px;
  }

  .timeline-endpoint {
    padding-left: 38px;
    margin-top: 2rem;
  }

  .timeline-endpoint .endpoint-dot-wrapper {
    left: 5px;
  }

  .endpoint-badge {
    padding: 0.65rem 0.95rem;
    gap: 0.75rem;
  }

  .endpoint-label {
    font-size: 0.75rem;
  }

  .endpoint-desc {
    font-size: 0.72rem;
  }

  .timeline-card {
    padding: 1.4rem 1.15rem;
    border-radius: 14px;
  }

  .timeline-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .timeline-role {
    font-size: 1.15rem;
  }

  /* Skills & Projects Mobile */
  .skill-card {
    padding: 1.6rem 1.3rem;
  }

  .project-banner {
    height: 180px;
  }

  .project-content {
    padding: 1.3rem 1.15rem;
  }

  .project-links {
    flex-direction: row;
  }

  .project-links .link-btn {
    flex: 1;
    justify-content: center;
    padding: 0.65rem 0.6rem;
    font-size: 0.8rem;
  }

  /* CV & Contact Mobile */
  .cv-highlight-card {
    padding: 1.8rem 1.25rem;
  }

  .cv-info-content h3 {
    font-size: 1.3rem;
  }

  .cv-actions {
    width: 100%;
  }

  .cv-actions .btn {
    width: 100%;
    height: 48px;
  }

  .btn-cyber-cal {
    width: 100%;
    height: 48px;
  }

  /* Conversion UX & Modals Mobile */
  .cyber-modal {
    padding: 0.5rem;
  }

  .cyber-modal-container {
    border-radius: 14px;
  }

  .cyber-modal-header {
    padding: 1rem 1.15rem;
  }

  .modal-title {
    font-size: 0.98rem;
  }

  .modal-subtitle {
    font-size: 0.72rem;
  }

  .modal-header-actions .modal-action-btn span {
    display: none;
  }

  .modal-header-actions .modal-action-btn {
    padding: 0.45rem 0.65rem;
  }

  .cv-modal-container {
    height: 94vh;
  }

  .cv-mobile-notice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .cv-mobile-actions {
    width: 100%;
    margin-left: 0;
  }

  .cv-mobile-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .schedule-features {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .schedule-modal-container {
    max-height: 94vh;
  }

  .schedule-iframe-wrapper {
    height: 320px;
  }

  /* Project Filter & Architecture Modal Mobile 768px */
  .project-filter-tabs {
    width: 100%;
    justify-content: flex-start;
    padding: 0.35rem 0.5rem;
  }

  .filter-tab-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .architecture-modal-container {
    max-height: 94vh;
  }

  .architecture-modal-body {
    padding: 1.1rem 1rem 1.8rem;
  }

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

  .arch-breakdown-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .arch-project-selector {
    overflow-x: auto;
    max-width: 100%;
  }

  .contact-direct-box,
  .contact-form-box {
    padding: 1.6rem 1.25rem;
    border-radius: 14px;
  }

  /* Ngăn chặn iOS Safari tự zoom in ô nhập liệu */
  .form-group input,
  .form-group textarea {
    font-size: 16px !important;
    padding: 0.8rem 0.9rem;
  }

  /* Toast Notification Mobile */
  .toast-notification {
    left: 1rem;
    right: 1rem;
    bottom: 1.2rem;
    padding: 0.75rem 1.1rem;
    font-size: 0.85rem;
    justify-content: center;
    text-align: center;
    transform: translateY(120px);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }

  .endorsements-banner {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.2rem 1.4rem;
  }

  .endorsement-divider {
    width: 60%;
    height: 1px;
  }
}

/* --- SMALL SMARTPHONES (<= 480px, iPhone 11-16, Samsung...) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .brand-logo {
    font-size: 1.1rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .lang-switcher {
    padding: 0.15rem 0.35rem;
  }

  .lang-btn {
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
  }

  /* Header action trên màn hình siêu nhỏ */
  .header-actions .btn-sm span {
    display: none;
  }

  .header-actions .btn-sm {
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
  }

  .header-actions .btn-sm i {
    font-size: 0.95rem;
    margin: 0;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-terminal-card {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
  }

  .terminal-dots {
    display: none;
  }

  .terminal-window-title {
    font-size: 0.65rem;
  }

  .terminal-tabs-bar {
    padding: 0.25rem 0.35rem;
  }

  .terminal-tab {
    font-size: 0.66rem;
    padding: 0.25rem 0.25rem;
    gap: 0.2rem;
  }

  .cv-meta-details {
    flex-direction: column;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.8rem;
  }

  .contact-method-item {
    padding: 0.75rem 0.85rem;
  }

  .method-value {
    font-size: 0.88rem;
    word-break: break-all;
  }

  /* Arch Modal Mobile 480px */
  .arch-metrics-ribbon {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .arch-overview-card {
    padding: 1.1rem 1rem;
  }

  .arch-project-name {
    font-size: 1.15rem;
  }

  .banner-arch-pill {
    padding: 0.25rem 0.55rem;
    font-size: 0.7rem;
  }

  /* Mobile Terminal Auto Height */
  .terminal-body {
    height: auto !important;
    min-height: 280px !important;
    max-height: 350px !important;
  }

  /* Floating Quick Action Mobile */
  .floating-quick-action {
    bottom: 1.2rem;
    right: 1.2rem;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    gap: 0.5rem;
  }
}

/* --- EXTRA COMPACT SMARTPHONES (<= 360px) --- */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.85rem;
  }

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

  .terminal-window-title {
    display: none;
  }

  .terminal-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 0.3rem;
  }

  .terminal-tab {
    flex: 0 0 auto;
    padding: 0.25rem 0.45rem;
    font-size: 0.68rem;
  }

  .timeline-card {
    padding: 1.1rem 0.9rem;
  }

  .pill {
    font-size: 0.72rem;
    padding: 0.3rem 0.55rem;
  }
}

/* --- ACCESSIBILITY: PREFERS REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .glow-orb {
    animation: none !important;
  }

  .floating-pulse-dot {
    animation: none !important;
  }
}
