/* ─── DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root {
  --bg:       #020816;
  --bg2:      #050d1e;
  --cyan:     #00d4ff;
  --cyan2:    #0ea5e9;
  --violet:   #7c3aed;
  --violet2:  #a78bfa;
  --amber:    #f59e0b;
  --emerald:  #10b981;
  --red:      #ef4444;
  --white:    #f1f5f9;
  --muted:    #64748b;
  --muted2:   #334155;
  --card:     rgba(5, 14, 35, 0.92);
  --border:   rgba(0, 212, 255, 0.12);
  --border2:  rgba(255,255,255,0.06);
  --glow-c:   rgba(0, 212, 255, 0.25);
  --glow-v:   rgba(124, 58, 237, 0.25);
}
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: auto; }
section { scroll-margin-top: 72px; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ───────────────────────────── */
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.3); border-radius:3px; }

/* ── NAV ─────────────────────────────────── */
nav {
  position: fixed; top:0; width:100%; z-index:200;
  display: flex; align-items:center; justify-content:space-between;
  padding: 1rem 3rem;
  background: rgba(2,8,22,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
nav .logo {
  font-size:.85rem; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color: var(--cyan);
  font-family:'JetBrains Mono',monospace;
  text-decoration:none;
}
nav ul { list-style:none; display:flex; gap:2rem; align-items:center; }
nav ul a {
  color: var(--muted); text-decoration:none;
  font-size:.78rem; letter-spacing:.08em; text-transform:uppercase;
  transition:color .2s;
}
nav ul a:hover, nav ul a.active { color: var(--cyan); }
.nav-cta {
  font-size:.75rem; padding:.45rem 1.1rem;
  border: 1px solid rgba(0,212,255,.4);
  border-radius:6px; color: var(--cyan) !important;
  transition: background .2s !important;
}
.nav-cta:hover { background:rgba(0,212,255,.1) !important; }

/* ── PAGE HERO (inner pages) ─────────────── */
.page-hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,.05) 0%, transparent 60%);
  border-bottom: 1px solid var(--border2);
}
.page-hero .eyebrow {
  font-family:'JetBrains Mono',monospace;
  font-size:.65rem; letter-spacing:.25em; color: var(--cyan);
  text-transform:uppercase; margin-bottom:1rem;
  display:flex; align-items:center; gap:.7rem; justify-content:center;
}
.page-hero .eyebrow::before, .page-hero .eyebrow::after {
  content:''; width:30px; height:1px; background:var(--cyan); opacity:.5;
}
.page-hero h1 {
  font-size:clamp(2rem,5vw,3.5rem);
  font-weight:900; letter-spacing:-.03em; line-height:1.1;
  background: linear-gradient(135deg,#ffffff 0%,#bfdbfe 50%,#c4b5fd 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  margin-bottom:.8rem;
}
.page-hero p {
  color:#94a3b8; max-width:560px; margin:0 auto; line-height:1.7; font-size:.92rem;
}
.glow-line-hero {
  width:60px; height:2px; margin:1.2rem auto 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius:1px;
}

/* ── HERO (index only) ───────────────────── */
#hero {
  position:relative; width:100%; height:100vh;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
#sphere-canvas {
  position:absolute; inset:0; width:100%; height:100%;
}
.hero-content {
  position:relative; z-index:10;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  pointer-events:none; padding:0 2rem;
}
.hero-eyebrow {
  font-family:'JetBrains Mono',monospace;
  font-size:.72rem; letter-spacing:.25em; color: var(--cyan);
  text-transform:uppercase; margin-bottom:1.4rem;
  display:flex; align-items:center; gap:.7rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content:''; width:40px; height:1px; background:var(--cyan); opacity:.5;
}
h1.hero-name {
  font-size: clamp(3rem,8vw,6.5rem);
  font-weight:900; line-height:1; letter-spacing:-.03em;
  background: linear-gradient(135deg,#ffffff 0%,#bfdbfe 45%,#c4b5fd 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  margin-bottom:1.2rem;
}
.hero-title {
  font-size: clamp(.9rem,2vw,1.15rem);
  color:#94a3b8; line-height:1.7; max-width:580px;
  margin-bottom:2.5rem;
}
.hero-title strong { color: var(--white); }
.hero-badges {
  display:flex; flex-wrap:wrap; gap:.6rem; justify-content:center;
  pointer-events:all;
}
.badge {
  font-size:.7rem; padding:.35rem .85rem; border-radius:100px;
  letter-spacing:.06em; font-weight:600;
  border: 1px solid rgba(0,212,255,.25);
  background: rgba(0,212,255,.06);
  color: #93c5fd;
}
.scroll-indicator {
  position:absolute; bottom:2rem; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:.5rem;
  color: var(--muted); font-size:.65rem; letter-spacing:.15em;
  text-transform:uppercase; z-index:10;
  animation: bob 2.5s ease-in-out infinite;
}
@keyframes bob {
  0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)}
}

/* ── SECTION SHELL ───────────────────────── */
section { position:relative; }
.section-inner {
  max-width:1100px; margin:0 auto; padding:6rem 2rem;
}
.section-header {
  display:flex; flex-direction:column; align-items:center; text-align:center;
  margin-bottom:3.5rem;
}
.eyebrow {
  font-family:'JetBrains Mono',monospace;
  font-size:.65rem; letter-spacing:.2em; color: var(--cyan);
  text-transform:uppercase; margin-bottom:.7rem;
}
.section-header h2 {
  font-size:clamp(1.8rem,3.5vw,2.6rem);
  font-weight:800; letter-spacing:-.025em; line-height:1.15;
}
.section-header p {
  color: var(--muted); max-width:520px; line-height:1.7;
  font-size:.92rem; margin-top:.8rem;
}
.glow-line {
  width:60px; height:2px; margin:.9rem auto 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius:1px;
}

/* ── ABOUT STRIP ─────────────────────────── */
#about { background: var(--bg2); border-top:1px solid var(--border2); border-bottom:1px solid var(--border2); }
.about-grid {
  display:grid; grid-template-columns:260px 1fr; gap:4rem; align-items:center;
}
@media(max-width:700px){ .about-grid{grid-template-columns:1fr;} }
.about-photo-wrap { position:relative; }
.about-photo {
  width:100%; border-radius:16px; object-fit:cover;
  border:1px solid rgba(0,212,255,.2);
  box-shadow: 0 0 40px rgba(0,212,255,.1), 0 0 80px rgba(124,58,237,.1);
  display:block;
}
.photo-placeholder {
  width:100%; aspect-ratio:1; border-radius:16px;
  background: linear-gradient(135deg, rgba(0,212,255,.08), rgba(124,58,237,.08));
  border:1px solid var(--border); display:flex; align-items:center;
  justify-content:center; font-size:4rem;
}
.about-text .tag-line {
  font-family:'JetBrains Mono',monospace; font-size:.65rem;
  letter-spacing:.15em; color: var(--cyan); text-transform:uppercase;
  margin-bottom:.8rem;
}
.about-text h2 {
  font-size:1.9rem; font-weight:800; letter-spacing:-.02em; margin-bottom:1.1rem;
}
.about-text p {
  color:#94a3b8; line-height:1.8; font-size:.9rem; margin-bottom:.8rem;
}
.stat-strip {
  display:flex; gap:2.5rem; margin-top:1.8rem; flex-wrap:wrap;
}
.stat { display:flex; flex-direction:column; }
.stat .num {
  font-size:1.9rem; font-weight:900; line-height:1;
  background: linear-gradient(135deg, var(--cyan), var(--violet2));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.stat .lbl { font-size:.65rem; color: var(--muted); letter-spacing:.1em; text-transform:uppercase; margin-top:.2rem; }
.lang-row { display:flex; gap:.5rem; flex-wrap:wrap; margin-top:1rem; }
.lang-pill {
  font-size:.7rem; padding:.25rem .7rem; border-radius:100px;
  background: rgba(124,58,237,.12); border:1px solid rgba(124,58,237,.25);
  color: var(--violet2);
}
.resume-btn {
  display:inline-flex; align-items:center; gap:.5rem;
  margin-top:1.5rem; padding:.65rem 1.4rem; border-radius:8px;
  background: rgba(0,212,255,.08); border:1px solid rgba(0,212,255,.3);
  color: var(--cyan); font-size:.8rem; font-weight:600;
  text-decoration:none; letter-spacing:.05em; transition:all .2s;
}
.resume-btn:hover { background: rgba(0,212,255,.16); box-shadow:0 0 20px rgba(0,212,255,.15); }

/* ── RESEARCH TIMELINE ───────────────────── */
.timeline { position:relative; padding-left:1.5rem; }
.timeline::before {
  content:''; position:absolute; left:0; top:0; bottom:0; width:1px;
  background: linear-gradient(to bottom, transparent, var(--cyan), transparent);
}
.tl-item {
  position:relative; margin-bottom:2.8rem; padding-left:2rem;
}
.tl-item::before {
  content:''; position:absolute; left:-0.45rem; top:.45rem;
  width:10px; height:10px; border-radius:50%;
  background: var(--cyan); box-shadow:0 0 12px var(--cyan);
}
.tl-meta {
  display:flex; align-items:center; gap:.8rem; flex-wrap:wrap;
  margin-bottom:.4rem;
}
.tl-date {
  font-family:'JetBrains Mono',monospace; font-size:.65rem;
  color: var(--cyan); letter-spacing:.08em;
}
.tl-org {
  font-size:.72rem; color: var(--muted); letter-spacing:.04em;
}
.tl-tag {
  font-size:.62rem; padding:.15rem .55rem; border-radius:100px;
  font-weight:600; text-transform:uppercase; letter-spacing:.06em;
}
.tag-neuro    { background:rgba(0,212,255,.1);  color:var(--cyan);    border:1px solid rgba(0,212,255,.25); }
.tag-ai       { background:rgba(124,58,237,.12); color:var(--violet2); border:1px solid rgba(124,58,237,.25); }
.tag-clinical { background:rgba(16,185,129,.1);  color:var(--emerald); border:1px solid rgba(16,185,129,.25); }
.tag-field    { background:rgba(245,158,11,.1);  color:var(--amber);   border:1px solid rgba(245,158,11,.25); }
.tag-music    { background:rgba(236,72,153,.1);  color:#f9a8d4;        border:1px solid rgba(236,72,153,.25); }
.tag-genomics { background:rgba(0,212,255,.08);  color:#67e8f9;        border:1px solid rgba(6,182,212,.3); }
.tl-role { font-size:1.05rem; font-weight:700; letter-spacing:-.01em; margin-bottom:.4rem; }
.tl-body { color:#94a3b8; font-size:.85rem; line-height:1.75; }
.tl-bullets {
  list-style:none; margin-top:.6rem; display:flex; flex-direction:column; gap:.35rem;
}
.tl-bullets li::before { content:'→ '; color: var(--cyan); font-size:.8em; }
.tl-bullets li { color:#94a3b8; font-size:.83rem; line-height:1.65; }

/* ── PUBLICATIONS ────────────────────────── */
.pub-list { display:flex; flex-direction:column; gap:1.2rem; }
.pub-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius:14px; padding:1.5rem 1.8rem;
  display:grid; grid-template-columns:auto 1fr; gap:1.2rem;
  align-items:start; transition:border-color .25s;
}
.pub-card:hover { border-color: rgba(0,212,255,.25); }
.pub-num {
  font-family:'JetBrains Mono',monospace; font-size:.7rem;
  color: var(--muted); padding-top:.1rem; min-width:20px;
}
.pub-content { display:flex; flex-direction:column; gap:.5rem; }
.pub-title {
  font-size:.95rem; font-weight:700; line-height:1.45; color: var(--white);
}
.pub-meta {
  display:flex; align-items:center; gap:.8rem; flex-wrap:wrap;
}
.pub-authors { font-size:.78rem; color: var(--muted); font-style:italic; }
.pub-venue { font-size:.75rem; color:#94a3b8; }
.pub-status {
  font-size:.65rem; padding:.2rem .65rem; border-radius:100px;
  font-weight:700; letter-spacing:.06em; text-transform:uppercase;
}
.status-review    { background:rgba(245,158,11,.12); color:var(--amber);   border:1px solid rgba(245,158,11,.3); }
.status-prep      { background:rgba(0,212,255,.08);  color:var(--cyan);    border:1px solid rgba(0,212,255,.2); }
.status-submitted { background:rgba(16,185,129,.1);  color:var(--emerald); border:1px solid rgba(16,185,129,.25); }
.status-abstract  { background:rgba(124,58,237,.1);  color:var(--violet2); border:1px solid rgba(124,58,237,.25); }
.pub-card a.doi-link {
  font-size:.72rem; color: var(--cyan); text-decoration:none; opacity:.7; transition:opacity .2s;
}
.pub-card a.doi-link:hover { opacity:1; }

/* ── PROJECTS ────────────────────────────── */
.projects-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:1.4rem;
}
.proj-card {
  background: var(--card); border:1px solid var(--border2);
  border-radius:18px; padding:1.8rem; cursor:pointer;
  transition:transform .25s, border-color .25s, box-shadow .25s;
  position:relative; overflow:hidden;
  text-decoration:none; color:inherit; display:flex; flex-direction:column;
}
.proj-card::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 0% 0%, var(--proj-glow, rgba(0,212,255,.15)) 0%, transparent 65%);
  opacity:0; transition:opacity .3s;
}
.proj-card:hover::before { opacity:1; }
.proj-card:hover {
  transform:translateY(-5px);
  border-color: rgba(0,212,255,.3);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 30px rgba(0,212,255,.08);
}
.proj-header {
  display:flex; align-items:flex-start; justify-content:space-between;
  margin-bottom:1rem;
}
.proj-icon {
  width:46px; height:46px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; font-size:1.3rem;
}
.proj-link-icon { color: var(--muted); font-size:1rem; transition:color .2s; }
.proj-card:hover .proj-link-icon { color: var(--cyan); }
.proj-card h3 { font-size:1.05rem; font-weight:700; margin-bottom:.4rem; }
.proj-card p { font-size:.83rem; color:#94a3b8; line-height:1.7; flex:1; }
.proj-footer {
  display:flex; flex-wrap:wrap; gap:.4rem; margin-top:1.2rem;
}
.chip {
  font-size:.65rem; padding:.2rem .6rem; border-radius:100px;
  border:1px solid rgba(255,255,255,.1); color: var(--muted);
  letter-spacing:.04em;
}
.proj-card.featured {
  grid-column: 1 / -1;
  display:grid; grid-template-columns:1fr 1fr; gap:2rem;
  padding:2.2rem 2.5rem; align-items:start;
}
@media(max-width:700px){ .proj-card.featured { grid-template-columns:1fr; } }
.proj-card.featured .proj-body { display:flex; flex-direction:column; height:100%; }
.proj-card.featured .proj-visual {
  background:rgba(0,212,255,.04); border-radius:12px; border:1px solid var(--border2);
  padding:1.5rem; font-size:.8rem; color:#94a3b8; line-height:1.8;
  font-family:'JetBrains Mono',monospace;
}

/* ── AWARDS ──────────────────────────────── */
.awards-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1.1rem;
}
.award-card {
  background: var(--card); border:1px solid var(--border2);
  border-radius:12px; padding:1.3rem 1.5rem;
  display:flex; align-items:flex-start; gap:1rem;
  transition:border-color .2s;
}
.award-card:hover { border-color:rgba(0,212,255,.2); }
.award-icon { font-size:1.4rem; flex-shrink:0; margin-top:.1rem; }
.award-title { font-size:.88rem; font-weight:700; margin-bottom:.2rem; }
.award-sub { font-size:.75rem; color: var(--muted); line-height:1.5; }
.award-year {
  font-family:'JetBrains Mono',monospace; font-size:.62rem;
  color: var(--cyan); margin-top:.3rem; display:block;
}

/* ── SKILLS ──────────────────────────────── */
.skills-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:1.4rem;
}
.skill-group {
  background: var(--card); border:1px solid var(--border2);
  border-radius:14px; padding:1.5rem;
}
.skill-group h4 {
  font-size:.75rem; letter-spacing:.12em; text-transform:uppercase;
  color: var(--cyan); margin-bottom:1rem; font-family:'JetBrains Mono',monospace;
}
.skill-pills { display:flex; flex-wrap:wrap; gap:.5rem; }
.sk {
  font-size:.72rem; padding:.28rem .7rem; border-radius:100px;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08);
  color:#94a3b8;
}
.sk.hot {
  background:rgba(0,212,255,.07); border-color:rgba(0,212,255,.2); color:var(--cyan);
}

/* ── EXTRAS / ACTIVITIES ─────────────────── */
.extras-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.1rem;
}
.extra-card {
  background: var(--card); border:1px solid var(--border2);
  border-radius:12px; padding:1.3rem 1.5rem;
  display:flex; align-items:flex-start; gap:.9rem;
  transition:border-color .2s;
}
.extra-card:hover { border-color:rgba(0,212,255,.18); }
.extra-icon { font-size:1.3rem; flex-shrink:0; margin-top:.1rem; }
.extra-title { font-size:.88rem; font-weight:700; margin-bottom:.2rem; }
.extra-sub { font-size:.75rem; color: var(--muted); line-height:1.5; }

/* ── CONTACT ─────────────────────────────── */
#contact {
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,.04) 0%, transparent 60%);
  border-top:1px solid var(--border2);
}
.contact-inner {
  max-width:700px; margin:0 auto; padding:6rem 2rem;
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
.contact-inner h2 {
  font-size:clamp(1.8rem,3.5vw,2.5rem); font-weight:800; letter-spacing:-.025em;
  margin-bottom:1rem;
}
.contact-inner p { color:#94a3b8; line-height:1.75; max-width:460px; font-size:.92rem; margin-bottom:2rem; }
.contact-links { display:flex; gap:1rem; flex-wrap:wrap; justify-content:center; }
.contact-btn {
  padding:.7rem 1.5rem; border-radius:8px;
  font-size:.82rem; font-weight:600; text-decoration:none; letter-spacing:.04em;
  transition:all .2s;
}
.contact-btn.primary {
  background:rgba(0,212,255,.12); border:1px solid rgba(0,212,255,.4);
  color: var(--cyan);
}
.contact-btn.primary:hover { background:rgba(0,212,255,.2); box-shadow:0 0 30px rgba(0,212,255,.2); }
.contact-btn.secondary {
  background:transparent; border:1px solid rgba(255,255,255,.1); color:#94a3b8;
}
.contact-btn.secondary:hover { border-color:rgba(255,255,255,.25); color: var(--white); }

/* ── FOOTER ──────────────────────────────── */
footer {
  border-top:1px solid var(--border2);
  padding:2rem 3rem;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:1rem;
}
footer .copy { font-size:.75rem; color: var(--muted); font-family:'JetBrains Mono',monospace; }
footer .f-links { display:flex; gap:1.5rem; }
footer .f-links a {
  font-size:.75rem; color: var(--muted); text-decoration:none; transition:color .2s;
}
footer .f-links a:hover { color: var(--cyan); }

/* ── MODAL ───────────────────────────────── */
.overlay {
  position:fixed; inset:0;
  background:rgba(0,0,0,.8); backdrop-filter:blur(10px);
  z-index:500; display:none; align-items:center; justify-content:center;
  padding:2rem;
}
.overlay.open { display:flex; animation:fade-in .2s ease; }
@keyframes fade-in { from{opacity:0;transform:scale(.97)} to{opacity:1;transform:scale(1)} }
.modal-box {
  background:#080f24; border:1px solid rgba(0,212,255,.25);
  border-radius:20px; max-width:700px; width:100%;
  max-height:88vh; overflow-y:auto; padding:2.5rem;
  position:relative;
}
.modal-close {
  position:absolute; top:1.2rem; right:1.4rem;
  background:none; border:none; color: var(--muted);
  font-size:1.5rem; cursor:pointer; transition:color .2s; line-height:1;
}
.modal-close:hover { color: var(--white); }
.modal-eyebrow {
  font-family:'JetBrains Mono',monospace; font-size:.65rem;
  color: var(--cyan); letter-spacing:.15em; text-transform:uppercase; margin-bottom:.5rem;
}
.modal-box h2 { font-size:1.5rem; font-weight:800; letter-spacing:-.02em; margin-bottom:1.5rem; }
.modal-body { font-size:.87rem; color:#94a3b8; line-height:1.8; }
.modal-body h4 { color: var(--white); font-size:.9rem; margin:1.2rem 0 .4rem; }
.modal-body ul { padding-left:1.2rem; }
.modal-body ul li { margin-bottom:.35rem; }
.modal-body a { color: var(--cyan); text-decoration:none; }
.modal-body a:hover { text-decoration:underline; }
.modal-pills { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.2rem; }
.modal-pill {
  font-size:.72rem; padding:.28rem .75rem; border-radius:100px;
  background:rgba(0,212,255,.08); border:1px solid rgba(0,212,255,.2); color:#93c5fd;
}

/* ── INDEX NAV CARDS ─────────────────────── */
.nav-cards {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1.2rem; margin-top:2.5rem;
}
.nav-card {
  display:flex; align-items:center; gap:1.2rem;
  background: var(--card); border:1px solid var(--border2);
  border-radius:16px; padding:1.5rem 1.8rem;
  text-decoration:none; color:inherit;
  transition:border-color .25s, transform .25s;
}
.nav-card:hover {
  border-color: rgba(0,212,255,.3);
  transform:translateY(-3px);
}
.nav-card-icon {
  width:48px; height:48px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:1.4rem;
}
.nav-card h3 { font-size:.95rem; font-weight:700; margin-bottom:.25rem; }
.nav-card p { font-size:.78rem; color: var(--muted); line-height:1.5; }
.nav-card .arrow {
  margin-left:auto; color: var(--muted); font-size:1.1rem;
  transition:color .2s, transform .2s; flex-shrink:0;
}
.nav-card:hover .arrow { color: var(--cyan); transform:translateX(3px); }

/* ─── PUBLICATION CARD ACTIONS ───────────────────────────────────────────── */
.pub-desc {
  font-size:.78rem; color:#475569; line-height:1.65; margin-top:.4rem;
}
.pub-actions {
  display:flex; align-items:center; gap:.6rem; margin-top:.9rem; flex-wrap:wrap;
}
.pub-btn-primary {
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.4rem 1rem; border-radius:7px; font-size:.74rem; font-weight:600;
  background: rgba(0,212,255,.12); border:1px solid rgba(0,212,255,.35);
  color: var(--cyan); text-decoration:none; letter-spacing:.04em;
  transition:background .2s, box-shadow .2s;
}
.pub-btn-primary:hover {
  background: rgba(0,212,255,.22);
  box-shadow: 0 0 16px rgba(0,212,255,.2);
}
.pub-btn-secondary {
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.4rem 1rem; border-radius:7px; font-size:.74rem; font-weight:600;
  background: transparent; border:1px solid rgba(255,255,255,.1);
  color:#94a3b8; text-decoration:none; letter-spacing:.04em;
  transition:border-color .2s, color .2s;
}
.pub-btn-secondary:hover { border-color:rgba(0,212,255,.3); color: var(--cyan); }
.pub-btn-ghost {
  font-size:.72rem; color: var(--muted2); font-style:italic;
  padding:.4rem 0; letter-spacing:.02em;
}
.pub-card-highlight {
  border-color: rgba(0,212,255,.2) !important;
  background: rgba(0,212,255,.03) !important;
}

/* ─── TAG COLORS ─────────────────────────────────────────────────────────── */
.tag-genomics { background:rgba(16,185,129,.1); color:var(--emerald); border:1px solid rgba(16,185,129,.25); }

/* ─── PROJECT CARD ACTIONS ──────────────────────────────────────────── */
.proj-actions {
  display:flex; align-items:center; gap:.55rem; margin-top:1rem; margin-bottom:.3rem; flex-wrap:wrap;
}
.proj-btn {
  display:inline-flex; align-items:center; gap:.3rem;
  padding:.38rem .95rem; border-radius:7px; font-size:.73rem; font-weight:600;
  text-decoration:none; letter-spacing:.04em; transition:all .2s; cursor:pointer;
  border:none; font-family:inherit;
}
.proj-btn.primary {
  background:rgba(0,212,255,.1); border:1px solid rgba(0,212,255,.35); color:var(--cyan);
}
.proj-btn.primary:hover { background:rgba(0,212,255,.2); box-shadow:0 0 14px rgba(0,212,255,.18); }
.proj-btn.secondary {
  background:transparent; border:1px solid rgba(255,255,255,.1); color:#94a3b8;
}
.proj-btn.secondary:hover { border-color:rgba(0,212,255,.25); color:var(--cyan); }

/* ─── PDF EMBED (modals + about page) ──────────────────────────────── */
.pdf-embed-wrap {
  border-radius:10px; overflow:hidden; border:1px solid var(--border2);
  margin-top:1.1rem; background:rgba(0,212,255,.02); position:relative;
}
.pdf-embed { display:block; width:100%; height:480px; border:none; }
.pdf-embed-label {
  font-size:.65rem; color:var(--muted); letter-spacing:.1em; text-transform:uppercase;
  font-family:'JetBrains Mono',monospace; margin-bottom:.4rem; display:block;
}

/* ─── CV PREVIEW PANEL ──────────────────────────────────────────────── */
.cv-toggle-row { display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; margin-top:1.5rem; }
.cv-preview-toggle {
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.5rem 1.1rem; border-radius:8px;
  background:transparent; border:1px solid rgba(255,255,255,.1);
  color:#94a3b8; font-size:.78rem; font-weight:600; cursor:pointer;
  transition:all .2s; font-family:inherit;
}
.cv-preview-toggle:hover, .cv-preview-toggle.open { border-color:rgba(0,212,255,.3); color:var(--cyan); }
.cv-preview-panel {
  display:none; margin-top:1rem;
  border-radius:14px; overflow:hidden; border:1px solid rgba(0,212,255,.15);
}
.cv-preview-panel.open { display:block; animation:fade-in .2s ease; }
.cv-preview-panel iframe { display:block; width:100%; height:650px; border:none; }

/* ─── MODAL PDF VIEWER ──────────────────────────────────────────────── */
.modal-pdf-wrap {
  border-radius:10px; overflow:hidden; border:1px solid rgba(0,212,255,.15);
  margin-top:1rem; background:#020816;
}
.modal-pdf-wrap iframe { display:block; width:100%; height:420px; border:none; }

/* ─── LIGHTBOX ───────────────────────────────────────────────────── */
.lb-overlay {
  position:fixed; inset:0;
  background:rgba(0,5,18,.97);
  backdrop-filter:blur(20px) saturate(1.5);
  z-index:2000; display:none; align-items:center; justify-content:center;
  flex-direction:column; padding:1.2rem;
}
.lb-overlay.open { display:flex; animation:lb-appear .25s cubic-bezier(.16,1,.3,1); }
@keyframes lb-appear {
  from { opacity:0; transform:scale(.94) translateY(12px); }
  to   { opacity:1; transform:scale(1)  translateY(0); }
}
.lb-bar {
  width:100%; max-width:1060px; display:flex; align-items:center;
  justify-content:space-between; margin-bottom:.75rem;
}
.lb-left { display:flex; align-items:center; gap:.9rem; }
.lb-dot { width:8px; height:8px; border-radius:50%; background:var(--cyan); box-shadow:0 0 8px var(--cyan); animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.lb-title {
  font-family:'JetBrains Mono',monospace; font-size:.72rem; color:var(--cyan);
  letter-spacing:.12em; text-transform:uppercase;
}
.lb-close {
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
  border-radius:8px; color:#94a3b8; font-size:.78rem; cursor:pointer;
  padding:.4rem .85rem; transition:all .2s; line-height:1.2;
  font-family:'JetBrains Mono',monospace; letter-spacing:.08em;
}
.lb-close:hover { background:rgba(255,255,255,.12); color:#fff; border-color:rgba(0,212,255,.4); }
.lb-body {
  width:100%; max-width:1060px; height:82vh;
  border-radius:16px; overflow:hidden;
  border:1px solid rgba(0,212,255,.2);
  box-shadow: 0 0 0 1px rgba(0,212,255,.06), 0 40px 120px rgba(0,0,0,.8), 0 0 60px rgba(0,212,255,.06);
  background:#06090f; position:relative;
}
.lb-body::before {
  content:''; position:absolute; inset:0; border-radius:16px;
  background:linear-gradient(135deg,rgba(0,212,255,.04) 0%,transparent 50%);
  pointer-events:none; z-index:1;
}
.lb-body iframe { width:100%; height:100%; border:none; display:block; position:relative; z-index:0; }
.lb-body video  { width:100%; height:100%; object-fit:contain; display:block; background:#000; }

/* ─── NAV GITHUB LINK ─────────────────────────────────────────────── */
.nav-github { color:#94a3b8 !important; font-size:.78rem; }
.nav-github:hover { color:var(--cyan) !important; }

/* ─── PRINCETON TIGER LOGO ────────────────────────────────────────── */
.tiger-logo {
  position:fixed; bottom:1.6rem; right:1.6rem; z-index:400;
  width:54px; height:54px; border-radius:50%; cursor:pointer;
  display:flex; align-items:center; justify-content:center; font-size:1.6rem;
  background:radial-gradient(circle at 35% 30%, #ff9d2e, #e8740c);
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 8px 24px rgba(232,116,12,.4), 0 0 0 0 rgba(232,116,12,.5);
  transition:transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  animation:tiger-breathe 3.5s ease-in-out infinite;
  user-select:none;
}
.tiger-logo:hover { transform:scale(1.12) rotate(-6deg); box-shadow:0 10px 30px rgba(232,116,12,.6); }
.tiger-logo.roar { animation:tiger-shake .5s; }
@keyframes tiger-breathe {
  0%,100%{ box-shadow:0 8px 24px rgba(232,116,12,.4), 0 0 0 0 rgba(232,116,12,.45); }
  50%    { box-shadow:0 8px 28px rgba(232,116,12,.55), 0 0 0 10px rgba(232,116,12,0); }
}
@keyframes tiger-shake {
  0%,100%{transform:rotate(0)} 20%{transform:rotate(-14deg) scale(1.15)}
  40%{transform:rotate(12deg) scale(1.15)} 60%{transform:rotate(-8deg) scale(1.1)} 80%{transform:rotate(6deg)}
}
.tiger-bubble {
  position:fixed; bottom:5.4rem; right:1.6rem; z-index:400;
  background:#0a0f1f; border:1px solid rgba(232,116,12,.4);
  color:#fff; font-size:.78rem; font-weight:600; letter-spacing:.02em;
  padding:.55rem .9rem; border-radius:12px 12px 2px 12px;
  box-shadow:0 10px 30px rgba(0,0,0,.5);
  opacity:0; transform:translateY(8px) scale(.9); transform-origin:bottom right;
  pointer-events:none; transition:opacity .25s, transform .25s; white-space:nowrap;
}
.tiger-bubble.show { opacity:1; transform:translateY(0) scale(1); }
.tiger-stripe {
  position:fixed; z-index:399; width:7px; height:18px; border-radius:3px;
  pointer-events:none; will-change:transform,opacity;
}
@media(max-width:600px){ .tiger-logo{ width:46px; height:46px; font-size:1.3rem; bottom:1rem; right:1rem; } }

/* ─── SCROLL PROGRESS BAR ─────────────────────────────────────────── */
.scroll-prog {
  position:fixed; top:0; left:0; height:2px; width:0; z-index:300;
  background:linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow:0 0 10px rgba(0,212,255,.5); transition:width .08s linear;
}

/* ─── SCROLL REVEAL MOTION ────────────────────────────────────────── */
.reveal { opacity:0; transform:translateY(26px); }
.reveal.in {
  opacity:1; transform:none;
  transition:opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1 !important; transform:none !important; }
}

/* ─── CARD HOVER SHINE ────────────────────────────────────────────── */
.proj-card, .award-card, .skill-group, .extra-card, .nav-card { position:relative; }
.proj-card::after, .nav-card::after {
  content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(115deg, transparent 30%, rgba(255,255,255,.05) 50%, transparent 70%);
  background-size:200% 100%; background-position:200% 0; opacity:0;
  transition:opacity .3s;
}
.proj-card:hover::after, .nav-card:hover::after {
  opacity:1; animation:shine 1.1s ease forwards;
}
@keyframes shine { to { background-position:-40% 0; } }

/* equal-height project cards: push footer to bottom */
.proj-card > .proj-footer { margin-top:auto; }

/* ─── ZEBRA INLINE VIDEO FEATURE ──────────────────────────────────── */
.zebra-feature { cursor:pointer; }
.zebra-video-wrap {
  position:relative; border-radius:14px; overflow:hidden; cursor:pointer;
  border:1px solid rgba(245,158,11,.2);
  box-shadow:0 18px 50px rgba(0,0,0,.5), 0 0 40px rgba(245,158,11,.06);
  align-self:stretch; min-height:240px; background:#000;
  transition:border-color .25s, box-shadow .25s, transform .25s;
}
.zebra-video-wrap:hover {
  border-color:rgba(245,158,11,.5);
  box-shadow:0 22px 60px rgba(0,0,0,.6), 0 0 50px rgba(245,158,11,.16);
  transform:translateY(-3px);
}
.zebra-video-wrap video {
  width:100%; height:100%; object-fit:cover; display:block;
  min-height:240px; filter:saturate(1.05) contrast(1.03);
}
.zebra-video-badge {
  position:absolute; top:.85rem; left:.85rem; z-index:2;
  display:flex; align-items:center; gap:.45rem;
  font-family:'JetBrains Mono',monospace; font-size:.6rem; letter-spacing:.12em;
  color:#fff; background:rgba(0,0,0,.55); backdrop-filter:blur(6px);
  padding:.32rem .7rem; border-radius:100px; border:1px solid rgba(255,255,255,.12);
}
.rec-dot { width:7px; height:7px; border-radius:50%; background:#ef4444; box-shadow:0 0 8px #ef4444; animation:pulse 1.4s infinite; }
.zebra-video-expand {
  position:absolute; bottom:.85rem; right:.85rem; z-index:2;
  font-size:.68rem; font-weight:600; color:#fff;
  background:rgba(0,0,0,.55); backdrop-filter:blur(6px);
  padding:.35rem .8rem; border-radius:8px; border:1px solid rgba(255,255,255,.12);
  opacity:0; transform:translateY(6px); transition:opacity .25s, transform .25s;
}
.zebra-video-wrap:hover .zebra-video-expand { opacity:1; transform:translateY(0); }
@media(max-width:700px){ .zebra-feature{ grid-template-columns:1fr; } .zebra-video-wrap{ min-height:200px; } }

@media(max-width:600px) {
  nav { padding:1rem 1.2rem; }
  nav ul { gap:1rem; }
  .section-inner { padding:4rem 1.2rem; }
  footer { padding:1.5rem 1.2rem; }
  .pdf-embed { height:300px; }
  .cv-preview-panel iframe { height:420px; }
  .modal-pdf-wrap iframe { height:300px; }
}
