/* ====== BASE RESET & TYPOGRAPHY ====== */

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

html {
  scroll-behavior: smooth;
  font-size: 21px;
}

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  background: #f5f7fa;
  padding-top: 52px;
}

a {
  color: #1a6fb5;
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: #0d4f85;
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ====== NAVIGATION TABS ====== */

.tab-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.tab-inner {
  display: flex;
  gap: 6px;
  padding: 10px 0;
}

.tab-link {
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #555;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.tab-link:hover {
  background: #1a6fb5;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(26, 111, 181, 0.25);
}

/* ====== PROFILE HEADER ====== */

.profile {
  background: #fff;
  padding: 60px 0 50px;
  border-bottom: none;
}

.profile-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 48px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-photo {
  flex-shrink: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #e0ecf7, #d6dce5);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h1 {
  font-size: 2.5rem;
  font-weight: 400;
  color: #1a1a2e;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.profile-info .title {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 10px;
}

.profile-info .contact {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 16px;
  font-family: monospace;
  letter-spacing: 0.02em;
}

.profile-info .links {
  font-size: 1.05rem;
}

.profile-info .links a {
  font-weight: 600;
}

.icon-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.icon-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #555;
  font-size: 1.6rem;
  transition: color 0.2s;
}

.icon-links a:hover {
  color: #1a6fb5;
  text-decoration: none;
}

.link-sep {
  color: #ccc;
  font-size: 1rem;
}

/* ====== SECTION HEADINGS ====== */

section {
  background: #fff;
  padding: 44px 40px;
  margin: 16px auto;
  max-width: 1080px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  scroll-margin-top: 64px;
  border-bottom: none;
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 3px solid #1a6fb5;
  display: inline-block;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
}

h3 i {
  color: #1a6fb5;
  margin-right: 6px;
}

/* ====== ABOUT ME ====== */

#about p {
  margin-bottom: 16px;
  color: #444;
}

.interests-education {
  display: flex;
  gap: 40px;
  margin-top: 28px;
}

.interests,
.education {
  flex: 1;
  background: #f8fafb;
  border-radius: 10px;
  padding: 20px 24px;
  border: 1px solid #eaeff4;
}

.interests ul,
.education ul {
  list-style: none;
  margin-top: 12px;
}

.interests li {
  padding: 4px 0;
  position: relative;
  padding-left: 18px;
}

.interests li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1a6fb5;
  font-weight: bold;
}

.education li {
  padding: 5px 0;
}

.muted {
  color: #888;
  font-size: 0.95rem;
}

/* ====== NEWS ====== */

.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-list li {
  padding: 10px 16px;
  border-bottom: 1px solid #f0f2f5;
  border-radius: 8px;
  margin: 0 -16px;
  line-height: 1.7;
  transition: background 0.2s;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list li:hover {
  background: #f8fafb;
}

.news-date {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a6fb5;
}

.news-date::after {
  content: ": ";
}

.news-text {
  font-size: 1rem;
  color: #444;
}

/* ====== EXPERIENCE ====== */

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.experience-item {
  display: flex;
  gap: 32px;
  padding: 28px 16px;
  border-bottom: 1px solid #f0f2f5;
  border-radius: 10px;
  margin: 0 -16px;
  transition: background 0.2s;
  scroll-margin-top: 100px;
}

.experience-item:hover {
  background: #f8fafb;
}

.experience-item:last-child {
  border-bottom: none;
}

.exp-left {
  flex-shrink: 0;
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.exp-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
}

.exp-date {
  font-size: 0.95rem;
  color: #888;
  font-weight: 500;
  line-height: 1.3;
  padding-top: 3px;
}

.exp-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exp-details strong {
  font-size: 1.15rem;
  color: #1a1a2e;
}

.exp-org {
  color: #1a6fb5;
  font-size: 1.05rem;
  font-weight: 500;
}

.exp-location {
  color: #aaa;
  font-size: 0.95rem;
}

.exp-desc {
  margin-top: 8px;
  font-size: 1rem;
  color: #666;
  line-height: 1.65;
}

/* ====== PUBLICATIONS ====== */

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-item {
  display: flex;
  gap: 22px;
  padding: 22px 16px;
  border-radius: 10px;
  transition: background 0.2s, box-shadow 0.2s;
  margin: 0 -16px;
  scroll-margin-top: 100px;
}

.pub-item:hover {
  background: #f8fafb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.pub-thumb {
  flex-shrink: 0;
  width: 240px;
  height: 140px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8ecf1, #dde3ea);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.pub-item:hover .pub-thumb img {
  transform: scale(1.03);
}

.pub-title {
  font-size: 1.12rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
  line-height: 1.45;
}

.pub-authors {
  font-size: 1rem;
  color: #666;
  margin-bottom: 6px;
}

.pub-venue {
  margin-bottom: 10px;
}

.venue-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e8f1fa, #dae8f7);
  color: #1a6fb5;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pub-desc {
  font-size: 0.97rem;
  color: #e67e22;
  line-height: 1.6;
  margin-bottom: 10px;
}

.pub-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pub-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 5px 14px;
  border: 1.5px solid #1a6fb5;
  border-radius: 20px;
  color: #1a6fb5;
  transition: all 0.2s;
}

.pub-links a:hover {
  background: #1a6fb5;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(26, 111, 181, 0.25);
  transform: translateY(-1px);
}

/* ====== FOOTER ====== */

footer {
  padding: 36px 0 40px;
  text-align: center;
  font-size: 0.95rem;
  color: #aaa;
}

footer .visit-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  font-size: 0.85rem;
  color: #bbb;
  background: #f0f2f5;
  padding: 4px 14px;
  border-radius: 16px;
}

footer .visit-counter i {
  font-size: 0.8rem;
}

footer .visit-counter #visit-count {
  font-weight: 600;
  color: #1a6fb5;
}

footer a {
  color: #aaa;
  transition: color 0.15s;
}

footer a:hover {
  color: #1a6fb5;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 640px) {
  html {
    font-size: 17px;
  }

  .profile-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

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

  .profile-photo {
    max-width: 150px;
  }

  .icon-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .interests-education {
    flex-direction: column;
    gap: 16px;
  }

  section {
    margin: 10px 8px;
    padding: 28px 20px;
    border-radius: 10px;
  }

  .experience-item {
    flex-direction: row;
    gap: 20px;
  }

  .exp-left {
    width: 80px;
  }

  .exp-logo {
    width: 48px;
    height: 48px;
  }

  .news-list li {
    padding: 10px 12px;
    margin: 0 -12px;
  }

  .pub-item {
    flex-direction: column;
    padding: 16px 12px;
    margin: 0 -12px;
  }

  .pub-thumb {
    width: 100%;
    height: 180px;
  }
}
