#main-content { flex: 1; }

:root {
  --gold: #d4a853;
  --gold-light: #f0d68a;
  --gold-dark: #a07830;
  --accent: #60a5fa;
  --surface: #0b0b14;
  --card-bg: #111120;
  --border: #1e1e32;
  --text-muted: #8888a0;
  --header-h: 60px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Glass base ── */
.glass { background: rgba(17,17,32,0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(212,168,83,0.08); }

/* ── Hero ── */
.hero-wrap {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background: linear-gradient(160deg, #08080f 0%, #0c0c1e 40%, #100d20 70%, #0a0a14 100%);
  overflow: hidden;
}
.hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(96,165,250,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(212,168,83,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(212,168,83,0.08); border: 1px solid rgba(212,168,83,0.15);
  padding: 0.4rem 1.2rem; border-radius: 100px;
  font-size: 0.8rem; color: var(--gold-light); letter-spacing: 0.04em;
  margin-bottom: 2rem;
}
.hero-badge::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.2;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #f5f5f7 0%, #c8d6e5 40%, var(--gold-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem); color: var(--text-muted);
  max-width: 640px; margin: 0 auto 2.5rem; line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn { min-width: 160px; }

/* ── Neural decoration ── */
.neural-grid {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1;
}
.neural-grid .dot {
  position: absolute; width: 2px; height: 2px; background: rgba(212,168,83,0.15); border-radius: 50%;
}
.neural-grid .line {
  position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,168,83,0.06), transparent);
}

/* ── Unique scroll animations ── */
.reveal { opacity: 0; }
.reveal.visible { opacity: 1; }

.reveal-about { opacity: 0; transform: translateX(-50px); transition: transform 0.9s cubic-bezier(0.22,1,0.36,1), opacity 0.9s ease; }
.reveal-about.visible { transform: translateX(0); opacity: 1; }
.reveal-about .about-avatar { transition: transform 1.2s cubic-bezier(0.22,1,0.36,1), opacity 1s ease; transform: scale(0.7); opacity: 0; }
.reveal-about.visible .about-avatar { transform: scale(1); opacity: 1; }

.reveal-courses { opacity: 0; transform: scale(0.92) translateY(30px); filter: blur(6px); transition: transform 1s cubic-bezier(0.22,1,0.36,1), opacity 1s ease, filter 1s ease; }
.reveal-courses.visible { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }

.reveal-articles { perspective: 1200px; opacity: 0; transform: rotateY(6deg) translateZ(-30px); transition: transform 1s cubic-bezier(0.22,1,0.36,1), opacity 1s ease; }
.reveal-articles.visible { transform: rotateY(0) translateZ(0); opacity: 1; }

.reveal-cta { opacity: 0; transform: translateY(20px); transition: transform 0.8s cubic-bezier(0.22,1,0.36,1), opacity 0.8s ease; }
.reveal-cta.visible { transform: translateY(0); opacity: 1; }

.reveal-research,
.reveal-pipeline,
.reveal-experience,
.reveal-skills,
.reveal-education {
  opacity: 0; transform: translateY(30px); transition: transform 0.8s cubic-bezier(0.22,1,0.36,1), opacity 0.8s ease;
}
.reveal-research.visible,
.reveal-pipeline.visible,
.reveal-experience.visible,
.reveal-skills.visible,
.reveal-education.visible {
  transform: translateY(0); opacity: 1;
}

.stagger-card { transition-delay: calc(var(--i,0) * 0.1s); }
.reveal-courses.visible .stagger-card,
.reveal-articles.visible .stagger-card { animation: none; }

/* ── Stats ── */
.stats-bar {
  background: var(--card-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 2rem 1rem;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 900px; margin: 0 auto; }
.stat-cell { text-align: center; padding: 0.5rem; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1.2; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ── Sections ── */
.section-wrap { padding: 3rem 1rem; max-width: 1200px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 { font-size: 1.6rem; color: #eee; margin-bottom: 0.3rem; }
.section-head p { color: var(--text-muted); font-size: 0.85rem; max-width: 440px; margin: 0 auto; }
.section-head .gold-line { width: 40px; height: 2px; background: var(--gold); margin: 0.6rem auto; border-radius: 2px; }

/* ── About ── */
.about-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  max-width: 1100px; margin: 3rem auto 0; padding: 0 1.5rem;
}
.about-left { text-align: center; }
.about-avatar {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(212,168,83,0.3); box-shadow: 0 0 40px rgba(212,168,83,0.05);
}
.about-left h3 { font-size: 1.3rem; color: #eee; margin-top: 1rem; }
.about-left .tag { font-size: 0.85rem; color: var(--gold); }
.about-right { text-align: right; }
.about-right p { font-size: 0.92rem; color: #999; line-height: 1.8; margin-bottom: 1rem; }
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1.2rem; }
.expertise-item {
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: #bbb;
  padding: 0.4rem 0.8rem; background: rgba(212,168,83,0.04); border: 1px solid rgba(212,168,83,0.06); border-radius: 8px;
}
.expertise-item .ico { color: var(--gold); font-size: 1rem; }

/* ── Course card (compact + clean) ── */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.c-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  text-align: right; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex; flex-direction: column;
}
.c-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.5); border-color: rgba(212,168,83,0.15); }
.c-card .img-wrap { width: 100%; height: 150px; overflow: hidden; position: relative; background: #0a0a14; }
.c-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.c-card:hover .img-wrap img { transform: scale(1.06); }
.c-card .price-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--gold); padding: 0.15rem 0.7rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; color: #0a0a12;
}
.c-card .body { padding: 0.9rem 0.9rem 0.4rem; flex: 1; }
.c-card .body h3 { font-size: 0.95rem; color: #eee; margin-bottom: 0.3rem; line-height: 1.4; overflow-wrap: break-word; word-break: break-word; }
.c-card .body p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-card .foot { padding: 0.4rem 0.9rem 0.9rem; display: flex; gap: 0.4rem; }
.c-card .foot .btn { flex: 1; text-align: center; font-size: 0.75rem; padding: 0.35rem 0.5rem; }

/* ── Article card (compact + clean) ── */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.a-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  text-align: right; transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.a-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); border-color: rgba(212,168,83,0.1); }
.a-card .img-wrap { width: 100%; height: 140px; overflow: hidden; background: #0a0a14; }
.a-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.a-card:hover .img-wrap img { transform: scale(1.05); }
.a-card .body { padding: 0.9rem; flex: 1; display: flex; flex-direction: column; }
.a-card .body h3 { font-size: 0.9rem; color: #eee; margin-bottom: 0.3rem; line-height: 1.4; overflow-wrap: break-word; word-break: break-word; }
.a-card .body p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.a-card .body .meta { font-size: 0.7rem; color: #555; display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; padding-top: 0.4rem; border-top: 1px solid rgba(255,255,255,0.04); }
.read-more-link { color: var(--gold); font-weight: 600; font-size: 0.75rem; }

/* ── CTA ── */
.cta-strip {
  position: relative; text-align: center; padding: 4rem 1rem; overflow: hidden;
  background: linear-gradient(160deg, #0c0c1e 0%, #111130 50%, #0c0c1e 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-glow {
  position: absolute; top: 50%; left: 50%; width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212,168,83,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-badge { font-size: 2rem; margin-bottom: 0.5rem; }
.cta-strip h2 { font-size: 2rem; color: #eee; margin-bottom: 0.6rem; }
.cta-strip .cta-inner p { color: var(--text-muted); max-width: 480px; margin: 0 auto 1.5rem; font-size: 0.95rem; }
.cta-features {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem;
}
.cta-feature {
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  padding: 0.4rem 0.9rem; border-radius: 100px; font-size: 0.8rem; color: #aaa;
}
.cta-feat-icon { font-size: 0.9rem; }

/* ── Connect strip ── */
.connect-strip {
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  padding: 1.2rem 1rem; border-bottom: 1px solid var(--border);
  background: rgba(17,17,32,0.4);
}
.connect-link {
  color: #666; font-size: 0.82rem; transition: color 0.3s ease; text-decoration: none;
}
.connect-link:hover { color: var(--gold); }
.connect-dot {
  width: 3px; height: 3px; border-radius: 50%; background: rgba(212,168,83,0.3); flex-shrink: 0;
}

/* ── Tips home grid ── */
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* ── Students grid (home) ── */
#studentsGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
#studentsGrid .student-card { background: rgba(20,20,40,0.75); backdrop-filter: blur(8px); border: 1px solid rgba(108,92,231,0.3); border-radius: 24px; overflow: hidden; text-align: center; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
#studentsGrid .student-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(108,92,231,0.3); border-color: #6c5ce7; }
#studentsGrid .student-avatar-wrap { height: 90px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(0,229,255,0.04)); padding-top: 0.8rem; }
#studentsGrid .student-avatar-wrap img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(108,92,231,0.4); }
#studentsGrid .student-avatar-placeholder { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: rgba(108,92,231,0.15); }
#studentsGrid .student-card-body { padding: 0.8rem 0.8rem 1rem; flex: 1; display: flex; flex-direction: column; }
#studentsGrid .student-card-body h3 { color: #fff; font-size: 0.85rem; margin: 0 0 0.4rem; }
#studentsGrid .student-achievement { background: rgba(243,156,18,0.08); border: 1px solid rgba(243,156,18,0.15); border-radius: 6px; padding: 0.3rem 0.5rem; font-size: 0.68rem; color: #f39c12; margin-top: auto; }

/* ── Research Section ── */
.research-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem; max-width: 900px; margin: 0 auto;
}
.research-tag {
  display: inline-block;
  background: rgba(212,168,83,0.08); border: 1px solid rgba(212,168,83,0.15);
  padding: 0.25rem 0.8rem; border-radius: 100px;
  font-size: 0.72rem; color: var(--gold-light); margin-bottom: 1rem;
}
.research-card h3 { font-size: 1.1rem; color: #f0f0f0; margin-bottom: 1rem; line-height: 1.5; }
.research-card p { font-size: 0.88rem; color: #999; line-height: 1.8; margin-bottom: 1.2rem; }
.research-highlights {
  display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0;
}
.research-highlights li {
  font-size: 0.78rem; color: #aaa;
  padding: 0.3rem 0.8rem; background: rgba(96,165,250,0.05);
  border: 1px solid rgba(96,165,250,0.08); border-radius: 8px;
}
.research-highlights li::before { content: "▹ "; color: var(--accent); }

/* ── Pipeline Section ── */
.pipeline-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  max-width: 1000px; margin: 0 auto;
}
.pipeline-step {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.5rem; text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.pipeline-step:hover { transform: translateY(-3px); border-color: rgba(96,165,250,0.2); }
.pipeline-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(212,168,83,0.1); border: 1px solid rgba(212,168,83,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.8rem;
  font-size: 0.85rem; font-weight: 700; color: var(--gold);
}
.pipeline-step h4 { font-size: 0.9rem; color: #eee; margin-bottom: 0.5rem; }
.pipeline-step p { font-size: 0.78rem; color: #888; line-height: 1.6; }

/* ── Experience Section ── */
.timeline { max-width: 750px; margin: 0 auto; }
.timeline-item {
  position: relative; padding: 0 0 2rem 2rem;
  border-left: 2px solid rgba(212,168,83,0.15);
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -5px; top: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--card-bg);
}
.timeline-date {
  font-size: 0.75rem; color: var(--gold); font-weight: 600; margin-bottom: 0.3rem;
}
.timeline-item h3 { font-size: 1rem; color: #eee; margin-bottom: 0.15rem; }
.timeline-org { font-size: 0.82rem; color: var(--accent); margin-bottom: 0.5rem; }
.timeline-item p { font-size: 0.82rem; color: #888; line-height: 1.7; }

/* ── Skills Section ── */
.skills-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  max-width: 1000px; margin: 0 auto;
}
.skill-cat {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.5rem;
}
.skill-cat h4 {
  font-size: 0.85rem; color: var(--gold); margin-bottom: 0.8rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag {
  font-size: 0.75rem; color: #bbb;
  padding: 0.25rem 0.6rem; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 6px;
}

/* ── Education Section ── */
.edu-grid { max-width: 650px; margin: 0 auto; }
.edu-item {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.2rem 1.5rem; margin-bottom: 0.8rem;
}
.edu-item:last-child { margin-bottom: 0; }
.edu-date { font-size: 0.75rem; color: var(--gold); font-weight: 600; margin-bottom: 0.2rem; }
.edu-item h3 { font-size: 0.95rem; color: #eee; margin-bottom: 0.15rem; }
.edu-org { font-size: 0.82rem; color: var(--accent); margin-bottom: 0.3rem; }
.edu-item p { font-size: 0.8rem; color: #888; line-height: 1.6; }
.edu-certs {
  margin-top: 0.8rem;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem 1.2rem;
}
.edu-certs p { font-size: 0.8rem; color: #888; line-height: 1.6; margin: 0; }

/* ── PhD search banner ── */
.phd-banner {
  display: block; text-align: center;
  background: rgba(96,165,250,0.05); border: 1px solid rgba(96,165,250,0.12);
  border-radius: 12px; padding: 0.6rem 1.2rem; margin-bottom: 1.5rem;
  font-size: 0.85rem; color: var(--accent); max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  #studentsGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .about-right { text-align: center; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (max-width: 640px) {
  .hero-wrap { min-height: 80vh; padding: 5rem 1rem 3rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .stat-num { font-size: 1.5rem; }
  .course-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  #studentsGrid { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
  .expertise-grid { grid-template-columns: 1fr; }
  .section-wrap { padding: 2rem 0.8rem; }
  .pipeline-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .reveal-articles { perspective: none; transform: none; }
  .reveal-cta { transform: none; }
  .reveal-research,
  .reveal-pipeline,
  .reveal-experience,
  .reveal-skills,
  .reveal-education { transform: none; }
}
