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

:root {
  --bg:         #08081a;
  --surface:    #0e0e20;
  --surface-2:  #13132a;
  --border:     #1c1c35;
  --text:       #e8e8f4;
  --text-muted: #6c6c94;
  --accent:     #7c6dfa;
  --accent-2:   #e879a8;
  --gradient:   linear-gradient(135deg, #7c6dfa 0%, #e879a8 100%);
  --glow:       rgba(124, 109, 250, 0.18);
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  20px;
  --ease:       0.2s ease;
  --max-width:  800px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -5%,  rgba(124,109,250,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 92% 92%,  rgba(232,121,168,0.09) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--ease);
}
a:hover { opacity: 0.75; }

strong { color: var(--text); font-weight: 600; }

/* ================================================
   Navigation
   ================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 26, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo:hover { opacity: 1; }

.nav-links { display: flex; gap: 0.2rem; }

.nav-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all var(--ease);
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
  opacity: 1;
}
.nav-link.active { color: var(--text); }

/* ================================================
   Main Layout
   ================================================ */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 7rem;
  animation: fadeUp 0.45s ease forwards;
}

/* ================================================
   Hero — About Page
   ================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.hero-greeting {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.hero-name {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.hero-bio {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.hero-photo { flex-shrink: 0; }

.photo-ring {
  width: 190px;
  height: 190px;
  border-radius: var(--radius-lg);
  background: var(--gradient);
  padding: 2.5px;
  box-shadow: 0 8px 36px rgba(124,109,250,0.28);
}

.photo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 2.5px);
  display: block;
}

/* ================================================
   Tags / Chips
   ================================================ */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.5rem 0;
}

.tag {
  font-size: 0.73rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: all var(--ease);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ================================================
   Social Buttons
   ================================================ */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--ease);
  cursor: pointer;
}
.social-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface-2);
  opacity: 1;
}
.social-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ================================================
   Page Hero (CV, Publications pages)
   ================================================ */
.page-hero { margin-bottom: 3rem; }

.page-hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.page-hero-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ================================================
   Section
   ================================================ */
.page-section { margin-bottom: 3.5rem; }

.section-header { margin-bottom: 1.5rem; }

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

/* ================================================
   Download Button
   ================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity var(--ease), transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 4px 18px rgba(124,109,250,0.28);
  margin-bottom: 3rem;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124,109,250,0.38);
}
.btn-primary svg { width: 15px; height: 15px; }

/* ================================================
   Timeline
   ================================================ */
.timeline {
  position: relative;
  padding-left: 1.75rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(124,109,250,0.5) 15%,
    rgba(232,121,168,0.5) 85%,
    transparent 100%
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 2.25rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.1rem;
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.timeline-year {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.timeline-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.timeline-institution {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  list-style: none;
  padding: 0;
}

.timeline-desc li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.2rem;
  line-height: 1.6;
}

.timeline-desc li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ================================================
   Publications
   ================================================ */
.pub-year-group { margin-bottom: 2.5rem; }

.pub-year-header {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.pub-item {
  margin-bottom: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.pub-item:hover {
  border-color: rgba(124,109,250,0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.pub-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.5;
}
.pub-title a { color: var(--text); }
.pub-title a:hover { color: var(--accent); opacity: 1; }

.pub-authors {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  line-height: 1.5;
}
.pub-authors .me { color: var(--text); font-weight: 500; }

.pub-venue {
  font-size: 0.8125rem;
  color: var(--accent);
  font-style: italic;
}

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

.pub-link {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  transition: all var(--ease);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pub-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}

/* ================================================
   Awards / Simple List
   ================================================ */
.award-list { list-style: none; }

.award-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.award-item:last-child { border-bottom: none; }

.award-year {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  min-width: 2.75rem;
  flex-shrink: 0;
}

.award-text { color: var(--text-muted); line-height: 1.5; }
.award-text strong { color: var(--text); font-weight: 500; }

/* ================================================
   Interest Grid
   ================================================ */
.interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.interest-chip {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--ease);
}
.interest-chip:hover { border-color: var(--accent); color: var(--accent); }

/* ================================================
   Footer
   ================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.footer-inner a { color: var(--text-muted); }
.footer-inner a:hover { color: var(--text); opacity: 1; }
.footer-sep { opacity: 0.3; }

/* ================================================
   Animation
   ================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    order: -1;
  }
  .photo-ring {
    width: 110px;
    height: 110px;
  }
  .hero-name { font-size: 2.25rem; }
  .nav-link  { padding: 0.35rem 0.55rem; font-size: 0.8125rem; }
  .main      { padding: 2.5rem 1.25rem 5rem; }
}
