/* Dark mode styles */
html.dark, body.dark {
  background: #18181a !important;
  color: #f7f8fa !important;
}

html.dark body, body.dark {
  background: #18181a !important;
  color: #f7f8fa !important;
}

html.dark .appbar, body.dark .appbar {
  background: #232326 !important;
  color: #f7f8fa !important;
  border-bottom: 1px solid #333;
}

html.dark .container, body.dark .container,
html.dark .resume-section, body.dark .resume-section {
  background: #232326 !important;
  color: #f7f8fa !important;
}

html.dark .resume-item, body.dark .resume-item {
  background: #232326 !important;
  color: #f7f8fa !important;
  border-color: #333 !important;
}

html.dark .resume-item.work {
  --resume-bg: #1e2a36;
  border-left: 6px solid #4fa3ff;
}
html.dark .resume-item.projects {
  --resume-bg: #2a2620;
  border-left: 6px solid #ffd166;
}
html.dark .resume-item.education {
  --resume-bg: #1e2a22;
  border-left: 6px solid #7be495;
}
html.dark .resume-item.skills {
  --resume-bg: #2a1e2a;
  border-left: 6px solid #c792ea;
}

html.dark .footer, body.dark .footer {
  background: #232326 !important;
  color: #aaa !important;
  border-top: 1px solid #333;
}

html.dark a, body.dark a {
  color: #4fa3ff;
}
html.dark a:hover, body.dark a:hover {
  color: #90caf9;
  border-bottom: 1.5px solid #90caf9;
}

html.dark .btn, body.dark .btn {
  background: #4fa3ff;
  color: #18181a;
}
html.dark .btn:hover, body.dark .btn:focus {
  background: #90caf9;
  color: #18181a;
}
/* Flatter, sleeker base */
html {
  overflow-x: hidden;
  background: #f7f8fa;
  scroll-behavior: smooth;
}

body {
  line-height: 1.8;
  color: #222;
  font-weight: 400;
  font-size: 19px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f7f8fa;
  margin: 0;
  padding: 0;
  letter-spacing: 0.01em;
}

a {
  color: #0071e3;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.4,0,.2,1), border-bottom 0.18s cubic-bezier(.4,0,.2,1);
  border-bottom: 1.5px solid transparent;
}

a:hover {
  color: #005bb5;
  border-bottom: 1.5px solid #005bb5;
  background: none;
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #18181a;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
}

.btn {
  font-size: 1rem;
  border-radius: 999px;
  padding: 10px 32px;
  background: #0071e3;
  color: #fff;
  border: none;
  font-weight: 600;
  transition: background 0.18s cubic-bezier(.4,0,.2,1), color 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
  box-shadow: none;
  cursor: pointer;
}

.btn:hover, .btn:focus {
  background: #005bb5;
  color: #fff;
  outline: none;
}

input, textarea, select {
  border-radius: 10px;
  border: 1px solid #e5e5ea;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.18s cubic-bezier(.4,0,.2,1);
}

input:focus, textarea:focus, select:focus {
  border-color: #0071e3;
  outline: none;
}

.container {
  max-width: 1100px;
  margin: 56px auto 0 auto;
  padding: 0 24px;
}

.card-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}

.site-section {
  padding: 2.5em 0;
  background: #fff;
  border-radius: 22px;
  margin-bottom: 48px;
  box-shadow: none;
  border: 1px solid #e5e5ea;
}

.section-title, .site-section-heading {
  font-size: 2.7rem;
  font-weight: 900;
  color: #18181a;
  margin-bottom: 1.2em;
  letter-spacing: 0.01em;
  border: none;
  background: none;
  padding: 0;
}

.site-footer, .footer {
  padding: 2em 0;
  background: #fff;
  color: #888;
  border-top: 1px solid #e5e5ea;
  text-align: center;
  font-size: 1.08rem;
  margin-top: 56px;
  margin-bottom: 24px;
}

.site-footer a, .footer a {
  color: #0071e3;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}

.site-footer a:hover, .footer a:hover {
  color: #005bb5;
  border-bottom: 1px solid #005bb5;
}

img, .img-fluid {
  border-radius: 18px;
  box-shadow: none;
  max-width: 100%;
  height: auto;
}

::-moz-selection {
  background: #0071e3;
  color: #fff;
}

::selection {
  background: #0071e3;
  color: #fff;
}

/* Dark mode styles */
:root.dark {
  --bg: #18181a;
  --text: #f7f8fa;
  --muted: #b3b3b3;
  --border: #33343a;
  --accent: #23232a;
  --primary: #7ab8ff;
  --primary-hover: #4a90e2;
}
:root.dark body, :root.dark .resume-item {
  background: var(--bg);
  color: var(--text);
}
:root.dark .resume-item {
  background: #23232a;
  border-color: #33343a;
}
:root.dark .resume-section h3, :root.dark .section-title {
  color: var(--primary);
}
:root.dark .appbar, :root.dark .container, :root.dark .footer {
  background: var(--bg);
  color: var(--text);
}
:root.dark .appbar-link {
  color: var(--primary);
}
:root.dark .appbar-link:hover {
  color: var(--primary-hover);
  background: #23232a;
}
:root.dark .resume-download {
  background: var(--primary);
  color: #18181a;
}
:root.dark .resume-download:hover {
  background: var(--primary-hover);
  color: #fff;
}

.appbar {
  background: #fff;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1), background 0.2s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.appbar-spacer {
  height: 60px;
  width: 100%;
  display: block;
}
}

body.scrolled .appbar {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  background: #fff;
  transform: translateY(0);
}

body .appbar {
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.2s cubic-bezier(.4,0,.2,1), background 0.2s cubic-bezier(.4,0,.2,1);
}

/* Resume page enhancements */
.resume-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  margin-top: 32px;
}
.resume-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0;
}
.resume-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 32px;
  background: linear-gradient(90deg, #0071e3 60%, #005bb5 100%);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,113,227,0.08);
  border: none;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
}
.resume-download:hover {
  background: linear-gradient(90deg, #005bb5 60%, #0071e3 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,113,227,0.16);
}
.resume-download.btn {
  background: linear-gradient(90deg, #0071e3 60%, #005bb5 100%);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,113,227,0.08);
  border: none;
  padding: 12px 32px;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.resume-download.btn:hover {
  background: linear-gradient(90deg, #005bb5 60%, #0071e3 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,113,227,0.16);
}
#resume-search-bar {
  margin: 0 0 28px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}
#resume-search {
  padding: 10px 18px;
  font-size: 1.13rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 6px rgba(0,113,227,0.04);
}
#resume-search:focus {
  border-color: #0071e3;
  box-shadow: 0 2px 12px rgba(0,113,227,0.10);
  outline: none;
}
.resume-section {
  margin-bottom: 40px;
  background: #f9f9fa;
  border-radius: 18px;
  padding: 24px 24px 12px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid #e5e5ea;
}
.resume-section h3 {
  color: #0071e3;
  margin-bottom: 16px;
  font-size: 1.35rem;
  font-weight: 800;
}
.resume-item {
  background: var(--resume-bg, #fff);
  border: 1px solid #e5e5ea;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  font-size: 1.08rem;
  color: #222;
  box-shadow: 0 1px 6px rgba(0,0,0,0.03);
  transition: background 0.18s, box-shadow 0.18s;
}
.resume-item.work {
  --resume-bg: #eaf6ff;
  border-left: 6px solid #0071e3;
}
.resume-item.projects {
  --resume-bg: #f6f7fa;
  border-left: 6px solid #ffb300;
}
.resume-item.education {
  --resume-bg: #f0f7e8;
  border-left: 6px solid #34a853;
}
.resume-item.skills {
  --resume-bg: #f7eaf6;
  border-left: 6px solid #a259c4;
}
.resume-highlight {
  background: #ffe066;
  color: #222;
  border-radius: 4px;
  padding: 0 2px;
}
@media (max-width: 700px) {
  .resume-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .resume-section {
    padding: 12px 6px 6px 6px;
  }
}