:root {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --border: #e5e7eb;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Overall page layout */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Top navigation */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #020617;
  border-bottom: 1px solid #1f2937;
}

.top-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
}

.brand {
  font-weight: 600;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 1rem;
}

.top-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-nav-links a {
  font-size: 0.85rem;
  text-decoration: none;
  color: #e5e7eb;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #020617;
}

.top-nav-links a:hover {
  border-color: #60a5fa;
  color: #bfdbfe;
}

/* Layout below the top nav */

.page {
  display: flex;
  min-height: calc(100vh - 3rem);
}

/* Sidebar */

.sidebar {
  width: 280px;
  padding: 1.5rem;
  background: #0b1120;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile {
  text-align: left;
}

.profile-img {
  width: 180px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  margin-bottom: 1rem;
  margin: 0 auto 1rem auto; 
  display: block;           
}

.profile-name {
  font-size: 1.4rem;
  margin: 0.2rem 0;
}

.profile-title {
  font-size: 0.9rem;
  margin: 0.3rem 0;
  color: #cbd5f5;
}

.profile-location {
  font-size: 0.85rem;
  color: #9ca3af;
}

.profile-links {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}

.profile-links li {
  margin-bottom: 0.25rem;
}

.profile-links a {
  color: #bfdbfe;
  text-decoration: none;
  font-size: 0.9rem;
}

.profile-links a:hover {
  color: #ffffff;
}

.bio-quote {
  background: #ffffff;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  padding: 1.8rem 2rem;
  margin: 2.8rem auto 3.2rem auto;
  max-width: 85%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);

  font-style: italic;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.85;
  letter-spacing: 0.2px;
  color: #2d3748;
}



/* Sidebar Navigation */

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.main-nav a {
  font-size: 0.8rem;
  text-decoration: none;
  color: #e5e7eb;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #111827;
}

.main-nav a:hover {
  border-color: #60a5fa;
  color: #bfdbfe;
}

/* Content area */

.content {
  flex: 1;
  padding: 2.5rem 3rem;
  background: var(--bg);
}

.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.section h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Publications */

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

.pub-list li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg-alt);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

/* News */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-item {
  background: var(--bg-alt);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 1.25rem 1.25rem 1rem;
}

.news-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.news-title {
  font-size: 1.2rem;
  margin: 0.2rem 0 0.75rem;
}

.news-body p {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.news-figure {
  margin: 0.5rem 0 0.2rem;
}

.news-figure img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.news-figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Research Interests (Single Column) */

/* Make Research section narrower and centered */
#research {
  max-width: 900px;
  margin: 0 0 2.5rem 0; /* no auto-centering */
}

/* Softer indentation for a cleaner modern look */
#research ul {
  padding-left: 1.2rem; /* reduces heavy bullet indent */
}

/* Add more breathing space between bullet points */
#research ul li {
  margin-bottom: 0.35rem;  /* easier reading */
  line-height: 1.65;       /* airy and balanced */
}

/* ========================================= */
/* Projects spacing & readability            */
/* ========================================= */

/* Slightly narrow the projects block (optional, but looks nicer) */
#projects {
  max-width: 1000px;
  margin: 0 0 2.5rem 0;
}

/* Softer indent for bullets */
#projects ul {
  padding-left: 1.2rem;
}

/* More vertical space between projects */
#projects ul li {
  margin-bottom: 1.1rem;   /* increase or decrease this as you like */
  line-height: 1.65;       /* makes long lines less dense */
}

/* Make the "Skills: ..." line feel separate and lighter */
#projects ul li em {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}


/* Footer */

.footer {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* Responsive */

@media (max-width: 900px) {
  .page {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: column;
  }

  .content {
    padding: 1.5rem 1.25rem 2rem;
  }

  .top-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
