:root {
  --bg: #ffffff;
  --fg: #171717;
  --muted: #4a4a4a;
  --panel: #f8f9fa;
  --panel-border: #e6e8ef;
  --accent: #6f42c1;
  --accent-2: #007bff;
  --accent-3: #28a745;
  --cell-bar: #f1f4fb;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --code-bg: #f8f9fa;
  --code-border: #e9ecef;
}

/* Dark mode */
.dark {
  --bg: #0b0e14;
  --fg: #cfe7ff; /* very light blue text */
  --muted: #a9c6f7; /* lighter blue-muted */
  --panel: #121621;
  --panel-border: #22283a;
  --accent: #6bc46d;
  --accent-2: #58a6ff; /* brighter blue */
  --accent-3: #6f42c1;
  --cell-bar: #1a1f2e;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 10px 30px rgba(0,0,0,0.25);
  --code-bg: #1a1f2e;
  --code-border: #22283a;
}

/* lighter active blue for dark */
.dark :root, .dark {
  --active-blue: #58a6ff;
}

/* make UI icons slightly brighter in dark */
.dark .tab-icon { color: #9ecbff; opacity: 0.9; }

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Workspace background and notebook surface */
.notebook-shell { background: #f3f4f6; }

.notebook-page {
  padding: 28px 24px 80px;
  max-width: 1100px;
  margin: 16px auto;
  background: #ffffff;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Dark theme overrides for entire site */
.dark .notebook-shell { background: #0d1117; }
.dark .notebook-page {
  background: var(--panel);
  border-color: var(--panel-border);
  box-shadow: none;
}

/* Jupyter-like gutter and active bar */
:root { --gutter-width: 92px; --active-blue: #1f6feb; }

.cell { position: relative; overflow: visible; }

/* Disable old pseudo label so we can style parts separately */
.cell::after { content: none; }

/* Structured gutter label: [ 3 ] : */
.gutter-ln {
  position: absolute;
  left: calc(-1 * var(--gutter-width) + 28px);
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}
.gutter-ln .bracket { color: var(--active-blue); }
.gutter-ln .num { color: var(--muted); }
.dark .gutter-ln .num { color: var(--fg); }
.gutter-ln .desc { color: #6b7280; margin-left: 6px; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dark .gutter-ln .desc { color: var(--muted); }

/* Blue active indicator */
.cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  border-radius: 4px 0 0 4px;
}

.cell.active::before { background: var(--active-blue); }

/* Ensure adequate header height */
.cell-bar { min-height: 34px; align-items: center; }

/* Top bar like Jupyter */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--panel-border);
}

.topbar-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--panel-border);
  background: var(--panel);
}

.topbar-header .brand {
  font-weight: 800;
  font-size: 14px;
  color: var(--fg);
}

.kernel-status {
  font-size: 12px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.controls {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.control-btn {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--fg);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.control-btn:hover {
  background: var(--cell-bar);
}

.toggle {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--fg);
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 16px;
}

/* Navigation tabs */
.nav-tabs {
  display: flex;
  gap: 0;
  background: #ffffff;
  border-bottom: 1px solid #e6e8ef;
}

.tab {
  color: #4a4a4a;
  text-decoration: none;
  padding: 10px 14px;
  background: #ffffff;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  margin: 0 4px;
}

.tab:hover { background: #eef2f7; }
.dark .tab:hover { background: #1a2030; }

.tab.active {
  background: #e5e7eb; /* light gray */
  color: #111827;
  border-radius: 10px;
  padding: 8px 12px;
}

.dark .tab.active {
  background: #2a2f3a; /* dark gray for dark mode */
  color: #ffffff;
}

/* Dark nav overrides */
.dark .nav-tabs { background: var(--panel); border-bottom: 1px solid var(--panel-border); }
.dark .tab { color: var(--fg); background: transparent; }
.dark .tab:hover { background: var(--cell-bar); }
.dark .tab.active { background: #000000; color: #ffffff; }

.tab-icon {
  font-size: 14px;
  color: #4a4a4a;
  opacity: 0.7;
}

/* Page header */
.page-header {
  padding: 24px 0;
  text-align: center;
  border-bottom: 1px solid var(--panel-border);
}

/* Hero name unique font/color */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');
/* Friendly animated gradient for name (subtle, hover-only; works in dark/light) */
.title { 
  font-family: 'Poppins', Inter, system-ui, sans-serif; 
  background: linear-gradient(90deg,#6f42c1 0%, #1f6feb 50%, #6f42c1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%;
  transition: background-position .6s ease, filter .2s ease;
}
.title:hover { background-position: 100% 0; filter: drop-shadow(0 2px 8px rgba(31,111,235,.15)); }

/* Remove gradient in dark mode */
.dark .title { 
  background: none; 
  color: #58a6ff; 
  -webkit-background-clip: unset; 
  background-clip: unset; 
}
.dark .title:hover { 
  background: none; 
  filter: none; 
}
@media (prefers-reduced-motion: reduce) {
  .title, .title:hover { transition: none; background-position: 0 0; }
}

/* Role text with soft emphasis */
.role-rotate { font-size: 18px; color: #334155; min-height: 24px; transition: opacity .4s ease; }
.dark .role-rotate { color: #cfe7ff; }
.role-rotate.fade { opacity: 0; }

/* Replace chips spacing */
.hero .skill-chips { margin-top: 6px; }

/* CTA cards */
.cta-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 16px; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

/* Card container */
.cta-card { position: relative; border: 1px solid #e5e7eb; background: #ffffff; border-radius: 14px; padding: 18px 20px 28px; box-shadow: 0 6px 18px rgba(17,24,39,.05); display: grid; grid-template-columns: 56px 1fr; align-items: center; column-gap: 12px; text-decoration: none; }
.dark .cta-card { border-color: #2a3146; background: #0f1420; box-shadow: 0 6px 22px rgba(0,0,0,.35); }

/* Left icon */
.icon-circle { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #eef2ff; color: #4338ca; border: 1px solid #e5e7eb; }
.variant-work .icon-circle { background: #e8f8ef; color: #1e8e5a; }
.variant-about .icon-circle { background: #f4e8ff; color: #7c3aed; }
.dark .icon-circle { border-color: #2a3146; }

/* Right text */
.card-text { display: grid; align-content: center; gap: 4px; }
.card-title { color: #1f6feb; font-weight: 700; font-size: 16px; text-underline-offset: 3px; }
.card-sub { color: #6b7280; font-size: 13px; line-height: 1.5; }
.dark .card-sub { color: #a3a3a3; }

/* Bottom centered arrow */
.card-arrow { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); color: #9aa2af; }
.dark .card-arrow { color: #98a2b3; }

/* Hover visuals with variant accent */
.cta-card:hover { box-shadow: 0 12px 28px rgba(17,24,39,.12); transform: translateY(-2px); }
.variant-skills:hover { border-color: #93c5fd; }
.variant-work:hover { border-color: #86efac; }
.variant-about:hover { border-color: #d8b4fe; }

.cta-icon { width: 26px; height: 26px; color: var(--accent-2); }
.dark .cta-card .card-title { font-weight: 700; font-size: 16px; }
.cta-card .card-sub { color: #6b7280; font-size: 13px; line-height: 1.5; }
.dark .cta-card .card-sub { color: #a3a3a3; }
.cta-card .card-arrow { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); color: #9aa2af; }
.dark .cta-card .card-arrow { color: #98a2b3; }
.variant-skills .icon-circle { background: #eef2ff; color: #2563eb; }
.variant-work .icon-circle { background: #e8f8ef; color: #1e8e5a; }
.variant-about .icon-circle { background: #f4e8ff; color: #7c3aed; }

.icon-circle { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #eef2ff; color: #4338ca; border: 1px solid #e5e7eb; margin: 0 auto; }
.icon-circle svg { width: 22px; height: 22px; }
.dark .icon-circle { background: #1b2234; color: #93c5fd; border-color: #2a3146; }

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

/* Contact icon row */
.contact-row { display: flex; gap: 10px; margin-top: 10px; }
.contact-link { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--panel-border); border-radius: 8px; color: var(--fg); text-decoration: none; }
.contact-link:hover { background: var(--cell-bar); }

/* Skill chips */
.skill-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.skill-chip { border: 0; font-weight: 600; padding: 8px 12px; border-radius: 999px; box-shadow: 0 1px 2px rgba(0,0,0,.06); transform: translateY(0); transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; }
.skill-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.10); filter: saturate(1.08); }

/* Light mode pastels */
.chip-excel,.chip-python,.chip-analytics,.chip-va { background: #e6f0ff; color: #0b3a82; }
.dark .chip-excel,.dark .chip-python,.dark .chip-analytics,.dark .chip-va { background: #1b2234; color: #cfe0ff; }

/* Dark mode solid chips for contrast */
.dark .chip-excel { background: #1e40af; color: #d6e6ff; }
.dark .chip-python { background: #2563eb; color: #d6e6ff; }
.dark .chip-analytics { background: #3b82f6; color: #d6e6ff; }
.dark .chip-va { background: #60a5fa; color: #d6e6ff; }

/* Notebook cells */
.cell {
  border: 1px solid var(--code-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--code-bg);
  margin: 20px 0;
  position: relative;
  transition: all 0.2s;
}

.cell.collapsed {
  border-left: 4px solid var(--accent-2);
}

.cell-bar {
  background: var(--cell-bar);
  border-bottom: 1px solid var(--code-border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;
  user-select: none;
}

.cell-bar:hover {
  background: var(--panel);
}

.cell-label {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 11.5px;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: none;
}


.cell-toggle {
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.2s;
}

.cell.collapsed .cell-toggle {
  transform: rotate(-90deg);
}

.cell-body {
  padding: 16px;
  display: block;
}

.cell.collapsed .cell-body {
  display: none;
}

/* Code styling */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 6px;
  padding: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
}

.code-comment { color: #6a737d; }
.code-keyword { color: #d73a49; }
.code-string { color: #032f62; }
.code-number { color: #005cc5; }
.code-operator { color: #d73a49; }

/* Content styling */
.prose p { margin: 0 0 16px 0; }
.bullets { margin: 0; padding-left: 20px; }
.feature-list { margin: 0; padding-left: 20px; }

.grid.two { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 20px; 
}

.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s;
}

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

.card-media.placeholder {
  height: 160px;
  border-radius: 6px;
  border: 2px dashed var(--panel-border);
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.03) 10px, rgba(0,0,0,0.03) 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

.card-title { 
  margin: 12px 0 8px; 
  font-size: 18px;
  font-weight: 600;
}

.card-text { 
  margin: 0; 
  color: var(--muted);
  line-height: 1.5;
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 20px;
  max-width: 100%;
}

.contact-form label { 
  display: grid; 
  gap: 8px; 
}

.contact-form input, 
.contact-form textarea,
.contact-form select {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 14px 16px;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

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

.contact-form select {
  cursor: pointer;
}

.contact-form label span {
  font-weight: 600;
  color: var(--fg);
  font-size: 14px;
  margin-bottom: 4px;
}

/* Contact Information Grid */
.contact-info-grid {
  display: grid;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-color: var(--accent-2);
}

.dark .contact-info-item:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.contact-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cell-bar);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-details {
  flex: 1;
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.4;
}

.contact-value a:hover {
  text-decoration: underline;
}

.actions { 
  display: flex; 
  gap: 12px; 
  margin-top: 8px;
}

.btn {
  background: var(--fg);
  color: var(--bg);
  border: 0;
  padding: 16px 24px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  justify-content: center;
  width: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  background: var(--accent-2);
  color: white;
}

.btn.secondary { 
  background: transparent; 
  color: var(--fg); 
  border: 1px solid var(--panel-border); 
}

.btn.secondary:hover {
  background: var(--panel);
}

/* Responsive */
@media (max-width: 900px) {
  .grid.two { grid-template-columns: 1fr; }
  .cards.three { grid-template-columns: repeat(2, 1fr); }
  .skill-chips { flex-direction: column; align-items: center; }
}

@media (max-width: 700px) {
  .cards.three { grid-template-columns: 1fr; }
  .topbar-header { flex-wrap: wrap; }
  .controls { order: -1; width: 100%; justify-content: center; margin: 8px 0 0 0; }
}

/* light-blue body text and links in dark mode */
.dark body { color: var(--fg); }
.dark a, .dark .link { color: #9ecbff; }
.dark .page-header .subtitle, .dark .cell-label, .dark .card-text { color: var(--muted); }
.dark .code-string { color: #d4e8ff; }

/* Improve header spacing and stacking */
.page-header { position: relative; padding-top: 32px; }
.hero { margin-top: 6px; }

/* Avatar spacing so ring doesn't overlap items above */
.hero-avatar { position: relative; display: grid; place-items: center; margin-top: 16px; }

/* Base glow toned down; no overflow issues */
.hero-avatar::before {
  content: "";
  position: absolute;
  width: 168px; height: 168px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(31,111,235,0.08), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}
/* Remove the outer ring */
.hero-avatar::after { content: none !important; border: 0 !important; box-shadow: none !important; }
/* Keep hover glow only */
.hero-avatar:hover::after { content: none !important; }

/* Dark-mode tuning remains subtle */
.dark .hero-avatar::before { background: radial-gradient(ellipse at center, rgba(88,166,255,0.18), transparent 60%); }
.dark .hero-avatar:hover::before { background: radial-gradient(ellipse at center, rgba(88,166,255,0.35), transparent 60%); box-shadow: 0 0 0 4px rgba(88,166,255,0.15), 0 8px 24px rgba(88,166,255,0.25); }
.dark .hero-avatar::after { border-color: #2a3146; }

.profile-photo { position: relative; z-index: 1; background: transparent; width: 110px; height: 110px; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow); border: 2px solid var(--panel-border); transition: transform 0.2s ease; }
.hero-avatar::before { transition: opacity 0.2s ease; }
.hero-avatar::after { transition: border-color 0.2s ease; }
.hero-avatar:hover::before { opacity: 1; background: radial-gradient(ellipse at center, rgba(31,111,235,0.18), transparent 60%); }
.dark .hero-avatar:hover::before { background: radial-gradient(ellipse at center, rgba(88,166,255,0.28), transparent 60%); }
.hero-avatar:hover::after { border-color: var(--active-blue); }
.profile-photo:hover { transform: scale(1.02); }
@media (max-width: 700px) { .profile-photo { width: 96px; height: 96px; } }

.subbar { font-size: 12px; color: #6b7280; padding: 6px 16px; border-bottom: 1px solid var(--panel-border); background: #f8f9fb; }
.dark .subbar { background: #0f1420; color: var(--muted); }
.subbar .bullet { display: none; }
.subbar-icons { display: flex; align-items: center; gap: 12px; user-select: none; }
.subbar-icons .icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; }
.subbar-icons .icon svg { width: 14px; height: 14px; stroke: currentColor; color: #6b7280; }
.dark .subbar-icons .icon svg { color: var(--muted); }
.subbar-icons .sep { width: 1px; height: 14px; background: var(--panel-border); margin: 0 4px; }

/* Hero visual system */
.hero { margin-top: 10px; }
.hero-title { font-family: 'Poppins', Inter, system-ui, sans-serif; font-weight: 800; font-size: 44px; line-height: 1.1; margin: 6px 0 4px; color: #0f172a; }
.dark .hero-title { color: #e6edf7; }
.hero-title .accent { background: linear-gradient(90deg,#2563eb,#7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 22px; font-weight: 700; color: #2563eb; margin: 6px 0 14px; }
.dark .hero-sub { color: #60a5fa; }

/* Stats badges */
.stats-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 18px 0 10px; }
.stat { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 12px; padding: 12px; text-align: center; }
.stat .value { font-weight: 800; font-size: 22px; color: #1f2937; }
.stat .label { color: #6b7280; font-size: 12px; }
.dark .stat .value { color: #e5e7eb; }
.dark .stat .label { color: #a3a3a3; }

/* CTA buttons */
.cta-row { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; background: #2563eb; color: #ffffff; text-decoration: none; font-weight: 600; box-shadow: 0 6px 16px rgba(37,99,235,.25); transition: transform .15s ease, box-shadow .2s ease; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37,99,235,.35); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--panel-border); background: var(--panel); color: var(--fg); text-decoration: none; font-weight: 600; transition: background .15s ease, transform .15s ease; }
.btn-outline:hover { background: var(--cell-bar); transform: translateY(-1px); }

/* Adjust chips to fit new palette */
.chip-excel { background: #dbeafe; color: #1e40af; }
.chip-python { background: #bfdbfe; color: #2563eb; }
.chip-analytics { background: #93c5fd; color: #3b82f6; }
.chip-va { background: #60a5fa; color: #1d4ed8; }
.dark .chip-excel { background: #1e40af; color: #d6e6ff; }
.dark .chip-python { background: #2563eb; color: #d6e6ff; }
.dark .chip-analytics { background: #3b82f6; color: #d6e6ff; }
.dark .chip-va { background: #60a5fa; color: #d6e6ff; }

.actions-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.actions-row .btn-outline, .actions-row .btn-primary { font-size: 14px; }

/* CTA section heading */
.cta-title { text-align: center; font-size: 28px; font-weight: 800; margin: 26px 0 12px; color: #111827; }
.dark .cta-title { color: #e5e7eb; }

.cta-card { text-align: center; }
.actions-row { justify-content: center; }
.contact-row { justify-content: center; }

.cta-card .arrow { display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; color: #2563eb; }
.dark .cta-card .arrow { color: #60a5fa; }

.cell-bar { cursor: pointer; }
.cell-toggle { display: inline-block !important; }

/* Enhanced Education & Experience Styling */
.education-item, .experience-item {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-item:hover, .experience-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: var(--accent-2);
}

.dark .education-item:hover, .dark .experience-item:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.company-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #e6f0ff, #bfdbfe);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(37,99,235,0.15);
}

.experience-item:hover .company-logo {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(37,99,235,0.25);
}

.dark .company-logo {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #d6e6ff;
}

.job-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.job-info h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
  color: var(--fg);
  font-weight: 600;
}

.job-info .company {
  margin: 0 0 4px 0;
  font-weight: 600;
  color: var(--accent-2);
  font-size: 14px;
}

.job-info .duration {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.job-description {
  color: var(--fg);
  line-height: 1.6;
  margin-bottom: 12px;
}

.job-description p {
  margin: 0 0 8px 0;
}

.job-description ul {
  margin: 8px 0;
  padding-left: 20px;
}

.job-description li {
  margin-bottom: 6px;
  position: relative;
}

.job-description li::marker {
  color: var(--accent-2);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.skill-tag {
  background: var(--cell-bar);
  color: var(--accent-2);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--panel-border);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: var(--accent-2);
  color: white;
  transform: translateY(-1px);
}

.dark .skill-tag {
  background: #1a1f2e;
  border-color: #2a3146;
}

.dark .skill-tag:hover {
  background: var(--accent-2);
  color: white;
}

/* Animation for items appearing */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.education-item, .experience-item {
  animation: slideInUp 0.6s ease forwards;
}

.education-item:nth-child(1) { animation-delay: 0.1s; }
.education-item:nth-child(2) { animation-delay: 0.2s; }
.experience-item:nth-child(1) { animation-delay: 0.1s; }
.experience-item:nth-child(2) { animation-delay: 0.2s; }
.experience-item:nth-child(3) { animation-delay: 0.3s; }
.experience-item:nth-child(4) { animation-delay: 0.4s; }

/* Link styling */
.storymap-link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.storymap-link:hover {
  color: var(--accent);
  text-decoration: underline;
  transform: translateX(2px);
}

/* Why Work With Me Section */
.why-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.why-work-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.why-work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.why-work-card:hover::before {
  transform: scaleX(1);
}

.why-work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  border-color: var(--accent-2);
}

.dark .why-work-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.why-work-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  transition: transform 0.3s ease;
}

.why-work-card:hover .why-work-icon {
  transform: scale(1.1) rotate(5deg);
}

.why-work-card h4 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
}

.why-work-card p {
  margin: 0 0 16px 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.why-work-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.benefit-tag {
  background: var(--cell-bar);
  color: var(--accent-2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--panel-border);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.benefit-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.benefit-tag:hover::before {
  left: 100%;
}

.benefit-tag:hover {
  background: var(--accent-2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.dark .benefit-tag {
  background: #1a1f2e;
  border-color: #2a3146;
}

.dark .benefit-tag:hover {
  background: var(--accent-2);
  color: white;
}

/* Animation for why work cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.why-work-card {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.why-work-card:nth-child(1) { animation-delay: 0.1s; }
.why-work-card:nth-child(2) { animation-delay: 0.2s; }
.why-work-card:nth-child(3) { animation-delay: 0.3s; }

/* Skills Navigation Bar */
.skills-nav {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 8px;
  margin: 24px 0;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.skills-nav::-webkit-scrollbar {
  display: none;
}

.skill-nav-item {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.skill-nav-item:hover {
  color: var(--fg);
  background: var(--cell-bar);
}

.skill-nav-item.active {
  background: var(--accent-2);
  color: white;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.dark .skill-nav-item.active {
  background: var(--accent-2);
  color: white;
  box-shadow: 0 2px 8px rgba(88,166,255,0.3);
}

/* Skills Overview Highlights - Compact Design */
.skill-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.highlight-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 16px;
}

.highlight-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  border-radius: 16px 16px 0 0;
}

.highlight-card:hover::before {
  opacity: 0.08;
}

.highlight-card:hover::after {
  transform: scaleX(1);
}

.highlight-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(37,99,235,0.15);
  border-color: var(--accent-2);
}

.dark .highlight-card:hover {
  box-shadow: 0 16px 40px rgba(88,166,255,0.2);
}

.highlight-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-icon {
  transform: scale(1.1) rotate(5deg);
}

.highlight-content {
  position: relative;
  z-index: 2;
}

.highlight-content h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  transition: color 0.3s ease;
}

.highlight-content p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.highlight-card:hover .highlight-content h4 {
  color: var(--accent-2);
}

.highlight-card:hover .highlight-content p {
  color: var(--fg);
}

/* Skills Grid - Compact Square Design */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.skill-item {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Database Management skill items */
.skill-item.database-item {
  aspect-ratio: 1.8;
}

/* Database grid - smaller cards since only 2 items */
.skill-grid.database-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.skill-item.database-item {
  padding: 10px;
  border-radius: 8px;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 16px;
}

.skill-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  border-radius: 16px 16px 0 0;
}

.skill-item:hover::before {
  opacity: 0.08;
}

.skill-item:hover::after {
  transform: scaleX(1);
}

.skill-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(37,99,235,0.15);
  border-color: var(--accent-2);
}

.dark .skill-item:hover {
  box-shadow: 0 16px 40px rgba(88,166,255,0.2);
}

.skill-icon {
  font-size: 24px;
  margin-bottom: 6px;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.skill-item:hover .skill-icon {
  transform: scale(1.1) rotate(5deg);
}

.skill-content {
  position: relative;
  z-index: 2;
}

.skill-content h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  transition: color 0.3s ease;
}

.skill-content p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.skill-item:hover .skill-content h4 {
  color: var(--accent-2);
}

.skill-item:hover .skill-content p {
  color: var(--fg);
}



/* Virtual Assistant Showcase */
.va-showcase {
  display: grid;
  gap: 24px;
  margin-top: 20px;
}

.va-category {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.va-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.va-category:hover::before {
  transform: scaleX(1);
}

.va-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  border-color: var(--accent-2);
}

.dark .va-category:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.va-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.va-category-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: var(--cell-bar);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--panel-border);
}

.va-category-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}

.va-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.va-tool {
  background: var(--cell-bar);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.va-tool::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.va-tool:hover::before {
  left: 100%;
}

.va-tool:hover {
  background: var(--accent-2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
  border-color: var(--accent-2);
}

.tool-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.va-tool span {
  font-size: 13px;
  font-weight: 500;
  color: inherit;
}

/* Skills meter bars */
.meter {
  width: 100%;
  height: 8px;
  background: var(--panel-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .why-work-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .why-work-card {
    padding: 20px;
  }
  
  .why-work-icon {
    font-size: 40px;
  }
}


