:root {
  --text-color: #2c3e50;
  --bg-color: #ffffff;
  --link-color: #0056b3;
  --link-hover: #003d82;
  --me-color: #111111;
  --meta-color: #666666;
  --border-color: #e2e8f0;
  --accent-color: #0f172a;
  --tag-bg: #f1f5f9;
  --tag-color: #334155;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  color: var(--accent-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.subsection-title {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: 1.2rem;
  color: #334155;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Header */
header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 3rem;
}

.header-content {
  max-width: 500px;
}

.profile-pic {
  width: 130px;
  height: 130px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header .subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.3rem;
}

header .affiliation {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-links a {
  background: var(--tag-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.contact-links a:hover {
  background: #e2e8f0;
  text-decoration: none;
}

/* Research Interests Tags */
.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background-color: var(--tag-bg);
  color: var(--tag-color);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.notes-entry {
  margin-top: 1rem;
}

.notes-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: #f8fafc;
  color: #334155;
}

.notes-card:hover {
  background-color: #eef2f7;
  color: #0f172a;
  text-decoration: none;
}

.notes-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  background-color: #ffffff;
}

.notes-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notes-card strong {
  display: block;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.3;
}

.notes-card span span {
  display: block;
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.4;
}

.me {
  font-weight: 600;
  color: var(--me-color);
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
  text-decoration-thickness: 2px;
}

.venue {
  font-style: italic;
  color: #475569;
}

/* Publications List */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pub-item {
  display: flex;
  gap: 1.2rem;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.pub-item:hover {
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

.pub-meta {
  flex: 0 0 100px;
  padding-top: 0.1rem;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-align: center;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Custom badge colors for conferences */
.badge-top { background-color: #16a34a; } /* Green for Top conferences */

.pub-content {
  flex: 1;
}

.pub-content strong {
  font-weight: 600;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.3;
  display: block;
  margin-bottom: 0;
}

.pub-links {
  margin-top: 0.4rem;
}

.link-btn {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--link-color);
  margin-right: 0.4rem;
}

/* Timeline List (Experience & Education) */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.timeline-item {
  display: flex;
  gap: 1.2rem;
}

.timeline-meta {
  flex: 0 0 140px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--meta-color);
  padding-top: 0.1rem;
}

.timeline-content {
  flex: 1;
}

.timeline-content strong {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
  display: block;
}

.timeline-content p {
  margin-top: 0.3rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #475569;
}

/* Bullet list */
.bullet-list {
  padding-left: 1.2rem;
  color: #334155;
}

.bullet-list li {
  margin-bottom: 0.6rem;
}

.bullet-list strong {
  color: #0f172a;
  font-weight: 600;
}

footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .contact-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  .interest-tags {
    justify-content: center;
  }
  .pub-item, .timeline-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  .pub-meta, .timeline-meta {
    flex: none;
  }
  .pub-item {
    padding: 0.8rem 0;
    border: none;
  }
  .pub-item:hover {
    background-color: transparent;
    border-color: transparent;
  }
}
