﻿/* ============================================
   NEXUS — Full Hero + Dense Content
============================================ */
:root {
  --bg: #050510;
  --bg-surface: rgba(15, 15, 45, 0.45);
  --bg-card: rgba(18, 18, 50, 0.5);
  --border: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 229, 255, 0.12);
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.3);
  --accent-glow: rgba(0, 229, 255, 0.08);
  --purple: #b388ff;
  --text: #e0e0ee;
  --text-dim: #787898;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --font-display: "Space Grotesk", var(--font);
  --nav-h: 48px;
  --w: 1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.06) transparent; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 8px; }
::selection { background: var(--accent-dim); color: #fff; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }
.mono { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: -0.01em; }
.accent { color: var(--accent); }
.dim { color: var(--text-dim); }

#particle-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* Glass */
.glass { background: var(--bg-surface); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--border); }
.glass-card { background: var(--bg-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 8px; transition: border-color 0.25s, box-shadow 0.25s; }
.glass-card:hover { border-color: var(--border-glow); box-shadow: 0 0 20px var(--accent-glow); }

/* Nav */
#navbar { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100; transition: transform 0.3s, opacity 0.3s; }
.nav-inner { max-width: var(--w); margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.nav-logo { font-size: 1.1rem; font-weight: 700; color: var(--accent); font-family: var(--font-display); letter-spacing: 0.04em; }
.nav-logo:hover { color: #fff; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.84rem; font-weight: 500; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.lang-btn { background: none; border: 1px solid var(--border); color: var(--text-dim); padding: 3px 12px; border-radius: 14px; cursor: pointer; font-size: 0.72rem; transition: all 0.2s; }
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ====== Hero — full viewport ====== */
#hero {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px 60px;
}
.hero-content { max-width: 720px; }
.hero-greeting { font-size: 0.95rem; color: var(--accent); margin-bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.prompt { color: var(--accent-dim); }
.cursor { display: inline-block; width: 8px; height: 16px; background: var(--accent); animation: blink 1s step-end infinite; margin-left: 2px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-name {
  font-family: var(--font-display); font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 14px;
}
.hero-name .accent { background: linear-gradient(135deg, var(--accent), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.05rem; color: var(--text-dim); margin-bottom: 8px; font-weight: 400; }
.hero-affil { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 28px; }
.hero-links { display: flex; justify-content: center; gap: 14px; }
.hero-link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text-dim); transition: all 0.3s; }
.hero-link:hover { color: var(--accent); border-color: var(--accent-dim); box-shadow: 0 0 20px var(--accent-glow); transform: translateY(-2px); }
.scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); }
.scroll-arrow { width: 22px; height: 22px; border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: rotate(45deg); animation: scrollBounce 2s ease-in-out infinite; }



/* Construction bar (below hero) */
.construction-bar {
  position: relative; z-index: 1;
  text-align: center;
  padding: 0 24px 16px;
  font-size: 0.74rem;
  color: var(--text-dim);
  opacity: 0.65; font-style: italic;
} 50% { transform: rotate(45deg) translateY(8px); opacity: 1; } }

/* ====== Content Sections ====== */
section { position: relative; z-index: 1; }
.section-inner { max-width: var(--w); margin: 0 auto; padding: 56px 28px; }
.sec-head { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 22px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.sec-head .mono { font-size: 1rem; font-weight: 400; margin-right: 8px; }
.sec-note { font-size: 0.72rem; color: var(--text-dim); margin-bottom: 18px; }
.sec-note strong { color: var(--text); font-weight: 600; }

/* About */
.about-layout { display: grid; grid-template-columns: 130px 1fr; gap: 24px; align-items: start; margin-bottom: 24px; }
.about-photo { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-glow); box-shadow: 0 0 20px var(--accent-glow); transition: box-shadow 0.3s; }
.about-photo:hover { box-shadow: 0 0 32px var(--accent-dim); }
.about-text p { font-size: 0.95rem; color: var(--text-dim); line-height: 1.65; margin-bottom: 10px; }
.about-text p strong { color: var(--text); font-weight: 600; }
.about-interests { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.interest-tag { font-size: 0.72rem; padding: 2px 10px; border-radius: 4px; border: 1px solid var(--border); color: var(--accent); font-family: var(--font-mono); white-space: nowrap; }
.status-bar { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 0.8rem; margin-top: 4px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #00ff88; box-shadow: 0 0 8px rgba(0,255,136,0.5); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 8px rgba(0,255,136,0.5); } 50% { box-shadow: 0 0 16px rgba(0,255,136,0.8); } }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-item { text-align: center; padding: 16px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; }
.stat-val { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; }
.stat-lbl { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }

/* Publications — dense rows with thumbnail */
.pub-list { display: flex; flex-direction: column; }
.pub-row { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.pub-row:last-child { border-bottom: none; }
.pub-row-mini { padding: 10px 0; }
.pub-row-mini .pub-info { gap: 2px; }
.pub-thumb { display: block; width: 160px; flex-shrink: 0; }
.pub-thumb img { width: 160px; height: 96px; object-fit: cover; border-radius: 5px; border: 1px solid var(--border); transition: border-color 0.2s; }
.pub-thumb:hover img { border-color: var(--accent-dim); }
.pub-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.pub-badge { display: inline-block; font-size: 0.68rem; font-weight: 600; padding: 1px 8px; border-radius: 3px; background: var(--accent-glow); font-family: var(--font-mono); }
.pub-title { font-family: var(--font-display); font-size: 1.03rem; font-weight: 600; line-height: 1.35; }
.pub-row-mini .pub-title { font-size: 0.95rem; }
.pub-authors { font-size: 0.8rem; color: var(--text-dim); line-height: 1.45; }
.pub-authors strong { color: var(--text); font-weight: 600; }
.pub-desc { font-size: 0.78rem; color: var(--purple); font-style: italic; }
.pub-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.pub-links a { font-size: 0.73rem; color: var(--text-dim); font-family: var(--font-mono); border-bottom: 1px dotted var(--border); padding-bottom: 1px; }
.pub-links a:hover { color: var(--accent); border-color: var(--accent); }
.star-count { color: var(--accent); font-size: 0.7rem; }


/* Open Source */
.oss-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.oss-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; color: var(--text); font-size: 0.8rem; }
.oss-card:hover { color: var(--text); transform: translateY(-1px); }
.oss-header { display: flex; align-items: center; gap: 6px; }
.oss-header svg { color: var(--text-dim); flex-shrink: 0; }
.oss-name { font-size: 0.85rem; font-weight: 600; }
.oss-desc { font-size: 0.72rem; color: var(--text-dim); line-height: 1.45; flex: 1; }
.oss-card .star-count { font-size: 0.72rem; }


/* Experience */
.exp-list { display: flex; flex-direction: column; }
.exp-row { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.exp-row:last-child { border-bottom: none; padding-bottom: 0; }
.exp-left { display: flex; flex-direction: column; gap: 2px; }
.exp-date { font-size: 0.76rem; font-weight: 600; }
.exp-loc { font-size: 0.7rem; color: var(--text-dim); }
.exp-right h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.exp-right p { font-size: 0.84rem; color: var(--text-dim); line-height: 1.6; }

/* Footer */
footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 22px 0; }
.footer-inner { max-width: var(--w); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.72rem; }
.footer-links a:hover { color: var(--accent); }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* Featured publications — 2-col large teaser */
.pub-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.pub-row-featured {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-bottom: none;
}
.pub-row-featured .pub-thumb-lg { display: block; width: 100%; }
.pub-row-featured .pub-thumb-lg img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}
.pub-row-featured:hover .pub-thumb-lg img { border-color: var(--accent-dim); }
.pub-row-featured .pub-info {
  padding: 18px 20px 20px;
  gap: 5px;
}
.pub-title-lg {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}
.pub-list-rest {
  display: flex;
  flex-direction: column;
}





/* About sub-sections */
.sub-head {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.about-service { margin-bottom: 8px; }
.about-service .service-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.about-service .service-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; flex: 1; min-width: 240px;
  font-size: 0.84rem; line-height: 1.5;
}
.about-service .service-item strong { color: var(--text); font-weight: 600; }
.about-service .service-item span { color: var(--text-dim); }
.about-service .svc-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* Responsive */
@media (max-width: 860px) {
  .about-layout { grid-template-columns: 1fr; text-align: center; }
  .about-photo { margin: 0 auto; width: 100px; height: 100px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .pub-row { flex-direction: column; }
  .pub-thumb { width: 100%; }
  .pub-thumb img { width: 100%; height: 110px; }
  
  .pub-featured { grid-template-columns: 1fr; }
  .pub-row-featured .pub-thumb-lg img { height: 150px; }
  .exp-row { grid-template-columns: 1fr; gap: 6px; }
  .exp-left { flex-direction: row; gap: 8px; }
  .nav-inner { padding: 0 14px; }
  .nav-links { gap: 16px; }
  .section-inner { padding: 40px 18px; }
}
@media (max-width: 480px) {
  .hero-name { font-size: 2.2rem; }
  .hero-sub { font-size: 0.85rem; }
  .oss-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .section-inner { padding: 32px 14px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.72rem; }
}
