/* =========================================================
   RESUME — layout only
   Nav is handled entirely by styles.css (shared).
   We just override colors to light theme here.
========================================================= */

/* Light theme overrides for the nav */
body {
  background: #fff;
  color: #111;
}

.nav {
  background: rgba(255,255,255,.85) !important;
  border-bottom: 1px solid rgba(0,0,0,.08) !important;
}
.nav.scrolled {
  background: rgba(255,255,255,.97) !important;
}

/* Logo — use black version */
.logo-mark-white { display: none; }

/* Nav links — dark text */
.nav-links a,
.drop-btn {
  color: #888 !important;
}
.nav-links a:hover,
.drop-btn:hover {
  color: #111 !important;
}

/* Hamburger spans — dark */
.hamburger span {
  background: #111 !important;
}

/* Mobile overlay — white */
@media (max-width: 768px) {
  .nav-links {
    background: #fff !important;
  }
  .nav-main-links a,
  .nav-main-links .drop-btn {
    color: #111 !important;
  }
  .nav-main-links a:hover {
    color: #888 !important;
  }
  .nav-mobile-footer {
    border-top: 1px solid rgba(0,0,0,.08) !important;
  }
  .nav-mobile-email { color: #888 !important; }
  .nav-mobile-email:hover { color: #111 !important; }
  .nav-social a { color: #888 !important; }
  .nav-social a:hover { color: #111 !important; }
  .dropdown-menu a { color: #888 !important; }
  .dropdown-menu a:hover { color: #111 !important; background: rgba(0,0,0,.04) !important; }
  /* Dropdown menu light bg */
  .dropdown.open .dropdown-menu { background: #fff !important; }
}

/* Active link on resume page */
.nav-main-links a[href="resume.html"] {
  color: #111 !important;
  position: relative;
}
.nav-main-links a[href="resume.html"]::after {
  content: '';
  display: block;
  height: 1px;
  background: #111;
  margin-top: 3px;
  border-radius: 1px;
}

/* Scroll spy active — dark underline on light bg */
.nav-main-links a.spy-active,
.drop-btn.spy-active {
  color: #111 !important;
}
.nav-main-links a.spy-active::after,
.drop-btn.spy-active::after {
  background: #111 !important;
}


/* =========================================================
   RESUME PAGE LAYOUT
========================================================= */
:root {
  --text:  #111;
  --muted: #888;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 28px;
}

.grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
}

.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 36px);
  align-self: flex-start;
}

h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -.4px; color: #111; }
.subtitle { font-size: 16px; color: var(--muted); margin-bottom: 22px; }
.contact  { font-size: 14px; color: var(--muted); line-height: 1.65; }

p { color: #444; }

.section { margin-bottom: 56px; }
.section h2 {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.job { padding: 18px 0; border-top: 1px solid #eaeaea; }
.job:first-child { border-top: none; }
.job-header { display: flex; justify-content: space-between; flex-wrap: wrap; margin-bottom: 4px; }
.job-title  { font-weight: 600; font-size: 15px; color: #111; }
.job-meta   { font-size: 13px; color: var(--muted); }
ul  { margin: 8px 0 0; padding-left: 18px; }
li  { font-size: 14px; line-height: 1.5; margin-bottom: 5px; color: #444; }

/* Fade reveal */
.fade { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: 0; }
  .container { padding: 40px 24px; }
}


/* =========================================================
   RESET styles.css overrides that break resume layout
========================================================= */

/* styles.css centers .contact and .about — reset for resume */
.contact {
  text-align: left !important;
  padding: 0 !important;
}

/* styles.css sets large h1/h2 sizes — reset for resume */
h1 {
  font-size: 30px !important;
  letter-spacing: -.4px !important;
  line-height: 1.2 !important;
  margin: 0 0 6px !important;
}

h2 {
  font-size: 12px !important;
  letter-spacing: 1.5px !important;
  margin-bottom: 18px !important;
}

/* styles.css sets large p text — reset */
p {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #444 !important;
}

/* styles.css hero/about padding bleeds in */
.about, .hero, .project {
  display: block !important;
  padding: 0 !important;
  min-height: unset !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Sidebar should be left aligned */
.sidebar, .sidebar * {
  text-align: left !important;
}


/* Push content below sticky nav */
.container {
  padding-top: calc(var(--nav-h) + 40px) !important;
}
