:root {
  --bg-color: #000000;
  --surface-color: #111111;
  --surface-alt: #0a0a0a;
  --text-primary: #ffffff;
  --text-body: #e0e0e0;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --accent-blue: #4a90d9;
  --accent-hover: #7eb8f7;
  --highlight-gold: #f0c040;
  --border-soft: #222222;
  --border-hard: #333333;
  --status-success: #40d090;
  --status-warning: #e07040;
}

:root.light-mode, body.light-mode {
  --bg-color: #F5F5F5;
  --surface-color: #FFFFFF;
  --surface-alt: #E8E8E8;
  --text-primary: #000000;
  --text-body: #111111;
  --text-secondary: #333333;
  --text-muted: #555555;
  --border-soft: #CCCCCC;
  --border-hard: #999999;
}

body {
  background: var(--bg-color);
  color: var(--text-body);
  font-size: 1.125rem !important; /* 18px */
  padding-bottom: 80px; /* space for bottom nav */
  transition: background-color 0.3s, color 0.3s;
  margin: 0;
  min-height: 100vh;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem) !important; }

/* Top Navigation */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s, border-color 0.3s;
}

.site-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.8rem;
  color: var(--text-primary);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.icon-btn:hover, .icon-btn.active {
  color: var(--accent-blue);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--surface-color);
  border-top: 1px solid var(--border-hard);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  transition: background-color 0.3s, border-color 0.3s;
}

.bottom-nav a {
  flex: 1;
  height: 100%;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.2s, color 0.2s;
}
.bottom-nav a:hover {
  background-color: var(--surface-alt);
}

.bottom-nav a.active, .bottom-nav a:hover {
  color: var(--accent-blue);
}

/* Resume Reading Section */
.resume-section { max-width: 900px; margin: 0 auto 40px; padding: 0 28px; display: none; }
.resume-card { background: var(--surface-color); border: 1px solid var(--accent-blue); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; text-decoration: none; transition: transform 0.2s; }
.resume-card:hover { transform: translateY(-2px); }
.resume-card h3 { font-size: 1.4rem; margin-bottom: 8px; font-family: 'Cormorant Garamond', serif; color: var(--text-primary); }
.resume-card p { color: var(--text-secondary); margin: 0 0 16px 0; font-size: 0.9rem; font-family: 'Inter', sans-serif;}

/* Progress Bar */
.progress-container {
  height: 4px;
  background: var(--surface-alt);
  border-radius: 2px;
  overflow: hidden;
  margin-top: auto; /* Push to bottom of card */
  margin-bottom: -10px; /* Offset card padding */
}
.progress-bar {
  height: 100%;
  background: var(--accent-blue);
  width: 0%;
  transition: width 0.3s;
}

.card { display: flex; flex-direction: column; overflow: hidden; }

/* Heading Bookmarks */
.heading-bookmark-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8em;
  cursor: pointer;
  margin-left: 12px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  padding: 4px;
}
.heading-bookmark-btn:hover, .heading-bookmark-btn.active {
  color: var(--accent-blue);
}
.bookmark-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}