/* ==========================================================================
   Dynamic Resume - Stylesheet
   Modern, responsive, glassmorphic portfolio & resume layout
   Supports Dark / Light mode, interactive timeline, and print styling
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Dark Theme (Default) */
  --bg-base: #090d16;
  --bg-surface: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.8);
  --bg-glass: rgba(15, 23, 42, 0.75);
  --bg-badge: rgba(99, 102, 241, 0.12);
  --bg-badge-hover: rgba(99, 102, 241, 0.25);
  --bg-input: #1e293b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(99, 102, 241, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-heading: #ffffff;

  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: #818cf8;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --accent-gradient-text: linear-gradient(135deg, #818cf8 0%, #38bdf8 100%);
  --success: #10b981;
  --tag-bg: rgba(148, 163, 184, 0.1);
  --tag-text: #cbd5e1;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.25);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-badge: rgba(79, 70, 229, 0.08);
  --bg-badge-hover: rgba(70, 70, 229, 0.16);
  --bg-input: #f1f5f9;

  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-card: rgba(226, 232, 240, 0.9);
  --border-accent: rgba(79, 70, 229, 0.3);

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-heading: #0f172a;

  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: #6366f1;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #0284c7 100%);
  --accent-gradient-text: linear-gradient(135deg, #4338ca 0%, #0284c7 100%);
  --success: #059669;
  --tag-bg: rgba(71, 85, 105, 0.08);
  --tag-text: #334155;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  min-height: 100vh;
}

/* Background Ambient Glow */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1200px;
  height: 400px;
  background: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Top Sticky Navigation Bar */
.navbar {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin-bottom: 24px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-heading);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.nav-brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

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

.nav-link {
  padding: 6px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-heading);
  background: var(--bg-badge);
}

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

/* Buttons & Icon Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-card);
}

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

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  color: var(--accent-light);
  border-color: var(--border-accent);
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  padding: 32px 0 24px;
}

.hero-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-info {
  flex: 1;
  min-width: 280px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-name {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  margin-bottom: 8px;
  line-height: 1.15;
}

.hero-tagline {
  font-size: 1.12rem;
  font-weight: 600;
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Contact Badges Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

.contact-item-address {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-light);
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.contact-value {
  display: block;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Controls Bar (Search, View Mode, Filter) */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  flex: 1;
  min-width: 240px;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  width: 100%;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-toggle {
  display: flex;
  background: var(--bg-input);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.mode-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mode-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

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

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title svg {
  width: 24px;
  height: 24px;
  color: var(--accent-light);
}

/* Professional Summary Card */
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.summary-card p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.expertise-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all var(--transition-fast);
}

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

.expertise-title {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 0.92rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.expertise-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Skills Section */
.skills-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-fast);
}

.skill-category-card:hover {
  border-color: var(--border-accent);
}

.skill-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.skill-category-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-badge);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.skill-chip:hover, .skill-chip.selected {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.skill-chip-years {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  font-weight: 700;
}

[data-theme="light"] .skill-chip-years {
  background: rgba(0, 0, 0, 0.08);
}

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

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 20px;
  left: 11px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  transition: all var(--transition-normal);
}

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

.timeline-node {
  position: absolute;
  left: -32px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--accent);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-node::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.timeline-content:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

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

.job-company {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-role {
  font-weight: 600;
  color: var(--accent-light);
  font-size: 0.98rem;
  margin-top: 2px;
}

.job-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.job-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.job-duration {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--tag-bg);
  color: var(--text-muted);
  font-weight: 600;
}

.job-location {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.job-subsections {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-subsection {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.job-subsection-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.job-bullets {
  list-style: none;
  margin-top: 10px;
}

.job-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.job-bullets li:last-child {
  margin-bottom: 0;
}

.job-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-size: 1.1rem;
  line-height: 1.4;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.job-tag {
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--tag-bg);
  color: var(--tag-text);
  font-weight: 500;
}

/* Projects Section */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

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

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

.filter-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
}

.project-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 12px;
}

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

.project-highlights {
  list-style: none;
  margin-bottom: 18px;
}

.project-highlights li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.project-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-size: 0.85rem;
  font-weight: bold;
}

.project-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tech {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--tag-bg);
  color: var(--tag-text);
  font-weight: 600;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.project-link:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* Education, Certifications & Publications Grid */
.dual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.info-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.edu-school {
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.edu-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.edu-details {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cert-list, .ref-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}

.cert-icon {
  color: var(--accent-light);
  flex-shrink: 0;
}

.ref-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.ref-name {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.ref-title {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.ref-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--accent-light);
  text-decoration: none;
}

.ref-link:hover {
  text-decoration: underline;
}

/* Modal for Raw Markdown */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

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

.modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  background: var(--bg-base);
}

.modal-body pre {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
}

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

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slide-toast 0.25s ease;
}

@keyframes slide-toast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

/* Print Stylesheet */
@media print {
  @page {
    margin: 12mm 15mm;
    size: A4 portrait;
  }

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

  .ambient-glow,
  .navbar,
  .controls-bar,
  .hero-actions,
  .project-filters,
  .footer,
  .modal-backdrop,
  .toast-container {
    display: none !important;
  }

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

  .hero {
    padding: 0 0 12pt 0 !important;
  }

  .hero-card,
  .summary-card,
  .timeline-content,
  .project-card,
  .info-card,
  .skill-category-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 12pt !important;
  }

  .hero-name {
    font-size: 20pt !important;
    color: #0f172a !important;
  }

  .hero-tagline {
    font-size: 11pt !important;
    background: none !important;
    -webkit-text-fill-color: #334155 !important;
    color: #334155 !important;
  }

  .section {
    margin-bottom: 16pt !important;
    page-break-inside: avoid;
  }

  .section-title {
    font-size: 13pt !important;
    color: #0f172a !important;
    border-bottom: 1.5pt solid #cbd5e1 !important;
    padding-bottom: 3pt !important;
    margin-bottom: 8pt !important;
  }

  .timeline {
    padding-left: 0 !important;
  }

  .timeline::before,
  .timeline-node {
    display: none !important;
  }

  .timeline-item {
    margin-bottom: 12pt !important;
    page-break-inside: avoid;
  }

  .job-header {
    margin-bottom: 4pt !important;
  }

  .job-company {
    font-size: 11.5pt !important;
  }

  .job-role {
    color: #475569 !important;
    font-size: 10.5pt !important;
  }

  .job-bullets li {
    font-size: 9.5pt !important;
    line-height: 1.35 !important;
    margin-bottom: 3pt !important;
    color: #334155 !important;
  }

  .job-tags, .project-techs {
    display: none !important;
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    margin-top: 8pt !important;
    padding-top: 8pt !important;
  }

  .contact-item {
    background: transparent !important;
    border: none !important;
    padding: 2pt 0 !important;
    font-size: 9pt !important;
    color: #334155 !important;
  }

  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 8pt !important;
  }

  .project-card {
    page-break-inside: avoid;
  }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .navbar-inner {
    border-radius: var(--radius-md);
  }

  .nav-links {
    display: none;
  }

  .hero-card {
    padding: 24px;
  }

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

  .timeline {
    padding-left: 20px;
  }

  .timeline-node {
    left: -20px;
    width: 18px;
    height: 18px;
  }

  .timeline::before {
    left: 8px;
  }

  .projects-grid, .dual-grid {
    grid-template-columns: 1fr;
  }
}

/* Recruiter View (Executive / Compact Mode) */
body.recruiter-view .timeline-item {
  margin-bottom: 18px;
}

body.recruiter-view .timeline-content {
  padding: 18px;
}

body.recruiter-view .job-bullets li:nth-child(n+3) {
  display: none;
}

body.recruiter-view .job-subsections {
  margin-top: 8px;
  gap: 8px;
}

body.recruiter-view .job-subsection {
  padding: 8px 12px;
}

body.recruiter-view .project-highlights {
  display: none;
}

body.recruiter-view .project-card {
  padding: 18px;
}

