/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════ */
:root {
  --bg: #0a0f1a;
  --bg-card: #111827;
  --bg-card2: #1a2233;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #2dd4a0;
  --accent-2: #38bdf8;
  --accent-glow: rgba(45, 212, 160, 0.15);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --white: #ffffff;
  --nav-width: 160px;
  --section-pad: clamp(3rem, 6vw, 6rem);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow: hidden;
  height: 100dvh;
  width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ═══════════════════════════════════════════════════════════
   SNAP SCROLL CONTAINER
═══════════════════════════════════════════════════════════ */
#snap-container {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  /* hide scrollbar but keep scroll */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#snap-container::-webkit-scrollbar {
  display: none;
}

/* Each section snaps to start */
.snap-section {
  scroll-snap-align: start;
  height: 100dvh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Fade animation */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition), transform var(--transition);
}

.snap-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tall sections: allow inner scroll but still snap */
.snap-section.overflow-section {
  height: 100dvh;
  overflow: hidden;
  align-items: flex-start;
  padding-top: 0;
}

.snap-section.overflow-section .section-inner {
  max-height: 100dvh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.snap-section.overflow-section .section-inner::-webkit-scrollbar {
  width: 4px;
}

.snap-section.overflow-section .section-inner::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION INNER LAYOUT
═══════════════════════════════════════════════════════════ */
.section-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--section-pad) clamp(1.5rem, 5vw, 4rem);
  padding-right: calc(clamp(1.5rem, 5vw, 4rem) + var(--nav-width));
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(45, 212, 160, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.section-subtitle {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a0f1a;
}

.btn-primary:hover {
  background: #26c090;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 212, 160, 0.4);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   RIGHT-SIDE VERTICAL NAV
═══════════════════════════════════════════════════════════ */
#side-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#side-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#side-nav a.nav-dot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  justify-content: flex-end;
}

#side-nav .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: all 0.3s ease;
  flex-shrink: 0;
  order: 2;
}

#side-nav .label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  opacity: 0.6;
  transition: all 0.3s ease;
  order: 1;
  white-space: nowrap;
}

#side-nav a.nav-dot:hover .dot,
#side-nav a.nav-dot.active .dot {
  background: var(--accent);
  transform: scale(1.5);
  box-shadow: 0 0 8px var(--accent);
}

#side-nav a.nav-dot:hover .label,
#side-nav a.nav-dot.active .label {
  opacity: 1;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   HAMBURGER (Mobile)
═══════════════════════════════════════════════════════════ */
#hamburger {
  display: none;
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1100;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

#hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

#hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#hamburger.open span:nth-child(2) {
  opacity: 0;
}

#hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
#mobile-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 270px;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 1050;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 4.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
}

#mobile-nav.open {
  right: 0;
}

#mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#mobile-nav a.mobile-nav-link {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-decoration: none;
}

#mobile-nav a.mobile-nav-link:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

#mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

#mobile-overlay.active {
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
#home {
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(45, 212, 160, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(45, 212, 160, 0.6);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(45, 212, 160, 0);
  }
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-headline {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

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

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* ── Dissertation Dashboard Card ── */
.dissertation-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(45, 212, 160, 0.25);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  letter-spacing: 0.01em;
}

.dissertation-card:hover {
  border-color: rgba(45, 212, 160, 0.6);
  background: rgba(45, 212, 160, 0.07);
}

.dissertation-card-arrow {
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.dissertation-card:hover .dissertation-card-arrow {
  transform: translateX(3px);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  text-decoration: none;
}

.social-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Updates card */
.updates-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
}

.updates-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.update-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.update-date {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  margin-top: 0.1rem;
  min-width: 100px;
  flex-shrink: 0;
}

.update-title {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 1rem;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
  flex: 1;
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════════════
   EDUCATION & SKILLS
═══════════════════════════════════════════════════════════ */
#education {
  background: var(--bg);
}

.edu-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.col-heading {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Education Timeline */
.edu-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.edu-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s;
}

.edu-item:hover {
  border-color: rgba(45, 212, 160, 0.4);
}

.edu-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.edu-degree {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.edu-inst {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.edu-loc {
  color: var(--text-dim);
}

.edu-period {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.edu-diss {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Skills */
.skills-groups {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.skill-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.9rem;
}

.skill-icon {
  font-size: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.2rem 0.7rem;
  transition: all 0.2s;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════
   EXPERIENCE
═══════════════════════════════════════════════════════════ */
#experience {
  background: var(--bg);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exp-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.exp-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  border-radius: 3px 0 0 3px;
}

.exp-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 160, 0.3);
}

.exp-meta {
  padding-left: 0.5rem;
}

.exp-period {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.5;
}

.exp-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.exp-org {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}

.exp-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.exp-desc p {
  margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   PUBLICATIONS, PRESENTATIONS & AWARDS
═══════════════════════════════════════════════════════════ */
#publications {
  background: var(--bg);
}

/* Stacked vertical layout for publications / presentations / awards */
.scholarship-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.scholarship-block {
  width: 100%;
}

/* 3-column grid for all scholarship subsections */
.pub-list--full,
.pres-list--full,
.awards-list--full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {

  .pub-list--full,
  .pres-list--full,
  .awards-list--full {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {

  .pub-list--full,
  .pres-list--full,
  .awards-list--full {
    grid-template-columns: 1fr;
  }
}


.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s;
  min-height: 160px;
  display: flex;
  flex-direction: column;
}

.pub-card:hover {
  border-color: rgba(45, 212, 160, 0.4);
}

.pub-status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}

.pub-status--published {
  background: rgba(45, 212, 160, 0.15);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 160, 0.3);
}

.pub-status--in-prep {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.pub-status--in-review,
.pub-status--under-review {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-2);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pub-status--in-press {
  background: rgba(251, 146, 60, 0.12);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.pub-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.pub-title a {
  color: var(--white);
}

.pub-title a:hover {
  color: var(--accent);
}

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

.pub-authors {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

/* Presentations */
.pres-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pres-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 130px;
}

.pres-date {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.pres-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.pres-event {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Awards */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.award-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  transition: border-color 0.2s;
  min-height: 140px;
}

.award-card:hover {
  border-color: rgba(251, 191, 36, 0.4);
}

.award-year {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fbbf24;
  white-space: nowrap;
  min-width: 36px;
  margin-top: 0.1rem;
}

.award-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.award-org {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.award-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.award-desc p {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
#contact {
  background: var(--bg);
  background-image: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
}

.contact-inner {
  max-width: 960px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.3rem;
  margin-top: 0.1rem;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.contact-value:hover {
  color: var(--accent);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  width: 100%;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 160, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-note {
  font-size: 0.82rem;
  color: var(--accent);
  text-align: center;
  margin-top: 0.25rem;
  min-height: 1.2em;
}

.inline-link {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════════════ */
#gallery {
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  transition: border-color 0.25s;
}

.gallery-item:hover {
  border-color: rgba(45, 212, 160, 0.4);
}

/* The anchor fills the entire tile */
.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  font-size: 0.78rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}

.gallery-item:hover figcaption {
  opacity: 1;
}

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}

.gallery-placeholder-text {
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

#lightbox.open {
  display: flex;
}

#lightbox-img-wrap {
  text-align: center;
  max-width: 90vw;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
  object-fit: contain;
}

#lightbox-caption {
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

#lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
}

#lightbox-prev,
#lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  transition: background 0.2s;
}

#lightbox-prev:hover,
#lightbox-next:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

#lightbox-prev {
  left: 1.5rem;
}

#lightbox-next {
  right: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   PROFILE PHOTO
═══════════════════════════════════════════════════════════ */
.hero-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px var(--accent-glow), var(--shadow);
  display: block;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-photo:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 10px var(--accent-glow), var(--shadow);
}

.hero-photo-fallback {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════
   UPDATES – SEE MORE BUTTON & FULL PAGE
═══════════════════════════════════════════════════════════ */
.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
}

.updates-see-more {
  margin-top: 1rem;
  text-align: right;
}

.updates-card--full {
  max-width: 720px;
  margin: 0 auto;
}

.updates-list--full .update-item {
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.updates-list--full .update-item:last-child {
  border-bottom: none;
}

.update-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.update-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.25rem;
}

.update-desc p {
  margin-bottom: 0.4rem;
}

.update-desc strong {
  color: var(--text);
}

.update-desc em {
  color: var(--accent);
  font-style: italic;
}

.updates-back {
  margin-top: 2rem;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE – TABLET
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .section-inner {
    padding-right: clamp(1.5rem, 5vw, 4rem);
  }

  #side-nav {
    display: none;
  }

  #hamburger {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-right,
  .hero-stats {
    display: flex;
    flex-wrap: wrap;
  }

  .hero-stats {
    flex-direction: row;
  }

  .stat {
    flex: 1 1 80px;
  }

  .edu-skills-grid {
    grid-template-columns: 1fr;
  }

  .pub-awards-grid {
    grid-template-columns: 1fr;
  }

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

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE – MOBILE
═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .exp-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .exp-meta {
    padding-left: 0;
  }

  .hero-name {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

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

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-photo {
    width: 120px;
    height: 120px;
  }

  .hero-photo-fallback {
    width: 120px;
    height: 120px;
  }
}