/* ═══════════════════════════════════════════
   Academic Portfolio — Dark Design System
   ═══════════════════════════════════════════ */

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1424;
  --bg-card: #131828;
  --bg-card-hover: #181e33;
  --accent: #00d4aa;
  --accent-dim: #00a888;
  --accent-glow: rgba(0, 212, 170, 0.15);
  --accent-glow-strong: rgba(0, 212, 170, 0.3);
  --text-primary: #e8ecf4;
  --text-secondary: #8892a8;
  --text-muted: #7f8aa1;
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(0, 212, 170, 0.2);
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id],
main[id] {
  scroll-margin-top: 88px;
}

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ───── Noise Overlay ───── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ───── Skip Link ───── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ───── Navbar ───── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--text-muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--accent); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.nav-cta {
  background: var(--accent);
  color: var(--bg-primary) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: all 0.2s !important;
}
.nav-cta:hover {
  background: #00eabb !important;
  box-shadow: 0 0 24px var(--accent-glow-strong);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  align-items: center;
  justify-content: center;
}
.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: 0.3s;
}

/* ───── Hero ───── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
  max-width: 820px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-portrait {
  width: 136px;
  height: 136px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(0, 212, 170, 0.45);
  box-shadow: 0 0 0 8px rgba(0, 212, 170, 0.06), 0 18px 50px rgba(0, 0, 0, 0.35);
  display: block;
  margin: 0 auto 1.5rem;
  animation: fade-in-up 0.6s ease-out both, logo-spin 30s linear infinite;
  transition: scale 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.hero-portrait:hover {
  scale: 1.08;
  border-color: rgba(0, 212, 170, 0.8);
  box-shadow: 0 0 0 10px rgba(0, 212, 170, 0.1), 0 0 40px rgba(0, 212, 170, 0.35);
}

@keyframes logo-spin {
  to { rotate: 360deg; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fade-in-up 0.6s ease-out both;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  animation: fade-in-up 0.6s ease-out 0.15s both;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #00e8c0, #54f0d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fade-in-up 0.6s ease-out 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-in-up 0.6s ease-out 0.45s both;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
}
.btn-primary:hover {
  background: #00eabb;
  box-shadow: 0 0 30px var(--accent-glow-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.03);
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ───── Stats Bar ───── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: -1px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* ───── Trust Banner ───── */
.trust-section {
  padding: 4rem 2rem 3rem;
  text-align: center;
}
.trust-section h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 600;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.trust-logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  white-space: nowrap;
  transition: all 0.25s;
}
.trust-logo:hover {
  border-color: var(--border-accent);
  color: var(--text-secondary);
}

/* ───── Section Commons ───── */
section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.section-tag::before,
.section-tag::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent-dim);
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-header h2 .highlight {
  background: linear-gradient(135deg, var(--accent), #54f0d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ───── Expertise Cards ───── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.expertise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.expertise-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.expertise-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.expertise-card:hover::before { opacity: 1; }

.card-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-dim);
  margin-bottom: 1rem;
  font-weight: 500;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.expertise-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  letter-spacing: -0.3px;
}
.expertise-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ───── Projects Timeline ───── */
.projects-section {
  background: var(--bg-secondary);
}

.projects-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  transition: all 0.3s;
}
.project-card-single { grid-template-columns: 1fr; }
.project-card:hover {
  border-color: var(--border-accent);
  transform: translateX(6px);
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.project-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: -0.3px;
}
.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.project-info p + p { margin-top: 1rem; }

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* ───── Teaching Section ───── */
.teaching-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.teaching-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
}
.teaching-card.featured {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, rgba(0,212,170,0.04), var(--bg-card));
}
.teaching-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #54f0d1);
}

.teaching-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.teaching-card h3 .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.teaching-card:not(.featured) h3 .dot { background: var(--text-muted); }
.teaching-card.featured h3 .dot { background: var(--accent); }

.teaching-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.teaching-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}
.teaching-list li::before {
  content: '\2014';
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 1px;
}
.teaching-card.featured .teaching-list li::before {
  content: '\2713';
  color: var(--accent);
}

/* ───── Education Timeline ───── */
.education-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.education-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
}
.education-item:hover {
  border-color: var(--border-accent);
}

.education-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.education-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.education-info p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ───── Tech Stack Marquee ───── */
.tech-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  overflow: hidden;
}

.tech-track {
  display: flex;
  gap: 1.5rem;
  animation: scroll-left 35s linear infinite;
  width: max-content;
}
.tech-track:hover { animation-play-state: paused; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: all 0.2s;
}
.tech-pill:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

/* ───── Contact / CTA ───── */
.cta-section {
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
}
.cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.4;
}
.cta-section .cta-inner {
  position: relative;
  z-index: 2;
}
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}
.cta-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.cta-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-links a:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.cta-address {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: normal;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
}

/* ───── Footer ───── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ───── Decorative floating shapes ───── */
.float-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}

.float-shape-square { top: 15%; left: 8%; width: 120px; }
.float-shape-circle { bottom: 20%; right: 6%; width: 80px; }
.float-shape-triangle { top: 35%; right: 12%; width: 60px; }

/* ───── Scroll-reveal ───── */
.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ───── Scroll-to-top Button ───── */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  z-index: 999;
}
.scroll-top-btn[hidden] { display: none; }
.scroll-top-btn:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ═══════════════════════════════════════════
   Subpage Styles (Publications, For Students)
   ═══════════════════════════════════════════ */

/* ───── Page Header (hero-lite) ───── */
.page-header {
  padding: 8rem 2rem 4rem;
  text-align: center;
  position: relative;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.page-header .section-tag {
  margin-bottom: 1rem;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.page-header h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #54f0d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ───── Publication Cards ───── */
.pub-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-dim);
  border-radius: 0 16px 16px 0;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
}
.pub-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}
.pub-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.pub-card ol {
  list-style-position: inside;
  padding: 0;
}
.pub-card ol li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
}
.pub-card ol li::marker {
  color: var(--accent-dim);
  font-family: var(--font-mono);
  font-weight: 600;
}
.pub-card a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.pub-card a:hover {
  color: #00eabb;
  text-decoration: underline;
}
.pub-card .awards {
  color: var(--accent);
  font-weight: 600;
}

/* ───── Student Dashboard Cards ───── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.dashboard-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

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

.dashboard-card .card-icon-large {
  font-size: 2rem;
}
.dashboard-card .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.dashboard-card .card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ───── Note Banner ───── */
.note-banner {
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid var(--border-accent);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.5rem 1.2rem 2rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 1000px;
  margin: 0 auto 2rem;
}
.note-banner strong,
.note-banner b {
  color: var(--text-primary);
}
.note-banner a {
  color: var(--accent);
  text-decoration: none;
}
.note-banner a:hover {
  text-decoration: underline;
}

/* ───── Subpage Main Content ───── */
.subpage-main {
  padding: 3rem 0 4rem;
}

.student-note { margin-top: 2rem; }
.student-section { padding-top: 2rem; }
.section-header-spaced { margin-top: 4rem; }

/* ───── Profile Links Section ───── */
.profile-links {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
}
.profile-links h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.profile-links .cta-links {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 980px) {
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
  }
  .js .nav-links { display: none; }
  .js .nav-hamburger { display: flex; }
  nav.open .nav-links {
    display: flex;
  }

  nav.open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.open .nav-hamburger span:nth-child(2) { opacity: 0; }
  nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .stats-bar { gap: 2rem; }

  .teaching-grid { grid-template-columns: 1fr; }

  .project-card {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .project-tags { margin-top: 0.3rem; }

  .expertise-grid { grid-template-columns: 1fr; }

  .education-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .dashboard-grid { grid-template-columns: 1fr; }

  .cta-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  nav { padding: 0 1rem; }
  section { padding: 4.5rem 1.25rem; }
  .hero { padding-left: 1.25rem; padding-right: 1.25rem; }
  .dashboard-grid { padding: 0 1.25rem; }
  .note-banner { margin-left: 1.25rem; margin-right: 1.25rem; }
  .pub-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .pub-card { padding: 1.5rem; }
  .float-shape { display: none; }
}

/* ───── Reduced Motion ───── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .tech-track { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
