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

:root {
  --navy:     #080c18;
  --navy2:    #0e1526;
  --navy3:    #141d35;
  --border:   rgba(255,255,255,0.07);
  --accent:   #1ad8b0;
  --accent2:  #0ea5e9;
  --text:     #e2e8f2;
  --muted:    #7d8fa8;
  --sidebar-w: 280px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

/* ── SIDEBAR ── */
#sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--navy2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 2.5rem 1.8rem;
  z-index: 100;
  overflow-y: auto;
}

.profile-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.profile-img {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  margin-bottom: 1rem;
}

.profile-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.profile-role {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted);
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav ul { list-style: none; }
nav ul li + li { margin-top: 0.15rem; }
nav ul li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}
nav ul li a:hover, nav ul li a.active {
  background: rgba(26,216,176,0.1);
  color: var(--accent);
}
nav ul li a i { font-size: 0.9rem; width: 16px; text-align: center; }

.sidebar-socials {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.sidebar-socials a {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.sidebar-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ── MAIN ── */
main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

section {
  padding: 5rem 4rem;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
section.reveal-pending { opacity: 0; transform: translateY(24px); }
section.visible { opacity: 1; transform: none; }

.section-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2.5rem;
}

/* ── ABOUT ── */
#about { padding-top: 6rem; }
.about-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.about-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.about-name span { color: var(--accent); }
.about-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.about-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.about-contact a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.about-contact a:hover { color: var(--accent); }
.about-contact i { margin-right: 0.4rem; color: var(--accent); }

.about-bio {
  max-width: 660px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.stat-box {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.4rem;
  min-width: 140px;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.1rem;
}

.btn-primary-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary-outline:hover { background: rgba(26,216,176,0.1); }

/* ── EXPERIENCE ── */
.exp-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:last-child { border-bottom: none; }

.exp-meta { text-align: right; }
.exp-period {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.exp-location {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.exp-company {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.exp-role {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}
.exp-bullets { list-style: none; }
.exp-bullets li {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.exp-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.65rem;
  top: 0.3em;
}
.exp-bullets strong { color: var(--text); font-weight: 500; }

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.project-card {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover { border-color: rgba(26,216,176,0.4); transform: translateY(-2px); }
.project-card.featured { border-color: rgba(26,216,176,0.3); }

.project-icon {
  width: 38px; height: 38px;
  background: rgba(26,216,176,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.project-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(26,216,176,0.15);
  color: var(--accent);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.6rem;
}
.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}
.project-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tag {
  font-size: 0.7rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  color: var(--muted);
}
.project-link {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.project-link:hover { gap: 0.6rem; }
.project-npm-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.npm-stat {
  font-size: 0.72rem;
  color: var(--muted);
}
.npm-stat span { color: var(--accent); font-weight: 500; }

/* ── PUBLICATIONS & ARTICLES ── */
.pub-list { display: flex; flex-direction: column; gap: 1rem; }
.pub-card {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.pub-card:hover { border-color: rgba(14,165,233,0.4); }
.pub-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 5px;
  min-width: 56px;
  text-align: center;
}
.pub-badge.arxiv { background: rgba(14,165,233,0.15); color: #38bdf8; }
.pub-badge.ieee  { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.pub-badge.springer { background: rgba(139,92,246,0.15); color: #c4b5fd; }
.pub-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.3rem;
}
.pub-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.pub-link {
  font-size: 0.75rem;
  color: var(--accent2);
  text-decoration: none;
}
.pub-link:hover { text-decoration: underline; }

.article-card {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s;
}
.article-card:hover { border-color: rgba(250,204,21,0.3); transform: translateX(3px); }
.article-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(250,204,21,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fbbf24;
  font-size: 0.9rem;
}
.article-source {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 0.25rem;
}
.article-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.45;
}
.article-link {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.article-link:hover { color: var(--accent); }

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.skill-group {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.skill-group-title {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pill {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  color: var(--text);
}

/* ── EDUCATION ── */
.edu-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.edu-item:last-child { border-bottom: none; }
.edu-period { font-size: 0.78rem; color: var(--accent); text-align: right; white-space: nowrap; }
.edu-school {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}
.edu-degree { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.edu-note {
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(26,216,176,0.08);
  border-radius: 5px;
  padding: 0.2rem 0.6rem;
  display: inline-block;
}
.edu-gpa { font-size: 0.78rem; color: var(--muted); margin-top: 0.4rem; }

/* ── AWARDS ── */
.award-list { display: flex; flex-direction: column; gap: 0.85rem; }
.award-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.award-icon { color: #f59e0b; font-size: 0.9rem; padding-top: 2px; flex-shrink: 0; }
.award-text { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.award-text strong { color: var(--text); font-weight: 500; }

/* ── FOOTER ── */
footer {
  margin-left: var(--sidebar-w);
  padding: 2rem 4rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer a { color: var(--accent); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .profile-wrap { flex-direction: row; text-align: left; border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
  .profile-img { width: 60px; height: 60px; margin-bottom: 0; margin-right: 1rem; }
  nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem; }
  .sidebar-socials { margin-top: 0; }
  main, footer { margin-left: 0; }
  section { padding: 3rem 1.5rem; }
  .exp-item, .edu-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .exp-meta, .edu-period { text-align: left; }
  footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* Shared project link layout */
.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-link-icon {
  font-size: 0.7rem;
}
