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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #333;
  background: #f5f7fa;
}

a { color: #1a5276; text-decoration: none; }
a:hover { color: #2980b9; text-decoration: underline; }

/* Header */
header {
  background: linear-gradient(135deg, #1a5276, #2980b9);
  color: #fff;
  padding: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 600;
}

nav a {
  color: rgba(255,255,255,0.9);
  margin-left: 2rem;
  font-size: 1rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

nav a:hover, nav a.active {
  color: #fff;
  text-decoration: none;
  border-bottom-color: #fff;
}

/* Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  padding: 2.5rem 0 3rem;
}

/* Profile Section */
.profile {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.profile-photo {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  flex-shrink: 0;
  background: #ddd;
}

.profile-info h2 {
  font-size: 1.5rem;
  color: #1a5276;
  margin-bottom: 0.3rem;
}

.profile-info .title {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 1rem;
}

.profile-info .education {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.2rem;
}

/* Section */
section {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

section h2 {
  font-size: 1.3rem;
  color: #1a5276;
  border-bottom: 2px solid #e8eef3;
  padding-bottom: 0.5rem;
  margin-bottom: 1.2rem;
}

section h3 {
  font-size: 1.1rem;
  color: #2c3e50;
  margin: 1.5rem 0 0.8rem;
}

section ul {
  padding-left: 1.5rem;
}

section ul li {
  margin-bottom: 0.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
}

.contact-grid dt {
  font-weight: 600;
  color: #555;
}

.contact-grid dd {
  color: #333;
}

/* Links list */
.links-list li {
  list-style: none;
  padding: 0.3rem 0;
}

.links-list li::before {
  content: "\2192";
  margin-right: 0.5rem;
  color: #2980b9;
}

/* Publication list */
.pub-list {
  list-style: none;
  padding-left: 0;
  counter-reset: pub;
}

.pub-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f0f0f0;
  padding-left: 2.5rem;
  position: relative;
}

.pub-list li::before {
  counter-increment: pub;
  content: "[" counter(pub) "]";
  position: absolute;
  left: 0;
  color: #1a5276;
  font-weight: 600;
  font-size: 0.9rem;
}

.pub-list .pub-title {
  font-weight: 600;
  color: #2c3e50;
}

.pub-list .pub-venue {
  font-style: italic;
  color: #666;
}

.pub-list .pub-year {
  display: inline-block;
  background: #e8eef3;
  color: #1a5276;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 0.3rem;
}

/* Research cards */
.research-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.research-card h3 {
  font-size: 1.15rem;
  color: #1a5276;
  margin-bottom: 0.8rem;
}

.research-card p {
  margin-bottom: 0.6rem;
}

.research-highlight {
  background: #e8f6e8;
  border-left: 3px solid #27ae60;
  padding: 0.5rem 1rem;
  margin: 0.8rem 0;
  border-radius: 0 4px 4px 0;
  font-weight: 500;
  color: #1e7e34;
}

/* Research paper links */
.research-card .paper-links {
  margin-top: 0.8rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.research-card .paper-links li {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.3rem;
}

.research-card .paper-links a {
  color: #1a5276;
  border-bottom: 1px dashed #aaa;
  padding-bottom: 1px;
}

.research-card .paper-links a:hover {
  color: #2980b9;
  border-bottom-style: solid;
  text-decoration: none;
}

/* Research period */
.research-period {
  font-size: 1.2rem;
  color: #1a5276;
  margin: 2rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e8eef3;
}

.research-period:first-child {
  margin-top: 0;
}

.research-period .period-years {
  font-size: 0.9rem;
  color: #888;
  font-weight: 400;
  margin-left: 0.5rem;
}

/* Footer */
footer {
  background: #2c3e50;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

/* View toggle */
.view-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.view-toggle button {
  padding: 0.5rem 1.2rem;
  border: 2px solid #1a5276;
  background: #fff;
  color: #1a5276;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}

.view-toggle button.active {
  background: #1a5276;
  color: #fff;
}

.view-toggle button:hover:not(.active) {
  background: #e8eef3;
}

.year-heading {
  font-size: 1.2rem;
  color: #1a5276;
  border-bottom: 2px solid #e8eef3;
  padding-bottom: 0.4rem;
  margin: 1.5rem 0 0.8rem;
}

.year-heading:first-child {
  margin-top: 0;
}

.pub-type-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.pub-type-tag.conf { background: #dbeafe; color: #1e40af; }
.pub-type-tag.journal { background: #fef3c7; color: #92400e; }
.pub-type-tag.patent { background: #ede9fe; color: #5b21b6; }

#chrono-view { display: none; }
#chrono-view section { margin-bottom: 0; box-shadow: none; padding: 1.5rem 2rem; }
#chrono-view section:last-child { border-radius: 0 0 8px 8px; }
#chrono-view section:first-child { border-radius: 8px 8px 0 0; }
#chrono-view-wrapper {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .profile { flex-direction: column; align-items: center; text-align: center; }
  .profile-photo { width: 150px; height: 180px; }
  header .container { flex-direction: column; gap: 1rem; }
  nav a { margin: 0 0.8rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
