/* ==========================================================================
   MY CV - Modern Interactive Curriculum Vitae & Resume Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Default: Modern Dark Slate */
  --bg-main: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #162036;
  --bg-card: rgba(17, 26, 46, 0.75);
  --bg-card-hover: rgba(26, 38, 67, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(99, 102, 241, 0.35);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-primary: #6366f1;
  --accent-secondary: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --accent-glow: rgba(99, 102, 241, 0.25);
  --accent-tag-bg: rgba(99, 102, 241, 0.12);
  --accent-tag-text: #a5b4fc;
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --warning: #f59e0b;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px var(--accent-glow);
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Executive Theme */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-hover: rgba(37, 99, 235, 0.3);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-primary: #2563eb;
  --accent-secondary: #0284c7;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  --accent-glow: rgba(37, 99, 235, 0.15);
  --accent-tag-bg: rgba(37, 99, 235, 0.08);
  --accent-tag-text: #1d4ed8;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 18px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px -8px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.12);
}

/* Cyber Emerald Theme */
[data-theme="emerald"] {
  --bg-main: #050d0a;
  --bg-surface: #0a1713;
  --bg-surface-elevated: #112620;
  --bg-card: rgba(10, 24, 19, 0.8);
  --bg-card-hover: rgba(17, 38, 32, 0.9);
  --bg-glass: rgba(10, 24, 19, 0.7);
  --border-color: rgba(16, 185, 129, 0.15);
  --border-color-hover: rgba(16, 185, 129, 0.45);
  
  --text-primary: #ecfdf5;
  --text-secondary: #a7f3d0;
  --text-muted: #6ee7b7;
  
  --accent-primary: #10b981;
  --accent-secondary: #14b8a6;
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --accent-glow: rgba(16, 185, 129, 0.25);
  --accent-tag-bg: rgba(16, 185, 129, 0.12);
  --accent-tag-text: #34d399;
}

/* Sunset Violet Theme */
[data-theme="violet"] {
  --bg-main: #0d0914;
  --bg-surface: #150f22;
  --bg-surface-elevated: #211836;
  --bg-card: rgba(21, 15, 34, 0.8);
  --bg-card-hover: rgba(33, 24, 54, 0.9);
  --bg-glass: rgba(21, 15, 34, 0.7);
  --border-color: rgba(168, 85, 247, 0.15);
  --border-color-hover: rgba(244, 63, 94, 0.4);
  
  --text-primary: #faf5ff;
  --text-secondary: #e9d5ff;
  --text-muted: #c084fc;
  
  --accent-primary: #a855f7;
  --accent-secondary: #f43f5e;
  --accent-gradient: linear-gradient(135deg, #a855f7 0%, #f43f5e 100%);
  --accent-glow: rgba(168, 85, 247, 0.25);
  --accent-tag-bg: rgba(168, 85, 247, 0.12);
  --accent-tag-text: #d8b4fe;
}

/* --- Base Reset & Typography --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* Subtle Animated Ambient Background Glow */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
  opacity: 0.12;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* --- Global Layout Container --- */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 80px 20px;
}

/* --- Top Navigation Header --- */
.navbar {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
  transition: all var(--transition-normal);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.nav-brand-badge {
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--border-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Theme Selector Dropdown */
.theme-selector {
  position: relative;
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  z-index: 150;
  backdrop-filter: blur(16px);
}

.theme-dropdown.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.theme-opt-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: left;
  transition: all var(--transition-fast);
}

.theme-opt-btn:hover, .theme-opt-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.theme-opt-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* --- Hero & Profile Card --- */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  margin-bottom: 40px;
}

.hero-main-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.hero-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.hero-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.hero-avatar {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 3px solid var(--bg-surface-elevated);
  box-shadow: var(--shadow-md);
}

.status-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--bg-surface);
  border: 2px solid var(--bg-surface-elevated);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--success);
  box-shadow: var(--shadow-sm);
}

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

.hero-intro {
  flex-grow: 1;
}

.hero-name {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.75px;
  margin-bottom: 6px;
  background: linear-gradient(180deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-tag-text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.contact-chip:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.hero-summary {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Stats Side Card */
.hero-stats-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-box:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 4px;
}

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

.social-links-box {
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

.social-links-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.social-buttons {
  display: flex;
  gap: 10px;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

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

/* --- Section Layouts --- */
.section {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent-tag-bg);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* --- Work Experience Timeline --- */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

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

.timeline-marker {
  position: absolute;
  top: 6px;
  left: -28px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
  z-index: 2;
}

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-normal);
}

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

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-tag-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.timeline-badge-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.timeline-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.timeline-bullets {
  list-style: none;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-bullet {
  font-size: 0.88rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.timeline-bullet::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  background: var(--accent-tag-bg);
  color: var(--accent-tag-text);
  border: 1px solid rgba(99, 102, 241, 0.18);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

/* --- Skills Matrix --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.skill-category-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all var(--transition-normal);
}

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

.skill-category-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.skill-bars-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

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

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

.skill-track {
  height: 6px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.skill-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* --- Projects Showcase --- */
.projects-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

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

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

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

.project-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--accent-tag-bg);
  color: var(--accent-tag-text);
  align-self: flex-start;
  margin-bottom: 12px;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.project-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.project-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.project-highlight-bullet {
  font-size: 0.82rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 14px;
}

.project-highlight-bullet::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.project-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

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

/* --- Dual Columns: Education & Certifications --- */
.dual-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.compact-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  transition: all var(--transition-normal);
}

.compact-card:last-child {
  margin-bottom: 0;
}

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

.compact-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.compact-card-subtitle {
  font-size: 0.85rem;
  color: var(--accent-tag-text);
  margin-bottom: 8px;
}

.compact-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Languages & Interests */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.info-chip-tag {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--accent-tag-bg);
  color: var(--accent-tag-text);
  font-weight: 600;
}

/* --- Live In-Browser Editor Drawer & Modal --- */
.editor-drawer {
  position: fixed;
  top: 0;
  right: -550px;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.editor-drawer.open {
  right: 0;
}

.editor-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
}

.editor-title {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-input, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.json-textarea {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  min-height: 320px;
  white-space: pre;
  tab-size: 2;
}

.editor-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.editor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 190;
  display: none;
}

.editor-overlay.show {
  display: block;
}

/* --- Toast Notification --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-primary);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 40px 0 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
  
  .dual-section-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .app-container {
    padding: 16px 12px 60px 12px;
  }
  
  .hero-main-card {
    padding: 24px;
  }
  
  .hero-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .hero-name {
    font-size: 1.8rem;
  }
  
  .hero-contact-chips {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   PRINT / PDF EXPORT ENGINE OPTIMIZATION
   ========================================================================== */
@media print {
  /* Reset colors and backgrounds for crisp ink printing */
  :root {
    --bg-main: #ffffff !important;
    --bg-surface: #ffffff !important;
    --bg-card: #ffffff !important;
    --bg-surface-elevated: #f8fafc !important;
    --border-color: #e2e8f0 !important;
    --text-primary: #0f172a !important;
    --text-secondary: #334155 !important;
    --text-muted: #64748b !important;
    --accent-primary: #1e3a8a !important;
    --accent-secondary: #0284c7 !important;
    --accent-tag-bg: #eff6ff !important;
    --accent-tag-text: #1e40af !important;
  }

  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
  }

  body::before, body::after {
    display: none !important;
  }

  .navbar,
  .projects-filter-bar,
  .project-actions,
  .editor-drawer,
  .editor-overlay,
  .toast-container,
  .hero-actions .btn,
  .social-buttons,
  .footer {
    display: none !important;
  }

  .app-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero-section {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
  }

  .hero-main-card,
  .hero-stats-card,
  .timeline-card,
  .project-card,
  .skill-category-card,
  .compact-card {
    background: #ffffff !important;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
    backdrop-filter: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .hero-main-card {
    padding: 16px !important;
  }

  .hero-avatar {
    width: 80px !important;
    height: 80px !important;
  }

  .hero-name {
    font-size: 1.8rem !important;
    -webkit-text-fill-color: #0f172a !important;
  }

  .section {
    margin-bottom: 24px !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .timeline::before {
    background: #cbd5e1 !important;
  }

  .timeline-marker {
    background: #ffffff !important;
    border-color: #1e3a8a !important;
    box-shadow: none !important;
  }

  .stat-val {
    -webkit-text-fill-color: #1e3a8a !important;
  }

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