

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
}

header {
  background-color: #1e1e1e;
  padding: 1em 0;
  border-bottom: 1px solid #333;
}

.navbar {
  display: flex;
  justify-content: center;
  gap: 2em;
}

.navbar a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5em;
  transition: background-color 0.2s ease;
}

.navbar a:hover {
  background-color: #333;
  border-radius: 5px;
}

main {
  max-width: 800px;
  margin: 2em auto;
  padding: 0 1em;
}

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 2em;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}

.headshot {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #444;
}

.bio h2 {
  margin: 0.5em 0 0.2em;
  font-size: 1.5em;
}

.bio p {
  margin: 0;
  max-width: 500px;
}

.social-links {
  margin-top: 1.5em;
  display: flex;
  gap: 1.5em;
  justify-content: center;
}

.social-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: bold;
}

.social-links a:hover {
  text-decoration: underline;
}

.navbar {
  display: flex;
  justify-content: center;
  gap: 2em;
  position: relative;
  padding-right: 3em; /* to make room for toggle button */
}

#theme-toggle {
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  color: #e0e0e0;
  transition: color 0.3s ease;
}

#theme-toggle:hover {
  color: #aaa;
}

/* Default (dark) styles */
body.dark {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark header {
  background-color: #1e1e1e;
  border-bottom: 1px solid #333;
}

body.dark .navbar a {
  color: #e0e0e0;
}

body.dark .navbar a:hover {
  background-color: #333;
}

/* Light mode overrides */
body.light {
  background-color: #fefefe;
  color: #111;
}

body.light header {
  background-color: #f0f0f0;
  border-bottom: 1px solid #ccc;
}

body.light .navbar a {
  color: #111;
}

body.light .navbar a:hover {
  background-color: #ddd;
}

/* Optional transition */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Style the toggle button */
#theme-toggle {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2em;
  cursor: pointer;
}

.cv-section {
  margin-top: 2em;
}

.cv-section h2 {
  margin-top: 1.5em;
  border-bottom: 1px solid #555;
  padding-bottom: 0.3em;
}

.cv-section h3 {
  margin-top: 1em;
  font-weight: bold;
}

.cv-section ul {
  margin-top: 0.3em;
  padding-left: 1.5em;
  list-style-type: disc;
}

.cv-section a {
  color: #4aa8ff;
  text-decoration: underline;
}


.publications {
  margin-top: 2em;
}

.pub-year {
  text-align: right;
  font-size: 2em;
  font-weight: bold;
  color: #888;
  margin-top: 2em;
  border-bottom: 1px solid #555;
  padding-bottom: 0.2em;
}

.pub-entry {
  margin: 1.5em 0 2em;
  padding-left: 1em;
  border-left: 3px solid #555;
}

.pub-info p {
  margin: 0.3em 0;
}

.pub-title {
  font-weight: bold;
  font-size: 1.1em;
}

.pub-authors u {
  text-decoration: underline;
}

.pub-journal {
  font-style: italic;
  color: #aaa;
}

.pub-buttons {
  margin-top: 0.5em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.research-section {
  margin-top: 2em;
}

.research-section h2 {
  font-size: 1.6em;
  color: #ddd;
  margin-bottom: 0.3em;
  border-bottom: 1px solid #444;
  padding-bottom: 0.2em;
}

.research-section p {
  font-size: 1em;
  margin: 0.5em 0 1em;
}

.research-section ul {
  padding-left: 1.5em;
  list-style-type: disc;
}

.research-section li {
  margin-bottom: 0.3em;
}


.teaching-section {
  margin-top: 2em;
}

.term-list {
  list-style-type: none;
  padding-left: 0;
}

.term-list li {
  margin-bottom: 1em;
}

.teaching-btn {
  margin-left: 1em;
  background-color: #444;
  color: #eee;
  border: none;
  border-radius: 4px;
  padding: 0.3em 0.6em;
  font-size: 0.9em;
  cursor: pointer;
}

.teaching-btn:hover {
  background-color: #666;
}

.teaching-toggle {
  background-color: #1e1e1e;
  padding: 0.8em;
  margin-top: 0.5em;
  border-left: 3px solid #444;
  font-size: 0.95em;
  line-height: 1.4;
}

.hidden {
  display: none;
}


.hidden {
  display: none;
}

/* Theme-specific CSS variables */
body.dark {
  --toggle-bg: #1e1e1e;
  --text-color: #e0e0e0;
  --border-color: #555;

  --button-bg: #444;
  --button-hover: #666;
  --button-text: #eee;
}

body.light {
  --toggle-bg: #f0f0f0;
  --text-color: #111;
  --border-color: #ccc;

  --button-bg: #ddd;
  --button-hover: #bbb;
  --button-text: #000;
}

.cv-toggle,
.pub-toggle,
.teaching-toggle {
  padding: 0.8em;
  margin-top: 0.5em;
  font-size: 0.95em;
  line-height: 1.4;
  border-left: 3px solid var(--border-color);
  background-color: var(--toggle-bg);
  color: var(--text-color);
}

.cv-btn,
.pub-btn,
.teaching-btn {
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 4px;
  padding: 0.3em 0.6em;
  font-size: 0.9em;
  cursor: pointer;
}

.cv-btn:hover,
.pub-btn:hover,
.teaching-btn:hover {
  background-color: var(--button-hover);
}

