/* ── Academic Minimalist CSS ── */
:root {
  --bg: #ffffff;
  --text: #121212;
  --text-soft: #424245;
  --text-muted: #86868b;
  --accent: #4834d4;
  --accent-soft: rgba(72, 52, 212, 0.05);
  --border: #e1e4e8;
  --sidebar-w: 260px;
  --container-max: 1100px;
  --tag-bg: #f6f8fa;
  --tag-hover: #e1e4e8;
  
  /* Gradient Palette */
  --grad-paper: linear-gradient(135deg, #6c5ce7, #a29bfe);
  --grad-github: linear-gradient(135deg, #2ecc71, #55efc4);
  --venue-color: #5f27cd;
}

[data-theme="dark"] {
  --bg: #0d1117;
  --text: #c9d1d9;
  --text-soft: #8b949e;
  --text-muted: #6e7681;
  --accent: #58a6ff;
  --accent-soft: rgba(88, 166, 255, 0.1);
  --border: #30363d;
  --tag-bg: #161b22;
  --tag-hover: #21262d;
  --venue-color: #79c0ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

a { color: var(--accent); text-decoration: none; transition: all 0.2s; }
a:hover { opacity: 0.8; }

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.2s;
}
.theme-toggle:hover { transform: scale(1.1); background: var(--tag-hover); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  gap: 5rem;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 4rem;
  height: fit-content;
}

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.name { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.25rem; letter-spacing: -0.02em; }
.title { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 0.25rem; font-weight: 600; }
.affiliation { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2rem; }

.social-links { list-style: none; margin-bottom: 2rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.social-links li { margin-bottom: 0.75rem; font-size: 0.9rem; }
.social-links a { color: var(--text-soft); display: flex; align-items: center; gap: 0.75rem; }
.social-links a:hover { color: var(--accent); transform: translateX(4px); }
.social-links i { width: 1.2rem; text-align: center; color: var(--text-muted); }

/* Main Content */
.main-content { flex: 1; min-width: 0; }

section { margin-bottom: 4rem; }
.section-title {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

p { margin-bottom: 1.2rem; color: var(--text-soft); font-size: 1rem; }

/* Interests Tags */
.interests-list { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; }
.interests-list li {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}
.interests-list li:hover { 
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Publication & Project Cards */
.pub-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.pub-item, .project-item { 
  background: var(--bg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  border-left: 5px solid var(--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.pub-item:hover, .project-item:hover { 
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: var(--accent);
}

.pub-title, .project-name { 
  font-weight: 800; 
  font-size: 1.2rem; 
  display: block; 
  margin-bottom: 0.75rem; 
  color: var(--text);
  line-height: 1.4;
}

.pub-authors { font-size: 0.95rem; color: var(--text-soft); margin-bottom: 0.5rem; }
.pub-authors strong { color: var(--text); }

.pub-venue { 
  font-size: 0.95rem; 
  color: var(--venue-color); 
  font-weight: 700; 
  font-style: italic;
  display: block;
  margin-bottom: 1rem;
}

/* Button Styling (from picture) */
.pub-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.pub-link {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 25px;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pub-link.paper { background: var(--grad-paper); }
.pub-link.github { background: var(--grad-github); }
.pub-link:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 12px rgba(0,0,0,0.15); opacity: 1; }

/* Timeline */
.timeline-item { margin-bottom: 1.5rem; padding: 1.25rem; background: var(--tag-bg); border-radius: 10px; border-left: 3px solid var(--border); }
.timeline-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.timeline-title { font-weight: 800; font-size: 1rem; }
.timeline-date { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; }
.timeline-org { font-size: 0.9rem; color: var(--accent); font-weight: 700; }

/* Responsive */
@media (max-width: 900px) {
  .container { flex-direction: column; padding: 3rem 1.5rem; gap: 3rem; }
  .sidebar { width: 100%; position: static; text-align: center; }
  .avatar { width: 130px; margin: 0 auto 1.5rem; }
  .social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
  .social-links li { margin-bottom: 0; }
  .name { font-size: 1.5rem; }
  .theme-toggle { top: 1rem; right: 1rem; }
}
