/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #080d1a;
  --bg2: #0d1224;
  --surface: rgba(255,255,255,0.04);
  --surface2: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --text: #e8eaf0;
  --muted: #8892a4;
  --cyan: #00d4ff;
  --purple: #7c3aed;
  --violet: #a855f7;
  --pink: #ec4899;
  --grad: linear-gradient(135deg, #00d4ff, #7c3aed);
  --grad2: linear-gradient(135deg, #7c3aed, #ec4899);
  --nav-h: 70px;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ===== LIGHT THEME ===== */
body.light {
  --bg: #f0f4ff;
  --bg2: #e6ecfa;
  --surface: rgba(0,0,0,0.04);
  --surface2: rgba(0,0,0,0.07);
  --border: rgba(0,0,0,0.1);
  --text: #0f172a;
  --muted: #475569;
  --shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* Nav */
body.light #navbar.scrolled { background: rgba(240,244,255,0.96); border-bottom-color: rgba(0,0,0,0.1); }
body.light .nav-logo { color: #0f172a; }
body.light .nav-links a { color: #475569; }
body.light .nav-links a:hover, body.light .nav-links a.active { color: #0f172a; background: rgba(0,0,0,0.06); }

/* Sections */
body.light section:nth-child(even) { background: rgba(0,0,0,0.02); }
body.light #skills, body.light #projects, body.light #contact { background: var(--bg2); }

/* Hero */
body.light .hero-overlay { background: linear-gradient(135deg, rgba(240,244,255,0.88) 0%, rgba(230,236,250,0.80) 100%); }
body.light .hero-name  { color: #0f172a; }
body.light .hero-summary { color: #475569; }
body.light .hero-title-static { color: #475569; }
body.light .hero-typewriter { color: #6d28d9; border-right-color: #6d28d9; }
body.light .stat-label { color: #475569; }
body.light .hero-badge { background: rgba(109,40,217,0.1); border-color: rgba(109,40,217,0.3); color: #6d28d9; }
body.light .scroll-dot { border-color: rgba(0,0,0,0.2); }
body.light .scroll-dot::before { background: #6d28d9; }

/* Section labels — cyan (#00d4ff) is invisible on light bg; use dark blue */
body.light .section-tag { color: #1d4ed8; }
body.light .dot { color: #1d4ed8; }

/* About */
body.light .about-lead { color: #0f172a; }
body.light .about-body { color: #475569; }
body.light .about-body strong { color: #0f172a; }
body.light .highlight-item strong { color: #0f172a; }
body.light .highlight-item p { color: #475569; }
body.light .about-certs h3 { color: #475569; }
body.light .section-sub { color: #475569; }
body.light .info-card { color: #0f172a; }

/* Skill tags — replace invisible cyan with readable dark blue */
body.light .skill-card h3 { color: #0f172a; }
body.light .skill-tags span {
  color: #1e40af;
  background: rgba(30,64,175,0.08);
  border-color: rgba(30,64,175,0.2);
}
body.light .cert-tag { color: #6d28d9; background: rgba(109,40,217,0.08); border-color: rgba(109,40,217,0.25); }

/* Timeline */
body.light .timeline-role { color: #0f172a; }
body.light .timeline-company { color: #1d4ed8; }
body.light .timeline-list li { color: #475569; }
body.light .timeline-list li strong { color: #0f172a; }
body.light .timeline-period { color: #475569; background: rgba(0,0,0,0.06); }
body.light .timeline-tags span { color: #6d28d9; background: rgba(109,40,217,0.08); border-color: rgba(109,40,217,0.2); }
body.light .timeline-dot { box-shadow: 0 0 16px rgba(109,40,217,0.4); }

/* Projects */
body.light .project-card h3 { color: #0f172a; }
body.light .project-card p { color: #475569; }
body.light .project-tags span { color: #1e40af; background: rgba(30,64,175,0.08); border-color: rgba(30,64,175,0.2); }
body.light .project-featured-badge { color: #6d28d9; background: rgba(109,40,217,0.1); border-color: rgba(109,40,217,0.25); }

/* Research */
body.light .research-body h3 { color: #0f172a; }
body.light .research-venue { color: #475569; }
body.light .research-meta { color: #475569; }
body.light .research-meta strong { color: #0f172a; }
body.light .research-badge { color: #1d4ed8; background: rgba(29,78,216,0.08); border-color: rgba(29,78,216,0.2); }
body.light .research-link { color: #1d4ed8; }

/* Education & Awards */
body.light .edu-card h3 { color: #0f172a; }
body.light .edu-inst { color: #1d4ed8; }
body.light .edu-field { color: #475569; }
body.light .edu-year { color: #6d28d9; background: rgba(109,40,217,0.08); border-color: rgba(109,40,217,0.2); }
body.light .award-item h4 { color: #0f172a; }
body.light .award-item p { color: #475569; }

/* Contact */
body.light .contact-label { color: #475569; }
body.light .contact-value { color: #0f172a; }

/* Form */
body.light .form-group label { color: #475569; }
body.light .form-group input, body.light .form-group textarea { background: #fff; color: #0f172a; border-color: rgba(0,0,0,0.15); }
body.light .form-group input:focus, body.light .form-group textarea:focus { border-color: #1d4ed8; }
body.light .form-group input::placeholder, body.light .form-group textarea::placeholder { color: #94a3b8; }

/* Footer */
body.light #footer { background: var(--bg2); }
body.light .footer-inner p { color: #475569; }
body.light .footer-links a { color: #475569; }

/* Misc */
body.light #particles-canvas { opacity: 0.10; }
body.light .theme-toggle { border-color: rgba(0,0,0,0.15); }

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

/* ===== PARTICLES ===== */
#particles-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0.4; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
.gradient-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); display: block; margin-bottom: 8px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.section-header.left-aligned { text-align: left; margin-bottom: 30px; }
.section-sub { color: var(--muted); margin-top: 12px; font-size: 1.05rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; position: relative; z-index: 1; }
section:nth-child(even) { background: rgba(255,255,255,0.015); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 13px 28px; border-radius: 50px; text-decoration: none; border: none; cursor: pointer;
  transition: all 0.3s; box-shadow: 0 0 30px rgba(0,212,255,0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(0,212,255,0.4); }
.btn-primary.full-width { width: 100%; justify-content: center; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text); font-weight: 600; font-size: 0.95rem;
  padding: 13px 28px; border-radius: 50px; text-decoration: none;
  border: 1px solid var(--border); transition: all 0.3s;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 20px rgba(0,212,255,0.1); }
.btn-resume {
  background: var(--grad); color: #fff; font-weight: 600; font-size: 0.85rem;
  padding: 9px 20px; border-radius: 50px; text-decoration: none; transition: all 0.3s; white-space: nowrap;
}
.btn-resume:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124,58,237,0.4); }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg2);
  backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  z-index: 1050;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.theme-toggle:hover { border-color: var(--cyan); transform: rotate(20deg) scale(1.1); box-shadow: 0 0 20px rgba(0,212,255,0.4); }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000;
  transition: all 0.4s;
}
#navbar.scrolled { background: rgba(8,13,26,0.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-logo { font-size: 1.5rem; font-weight: 900; color: #fff; text-decoration: none; letter-spacing: -1px; }
.dot { color: var(--cyan); }
.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 6px 12px; border-radius: 8px; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: var(--surface2); }
.nav-resume-wrapper { margin-left: 14px; }
.nav-toggle { display: none; flex-direction: column; justify-content: space-between; width: 22px; height: 16px; background: none; border: none; cursor: pointer; padding: 0; z-index: 1005; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: center; }

/* ===== HERO ===== */
#hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 0; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(8,13,26,0.85) 0%, rgba(13,18,36,0.75) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 800px; }
.hero-badge { display: inline-block; background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.3); color: var(--cyan); font-size: 0.8rem; font-weight: 600; padding: 6px 18px; border-radius: 50px; margin-bottom: 28px; animation: pulse-badge 2s infinite; }
@keyframes pulse-badge { 0%,100%{box-shadow:0 0 0 0 rgba(0,212,255,0.3)} 50%{box-shadow:0 0 0 8px rgba(0,212,255,0)} }

.hero-avatar-wrapper { position: relative; width: 150px; height: 150px; margin: 0 auto 28px; }
.hero-avatar { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: top; position: relative; z-index: 2; border: 3px solid transparent; background: var(--grad) border-box; }
.hero-avatar-ring { position: absolute; inset: -6px; border-radius: 50%; background: var(--grad); z-index: 1; animation: spin-ring 6s linear infinite; }
@keyframes spin-ring { 0%{transform:rotate(0)} 100%{transform:rotate(360deg)} }
.hero-avatar-wrapper::before { content:''; position:absolute; inset:-12px; border-radius:50%; border:2px dashed rgba(0,212,255,0.2); animation: spin-ring 12s linear infinite reverse; z-index:0; }

.hero-name { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 900; line-height: 1.05; margin-bottom: 16px; letter-spacing: -2px; }
.hero-title-wrap { font-size: 1.2rem; color: var(--muted); margin-bottom: 20px; min-height: 32px; }
.hero-typewriter { color: var(--cyan); font-family: 'JetBrains Mono', monospace; font-weight: 500; border-right: 2px solid var(--cyan); padding-right: 2px; }
.hero-summary { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 580px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; align-items: center; gap: 24px; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }
.scroll-dot { width: 24px; height: 40px; border: 2px solid rgba(255,255,255,0.2); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-dot::before { content:''; width: 4px; height: 8px; background: var(--cyan); border-radius: 2px; animation: scroll-move 2s infinite; }
@keyframes scroll-move { 0%{opacity:0;transform:translateY(0)} 50%{opacity:1} 100%{opacity:0;transform:translateY(10px)} }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.about-image-card { position: relative; border-radius: 24px; overflow: hidden; margin-bottom: 20px; }
.about-photo { width: 100%; height: auto; object-fit: contain; display: block; }
.about-image-glow { position: absolute; inset: 0; background: linear-gradient(to top, rgba(124,58,237,0.4), transparent); }
.about-info-cards { display: flex; flex-direction: column; gap: 10px; }
.info-card { display: flex; align-items: center; gap: 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size: 0.9rem; font-weight: 500; }
.info-icon { font-size: 1.1rem; }
.about-lead { font-size: 1.3rem; font-weight: 700; line-height: 1.5; margin-bottom: 16px; color: #fff; }
.about-body { color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.about-body strong { color: var(--text); }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.highlight-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; transition: all 0.3s; }
.highlight-item:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-2px); }
.highlight-icon { font-size: 1.6rem; flex-shrink: 0; }
.highlight-item strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.highlight-item p { font-size: 0.8rem; color: var(--muted); }
.about-certs h3 { font-size: 1rem; margin-bottom: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.cert-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-tag { background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3); color: var(--violet); font-size: 0.8rem; padding: 5px 12px; border-radius: 50px; }

/* ===== SKILLS ===== */
#skills { background: var(--bg2); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.skill-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 0.3s; cursor: default; }
.skill-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.skill-card-icon { font-size: 2rem; margin-bottom: 14px; }
.skill-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: #fff; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tags span { background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.15); color: var(--cyan); font-size: 0.75rem; font-weight: 500; padding: 4px 10px; border-radius: 6px; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content:''; position:absolute; left:11px; top:0; bottom:0; width:2px; background: linear-gradient(to bottom, var(--cyan), var(--purple), transparent); }
.timeline-item { position: relative; margin-bottom: 48px; opacity: 0; transform: translateX(-20px); transition: all 0.6s; }
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-dot { position: absolute; left: -36px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 16px rgba(0,212,255,0.5); }
.timeline-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 0.3s; }
.timeline-content:hover { border-color: rgba(0,212,255,0.2); box-shadow: var(--shadow); }
.timeline-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.timeline-role { font-size: 1.15rem; font-weight: 700; color: #fff; }
.timeline-company { color: var(--cyan); font-size: 0.9rem; font-weight: 500; display: block; margin-top: 4px; }
.timeline-period { font-size: 0.8rem; color: var(--muted); background: var(--surface2); padding: 5px 12px; border-radius: 50px; white-space: nowrap; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.timeline-tags span { background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.25); color: var(--violet); font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.timeline-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.timeline-list li { color: var(--muted); font-size: 0.9rem; line-height: 1.65; padding-left: 16px; position: relative; }
.timeline-list li::before { content:'▸'; position:absolute; left:0; color:var(--cyan); font-size:0.7rem; top:3px; }
.timeline-list li strong { color: var(--text); }

/* ===== PROJECTS ===== */
#projects { background: var(--bg2); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; transition: all 0.3s; overflow: hidden; }
.project-card::before { content:''; position:absolute; inset:0; background: var(--grad); opacity:0; transition:opacity 0.3s; z-index:0; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.4); border-color: rgba(0,212,255,0.3); }
.project-card:hover::before { opacity: 0.05; }
.project-card > * { position: relative; z-index: 1; }
.project-card.featured { border-color: rgba(168,85,247,0.4); background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(0,212,255,0.05)); }
.project-featured-badge { font-size: 0.72rem; font-weight: 700; color: var(--violet); background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3); padding: 4px 10px; border-radius: 50px; display: inline-block; margin-bottom: 14px; }
.project-icon { font-size: 2.5rem; margin-bottom: 16px; }
.project-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.project-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; margin-bottom: 18px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.project-tags span { background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.15); color: var(--cyan); font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; }

/* ===== RESEARCH ===== */
.research-card { background: var(--surface); border: 1px solid rgba(0,212,255,0.2); border-radius: 24px; padding: 40px; display: flex; gap: 32px; align-items: flex-start; transition: all 0.3s; }
.research-card:hover { border-color: rgba(0,212,255,0.4); box-shadow: 0 0 60px rgba(0,212,255,0.08); }
.research-icon { font-size: 4rem; flex-shrink: 0; }
.research-badge { display: inline-block; background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.25); color: var(--cyan); font-size: 0.75rem; font-weight: 700; padding: 4px 14px; border-radius: 50px; margin-bottom: 14px; letter-spacing: 0.5px; }
.research-body h3 { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.research-venue { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; }
.research-meta { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }
.research-meta strong { color: var(--text); }
.research-link { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 600; text-decoration: none; font-size: 0.9rem; transition: gap 0.2s; }
.research-link:hover { gap: 14px; }

/* ===== EDUCATION & AWARDS ===== */
.edu-awards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.edu-cards { display: flex; flex-direction: column; gap: 16px; }
.edu-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; gap: 18px; align-items: flex-start; transition: all 0.3s; }
.edu-card:hover { border-color: rgba(0,212,255,0.2); transform: translateX(4px); }
.edu-icon { font-size: 2rem; flex-shrink: 0; }
.edu-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.edu-inst { color: var(--cyan); font-size: 0.85rem; font-weight: 500; margin-bottom: 3px; }
.edu-field { color: var(--muted); font-size: 0.82rem; margin-bottom: 8px; }
.edu-year { background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.25); color: var(--violet); font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
.awards-list { display: flex; flex-direction: column; gap: 16px; }
.award-item { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; transition: all 0.3s; }
.award-item:hover { border-color: rgba(250,204,21,0.3); transform: translateX(4px); box-shadow: 0 8px 30px rgba(250,204,21,0.05); }
.award-medal { font-size: 2rem; flex-shrink: 0; }
.award-item h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.award-item p { color: var(--muted); font-size: 0.85rem; }

/* ===== CONTACT ===== */
#contact { background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text); transition: all 0.3s; }
.contact-item:hover { border-color: rgba(0,212,255,0.3); transform: translateX(4px); }
.contact-icon { font-size: 1.5rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--surface2); border-radius: 12px; flex-shrink: 0; }
.contact-label { display: block; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.contact-value { font-size: 0.9rem; font-weight: 500; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 36px; }
.hp-field { display: none !important; visibility: hidden !important; opacity: 0 !important; position: absolute !important; width: 0 !important; height: 0 !important; overflow: hidden !important; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.form-group input, .form-group textarea {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 16px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.93rem;
  transition: all 0.3s; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,212,255,0.08); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-success { display: none; margin-top: 14px; text-align: center; color: #4ade80; font-size: 0.9rem; padding: 12px; background: rgba(74,222,128,0.08); border-radius: 10px; border: 1px solid rgba(74,222,128,0.2); }

/* ===== FOOTER ===== */
#footer { padding: 32px 0; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-inner p { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image-col { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
  .edu-awards-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
  .research-card { flex-direction: column; gap: 20px; }
}
/* Drawer Backdrop Overlay */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.6);
  backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
body.light .nav-backdrop {
  background: rgba(15, 23, 42, 0.4);
}
#navbar.menu-open ~ .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 700px) {
  .about-image-col { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr; }
  
  .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(8, 13, 26, 0.98);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--border);
    padding: 100px 32px 40px;
    gap: 12px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    z-index: 1000;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    visibility: hidden;
  }
  
  body.light .nav-links {
    background: rgba(240, 244, 255, 0.98);
    box-shadow: -10px 0 40px rgba(0,0,0,0.08);
  }
  
  #navbar.menu-open .nav-links {
    right: 0 !important;
    visibility: visible;
  }
  
  .nav-resume-wrapper {
    margin-left: 0;
    margin-top: 16px;
  }
  
  .nav-resume-wrapper .btn-resume {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: flex;
  }
  
  /* Hamburger morph to X */
  #navbar.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  #navbar.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  #navbar.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-stats { gap: 16px; }
  .stat-num { font-size: 1.5rem; }
  section { padding: 75px 0; }
  
  /* Make lists/timelines highly responsive */
  .timeline { padding-left: 28px; }
  .timeline-dot { left: -24px; top: 10px; width: 10px; height: 10px; }
  .timeline-content { padding: 20px; }
  .timeline-header { flex-direction: column; gap: 8px; }
  .timeline-period { align-self: flex-start; }
}
