/* ==========================================================================
   Award-Winning Portfolio Stylesheet - Lê Huỳnh Mạnh
   Senior Full-Stack Developer & Technical Lead
   Design Philosophy: Linear / Vercel / Apple Dark Bento Minimalist Luxury
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Dark Theme (Default) - Deep Obsidian & Sleek Charcoal */
  --bg-body: #06080e;
  --bg-surface: #0b0f19;
  --bg-card: rgba(15, 22, 36, 0.7);
  --bg-card-hover: rgba(22, 32, 52, 0.85);
  --bg-glass: rgba(11, 15, 25, 0.75);
  --bg-subtle: rgba(255, 255, 255, 0.03);
  --bg-tag: rgba(255, 255, 255, 0.06);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(99, 102, 241, 0.5);
  --border-glow: rgba(6, 182, 212, 0.3);

  /* Typography */
  --text-title: #ffffff;
  --text-body: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #e2e8f0;

  /* Accent Colors */
  --indigo: #6366f1;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --violet: #8b5cf6;
  --amber: #f59e0b;
  --rose: #f43f5e;

  /* Premium Gradients */
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 20%, #94a3b8 100%);
  --gradient-accent-text: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
  --gradient-border: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(6, 182, 212, 0.1), transparent);

  /* Elevation & Glow */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow-indigo: 0 0 40px -10px rgba(99, 102, 241, 0.35);
  --shadow-glow-cyan: 0 0 35px -10px rgba(6, 182, 212, 0.3);

  /* Typography Fonts with Full Native Vietnamese Support */
  --font-heading: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  /* Spacing & Sizes */
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --nav-height: 72px;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-subtle: rgba(15, 23, 42, 0.03);
  --bg-tag: rgba(15, 23, 42, 0.05);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-card: rgba(15, 23, 42, 0.12);
  --border-hover: rgba(99, 102, 241, 0.4);
  --border-glow: rgba(6, 182, 212, 0.2);

  --text-title: #0f172a;
  --text-body: #475569;
  --text-muted: #94a3b8;
  --text-highlight: #1e293b;

  --gradient-text: linear-gradient(135deg, #0f172a 20%, #475569 100%);
  --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Setup
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease-spring), color 0.3s var(--ease-spring);
  position: relative;
  min-height: 100vh;
}

/* Ambient Subtle Background Grid & Glow */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  pointer-events: none;
}

.orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -200px;
  left: -150px;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: 35%;
  right: -200px;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: 0;
  left: 20%;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .grid-overlay {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Gradient Text Utilities */
.gradient-text {
  background: var(--gradient-accent-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-title {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   3. Floating Dynamic Island Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 14px;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}

.header .container {
  max-width: 1100px;
  padding-inline: 16px;
}

.nav-pill-wrapper {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(11, 15, 25, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-full);
  padding: 5px 8px 5px 14px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.3s var(--ease-spring);
}

[data-theme="light"] .nav-pill-wrapper {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-title);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--cyan);
  background: var(--gradient-brand);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.65);
  transform-origin: 50% 16%;
  display: block;
}

.logo-status-dot {
  position: absolute;
  bottom: 0px;
  right: -1px;
  width: 9px;
  height: 9px;
  background: #10b981;
  border: 1.5px solid var(--bg-surface);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: pulseLive 2s infinite ease-in-out;
}

.brand-text-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.01em;
}

.brand-role-tag {
  display: none;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

[data-theme="light"] .brand-role-tag {
  background: rgba(8, 145, 178, 0.1);
  border-color: rgba(8, 145, 178, 0.25);
  color: #0891b2;
}

.nav-menu-links {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.nav-item {
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-body);
  transition: all 0.2s var(--ease-spring);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.nav-item:hover {
  color: var(--text-title);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .nav-item:hover {
  background: rgba(15, 23, 42, 0.05);
}

.nav-item.active {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.22);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

[data-theme="light"] .nav-item.active {
  color: var(--indigo);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: none;
}

.nav-item.nav-item-bento {
  color: var(--cyan) !important;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  font-weight: 600;
}

.nav-item.nav-item-bento:hover {
  background: rgba(6, 182, 212, 0.16) !important;
  border-color: rgba(6, 182, 212, 0.4);
}

.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
  color: #ffffff;
}

[data-theme="light"] .theme-toggle-btn {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.22);
}

.icon-sun { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s var(--ease-spring);
  cursor: pointer;
}

.nav-actions-group .btn-pill {
  padding: 5px 12px;
  font-size: 0.8rem;
  height: 32px;
  gap: 5px;
}

.btn-pill-primary {
  background: var(--gradient-brand);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.btn-pill-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.55);
}

.btn-pill-secondary {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-highlight);
}

.btn-pill-secondary:hover {
  background: var(--bg-tag);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. Hero Section & Interactive Terminal
   -------------------------------------------------------------------------- */
.hero-wrapper {
  padding-top: 140px;
  padding-bottom: 60px;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--emerald);
  font-size: 0.84rem;
  font-weight: 600;
  width: fit-content;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 14px var(--emerald); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-main-heading {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero-role-title {
  font-size: 1.35rem;
  color: var(--cyan);
  font-weight: 600;
}

.hero-summary-p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 580px;
}

.hero-actions-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 480px;
  width: 100%;
  margin-top: 18px;
}

.hero-actions-row .btn-pill {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-full);
  box-sizing: border-box;
  text-decoration: none;
}

.hero-actions-row .btn-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-social-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 480px;
  width: 100%;
  margin-top: 12px;
}

.social-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
  box-sizing: border-box;
  text-decoration: none;
}

.social-mini-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-mini-btn:hover {
  background: var(--bg-tag);
  border-color: var(--border-hover);
  color: var(--text-title);
  transform: translateY(-2px);
}

.social-mini-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.social-mini-btn.social-zalo {
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--cyan);
}

.social-mini-btn.social-zalo:hover {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
}

/* Right Side: Interactive Developer Terminal */
.terminal-window {
  background: #090d16;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(99, 102, 241, 0.2);
  overflow: hidden;
  font-family: var(--font-code);
  transition: transform 0.3s var(--ease-spring);
}

.terminal-window:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-tab {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-tab span {
  color: var(--text-highlight);
}

.terminal-body {
  padding: 22px;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #cbd5e1;
  overflow-x: auto;
}

.code-keyword { color: #f43f5e; font-weight: 600; }
.code-var { color: #38bdf8; }
.code-prop { color: #a78bfa; }
.code-string { color: #34d399; }
.code-num { color: #fbbf24; }
.code-comment { color: #64748b; font-style: italic; }

/* --------------------------------------------------------------------------
   5. Bento Stats Strip
   -------------------------------------------------------------------------- */
.bento-stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 50px;
}

.bento-stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.25s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.bento-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s;
}

.bento-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.bento-stat-card:hover::before {
  opacity: 1;
}

.stat-metric {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1;
}

.stat-desc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan);
}

.stat-desc-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. Section General Layout
   -------------------------------------------------------------------------- */
.section-block {
  padding: 100px 0;
  position: relative;
}

.section-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-heading {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtext {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 680px;
  line-height: 1.7;
}

.section-header-center {
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------------------------------
   7. Bento Grid Architecture (About & Leadership)
   -------------------------------------------------------------------------- */
.bento-grid-3 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.bento-item {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.bento-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

.bento-badge-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gradient-glow);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 22px;
}

.bento-badge-icon svg {
  width: 22px;
  height: 22px;
}

.bento-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.bento-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* Dedicated CV Profile Components */
.cv-quote-box {
  background: rgba(99, 102, 241, 0.07);
  border-left: 3px solid var(--indigo);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 16px 0;
  font-style: italic;
  color: var(--text-highlight);
  line-height: 1.75;
  font-size: 0.94rem;
}

.cv-personal-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.cv-detail-cell {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cv-cell-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cv-cell-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-title);
  word-break: break-word;
}

.bento-pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.bento-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-tag);
  border: 1px solid var(--border-subtle);
  color: var(--text-highlight);
}

/* --------------------------------------------------------------------------
   8. Skills Category Cards (No Cheesy Percent Bars!)
   -------------------------------------------------------------------------- */
.skills-bento-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-spring);
}

.skill-box:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.skill-box-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.skill-box-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo);
}

.skill-box-icon svg { width: 20px; height: 20px; }

.skill-box-title { font-size: 1.2rem; }
.skill-box-subtitle { font-size: 0.8rem; color: var(--text-muted); }

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.skill-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.skill-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-highlight);
}

.skill-badge-level {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

/* --------------------------------------------------------------------------
   9. Projects Showcase (Browser Mockup Windows)
   -------------------------------------------------------------------------- */
.projects-filter-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-pill-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.filter-pill-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-title);
}

.filter-pill-btn.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.projects-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-window-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-spring);
  position: relative;
}

.project-window-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 30px -10px rgba(99, 102, 241, 0.25);
}

.window-topbar {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.window-badge-role {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan);
  letter-spacing: 0.5px;
}

.project-hero-banner {
  padding: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-icon-cube {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.project-icon-cube svg { width: 24px; height: 24px; }

.project-info-area {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-heading {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: var(--text-title);
}

.project-meta-strip {
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 12px;
}

.project-snippet-text {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-tech-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-mini-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.project-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.btn-open-modal {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--indigo);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}

.btn-open-modal:hover {
  color: var(--cyan);
}

.project-out-links {
  display: flex;
  gap: 8px;
}

.icon-link-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  transition: all 0.2s;
}

.icon-link-btn:hover {
  color: var(--text-title);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.icon-link-btn svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   10. Career Timeline
   -------------------------------------------------------------------------- */
.timeline-track-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline-track-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--indigo) 0%, var(--cyan) 60%, rgba(99, 102, 241, 0.1) 100%);
}

.timeline-node {
  position: relative;
  padding-left: 64px;
  margin-bottom: 44px;
}

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

.timeline-glow-point {
  position: absolute;
  left: 15px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 3px solid var(--indigo);
  box-shadow: 0 0 12px var(--indigo);
  transition: all 0.3s;
}

.timeline-node:hover .timeline-glow-point {
  transform: scale(1.3);
  border-color: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.timeline-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s var(--ease-spring);
}

.timeline-panel:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.timeline-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.timeline-job-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-title);
}

.timeline-company-name {
  font-size: 0.95rem;
  color: var(--cyan);
  font-weight: 600;
}

.timeline-year-tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.timeline-point-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.65;
}

.timeline-point-row span.point-symbol {
  color: var(--cyan);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   11. Contact Section
   -------------------------------------------------------------------------- */
.contact-bento-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: start;
}

.contact-card-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 38px;
}

.contact-row-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
  transition: all 0.2s;
}

.contact-row-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-tag);
}

.contact-row-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.contact-row-icon svg { width: 20px; height: 20px; }

.contact-row-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.contact-row-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-row-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-title);
}

.copy-mini-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-highlight);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-mini-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Contact Form Inputs */
.form-input-field,
.form-textarea-field {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-title);
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.2s;
}

.form-input-field:focus,
.form-textarea-field:focus {
  outline: none;
  border-color: var(--indigo);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-textarea-field {
  min-height: 140px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.footer-wrap {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

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

/* --------------------------------------------------------------------------
   13. Modal Dialog (Project Details)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-spring);
}

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

.modal-container {
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease-spring);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
}

/* --------------------------------------------------------------------------
   Dynamic Island Toast / HUD Notification System
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2500;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: calc(100% - 32px);
}

.toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.55), 0 0 16px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  animation: hudSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(226, 232, 240, 0.95);
  color: #0f172a;
  box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.12), 0 0 14px rgba(99, 102, 241, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.toast.toast-hiding {
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
}

.toast-icon-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon-badge svg {
  width: 13px;
  height: 13px;
}

.toast-icon-dark {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.toast-icon-light {
  background: linear-gradient(135deg, #f59e0b, #eab308);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.toast-icon-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.toast-icon-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.toast-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.toast-subtag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Back To Top */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-title);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  cursor: pointer;
  z-index: 90;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   14. Mobile Responsive & UI/UX Design System
   -------------------------------------------------------------------------- */

/* Universal Mobile Safety & Overflow Guard */
html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  position: relative;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Responsive Pill Text */
.availability-pill .pill-short {
  display: none;
}
.availability-pill .pill-full {
  display: inline;
}

/* Floating Mobile Bottom Navigation Dock */
.mobile-bottom-dock {
  display: none;
}

@media (max-width: 768px) {
  /* Guard against horizontal skew/wobble */
  body {
    padding-bottom: 84px !important;
    overflow-x: hidden !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 14px !important;
    box-sizing: border-box !important;
  }

  /* Responsive Pill */
  .availability-pill {
    padding: 5px 12px !important;
    font-size: 0.78rem !important;
  }
  .availability-pill .pill-full {
    display: none !important;
  }
  .availability-pill .pill-short {
    display: inline !important;
  }

  /* Dynamic HUD Toast on Mobile */
  .toast-container {
    top: 62px !important;
    bottom: auto !important;
    max-width: calc(100% - 24px) !important;
  }

  /* Mobile Header - Ultra-sleek Frosted Glass App Navigation */
  .header {
    top: 0 !important;
    left: 0 !important;
    padding-inline: 0 !important;
    width: 100% !important;
    pointer-events: auto !important;
  }

  .header .container {
    padding-inline: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .nav-pill-wrapper {
    width: 100% !important;
    border-radius: 0 0 16px 16px !important;
    padding: 10px 16px !important;
    background: rgba(10, 15, 29, 0.82) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.1) !important;
    gap: 10px !important;
  }

  [data-theme="light"] .nav-pill-wrapper {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 0 16px rgba(99, 102, 241, 0.05) !important;
  }

  .logo-brand {
    gap: 8px !important;
  }

  .logo-icon {
    width: 32px !important;
    height: 32px !important;
  }

  .brand-name {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
  }

  .brand-role-tag {
    display: inline-block !important;
    font-size: 0.62rem !important;
    padding: 1px 6px !important;
  }

  .nav-menu-links {
    display: none !important;
  }

  .btn-header-cv {
    display: none !important;
  }

  .nav-actions-group {
    gap: 8px !important;
  }

  .theme-toggle-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .btn-header-download {
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    height: 32px !important;
    border-radius: var(--radius-full) !important;
    background: var(--gradient-brand) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.4) !important;
    gap: 5px !important;
  }

  .btn-header-download svg {
    width: 13px !important;
    height: 13px !important;
  }

  /* Hero Section */
  .hero-wrapper {
    padding-top: 76px !important;
    padding-bottom: 28px !important;
  }

  .hero-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .hero-left, .hero-right {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .hero-main-heading {
    font-size: clamp(1.85rem, 6.8vw, 2.35rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
    margin-top: 10px !important;
    margin-bottom: 12px !important;
    word-break: break-word !important;
  }

  .hero-summary-p {
    font-size: 0.92rem !important;
    line-height: 1.62 !important;
    margin-bottom: 16px !important;
  }

  /* Hero CTA Buttons */
  .hero-actions-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 12px !important;
  }

  .hero-actions-row .btn-pill {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 8px !important;
    font-size: 0.82rem !important;
    text-align: center !important;
    white-space: nowrap !important;
    border-radius: var(--radius-full) !important;
  }

  .hero-actions-row .btn-pill svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Social Quick Badges */
  .hero-social-strip {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 10px !important;
  }

  .social-mini-btn {
    padding: 0 8px !important;
    height: 38px !important;
    font-size: 0.74rem !important;
    justify-content: center !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }

  /* Mock Developer Terminal */
  .terminal-window {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6) !important;
  }

  .terminal-header {
    padding: 10px 14px !important;
  }

  .terminal-body {
    padding: 14px 12px !important;
    font-size: 0.74rem !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: pre !important;
    word-break: normal !important;
  }

  /* Bento Stats 2x2 Grid */
  .bento-stats-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 24px !important;
    width: 100% !important;
  }

  .bento-stat-card {
    padding: 16px 12px !important;
    border-radius: 16px !important;
    min-width: 0 !important;
  }

  .bento-stat-card .stat-metric {
    font-size: 1.75rem !important;
    margin-bottom: 2px !important;
  }

  .bento-stat-card .stat-desc-title {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
  }

  .bento-stat-card .stat-desc-sub {
    font-size: 0.7rem !important;
    line-height: 1.35 !important;
    margin-top: 2px !important;
  }

  /* Section Spacing */
  .section-block {
    padding: 38px 0 !important;
  }

  .section-heading {
    font-size: clamp(1.4rem, 5vw, 1.95rem) !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 8px !important;
    word-break: break-word !important;
  }

  .section-subtext {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
  }

  .section-tagline {
    font-size: 0.72rem !important;
  }

  /* Bento About Grid */
  .bento-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .bento-card-standard {
    padding: 18px 14px !important;
    border-radius: 18px !important;
    min-width: 0 !important;
  }

  .info-pill-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .info-pill-cell {
    padding: 10px !important;
  }

  /* Skills Bento */
  .skills-bento-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .skill-box {
    padding: 18px 14px !important;
    border-radius: 18px !important;
    min-width: 0 !important;
  }

  .skill-box-header {
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
    gap: 10px !important;
  }

  .skill-box-title {
    font-size: 1.05rem !important;
  }

  .skill-items-list {
    gap: 8px !important;
    margin-bottom: 14px !important;
  }

  .skill-item-row {
    padding: 8px 10px !important;
    gap: 8px !important;
  }

  .skill-item-name {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
  }

  .skill-badge-level {
    font-size: 0.7rem !important;
    padding: 2px 7px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Timeline */
  .timeline-track-wrap {
    width: 100% !important;
    min-width: 0 !important;
  }

  .timeline-track-wrap::before {
    left: 8px !important;
  }

  .timeline-node {
    padding-left: 26px !important;
    margin-bottom: 22px !important;
  }

  .timeline-glow-point {
    left: 0px !important;
    top: 5px !important;
    width: 16px !important;
    height: 16px !important;
  }

  .timeline-panel {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    min-width: 0 !important;
  }

  .timeline-top-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin-bottom: 8px !important;
  }

  .timeline-job-title {
    font-size: 1.05rem !important;
  }

  .timeline-year-tag {
    font-size: 0.72rem !important;
    padding: 2px 8px !important;
  }

  .timeline-point-row {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
    gap: 6px !important;
  }

  /* Projects */
  .project-filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 6px !important;
    margin-bottom: 18px !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .project-filter-bar::-webkit-scrollbar {
    display: none !important;
  }

  .filter-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
  }

  .projects-masonry {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .project-card-box {
    border-radius: 18px !important;
    min-width: 0 !important;
  }

  .project-card-content {
    padding: 16px 14px !important;
  }

  .project-title-name {
    font-size: 1.15rem !important;
  }

  .project-desc-p {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
  }

  .project-card-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .project-card-actions .btn-pill {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Contact Section */
  .contact-bento-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .contact-card-box {
    padding: 18px 14px !important;
    border-radius: 18px !important;
    min-width: 0 !important;
  }

  .contact-row-item {
    padding: 10px 12px !important;
    gap: 10px !important;
  }

  .contact-row-icon {
    width: 34px !important;
    height: 34px !important;
  }

  .contact-row-value {
    font-size: 0.84rem !important;
    word-break: break-all !important;
  }

  .form-input-field,
  .form-textarea-field {
    font-size: 16px !important; /* Prevents auto zoom in iOS Safari */
    padding: 11px 12px !important;
  }

  /* Footer */
  .footer-wrap {
    padding: 36px 0 20px !important;
    margin-top: 36px !important;
  }

  .footer-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
  }

  /* Mobile Bottom Dock */
  /* --------------------------------------------------------------------------
     Native iOS Bottom Tab Bar (Mobile)
     -------------------------------------------------------------------------- */
  .mobile-bottom-dock {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 58px !important;
    padding: 0 4px !important;
    padding-bottom: env(safe-area-inset-bottom, 2px) !important;
    background: rgba(10, 15, 29, 0.88) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    justify-content: space-around !important;
    align-items: center !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35) !important;
    z-index: 1000 !important;
  }

  [data-theme="light"] .mobile-bottom-dock {
    background: rgba(255, 255, 255, 0.92) !important;
    border-top: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.05) !important;
  }

  .dock-item {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    height: 100% !important;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-size: 0.66rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    padding: 4px 2px !important;
    border-radius: 8px !important;
    background: transparent !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    flex: 1 !important;
    min-width: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .dock-item span {
    white-space: nowrap !important;
    line-height: 1 !important;
    transition: color 0.2s ease !important;
  }

  .dock-item svg {
    width: 19px !important;
    height: 19px !important;
    stroke-width: 2 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* Active state: Modern indicator, NO chunky rectangle */
  .dock-item.active {
    color: var(--cyan) !important;
    background: transparent !important;
  }

  .dock-item.active svg {
    transform: translateY(-2px) scale(1.1) !important;
    color: var(--cyan) !important;
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.5)) !important;
  }

  .dock-item.active span {
    color: var(--text-title) !important;
    font-weight: 700 !important;
  }

  /* Sleek glowing active dot underneath */
  .dock-item.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 4px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 4px !important;
    height: 4px !important;
    border-radius: 50% !important;
    background: var(--cyan) !important;
    box-shadow: 0 0 6px var(--cyan) !important;
  }

  [data-theme="light"] .dock-item.active {
    color: var(--indigo) !important;
  }

  [data-theme="light"] .dock-item.active svg {
    color: var(--indigo) !important;
    filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.35)) !important;
  }

  [data-theme="light"] .dock-item.active::after {
    background: var(--indigo) !important;
    box-shadow: 0 0 6px var(--indigo) !important;
  }

  .dock-item-cv {
    color: var(--indigo) !important;
  }

  .dock-item-cv.active {
    color: var(--indigo) !important;
  }

  /* Hide awkward floating Back-To-Top button on mobile because Tab 1 (Trang Chủ) already does it */
  .back-to-top-btn {
    display: none !important;
  }

  /* Mobile Project Modal (Bottom Sheet) */
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
  }

  .modal-container {
    max-height: 86vh !important;
    border-radius: 24px 24px 0 0 !important;
    border-bottom: none !important;
    transform: translateY(100%) !important;
  }

  .modal-overlay.active .modal-container {
    transform: translateY(0) !important;
  }

  .modal-header {
    padding: 16px 18px !important;
  }

  .modal-body {
    padding: 18px 16px !important;
    gap: 16px !important;
  }

  .modal-footer {
    padding: 12px 16px !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .modal-footer .btn-pill {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .hero-actions-row {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .nav-item {
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  .btn-header-cv {
    display: none;
  }

  .hero-grid-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .bento-grid-3 {
    grid-template-columns: 1fr;
  }

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

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

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

