body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  display: flex;
  min-height: 100vh;
  color: #333;
}
.emoji-icon {
  width: 24px;
  height: 24px;
  filter: grayscale(100%);
}
/* ---- LIGHT/DARK MODE COLORS ---- */
.theme-toggle {
  position: fixed;
  bottom: 10px;
  left: 20px;
  cursor: pointer;  /* this makes it a hand icon */
  font-size: 20px;
  user-select: none;
  color: #333;
}

.theme-toggle:hover {
  color: #777;
}

body.dark-mode .theme-toggle {
  color: #ccc;
}

body.light-mode {
  background-color: #ffffff;
  color: #333333;
}

body.dark-mode {
  background-color: #121212;
  color: #dddddd;
}

body.dark-mode .sidebar {
  background-color: #1e1e1e;
}

body.light-mode .sidebar {
  background-color: #f5f5f5;
}

.content {
  margin-left: 200px;
  padding: 20px 40px;
  flex: 1;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background-color: #f5f5f5;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  position: fixed;
  height: 100%;
}
.sidebar h2 {
  font-size: 20px;
  margin-top: 0;
}
.sidebar a {
  display: block;
  margin: 10px 0;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  color: #333;
  font-weight: bold;
}
.sidebar a:hover {
  text-decoration: none;
  color: #777;
  font-weight: bold;
}
.github-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  transition: filter 0.3s ease;
}

.github-link:hover .github-icon {
  filter: invert(50%);
}

.linkedin-link:hover .github-icon {
  filter: invert(50%);
}

.cv-link:hover .github-icon {
  filter: invert(50%);
}

.home-link:hover .github-icon {
  filter: invert(50%);
}

body.dark-mode .sidebar a {
  color: #dddddd; /* or any light gray / white */
}
body.dark-mode .sidebar a:hover {
  color: #aaaaaa;
}

body.dark-mode .github-icon {
  filter: invert(100%);
}


/* Main content */
.content {
  margin-left: 200px;
  padding: 20px 40px;
  flex: 1;
}

/* Content styles */
h1 {
  font-size: 32px;
  margin-top: 0;
}
h2 {
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
  margin-top: 30px;
}
.project {
  margin-bottom: 25px;
}
a.doi {
  color: #000000;
  font-weight: bold;
  text-decoration: none;
}
a.doi:hover {
  color: #777;
  color: #000000;
  font-weight: bold;
  text-decoration: none;
}
a.doi:hover {
  color: #777;
  font-weight: bold;
}

/* Icon Link */
a.emoji-link {
  text-decoration: none;
  line-height: 0;           /* remove vertical gap */
  display: inline-block;    /* prevents text-baseline alignment issues */
}

a.emoji-link img:hover {
  opacity: 0.7;
  transition: 0.3s;
}

/* Dark mode */
body.dark-mode a.doi {
  color: #dddddd; /* or any light gray / white */
}
body.dark-mode a.doi:hover {
  color: #aaaaaa;
}

footer {
  margin-top: 40px;
  font-size: 0.9em;
  color: #777;
}

* { box-sizing: border-box; }

.sidebar { overflow-y: auto; }

@media (max-width: 768px) {
  .sidebar {
    width: 160px;          
    padding: 12px;
  }
  .sidebar h2 {            
    font-size: 16px;
  }
  .sidebar a {
    font-size: 14px;       
  }
  .content {
    margin-left: 160px;    
    padding: 16px;
  }
  .theme-toggle {
    left: 12px;            
    bottom: 12px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 120px;          
    padding: 10px;
    font-size: 12px;
  }
  .sidebar a {
    font-size: 12px;
    margin: 8px 0;
    word-break: break-word; 
  }
  .content {
    margin-left: 120px;
    padding: 12px;
  }
}
