:root {
  --primary:      #1a365d;
  --accent:       #2b6cb0;
  --accent-light: #ebf4ff;
  --bg:           #eef2f7;
  --card-bg:      #ffffff;
  --text:         #2d3748;
  --muted:        #718096;
  --border:       #e2e8f0;
  --radius:       12px;
  --shadow:       0 2px 16px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 6px 28px rgba(0, 0, 0, 0.13);
}

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

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── NAV ─────────────────────────────────────────── */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 8%;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary) !important;
  letter-spacing: -0.02em;
  text-decoration: none !important;
}

.top-nav nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.top-nav nav a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

.top-nav nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ── LAYOUT ───────────────────────────────────────── */
.container {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 36px;
  max-width: 1080px;
  margin: 40px auto;
  padding: 0 24px;
  align-items: start;
}

/* ── SIDEBAR CARD ─────────────────────────────────── */
.profile-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 26px;
  text-align: center;
  position: sticky;
  top: 82px;
}

.profile-img {
  width: 155px;
  height: 155px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent-light);
  outline: 2px solid var(--accent);
  margin-bottom: 18px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.profile-card h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.info {
  text-align: left;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text);
}

.info-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── CONTENT SECTIONS ─────────────────────────────── */
.content section {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 34px;
  margin-bottom: 24px;
}

.content h2 {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-light);
}

#about p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
}

/* ── RESEARCH + EDUCATION ROW ─────────────────────── */
.research-education-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 0;
}

.research-education-row section {
  margin-bottom: 0;
}

/* ── TAGS ─────────────────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid #bee3f8;
  line-height: 1.4;
}

/* ── TIMELINE ─────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 22px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding-left: 16px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -18px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--card-bg);
  outline: 2px solid var(--accent);
}

.timeline-content {
  font-size: 0.875rem;
  line-height: 1.5;
}

.timeline-content strong {
  font-weight: 600;
  color: var(--primary);
}

.timeline-meta {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 3px;
}

/* ── PUBLICATIONS ─────────────────────────────────── */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pub-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.pub-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.pub-number {
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pub-body {
  flex: 1;
}

.pub-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
  margin-bottom: 5px;
  line-height: 1.45;
}

.pub-authors {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 5px;
  line-height: 1.55;
}

.pub-venue {
  font-size: 0.82rem;
  color: var(--text);
}

.pub-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

.pub-badge.submitted {
  background: #fff8e1;
  color: #92660a;
  border: 1px solid #f6d860;
}

/* ── AWARDS ───────────────────────────────────────── */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef9f0 100%);
  border: 1px solid #f6e3a0;
  border-left: 4px solid #d4a017;
  border-radius: 8px;
  padding: 14px 18px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.award-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.award-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.award-body {
  flex: 1;
}

.award-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.award-org {
  font-size: 0.8rem;
  color: var(--muted);
}

.award-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: #92660a;
  background: #fff3cd;
  border: 1px solid #f6d860;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── COLLABORATORS ────────────────────────────────── */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.collab-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 18px 20px;
  text-decoration: none !important;
  transition: box-shadow 0.2s, transform 0.2s;
}

.collab-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.collab-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid var(--accent-light);
  outline: 2px solid var(--accent);
  margin-bottom: 14px;
}

.collab-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.collab-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
  line-height: 1.3;
}

.collab-affil {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.collab-scholar {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid #bee3f8;
  border-radius: 999px;
  padding: 3px 10px;
}

/* ── CONTACT ──────────────────────────────────────── */
#contact p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ── FOOTER ───────────────────────────────────────── */
footer {
  text-align: center;
  padding: 26px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  background: var(--card-bg);
  margin-top: 20px;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }

  .profile-card {
    position: static;
  }

  .research-education-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 5%;
  }

  .top-nav nav {
    gap: 14px;
  }

  .content section {
    padding: 22px 18px;
  }

  .container {
    padding: 0 14px;
    margin: 24px auto;
  }
}
