:root {
  --bg: #1f1f1f;
  --fg: #e0e0e0;
  --accent: #3b82f6;
  --accent-red: #ef4444;
  --card: #2b2b2b;
  --border: #444;
}

body.light {
  --bg: #fafafa;
  --fg: #1a1a1a;
  --card: #ffffff;
  --border: #ddd;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
  display: flex;
  min-height: 100vh;
  transition: all 0.3s ease;
}

/* SIDEBAR */
.sidebar {
  width: 280px;
  background: var(--card);
  padding: 2rem 1rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.profile-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid var(--border);
}

h1 {
  font-size: 1.3rem;
  margin: 0.5rem 0;
}

.subtitle {
  font-size: 0.9rem;
  text-align: center;
  color: #aaa;
  margin-bottom: 1.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.contact-list li {
  margin: 0.4rem 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* MAIN */
.main {
  flex: 1;
  padding: 2rem 3rem;
  transition: background-color 0.4s ease;
}

.topnav {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
}

.nav-links a {
  color: #c4e1f5;
  text-decoration: none;
  margin-right: 1.5rem;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--fg);
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #ccc;
  transition: transform 0.3s ease;
}

#theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  color: var(--accent);
}

/* BIO SECTION */
.bio p {
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.link {
  color: var(--accent);
  text-decoration: none;
}

.link-red {
  color: var(--accent-red);
  text-decoration: none;
}

.link:hover,
.link-red:hover {
  text-decoration: underline;
}

.italic {
  font-style: italic;
}

/* NEWS */
.news h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.news ul {
  list-style: none;
  padding-left: 0;
}

.news ul ul {
  list-style: disc;
  margin-left: 1.5rem;
}

.news li {
  margin: 0.8rem 0;
}
