/* Light theme: loaded after all existing stylesheet rules. */
html[data-theme="light"], html[data-theme="light"] body,
html[data-theme="light"] main, html[data-theme="light"] .hero-section,
html[data-theme="light"] .experience-section, html[data-theme="light"] .timeline-section,
html[data-theme="light"] .site-footer {
  background: #f8fafc !important;
  background-image: none !important;
  color: #18212f;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc; --bg-secondary: #edf1f5;
  --card: #ffffff; --card-border: #dce3ec;
  --text: #172033; --text-secondary: #536178;
  --accent: #6d28d9; --accent-hover: #5b21b6;
  --shadow: 0 10px 28px rgba(35,45,66,.07);
}
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] .site-header {
  background: rgba(248,250,252,.94);
  border-bottom: 1px solid #dce3ec;
}
html[data-theme="light"] .logo, html[data-theme="light"] .logo:hover,
html[data-theme="light"] .header-nav a { color: #172033; }
html[data-theme="light"] .header-nav a:hover { color: #6d28d9; }
html[data-theme="light"] .hero-label {
  color: #5b21b6; background: #f0e9fc; border-color: #d6c3f5;
}
html[data-theme="light"] .hero-subtitle,
html[data-theme="light"] .timeline-company { color: #334155; }
html[data-theme="light"] .hero-text,
html[data-theme="light"] .experience-card h3,
html[data-theme="light"] .timeline-content h3,
html[data-theme="light"] .section-title { color: #172033; }
html[data-theme="light"] .hero-text-secondary,
html[data-theme="light"] .experience-card p,
html[data-theme="light"] .timeline-content p,
html[data-theme="light"] .footer-inner,
html[data-theme="light"] .footer-links a { color: #536178; }
html[data-theme="light"] .section-label { color: #64748b; }
html[data-theme="light"] .experience-card,
html[data-theme="light"] .timeline-item,
html[data-theme="light"] .terminal-card {
  background: #fff; border-color: #dce3ec; box-shadow: var(--shadow);
}
html[data-theme="light"] .terminal-header {
  background: #f1f5f9; border-bottom-color: #dce3ec;
}
html[data-theme="light"] .terminal-header span { background: #a7b2c2; }
html[data-theme="light"] .terminal-line { color: #334155; }
html[data-theme="light"] .btn-dark {
  color: #fff !important; background: var(--accent) !important;
}
html[data-theme="light"] .btn-dark:hover { background: var(--accent-hover) !important; }
html[data-theme="light"] .btn-outline-dark {
  color: #172033 !important; background: #fff !important;
  border: 1px solid #cdd6e1 !important;
}
html[data-theme="light"] .btn-outline-dark:hover { background: #edf1f5 !important; }
html[data-theme="light"] .site-footer { border-top: 1px solid #dce3ec; }
html[data-theme="light"] .header-nav .dropdown-menu {
  background: #fff; border-color: #dce3ec;
}
html[data-theme="light"] .header-nav .dropdown-item { color: #172033; }
html[data-theme="light"] .header-nav .dropdown-item:hover { background: #edf1f5; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 1px solid rgba(161,161,170,.35);
  background: transparent; color: var(--text); border-radius: 12px;
  padding: 8px 12px; cursor: pointer; font-size: 14px; line-height: 1.3;
  white-space: nowrap; min-height: 40px;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html[data-theme="light"] .theme-toggle { border-color: #cdd6e1; }
html[data-theme="light"] .theme-toggle:hover { background: #edf1f5; }
@media(max-width:600px) {
  .theme-toggle { margin-top: 4px; }
}
