/* ===================================================
   Nguyễn Quốc Hiếu - CV & Portfolio cá nhân
   Chuyên ngành: Công nghệ Thông tin - Hà Nội - 21 tuổi
   Style: Hiện đại, Tinh tế, Glassmorphism & Tối ưu Print
   =================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;

  /* Theme Light Palette */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-solid: #ffffff;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --border-hover: rgba(14, 165, 233, 0.4);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-soft: #94a3b8;

  --accent-primary: #0284c7;       /* Tech Ocean Blue */
  --accent-teal: #0d9488;          /* Modern Teal */
  --accent-teal-soft: rgba(13, 148, 136, 0.12);
  --accent-blue: #2563eb;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  --gradient-brand: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.85) 100%);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.09);
  --shadow-glow: 0 0 35px rgba(2, 132, 199, 0.18);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-primary: #0b1120;
  --bg-secondary: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.75);
  --bg-card-solid: #1e293b;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-hover: rgba(56, 189, 248, 0.45);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #64748b;

  --accent-primary: #38bdf8;
  --accent-teal: #2dd4bf;
  --accent-teal-soft: rgba(45, 212, 191, 0.15);

  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 100%);
  --gradient-card: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.8) 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.22);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.3), transparent 70%);
  top: -80px;
  left: -80px;
}

.glow-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.25), transparent 70%);
  top: 35%;
  right: -120px;
  animation-duration: 25s;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.15), transparent 70%);
  bottom: 60px;
  left: 15%;
  animation-duration: 18s;
}

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

/* Utility Layout */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.bg-soft {
  background-color: var(--bg-secondary);
  transition: background-color var(--transition-smooth);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  background: var(--accent-teal-soft);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

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

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

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(248, 250, 252, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

[data-theme="dark"] .header {
  background: rgba(11, 17, 32, 0.85);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  color: var(--accent-primary);
}

.btn-outline-sm {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline-sm:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.nav-btn {
  text-decoration: none;
  color: #fff;
  background: var(--text-main);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-smooth);
}

[data-theme="dark"] .nav-btn {
  background: #38bdf8;
  color: #0b1120;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem 0;
  min-height: calc(100vh - 4.6rem);
  display: flex;
  align-items: center;
}

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

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--accent-teal);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(13, 148, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

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

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

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

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  color: var(--accent-primary);
}

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

.btn-ghost:hover {
  color: var(--text-main);
  background: var(--accent-teal-soft);
}

/* Avatar Visual */
.avatar-card-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-backdrop {
  position: absolute;
  width: 330px;
  height: 330px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(13, 148, 136, 0.25));
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: morphShape 12s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes morphShape {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.avatar-card {
  position: relative;
  z-index: 2;
  width: 340px;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-card-solid);
  transition: transform var(--transition-smooth);
}

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

.avatar-float-badge {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
  animation: gentleBounce 5s ease-in-out infinite;
}

.avatar-float-badge i {
  font-size: 1.25rem;
  color: var(--accent-primary);
}

.avatar-float-badge small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  font-weight: 700;
}

.avatar-float-badge strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: nowrap;
}

.float-top-right {
  top: -15px;
  right: -25px;
  animation-delay: 0s;
}

.float-bottom-left {
  bottom: -15px;
  left: -25px;
  animation-delay: 2.5s;
}

.float-middle-right {
  top: 50%;
  right: -35px;
  transform: translateY(-50%);
  animation-delay: 1.2s;
}

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

/* About / Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.profile-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  text-align: center;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.card-icon {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 1.1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-teal-soft);
  color: var(--accent-primary);
  border-radius: 50%;
  font-size: 1.25rem;
}

.profile-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.card-highlight {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.card-sub {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Bio Box */
.bio-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.bio-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: var(--gradient-brand);
}

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

.bio-icon {
  width: 2.8rem;
  height: 2.8rem;
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.bio-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

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

.bio-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.bio-text strong {
  color: var(--text-main);
}

/* Skills Categories */
.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

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

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

.category-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.frontend-icon {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}

.backend-icon {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}

.tools-icon {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.category-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.category-header span {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.skill-info strong {
  color: var(--accent-primary);
  font-size: 0.82rem;
}

.skill-bar {
  width: 100%;
  height: 7px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width 1.2s ease-in-out;
}

/* Tech Cloud */
.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.tech-badge:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.project-tag-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.p-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.p-badge-primary {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}

.p-badge-teal {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}

.p-badge-amber {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.p-date {
  font-size: 0.8rem;
  color: var(--text-soft);
  font-weight: 600;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.feat-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.feat-item i {
  color: var(--accent-teal);
  margin-top: 0.2rem;
  font-size: 0.8rem;
}

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

.stack-tag {
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.project-footer {
  display: flex;
  gap: 0.75rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-card {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.btn-card:hover {
  background: var(--bg-card-solid);
  border-color: var(--border-hover);
  color: var(--accent-primary);
}

.btn-card-primary {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
}

.btn-card-primary:hover {
  opacity: 0.92;
  color: #fff;
}

/* Timeline & Journey */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 20px;
  bottom: 25px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary), rgba(2, 132, 199, 0.15));
}

.timeline-step {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  position: relative;
}

.step-marker {
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  z-index: 2;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex-grow: 1;
  transition: all var(--transition-smooth);
}

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

.step-time-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--accent-teal-soft);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.step-institution {
  font-size: 0.88rem;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

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

/* Soft Skills / Strengths */
.soft-skills-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.soft-skills-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.soft-skill-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.soft-skill-box i {
  font-size: 1.35rem;
  color: var(--accent-primary);
  margin-bottom: 0.3rem;
}

.soft-skill-box h4 {
  font-size: 1rem;
  font-weight: 700;
}

.soft-skill-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Contact Section */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.contact-item-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.email-icon { background: rgba(2, 132, 199, 0.12); color: #0284c7; }
.phone-icon { background: rgba(13, 148, 136, 0.12); color: #0d9488; }
.location-icon { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.github-icon { background: rgba(100, 116, 139, 0.14); color: var(--text-main); }

.contact-detail {
  flex-grow: 1;
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-soft);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.contact-value {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-all;
}

.copy-action-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.copy-action-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(13, 148, 136, 0.15);
  color: var(--accent-teal);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.contact-form-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background: var(--bg-card-solid);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Footer */
.footer {
  padding: 2.75rem 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-left strong {
  display: block;
  color: var(--text-main);
  font-size: 1rem;
}

.footer-left p {
  font-size: 0.85rem;
  color: var(--text-soft);
}

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

.social-links a {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-links a:hover {
  color: var(--accent-primary);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-main);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-smooth);
}

[data-theme="dark"] .toast-notification {
  background: #38bdf8;
  color: #0b1120;
}

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

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }
  .hero-subtitle {
    margin: 0 auto 1.75rem auto;
  }
  .hero-tags {
    justify-content: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-categories-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .avatar-card {
    width: 280px;
    height: 280px;
  }
  .float-top-right { right: -10px; }
  .float-bottom-left { left: -10px; }
  .float-middle-right { display: none; }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .soft-skills-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 20px;
  }
  .step-marker {
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
}

/* ===================================================
   Print Media Query (Chế độ In / Xuất PDF chuẩn A4)
   =================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 12pt;
  }
  .header, .ambient-glow, .hero-actions, .nav-actions,
  .project-footer, .contact-form-card, .footer,
  .toast-notification, .copy-action-btn, #themeToggleBtn {
    display: none !important;
  }
  .section {
    padding: 1.5rem 0 !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .hero-grid {
    grid-template-columns: 2fr 1fr !important;
    gap: 1.5rem !important;
    text-align: left !important;
  }
  .avatar-card {
    width: 180px !important;
    height: 180px !important;
  }
  .avatar-float-badge, .avatar-backdrop {
    display: none !important;
  }
  .cards-grid, .skills-categories-grid, .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  .project-card, .profile-card, .step-card, .skill-category-card {
    box-shadow: none !important;
    border: 1px solid #d1d5db !important;
    page-break-inside: avoid;
  }
}
