/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --sidebar-width: 280px;
  --sidebar-bg: #0f172a;
  --sidebar-text: #cbd5e1;
  --sidebar-text-muted: #64748b;
  --sidebar-hover: rgba(255, 255, 255, 0.07);
  --sidebar-active: rgba(59, 130, 246, 0.18);
  --sidebar-active-text: #93c5fd;

  --primary: #3b82f6;
  --primary-dark: #2563eb;

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --border: #e2e8f0;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);

  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg-white);
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-inner {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Profile */
.profile {
  text-align: center;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.profile-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(59, 130, 246, 0.45);
  margin-bottom: 1rem;
  transition: var(--transition);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.profile-photo:hover {
  border-color: var(--primary);
  transform: scale(1.04);
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.profile-title {
  font-size: 0.82rem;
  color: var(--sidebar-active-text);
  font-weight: 500;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.profile-institution {
  font-size: 0.8rem;
  color: var(--sidebar-text-muted);
  line-height: 1.6;
}

.profile-institution a {
  color: var(--sidebar-text);
  text-decoration: none;
}

.profile-institution a:hover {
  color: var(--sidebar-active-text);
  text-decoration: none;
}

/* Nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav-link i {
  width: 16px;
  text-align: center;
  opacity: 0.65;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.nav-link:hover {
  background: var(--sidebar-hover);
  color: #f1f5f9;
  text-decoration: none;
}

.nav-link:hover i {
  opacity: 1;
}

.nav-link.active {
  background: var(--sidebar-active);
  color: var(--sidebar-active-text);
}

.nav-link.active i {
  opacity: 1;
}

/* Social icon strip */
.sidebar-links {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1.5rem;
}

.icon-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.icon-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ============================================================
   MOBILE HEADER
   ============================================================ */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--sidebar-bg);
  padding: 0 1.25rem;
  align-items: center;
  gap: 1rem;
  z-index: 200;
  box-shadow: var(--shadow-md);
}

.menu-toggle {
  background: none;
  border: none;
  color: #f1f5f9;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
}

.mobile-name {
  color: #f1f5f9;
  font-weight: 600;
  font-size: 1rem;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
  backdrop-filter: blur(2px);
}

.overlay.active {
  display: block;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  max-width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 4rem 3.5rem;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section:nth-child(even) {
  background: var(--bg-light);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
  letter-spacing: -0.02em;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-text p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  max-width: 700px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.about-text a:hover {
  text-decoration: underline;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
  text-decoration: none;
  color: white;
}

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: white;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ============================================================
   RESEARCH TAGS
   ============================================================ */
.research-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ============================================================
   PUBLICATIONS
   ============================================================ */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pub-list {
  list-style: decimal;
  padding-left: 1.4rem;
  margin: 0;
}

.pub-item {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-title {
  font-weight: 600;
  color: var(--text-primary);
}

.pub-title-link {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.pub-title-link:hover {
  text-decoration: underline;
}

.simple-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.simple-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Experience items */
.exp-item {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  transition: var(--transition);
}

.exp-item:last-child {
  border-bottom: none;
}

.exp-item:hover {
  border-left-color: var(--primary);
  background: #f0f7ff;
}

.exp-item .pub-title {
  color: var(--primary);
}

/* Awards / Service rows */
.award-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.award-row:last-child {
  border-bottom: none;
}

.award-row:hover {
  background: var(--bg-light);
}

.award-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.75rem;
}

.pub-award {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.exp-card {
  display: flex;
  gap: 1.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.exp-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.exp-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.exp-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.exp-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.exp-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.exp-company {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.exp-mentors {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.6rem;
}

.exp-bullets {
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.exp-bullets li {
  margin-bottom: 0.4rem;
}

.exp-bullets li:last-child {
  margin-bottom: 0;
}

/* ============================================================
   AWARDS
   ============================================================ */
.awards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.award-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.award-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.award-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.award-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
}

/* ============================================================
   SERVICE
   ============================================================ */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2rem 3.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    max-width: 100%;
    padding-top: 60px;
  }

  .section {
    padding: 2.5rem 1.5rem;
  }

  .exp-card {
    flex-direction: column;
    gap: 1rem;
  }

  .exp-logo {
    width: 52px;
    height: 52px;
  }

  .footer {
    padding: 1.5rem;
  }

  .award-year {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --sidebar-width: 240px;
  }

  .section {
    padding: 3rem 2.5rem;
  }
}

@media (min-width: 1400px) {
  :root {
    --sidebar-width: 300px;
  }

  .about-text p {
    max-width: 780px;
  }
}
