/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #2d3748;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: #ffffff;
}

/* Typography */
h1 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
  color: #1a202c;
}

h2 {
  font-size: 1.5rem;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #1a202c;
}

p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

a:visited {
  color: #7c3aed;
}

/* About section */
.about-section {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.profile-column {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-photo {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #4a5568;
  text-decoration: none;
}

.contact-links a:hover {
  color: #2563eb;
}

.contact-links a:visited {
  color: #4a5568;
}

.contact-links a:visited:hover {
  color: #2563eb;
}

.contact-links i {
  width: 16px;
  text-align: center;
  color: #718096;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

/* Publications */
.pub-legend {
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  background-color: #f7fafc;
  border-left: 3px solid #cbd5e0;
  font-size: 0.85rem;
  color: #4a5568;
}

.paper {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.paper-title a {
  font-size: 1.05rem;
  font-weight: 500;
  color: #dc2626;
  text-decoration: none;
}

.paper-title a:hover {
  color: #b91c1c;
  text-decoration: underline;
}

.paper-authors {
  color: #4a5568;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.paper-venue {
  color: #718096;
  font-size: 0.9rem;
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-highlight {
  font-weight: 600;
  color: #2d3748;
}

.oral-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #dc2626;
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  text-transform: uppercase;
}

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

.code-badge,
.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.code-badge {
  color: #2563eb;
  background-color: #dbeafe;
  border: 1px solid #bfdbfe;
}

.code-badge:hover {
  background-color: #bfdbfe;
  border-color: #93c5fd;
  text-decoration: none;
}

.code-badge:visited {
  color: #2563eb;
}

.project-badge {
  color: #059669;
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
}

.project-badge:hover {
  background-color: #a7f3d0;
  border-color: #6ee7b7;
  text-decoration: none;
}

.project-badge:visited {
  color: #059669;
}

/* Footer */
.footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: #718096;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 1.5rem 1rem;
    font-size: 15px;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
    margin-top: 2.5rem;
  }

  .about-section {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .profile-column {
    align-items: center;
  }

  .profile-photo {
    width: 160px;
    height: 160px;
  }

  .contact-links {
    align-items: center;
  }

  .contact-links a {
    font-size: 0.85rem;
  }
}
