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

:root {
  --accent: #0896c8;
  --accent-dark: #067a9e;
  --bg: #f5f7fa;
  --card-bg: rgba(255, 255, 255, 0.95);
  --text: #2d3436;
  --text-light: #636e72;
  --border: #dfe6e9;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
  --max-width: 900px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-dark);
}

/* ===== Header / Nav ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== Main ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

section {
  margin-bottom: 3rem;
}

/* ===== Profile Section ===== */
.profile {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  animation: fadeInUp 0.6s ease;
}

.profile-photo-wrapper {
  flex-shrink: 0;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

.profile-info h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.profile-info .subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.social-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.social-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ===== Section Headers ===== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ===== Publication Cards ===== */
.pub-year {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1.5rem 0 0.75rem;
}

.pub-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeInUp 0.5s ease both;
}

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

.pub-thumb {
  flex-shrink: 0;
  width: 180px;
  height: auto;
  max-height: 140px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--border);
}

.pub-details {
  flex: 1;
  min-width: 0;
}

.pub-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.pub-title a {
  color: inherit;
}

.pub-title a:hover {
  color: var(--accent);
}

.pub-authors {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.pub-authors .me {
  font-weight: 700;
  color: var(--text);
}

.pub-venue {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

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

.pub-links a {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: #e8f4f8;
  color: var(--accent);
  transition: all 0.2s ease;
}

.pub-links a:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== Experience Section ===== */
.exp-card {
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeInUp 0.5s ease both;
}

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

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
}

.exp-role {
  font-weight: 700;
  font-size: 1rem;
}

.exp-date {
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: nowrap;
}

.exp-org {
  font-size: 0.92rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.exp-desc {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-light);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .social-links {
    justify-content: center;
  }

  .pub-card {
    flex-direction: column;
  }

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

  .exp-header {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .profile-info h1 {
    font-size: 1.6rem;
  }
}
