/* ==========================================================================
   CV PROFILE STYLESHEET - MÙA SƯƠNG NGHI
   Design System: Modern Glassmorphism, Deep Dark & Crisp Light Modes,
   Micro-animations, High-fidelity Print/PDF optimization.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & THEME TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Fonts */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Accent Colors (Universal) */
  --accent-primary: #6366f1;
  /* Indigo */
  --accent-primary-hover: #4f46e5;
  --accent-secondary: #8b5cf6;
  /* Purple */
  --accent-cyan: #06b6d4;
  /* Cyan */
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --accent-gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.3));

  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-gold: #f59e0b;
  --color-orange: #f97316;
  --color-pink: #ec4899;
  --color-blue: #3b82f6;

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------- DARK THEME (DEFAULT) ----------------- */
[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-card: rgba(18, 26, 44, 0.72);
  --bg-card-hover: rgba(26, 38, 64, 0.85);
  --bg-nav: rgba(9, 13, 22, 0.82);
  --bg-input: rgba(13, 19, 33, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.45);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-hover: 0 20px 40px -15px rgba(99, 102, 241, 0.25), 0 0 1px 1px rgba(99, 102, 241, 0.3);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.35);

  --badge-bg: rgba(255, 255, 255, 0.06);
  --badge-text: #cbd5e1;

  --progress-track: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
  --glow-opacity: 0.45;
}

/* ----------------- LIGHT THEME ----------------- */
[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-nav: rgba(255, 255, 255, 0.85);
  --bg-input: #ffffff;

  --border-subtle: rgba(203, 213, 225, 0.8);
  --border-hover: rgba(99, 102, 241, 0.55);
  --border-strong: rgba(148, 163, 184, 0.6);

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

  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 35px -10px rgba(99, 102, 241, 0.18), 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.2);

  --badge-bg: rgba(241, 245, 249, 0.9);
  --badge-text: #334155;

  --progress-track: rgba(226, 232, 240, 1);
  --glass-blur: blur(16px);
  --glow-opacity: 0.2;
}

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

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

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Helper Text Classes */
.text-accent {
  color: var(--accent-primary);
}

.text-success {
  color: var(--color-success);
}

.text-gold {
  color: var(--color-gold);
}

.text-orange {
  color: var(--color-orange);
}

.text-pink {
  color: var(--color-pink);
}

.text-blue {
  color: var(--color-blue);
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1.25rem;
}

.required {
  color: var(--color-danger);
}

/* --------------------------------------------------------------------------
   3. AMBIENT GLOW EFFECTS
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  opacity: var(--glow-opacity);
  transition: opacity var(--transition-normal);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: 30%;
  right: -150px;
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  bottom: 5%;
  left: 20%;
  animation-duration: 26s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, 60px) scale(1.08);
  }

  100% {
    transform: translate(-30px, 30px) scale(0.95);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

/* --------------------------------------------------------------------------
   4. TOP FLOATING NAVIGATION BAR
   -------------------------------------------------------------------------- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}

.brand-badge {
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

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

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
}

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

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

.action-btn:hover {
  background: var(--border-hover);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .icon-light {
  display: inline-block;
}

[data-theme="dark"] .icon-dark {
  display: none;
}

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

[data-theme="light"] .icon-dark {
  display: inline-block;
}

.mobile-toggle {
  display: none;
  font-size: 1.2rem;
  color: var(--text-main);
  padding: 0.4rem;
}

/* --------------------------------------------------------------------------
   5. LAYOUT CONTAINER & GLASS PANELS
   -------------------------------------------------------------------------- */
.cv-wrapper {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
}

.glass-panel,
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.section-card {
  padding: 1.75rem;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  margin-bottom: 2.5rem;
}

.hero-card {
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

.hero-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* Avatar Styling */
.hero-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.avatar-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-gradient);
  animation: rotateGradient 8s linear infinite;
  opacity: 0.9;
}

@keyframes rotateGradient {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  background-color: var(--bg-input);
}

.status-badge {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid var(--color-success);
  backdrop-filter: blur(8px);
  color: var(--color-success);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.status-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.avatar-socials {
  display: flex;
  gap: 0.65rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

/* Info Details */
.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.hero-name {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, var(--text-main) 60%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.hero-bio {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

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

/* Contact Pills Grid */
.contact-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-md);
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
  cursor: default;
}

.contact-pill[role="button"] {
  cursor: pointer;
}

.contact-pill[role="button"]:hover {
  border-color: var(--border-hover);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}

.pill-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.copy-icon {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.contact-pill:hover .copy-icon {
  color: var(--accent-primary);
}

/* Call to Actions */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--badge-bg);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--border-hover);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.btn-glass:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* Hero Stats Row */
.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.stat-divider {
  width: 1px;
  height: 38px;
  background: var(--border-subtle);
}

/* --------------------------------------------------------------------------
   7. CV GRID LAYOUT (2 COLUMNS)
   -------------------------------------------------------------------------- */
.cv-grid-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 2rem;
  align-items: start;
}

.cv-main-col,
.cv-side-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cv-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.paragraph {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

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

.paragraph em {
  color: var(--accent-primary);
  font-style: normal;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. TIMELINE (EXPERIENCE & ACTIVITIES)
   -------------------------------------------------------------------------- */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
  position: relative;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 24px;
}

.marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--bg-body);
  box-shadow: 0 0 0 2px var(--accent-primary);
  z-index: 2;
  margin-top: 6px;
}

.marker-line {
  flex: 1;
  width: 2px;
  background: var(--border-subtle);
  margin-top: 4px;
}

.timeline-item:last-child .marker-line {
  display: none;
}

.timeline-content {
  flex: 1;
  padding: 1.5rem;
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.role-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.company-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  white-space: nowrap;
}

.timeline-badge.current {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--accent-primary);
  font-weight: 700;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.task-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.task-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.task-list li strong {
  color: var(--text-main);
}

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

.tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. FEATURED PROJECTS SECTION
   -------------------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-tab {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

.filter-tab.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.project-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-type-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

.icon-link {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.icon-link:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: transparent;
  transform: scale(1.08);
}

.project-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.project-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.highlight-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* --------------------------------------------------------------------------
   10. SIDEBAR: SKILLS, EDUCATION, CERTS
   -------------------------------------------------------------------------- */
.skill-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-category-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.skill-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.skill-name {
  color: var(--text-main);
}

.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.progress-track {
  width: 100%;
  height: 7px;
  background-color: var(--progress-track);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.badge-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  color: var(--badge-text);
  transition: all var(--transition-fast);
}

.badge-pill:hover {
  border-color: var(--border-hover);
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

/* Education Item */
.edu-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.edu-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.edu-degree {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.edu-school {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.edu-details {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 0.35rem;
}

.edu-details strong {
  color: var(--color-success);
}

/* Certifications List */
.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.cert-icon {
  font-size: 1.2rem;
  color: var(--accent-primary);
  margin-top: 0.2rem;
}

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

.cert-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.cert-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

/* Languages */
.lang-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lang-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 600;
}

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

.lang-level {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   11. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-card {
  padding: 2.25rem;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
}

.contact-lead-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.contact-lead-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.c-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.c-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.c-label {
  font-size: 0.76rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.c-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.c-val:hover {
  color: var(--accent-primary);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

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

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

/* --------------------------------------------------------------------------
   12. FOOTER & UTILITIES
   -------------------------------------------------------------------------- */
.cv-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  margin-top: 3rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--bg-card);
  border: 1px solid var(--color-success);
  backdrop-filter: var(--glass-blur);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

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

.toast-icon {
  color: var(--color-success);
  font-size: 1.1rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  z-index: 90;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

/* --------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS (Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-avatar-col {
    margin: 0 auto;
  }

  .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-cta-group {
    justify-content: center;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
  }

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-stats-row {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    width: 45%;
  }

  .hero-card {
    padding: 1.75rem 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   14. HIGH FIDELITY PRINT STYLESHEET (@media print)
   Optimized for standard A4 printing and PDF Export
   -------------------------------------------------------------------------- */
@media print {

  /* Hide interactive web chrome & unnecessary elements */
  .top-nav,
  .ambient-glow,
  .nav-actions,
  .hero-cta-group,
  .filter-tabs,
  .project-links,
  .back-to-top,
  .toast,
  .contact-form,
  .copy-icon,
  .cv-footer,
  .status-badge {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 11pt !important;
    line-height: 1.45 !important;
  }

  .cv-wrapper {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .glass-panel,
  .glass-card,
  .section-card {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin-bottom: 1.25rem !important;
  }

  .hero-card {
    border-bottom: 2px solid #3b82f6 !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1.25rem !important;
  }

  .hero-card::before {
    display: none !important;
  }

  .hero-grid {
    grid-template-columns: 140px 1fr !important;
    gap: 1.5rem !important;
    text-align: left !important;
  }

  .avatar-container {
    width: 130px !important;
    height: 130px !important;
  }

  .avatar-ring {
    display: none !important;
  }

  .avatar-img {
    border: 2px solid #e2e8f0 !important;
    box-shadow: none !important;
  }

  .hero-name {
    font-size: 20pt !important;
    color: #1e3a8a !important;
    -webkit-text-fill-color: #1e3a8a !important;
  }

  .hero-role {
    font-size: 12pt !important;
    color: #475569 !important;
    margin-bottom: 0.5rem !important;
  }

  .hero-bio {
    font-size: 10pt !important;
    margin-bottom: 0.75rem !important;
  }

  .contact-pills-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.35rem !important;
    margin-bottom: 0.5rem !important;
  }

  .contact-pill {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 9pt !important;
  }

  .hero-stats-row {
    padding-top: 0.5rem !important;
    margin-top: 0.5rem !important;
  }

  .stat-number {
    font-size: 14pt !important;
    -webkit-text-fill-color: #1e3a8a !important;
  }

  .cv-grid-layout {
    grid-template-columns: 1.4fr 1fr !important;
    gap: 1.5rem !important;
  }

  .section-header {
    margin-bottom: 0.4rem !important;
    border-bottom: 1px solid #cbd5e1 !important;
    padding-bottom: 0.25rem !important;
  }

  .section-icon {
    display: none !important;
  }

  .section-title {
    font-size: 13pt !important;
    color: #1e3a8a !important;
    font-weight: 800 !important;
  }

  .timeline-content {
    padding: 0.5rem 0 !important;
  }

  .timeline-marker {
    display: none !important;
  }

  .role-title {
    font-size: 11pt !important;
    color: #0f172a !important;
  }

  .company-name {
    color: #2563eb !important;
    font-size: 10pt !important;
  }

  .timeline-badge {
    background: #e2e8f0 !important;
    color: #334155 !important;
    border: none !important;
    font-size: 8pt !important;
  }

  .project-card {
    border: 1px solid #e2e8f0 !important;
    padding: 0.75rem !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .progress-track {
    background-color: #e2e8f0 !important;
    height: 6px !important;
  }

  .progress-fill {
    background: #3b82f6 !important;
  }

  .badge-pill,
  .tag {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 8pt !important;
  }

  .contact-card-grid {
    grid-template-columns: 1fr !important;
  }

  /* Prevent awkward breaks across pages */
  .cv-section,
  .timeline-item,
  .project-card,
  .edu-item,
  .skill-group {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}