/* ==========================================================================
   Aditya Rangari — Portfolio (Production UX Optimized - High Contrast Light Mode)
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #6366f1;
  --accent-dark: #4338ca;
  --accent-soft: #818cf8;
  --success: #10b981;
}

body {
  --bg: #09090b;
  --bg-radial: rgba(99, 102, 241, 0.12);

  --text-primary: #fafafa;
  --text-secondary: #d4d4d8;
  --text-tertiary: #a1a1aa;
  --text-muted: #71717a;

  --surface-1: rgba(24, 24, 27, 0.75);
  --surface-2: rgba(18, 18, 20, 0.6);
  --surface-nav: rgba(9, 9, 11, 0.85);

  --surface-terminal-head: rgba(255, 255, 255, 0.05);
  --surface-terminal-body: rgba(0, 0, 0, 0.6);
  --terminal-text: #fafafa;
  --terminal-border: rgba(255, 255, 255, 0.1);

  --chip-bg: rgba(39, 39, 42, 0.8);
  --chip-border: rgba(63, 63, 70, 0.6);
  --chip-text: #e4e7eb;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.15);
  --border-card: rgba(255, 255, 255, 0.1);

  --spotlight: rgba(99, 102, 241, 0.05);
  --card-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(99, 102, 241, 0.15);

  --gradient-start: #ffffff;
  --gradient-end: #818cf8;
  --mono-eyebrow: #818cf8;

  background:
    radial-gradient(circle at 85% 8%, var(--bg-radial), transparent 32%),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%),
    var(--bg);
  color: var(--text-primary);
  font-family: "Manrope", "Segoe UI", sans-serif;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Premium Light Theme Overhaul (High Contrast & Sharp Typography) */
body.light {
  --bg: #edf2f8;
  --bg-radial: rgba(79, 70, 229, 0.14);
  --accent: #4f46e5;
  --accent-dark: #3730a3;
  --accent-teal: #0f766e;

  --text-primary: #020617;       /* Slate 950 — Maximum contrast headers */
  --text-secondary: #1e293b;     /* Slate 800 — Strong body copy */
  --text-tertiary: #475569;      /* Slate 600 — Clear secondary text */
  --text-muted: #64748b;         /* Slate 500 — Quiet supporting detail */

  --surface-1: rgba(255, 255, 255, 0.94);
  --surface-2: #e5ebf3;
  --surface-nav: rgba(255, 255, 255, 0.94);

  /* Clean Light Terminal / Code Panels */
  --surface-terminal-head: #e2e8f0;
  --surface-terminal-body: #f8fafc;
  --terminal-text: #334155;
  --terminal-border: #cbd5e1;

  --chip-bg: #f1f5f9;
  --chip-border: #cbd5e1;
  --chip-text: #334155;

  --border-subtle: #d2dce9;
  --border-default: #b9c7d8;
  --border-card: #c5d1df;

  --spotlight: rgba(79, 70, 229, 0.04);
  --card-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);

  --gradient-start: #0f172a;
  --gradient-end: #3730a3;      /* Indigo 800 — Crisp text gradients */
  --mono-eyebrow: #3730a3;     /* Indigo 800 — High-visibility labels */
}

/* Base Utility Overrides */
.text-primary   { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary  { color: var(--text-tertiary) !important; }
.text-muted     { color: var(--text-muted) !important; }

body.light h1,
body.light h2,
body.light h3,
body.light h4,
body.light h5,
body.light h6 {
  color: var(--text-primary) !important;
}

body.light nav a {
  color: var(--text-secondary) !important;
  font-weight: 600;
}

body.light nav a:hover {
  color: var(--accent-dark) !important;
}

body.light .nav-link.text-secondary {
  color: var(--text-tertiary) !important;
}

body.light .nav-link.text-secondary:hover {
  color: var(--text-primary) !important;
}

/* Light Mode Overrides for Hardcoded Tailwind Accent Classes */
body.light .text-indigo-400\/80,
body.light .text-indigo-400,
body.light .text-indigo-300,
body.light .text-slate-400,
body.light .text-zinc-400 {
  color: var(--mono-eyebrow) !important;
}

.surface-nav {
  background: var(--surface-nav);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.primary-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 150;
}

.primary-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 80rem;
  height: 5rem;
  margin: 0 auto;
  padding: 0 5rem 0 1.5rem;
}

.primary-nav-links {
  display: none;
  align-items: center;
}

.mobile-nav-controls {
  display: flex;
  align-items: center;
}

.surface-nav .nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-size: 11px;
  color: var(--text-tertiary) !important;
  transition: color 0.2s ease;
}

.surface-nav .nav-link:hover,
.surface-nav .nav-link[aria-current="true"] {
  color: var(--text-primary) !important;
}

.surface-nav .nav-link[aria-current="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.65rem;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-teal, var(--accent)));
}

.mobile-menu {
  background: var(--surface-nav);
}

.mobile-menu .nav-link {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary) !important;
  text-align: left;
}

.mobile-menu .nav-link:hover {
  background: var(--surface-2);
  color: var(--text-primary) !important;
}

.surface-nav .mobile-menu .nav-link[aria-current="true"] {
  border-left-color: var(--accent);
  background: var(--surface-2);
  color: var(--text-primary) !important;
  font-weight: 700;
}

.surface-nav .mobile-menu .nav-link[aria-current="true"]::after {
  display: none;
}

@media (max-width: 767px) {
  .mobile-menu .nav-link {
    font-size: 13px;
  }
}

@media (min-width: 768px) {
  .primary-nav-inner {
    padding-right: 5.5rem;
    padding-left: 2rem;
  }
}

@media (min-width: 1200px) {
  .primary-nav-links {
    display: flex;
  }

  .mobile-nav-controls,
  .mobile-menu {
    display: none;
  }
}

@media (max-width: 1199px) {
  .primary-nav .primary-nav-links {
    display: none !important;
  }

  .primary-nav .mobile-nav-controls {
    display: flex !important;
    position: relative;
    z-index: 1;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.chip {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--text-secondary) !important;
  font-weight: 600;
}

.icon-btn {
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.12);
}

body.light .cyber-card,
body.light .experience-card,
body.light .education-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 246, 251, 0.94));
  border-color: var(--border-card);
  box-shadow: 0 22px 50px rgba(30, 41, 59, 0.1), 0 2px 8px rgba(30, 41, 59, 0.05);
}

body.light .portfolio-section:nth-child(even) {
  background: rgba(219, 228, 239, 0.28);
}

body.light .portfolio-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image: linear-gradient(rgba(79, 70, 229, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 70, 229, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  z-index: 0;
}

body.light .portfolio-section > * {
  position: relative;
  z-index: 1;
}

/* Cursor spotlight */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  background: var(--spotlight);
  will-change: mask-image, -webkit-mask-image;
  -webkit-mask-image: radial-gradient(circle 220px at 50% 50%, #fff 100%, transparent 100%);
  mask-image: radial-gradient(circle 220px at 50% 50%, #fff 100%, transparent 100%);
  transform: translate(-9999px, -9999px);
}

@media (hover: none), (pointer: coarse) {
  .spotlight-overlay { display: none; }
}

/* Scroll Snap Container Setup */
.snap-container {
  scroll-snap-type: y mandatory;
  height: 100vh;
  overflow-y: scroll;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.snap-container::-webkit-scrollbar { width: 0; display: none; }

.portfolio-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 1.5rem 3rem;
  position: relative;
}

@media (min-width: 768px) {
  .portfolio-section { padding: 6.5rem 8% 3rem; }
}

/* Cards */
.cyber-card {
  background: var(--surface-1);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.cyber-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 16px 36px -8px rgba(99, 102, 241, 0.15);
}

.project-page {
  max-width: 52rem;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0.5rem 0.5rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
}

.project-heading,
.project-title-row,
.project-video-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.project-heading { margin-bottom: 1.5rem; }
.project-index { color: var(--text-tertiary); font: 600 0.75rem "Manrope", sans-serif; white-space: nowrap; }
.project-index span { color: var(--accent-soft); padding: 0 0.25rem; }

.project-card {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
}

.project-gallery { background: #090a0f; }
.project-gallery-stage { position: relative; aspect-ratio: 16 / 8.5; min-height: 13rem; overflow: hidden; }
.project-gallery-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; }

.gallery-arrow,
.video-close-button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(9, 9, 11, 0.76);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.gallery-arrow { position: absolute; top: 50%; width: 2.6rem; height: 2.6rem; border-radius: 50%; transform: translateY(-50%); font: 400 2rem/1 "Manrope", sans-serif; }
.gallery-arrow:hover, .video-close-button:hover { background: var(--accent-dark); border-color: var(--accent-soft); }
.gallery-arrow:active { transform: translateY(-50%) scale(0.94); }
.gallery-arrow-previous { left: 1rem; }
.gallery-arrow-next { right: 1rem; }

.gallery-counter {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: #f4f4f5;
  background: rgba(9, 9, 11, 0.74);
  font: 600 0.65rem ui-monospace, monospace;
}

.project-gallery-footer { display: flex; min-height: 3rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 1rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.gallery-caption { color: #a1a1aa; font: 500 0.7rem "Manrope", sans-serif; }
.gallery-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 0.45rem; }
.gallery-dot { width: 0.45rem; height: 0.45rem; padding: 0; border: 0; border-radius: 50%; background: #52525b; cursor: pointer; transition: width 160ms ease, background 160ms ease; }
.gallery-dot[aria-current="true"] { width: 1.15rem; border-radius: 1rem; background: #a5b4fc; }

.project-content { padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem; }
.project-title-row { align-items: flex-start; }
.project-kicker { color: var(--mono-eyebrow); font: 700 0.62rem ui-monospace, monospace; letter-spacing: 0.12em; }
.project-title { margin-top: 0.25rem; color: var(--text-primary); font-size: 1.65rem; font-weight: 800; }
.project-subtitle { margin-top: 0.1rem; color: var(--text-tertiary); font-size: 0.82rem; }
.project-status { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.6rem; border: 1px solid var(--border-default); border-radius: 4px; color: var(--text-tertiary); font: 600 0.58rem ui-monospace, monospace; white-space: nowrap; }
.project-status span { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--success); }
.project-description { max-width: 48rem; margin-top: 1rem; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; }
.project-tech-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.project-tech-stack span { padding: 0.38rem 0.6rem; border: 1px solid var(--border-default); border-radius: 4px; color: var(--text-secondary); font: 500 0.68rem ui-monospace, monospace; }
.project-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border-subtle); }
.project-watch-button { display: inline-flex; min-height: 2.8rem; align-items: center; justify-content: center; gap: 0.65rem; padding: 0.7rem 1rem; border: 1px solid var(--accent); border-radius: 5px; color: #fff; background: var(--accent-dark); font: 700 0.78rem "Manrope", sans-serif; cursor: pointer; transition: background 160ms ease, transform 160ms ease; }
.project-watch-button:hover { background: var(--accent); }
.project-watch-button:active { transform: scale(0.98); }
.play-icon { font-size: 0.65rem; }
.project-media-note { color: var(--text-tertiary); font: 500 0.68rem "Manrope", sans-serif; }
.project-media-note span { padding: 0 0.35rem; color: var(--accent-soft); }

.project-video-dialog { width: min(70rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100vh - 2rem); margin: auto; padding: 0; overflow: visible; border: 1px solid var(--border-default); border-radius: 10px; color: var(--text-primary); background: var(--surface-1); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55); }
.project-video-dialog::backdrop { background: rgba(3, 3, 5, 0.82); backdrop-filter: blur(8px); }
.project-video-panel { padding: 1rem; }
.project-video-header { align-items: center; padding: 0 0 1rem; }
.project-video-header h2 { margin-top: 0.2rem; font-size: 1.1rem; font-weight: 700; }
.video-close-button { width: 2.4rem; height: 2.4rem; border-radius: 5px; font: 400 1.7rem/1 "Manrope", sans-serif; }
.project-video-dialog video { display: block; width: 100%; max-height: calc(100vh - 8rem); border-radius: 5px; background: #000; }

@media (max-width: 640px) {
  .project-page { max-height: 84vh; padding-inline: 0; }
  .project-heading { margin-bottom: 1rem; }
  .project-heading h2 { max-width: 16ch; }
  .project-gallery-stage { aspect-ratio: 4 / 3; min-height: 12rem; }
  .gallery-arrow { width: 2.3rem; height: 2.3rem; }
  .gallery-arrow-previous { left: 0.65rem; }
  .gallery-arrow-next { right: 0.65rem; }
  .project-gallery-footer { padding-inline: 0.75rem; }
  .gallery-pagination { gap: 0.35rem; }
  .project-content { padding: 1.25rem 1rem 1.4rem; }
  .project-title-row { flex-direction: column; }
  .project-status { align-self: flex-start; }
  .project-actions { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-arrow, .gallery-dot, .project-watch-button, .video-close-button { transition: none; }
}

/* Typography Gradient Fix */
.text-gradient {
  background: linear-gradient(135deg, var(--gradient-start) 20%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll Fade Animations */
.fade-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.active .fade-content {
  opacity: 1;
  transform: translateY(0);
}

/* Terminal & Skills Grid High-Contrast Formatting */
.terminal-header {
  background: var(--surface-terminal-head);
  border-bottom: 1px solid var(--terminal-border);
}

.terminal-body {
  background: var(--surface-terminal-body);
  color: var(--terminal-text);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

body.light .terminal-header span.text-tertiary {
  color: #334155 !important;
}

body #skills-grid div,
body .terminal-body .text-primary,
body .terminal-body .text-secondary,
body .terminal-body .text-tertiary {
  color: var(--terminal-text) !important;
  font-weight: 500 !important;
}

body.light .terminal-body .text-indigo-400 {
  color: var(--mono-eyebrow) !important;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes blink {
  from, to { background-color: transparent; }
  50% { background-color: var(--accent); }
}

/* Rotating Hero Subtitle */
.rotating-text-wrap {
  display: block;
  min-height: 1.3em;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}
.rotating-text {
  animation: fadeInOut 3s ease-in-out infinite;
}

/* Mobile Nav */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open {
  max-height: 320px;
}

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

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   Experience & Education Section Overhaul
   ========================================================================== */

.experience-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mono-eyebrow);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.experience-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

body:not(.light) .experience-status {
  color: #6ee7b7 !important;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

/* Experience Card */
.experience-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: 24px;
  background: var(--surface-1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--card-shadow);
}

.experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Card Header */
.experience-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem 1.5rem;
}

.experience-date {
  display: inline-block;
  color: var(--mono-eyebrow) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

.experience-role {
  color: var(--text-primary) !important;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.experience-company {
  margin-top: 6px;
  color: var(--text-secondary) !important;
  font-size: 15px;
  font-weight: 600;
}

.experience-company-mark {
  padding: 8px 14px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--mono-eyebrow) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

/* Card Intro */
.experience-intro {
  margin: 0 2.25rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary) !important;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
}

/* Grid Layout */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 2.25rem;
}

.experience-item {
  display: flex;
  gap: 14px;
  padding: 1.5rem 1.25rem 1.5rem 0;
}

.experience-item:nth-child(odd) {
  border-right: 1px solid var(--border-subtle);
  padding-right: 1.75rem;
}

.experience-item:nth-child(even) {
  padding-left: 1.75rem;
}

.experience-item:nth-child(-n + 2) {
  border-bottom: 1px solid var(--border-subtle);
}

.experience-number {
  color: var(--mono-eyebrow) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  padding-top: 2px;
}

.experience-item h4 {
  color: var(--text-primary) !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.experience-item p {
  margin-top: 6px;
  color: var(--text-secondary) !important;
  font-size: 14.5px;
  line-height: 1.6;
}

/* Tech Tags */
.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.experience-tags span {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--chip-text) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.experience-tags span:hover {
  border-color: var(--accent-dark);
  color: var(--text-primary) !important;
}

/* Education Section */
.education-section {
  margin-top: 2.5rem;
}

.education-heading {
  margin-bottom: 1.25rem;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.education-card {
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  background: var(--surface-1);
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

.education-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.education-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.education-year {
  color: var(--text-tertiary) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.education-score {
  color: var(--mono-eyebrow) !important;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.education-card h4 {
  margin-top: 10px;
  color: var(--text-primary) !important;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.education-card p {
  margin-top: 4px;
  color: var(--text-secondary) !important;
  font-size: 14.5px;
  font-weight: 500;
}

/* Responsive Overrides */
@media (max-width: 767px) {
  .experience-status {
    align-self: flex-start;
  }

  .experience-card-header {
    padding: 1.5rem;
  }

  .experience-company-mark {
    display: none;
  }

  .experience-intro {
    margin: 0 1.5rem;
    font-size: 14px;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    margin: 0 1.5rem;
  }

  .experience-item,
  .experience-item:nth-child(odd),
  .experience-item:nth-child(even) {
    border-right: none;
    padding: 1.25rem 0;
  }

  .experience-item:nth-child(-n + 2) {
    border-bottom: none;
  }

  .experience-item:not(:last-child) {
    border-bottom: 1px solid var(--border-subtle);
  }

  .education-grid {
    grid-template-columns: 1fr;
  }
}

body.light .experience-card::before {
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-teal), transparent);
}

body.light .experience-tags span {
  color: var(--chip-text) !important;
  background: #eef3f8;
  border-color: #cbd5e1;
}

body.light .experience-tags span:hover {
  color: var(--accent-dark) !important;
  border-color: var(--accent);
  background: #e7eaff;
}

/* Add to your CSS */
.hamburger-button[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger-button[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-button[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}