@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Slab:wght@400;500;600;700;800&family=Silkscreen:wght@400;700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

/* ============================================================
   Color Design System — Premium Indigo-Violet Palette
   Light: warm ivory canvas + deep indigo accents
   Dark:  deep space-navy + electric indigo-violet accents
   ============================================================ */
:root {
  /* Backgrounds */
  --bg-primary:    #fafaf8;           /* Soft warm ivory */
  --bg-secondary:  #ffffff;
  --bg-surface:    rgba(246, 245, 255, 0.6); /* Tinted glass surface */

  /* Text */
  --text-primary:   #1a1523;          /* Deep ink-violet */
  --text-secondary: #6b6880;          /* Muted violet-grey */
  --text-tertiary:  #a89fc0;          /* Soft lavender-grey */

  /* Borders */
  --border-color: rgba(198, 193, 220, 0.65); /* Lavender-tinted border */
  --border-hover: rgba(139, 132, 183, 0.55); /* Active border */

  /* Navigation */
  --nav-bg:       rgba(252, 251, 255, 0.82);
  --nav-hover-bg: rgba(99, 82, 199, 0.05);

  /* Accent — Rich Indigo */
  --accent-color: #4f46e5;            /* indigo-600 */
  --accent-hover: #3730a3;            /* indigo-800 */
  --accent-light: rgba(79, 70, 229, 0.09);

  /* Ambient glow */
  --gradient-top: radial-gradient(
    ellipse 80% 40% at 50% -10%,
    rgba(139, 92, 246, 0.22) 0%,
    rgba(99, 82, 219, 0.10) 45%,
    rgba(79, 70, 229, 0.04) 70%,
    transparent 100%
  );
}

/* Dark Mode — Deep Space Navy + Electric Indigo */
html.dark {
  /* Backgrounds */
  --bg-primary:    #0d0d1a;           /* Deep space-navy (not pure black) */
  --bg-secondary:  #13131f;           /* Slightly lighter navy */
  --bg-surface:    rgba(30, 27, 60, 0.55); /* Indigo-tinted glass */

  /* Text */
  --text-primary:   #ede9fe;          /* Soft violet-white */
  --text-secondary: #a89fc8;          /* Muted lavender */
  --text-tertiary:  #4d4870;          /* Deep muted violet */

  /* Borders */
  --border-color: rgba(55, 48, 100, 0.75); /* Deep indigo border */
  --border-hover: rgba(99, 88, 160, 0.6);

  /* Navigation */
  --nav-bg:       rgba(16, 14, 32, 0.85);
  --nav-hover-bg: rgba(139, 92, 246, 0.08);

  /* Accent — Electric Indigo-Violet */
  --accent-color: #818cf8;            /* indigo-400 — vibrant on dark */
  --accent-hover: #a5b4fc;            /* indigo-300 */
  --accent-light: rgba(129, 140, 248, 0.15);

  /* Ambient glow */
  --gradient-top: radial-gradient(
    ellipse 90% 45% at 50% -15%,
    rgba(139, 92, 246, 0.28) 0%,
    rgba(79, 70, 229, 0.14) 45%,
    rgba(55, 48, 163, 0.05) 75%,
    transparent 100%
  );
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

p {
  line-height: 1.75;
  letter-spacing: -0.011em;
}

.font-header {
  font-family: 'Roboto Slab', serif;
}

.font-silkscreen {
  font-family: 'Silkscreen', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Ambient Top Gradient Background */
.time-gradient {
  background: var(--gradient-top);
  transition: background 0.5s ease;
}

/* Title Character-by-character Animation */
.reveal-title {
  font-family: 'Roboto Slab', serif;
}
.reveal-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  animation: reveal-char 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes reveal-char {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Primary & Secondary Action Buttons (No-pill, solid border) */
.action-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--accent-color);
  background-color: var(--accent-color);
  color: #ffffff !important;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.action-btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.35);
}

html.dark .action-btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(129, 140, 248, 0.3);
}

.action-btn-primary:active {
  transform: scale(0.97);
}

.action-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

html.dark .action-btn-secondary {
  background-color: var(--bg-secondary);
}

.action-btn-secondary:hover {
  border-color: var(--border-hover);
  background-color: var(--nav-hover-bg);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.action-btn-secondary:active {
  transform: scale(0.97);
}

/* Copy Email SVG sizes safety fallback */
.copy-email-btn svg {
  width: 1rem !important;
  height: 1rem !important;
  flex-shrink: 0;
}

/* Floating Sidebar Navigation Menu (Desktop) */
.sidebar-nav {
  display: none;
}

@media (min-width: 1024px) {
  .sidebar-nav {
    display: flex;
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    flex-direction: column;
    align-items: start;
    gap: 0.25rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border-color);
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    width: 52px;
    height: auto;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
  }

  .sidebar-nav:hover {
    width: 150px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  }
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border-radius: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
  color: var(--accent-color);
  background-color: var(--accent-light);
}

.nav-item svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item:hover svg {
  transform: scale(1.08);
}

.nav-label {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.sidebar-nav:hover .nav-label {
  opacity: 1;
  pointer-events: auto;
}

.nav-divider {
  width: 1.75rem;
  height: 1px;
  background-color: var(--border-color);
  margin: 0.25rem auto;
  align-self: center;
  flex-shrink: 0;
  transition: width 0.35s ease;
}

.sidebar-nav:hover .nav-divider {
  width: 80%;
}

/* Floating Bottom Navigation Menu (Mobile) */
.mobile-nav {
  position: fixed;
  bottom: 1.25rem;
  left: 1rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav-container {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.375rem 0.625rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
}

.mobile-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
  color: var(--accent-color);
  background-color: var(--accent-light);
  transform: translateY(-1.5px);
}

.mobile-nav-item svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
  flex-shrink: 0;
}

.mobile-nav-divider {
  width: 1px;
  height: 1.25rem;
  background-color: var(--border-color);
  margin: 0 0.125rem;
}

/* Gooey / Glide List Hover Effect */
.gooey-container {
  position: relative;
}

.gooey-bg {
  position: absolute;
  z-index: 0;
  background-color: var(--nav-hover-bg);
  border-radius: 0.375rem;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1),
              width 0.25s cubic-bezier(0.25, 1, 0.5, 1),
              height 0.25s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.18s ease;
}

/* Hide gooey highlights completely on mobile touch screens */
@media (max-width: 1023px) {
  .gooey-bg {
    display: none !important;
  }
}

/* Case study / Blog hover capsule lists */
.list-item-card {
  position: relative;
  z-index: 10;
  width: 100%;
  text-align: left;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  transition: color 0.2s ease;
}

.list-item-card:hover {
  color: var(--text-primary);
}

/* Premium Link Reveal Chevrons styling */
.link-arrow {
  width: 0.85rem !important;
  height: 0.85rem !important;
  display: inline-flex !important;
  align-self: center;
  margin-left: 0.25rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  color: var(--accent-color);
  flex-shrink: 0;
}

.group:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Profile Avatar & Tooltip Status */
.avatar-container {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
}

.avatar-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.avatar-wrapper:hover {
  border-color: var(--accent-color);
  transform: scale(1.02);
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-pill {
  position: absolute;
  left: 92px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.avatar-container:hover .status-pill {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Mobil-responsive adjustments for Avatar container */
@media (max-width: 640px) {
  .avatar-container {
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
  }
  .status-pill {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }
}

/* Availability Badge Style & Text Scroller Loop */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.6875rem; /* 11px */
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 28px;
  width: 300px;
  max-width: 100%;
  box-sizing: border-box;
}

.availability-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  padding: 1px;
  background: linear-gradient(90deg, var(--accent-color), #ec4899, var(--accent-color));
  background-size: 200% auto;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.25;
  transition: opacity 0.3s ease;
  animation: shine-border 4s linear infinite;
}

.availability-badge:hover {
  border-color: transparent;
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-light);
}

.availability-badge:hover::before {
  opacity: 1;
}

@keyframes shine-border {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Pulse Beacon */
.pulse-beacon {
  position: relative;
  display: flex;
  height: 8px;
  width: 8px;
  flex-shrink: 0;
}

.pulse-beacon .ping-ring {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background-color: #10b981; /* emerald-500 */
  opacity: 0.75;
  animation: beacon-ping 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.pulse-beacon .core-dot {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  height: 8px;
  width: 8px;
  background-color: #10b981;
}

@keyframes beacon-ping {
  70%, 100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Badge Text Scroller */
.badge-text-scroller {
  overflow: hidden;
  height: 14px;
  position: relative;
  flex-grow: 1;
}

.badge-text-track {
  display: flex;
  flex-direction: column;
  animation: badge-scroll-loop 9s cubic-bezier(0.85, 0, 0.15, 1) infinite;
}

.availability-badge:hover .badge-text-track {
  animation-play-state: paused;
}

.badge-text-item {
  height: 14px;
  line-height: 14px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  text-overflow: ellipsis;
  overflow: hidden;
}

@keyframes badge-scroll-loop {
  /* 0% to 45%: Item 1 */
  0%, 45% { transform: translateY(0); }
  /* 50% to 95%: Item 2 */
  50%, 95% { transform: translateY(-14px); }
  /* 99% to 100%: Item 1 copy (Seamless reset) */
  99%, 100% { transform: translateY(-28px); }
}

/* Theme Toggle Button Icon Transitions */
.theme-toggle svg {
  transition: transform 0.4s ease;
}

.theme-toggle:hover svg {
  transform: rotate(25deg);
}

/* Safe Entrance Animations (IntersectionObserver-based) */
.scroll-animate {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bottom padding to main on mobile viewports to prevent covering footer by tabnav */
@media (max-width: 1023px) {
  main {
    padding-bottom: 7rem !important;
  }
}

/* Premium Custom Cursor Follower */
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 0.3s ease, 
              width 0.25s cubic-bezier(0.25, 1, 0.5, 1), 
              height 0.25s cubic-bezier(0.25, 1, 0.5, 1), 
              background-color 0.2s;
}

.cursor-follower.cursor-hover {
  width: 36px;
  height: 36px;
  background-color: rgba(99, 82, 219, 0.09);
  border: 1px solid var(--accent-color);
}

html.dark .cursor-follower.cursor-hover {
  background-color: rgba(129, 140, 248, 0.14);
}

/* Inline Text Highlight — Indigo-Violet sweep */
.highlight-fade {
  background: linear-gradient(
    100deg,
    rgba(99, 82, 219, 0.13) 0%,
    rgba(139, 92, 246, 0.07) 60%,
    transparent 100%
  );
  width: 100%;
  height: 100%;
}

html.dark .highlight-fade {
  background: linear-gradient(
    100deg,
    rgba(129, 140, 248, 0.22) 0%,
    rgba(139, 92, 246, 0.08) 60%,
    transparent 100%
  );
}

/* Call to Actions spacing adjustments */
.cta-container {
  margin-top: 2rem;
  margin-bottom: 3rem; /* Spacious margin after the resume & copy email button group */
}

/* Tab-like switching and animations for main content sections */
.main-content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 9rem); /* Vertically center the active section cleanly in the viewport */
  gap: 0 !important;
}

/* On mobile: align to top, not center — prevents large gap above shorter sections */
@media (max-width: 1023px) {
  .main-content-wrapper {
    justify-content: flex-start;
    min-height: auto;
    padding-top: 2.5rem !important;    /* Override Tailwind pt-16 */
    padding-left: 1.25rem !important;  /* Ensure left breathing room */
    padding-right: 1.25rem !important; /* Ensure right breathing room */
    padding-bottom: 0;
  }
}

.main-content-wrapper section {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  border-top: none !important;
  padding-top: 0 !important;
}

.main-content-wrapper section.active-section {
  display: flex;
  flex-direction: column;
  animation: tabFadeIn 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Override scroll-animate on main sections so they use active-section tab transition instead */
.main-content-wrapper section.scroll-animate {
  opacity: 1;
  transform: none;
  transition: none;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Margin bottom on header items inside sections */
.main-content-wrapper section h2 {
  margin-bottom: 0.5rem; /* Equivalent to mb-2 */
}

.main-content-wrapper section h3 {
  margin-bottom: 0.75rem; /* Equivalent to mb-3 */
}

/* Sticky Footer Layout */
main {
  flex-grow: 1;
}

/* On mobile: hide footer (floating nav already anchors the bottom) */
@media (max-width: 1023px) {
  .footer-container {
    display: none;
  }
}

/* Skills Badge Grid styling */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skills-container span {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
  user-select: none;
}

.skills-container span:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-1px);
}

/* Skill group label spacing */
.skill-group {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.skill-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Experience Cards */
.experience-card {
  cursor: default;
}

/* Experience tag pills (smaller, inline, subtle) */
.exp-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background-color: transparent;
  color: var(--text-tertiary);
  transition: all 0.2s ease;
  user-select: none;
}

html.dark .exp-tag {
  color: var(--text-secondary);
}

/* Stat Cards */
.stat-card {
  cursor: default;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.stat-card:hover {
  border-color: var(--border-hover);
}

/* Accent stat color (the + symbol in stats) */
.text-accent-stat {
  color: var(--accent-color);
}

/* Footer content layout */
.footer-container {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer-content {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ============================================================
   Experience Section — Full Hierarchy Styling
   
   Hierarchy levels:
   1. Section       — #experience (gap-8 between companies)
   2. Company block — .exp-company-block (border-left timeline)
   3. Company header— .exp-company-header (name + date pill)
   4. Card          — .experience-card (main or project card)
   5. Project title — .exp-project-title (sub-project label)
   6. Bullets       — .exp-bullets (achievement list)
   7. Tags          — .exp-tag (tech stack pills)
   ============================================================ */

/* ── Level 2: Company Block ── */
.exp-company-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;           /* tight gap between header and cards */
  position: relative;
  padding-left: 1.125rem;
  border-left: 2px solid var(--border-color);
  transition: border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.exp-company-block:hover {
  border-left-color: var(--accent-color);
}

/* ── Level 3: Company Header (name row) ── */
.exp-company-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.375rem; /* breathing room between header and first card */
}

/* Company name — Level 3a */
.exp-company-name {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 0.9375rem;   /* 15px — prominent but not h1 */
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0;
}

/* Role + Location — Level 3b */
.exp-company-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;   /* 11px */
  color: var(--text-tertiary);
  margin-top: 0.2rem;
  letter-spacing: 0.01em;
}

/* ── Level 3c: Date Pill ── */
.exp-date-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  font-size: 0.6875rem;   /* 11px */
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  color: var(--text-tertiary);
  background-color: var(--bg-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.125rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

/* "Present" date gets an accent tint */
.exp-date-pill.is-current {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background-color: var(--accent-light);
}

/* ── Level 4a: Main experience card ── */
.experience-card {
  cursor: default;
  border-radius: 0.75rem;          /* 12px */
  padding: 1rem 1.125rem;          /* 16px 18px — comfortable reading room */
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  transition: border-color 0.2s ease, background-color 0.2s ease,
              box-shadow 0.2s ease;
}

.experience-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

html.dark .experience-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* ── Level 4b: Sub-project cards (slightly inset feel) ── */
.exp-project-card {
  background-color: transparent;
  border-style: dashed;             /* dashed to visually de-emphasise vs company card */
}

.exp-project-card:hover {
  border-style: solid;
  background-color: var(--bg-secondary);
}

/* ── Level 5: Project Title ── */
.exp-project-title {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 0.8125rem;            /* 13px — clearly a sub-level below company name */
  color: var(--text-primary);
  margin: 0 0 0.625rem 0;          /* 10px below before bullets start */
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Subtle "project" badge dot before title */
.exp-project-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-color);
  opacity: 0.6;
  flex-shrink: 0;
}

/* ── Level 6: Bullet List ── */
.exp-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;                     /* 8px between bullets — readable, not cramped */
}

.exp-bullets li {
  position: relative;
  padding-left: 1.25rem;           /* room for the → glyph */
  font-size: 0.8125rem;            /* 13px */
  line-height: 1.65;
  color: var(--text-secondary);
}

.exp-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.65rem;
  color: var(--accent-color);
  opacity: 0.7;
  line-height: 1.75;
  font-family: 'IBM Plex Mono', monospace;
}

/* ── Level 7: Tech Tag Pills ── */
.exp-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.175rem 0.55rem;       /* compact — clearly secondary to bullets */
  font-size: 0.6875rem;            /* 11px */
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background-color: transparent;
  color: var(--text-tertiary);
  transition: border-color 0.18s ease, color 0.18s ease;
  user-select: none;
  cursor: default;
  white-space: nowrap;
}

.exp-tag:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Tag row wrapper — extra top margin to separate from bullets */
.exp-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;                   /* 6px between tags */
  margin-top: 0.875rem;            /* 14px — clear separation from bullets */
}

/* ── Stat Cards ── */
.stat-card {
  cursor: default;
  border-radius: 0.75rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.stat-card:hover {
  border-color: var(--border-hover);
}

.text-accent-stat {
  color: var(--accent-color);
}


