/* ============================================================
   sections.css — styles for all page sections
   ============================================================ */

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 62px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -300px; right: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 156, 246, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

[data-theme="light"] #hero::before {
  background: radial-gradient(circle, rgba(43, 94, 167, 0.07) 0%, transparent 65%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 72px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 10px;
  color: var(--accent);
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero-tagline {
  font-size: 15px;
  color: var(--text);
  max-width: 420px;
  line-height: 1.85;
  margin-bottom: 32px;
  opacity: 0.85;
}

.hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Circular photo */
.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--accent), 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: box-shadow var(--transition);
}

[data-theme="light"] .hero-photo {
  box-shadow: 0 0 0 3px var(--accent), 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Social icon row */
.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s;
  color: var(--muted);
  text-decoration: none;
}

.social-icons a:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-2px);
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

/* ── ABOUT ── */
#about {
  background: var(--bg2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.9;
}

.about-text p:last-of-type {
  margin-bottom: 0;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  padding: 22px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-number {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

/* ── EXPERIENCE ── */
#experience {
  background: var(--bg);
}

.timeline {
  position: relative;
}

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

.timeline-item {
  padding: 0 0 44px 36px;
  position: relative;
}

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

.timeline-dot {
  position: absolute;
  left: -5px; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  transition: border-color var(--transition);
}

.timeline-date {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.org-logo-circle {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px;
}

.org-logo-circle img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.timeline-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.2px;
}

.timeline-company {
  font-size: 13px;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* ── EDUCATION ── */
#education {
  background: var(--bg2);
}

.edu-grid {
  display: grid;
  gap: 20px;
}

.edu-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.edu-logo-wrap {
  width: 72px; height: 72px;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 6px;
}

.edu-logo-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.edu-degree {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}

.edu-school {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 4px;
}

.edu-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.edu-thesis {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}

/* ── PROJECTS ── */
#projects {
  background: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.project-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.project-card:hover::before {
  opacity: 1;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.project-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.2px;
}

.project-stars,
.project-forks {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.project-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.lang-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3572A5;
}

/* ── AWARDS ── */
#awards {
  background: var(--bg2);
}

.awards-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.award-card {
  padding: 26px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.award-year {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.award-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.award-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── PUBLICATIONS ── */
#publications {
  background: var(--bg);
}

.pub-list {
  display: grid;
  gap: 0;
}

.pub-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.pub-item:first-child {
  border-top: 1px solid var(--border);
}

.pub-year-badge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  padding: 3px 8px;
  flex-shrink: 0;
  margin-top: 2px;
  min-width: 42px;
  text-align: center;
}

.pub-body {
  flex: 1;
}

.pub-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 4px;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

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

.pub-authors {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 4px;
}

.pub-venue-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

.pub-citations {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  font-style: normal;
}

.pub-citations svg {
  flex-shrink: 0;
}

.pub-scholar-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pub-scholar-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  transition: all 0.2s;
  letter-spacing: 0.2px;
}

.pub-scholar-cta a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91,156,246,0.3);
}

[data-theme="light"] .pub-scholar-cta a:hover {
  box-shadow: 0 4px 16px rgba(43,94,167,0.25);
}

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-family: var(--serif);
  color: var(--text);
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 24px;
  }

  .hero-photo {
    width: 160px; height: 160px;
    order: -1;
  }

  .hero-text h1 {
    white-space: normal;
    font-size: clamp(32px, 8vw, 48px);
  }

  .about-grid,
  .awards-list,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 28px 24px;
  }
}
