/* ═══════════════════════════════════════════════════════════════
   HARSHIT GARG — PORTFOLIO STYLESHEET
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. Design Tokens ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:       #04060f;
  --bg-alt:   #080d1a;
  --bg-card:  #0a111f;
  --bg-glass: rgba(10, 17, 31, 0.7);

  /* Borders */
  --border:       rgba(130, 155, 200, 0.08);
  --border-hover: rgba(157, 92, 255, 0.35);

  /* Brand */
  --purple:       #9d5cff;
  --purple-dim:   rgba(157, 92, 255, 0.15);
  --cyan:         #00d4ff;
  --cyan-dim:     rgba(0, 212, 255, 0.12);
  --gold:         #ffb938;
  --gold-dim:     rgba(255, 185, 56, 0.12);

  /* Text */
  --text:         #e4ecf7;
  --text-muted:   #8a9bb8;
  --text-faint:   #4a5a74;

  /* Fonts */
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Gradient */
  --grad: linear-gradient(135deg, var(--purple), var(--cyan));
  --grad-text: linear-gradient(90deg, #b97aff, #00d4ff);

  /* Radius */
  --r-sm:   0.5rem;
  --r-md:   0.875rem;
  --r-lg:   1.25rem;
  --r-pill: 9999px;

  /* Transitions */
  --ease: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── 2. Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

main:not(:has(.hero)) {
  padding-top: 80px; /* clears the 64px fixed navbar for subpages */
}

.footer {
  flex-shrink: 0;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── 3. Utility ───────────────────────────────────────────────── */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section      { padding-block: 6rem; }
.section-alt  { background: var(--bg-alt); }

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

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.sub-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Scroll animation trigger */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for grids */
.animate-on-scroll:nth-child(2) { transition-delay: 0.07s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.14s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.21s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.28s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.35s; }

/* ─── 4. Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px rgba(157, 92, 255, 0.4);
}
.btn-primary:hover { box-shadow: 0 6px 36px rgba(157, 92, 255, 0.6); }

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

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

/* ─── 5. Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(4, 6, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.navbar.scrolled { background: rgba(4, 6, 15, 0.9); }

.nav-container {
  max-width: 1160px;
  margin-inline: auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.nav-monogram {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}

.nav-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--text);
  transition: color var(--ease);
}
.nav-logo:hover .nav-name { color: var(--purple); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease), background var(--ease);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav-link.active { color: var(--purple); }

.nav-cta {
  background: var(--purple-dim);
  border: 1px solid rgba(157, 92, 255, 0.25);
  color: var(--purple) !important;
  padding: 0.4rem 1.1rem;
}
.nav-cta:hover {
  background: rgba(157, 92, 255, 0.25) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── 6. Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px;
  padding-bottom: 6.5rem;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* Faint radial glow centre */
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background: radial-gradient(ellipse, rgba(157,92,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-inline: 1.5rem;
  max-width: 820px;
  animation: fadeUp 0.9s ease both;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hero-socials {
  display: flex;
  gap: 0.5rem;
}

.hero-social {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.hero-social:hover {
  color: var(--purple);
  border-color: var(--purple);
  background: var(--purple-dim);
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #ffffff 40%, #8a9bb8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--cyan);
  margin-bottom: 1.25rem;
  min-height: 2rem;
}

.role-prefix { color: var(--text-faint); margin-right: 0.1rem; }

.typewriter-text { color: var(--cyan); }

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--cyan);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

.hero-tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stat {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: border-color var(--ease), transform var(--ease);
}
.hero-stat:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
}

.hero-stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-faint);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 2s ease 1.5s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── 7. About ─────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.bio-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.75rem;
}

.about-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--ease);
}
.about-link:hover { color: var(--purple); }

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

.pub-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color var(--ease), transform var(--ease);
}
.pub-link:hover {
  border-color: var(--purple);
  transform: translateX(4px);
}

.pub-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}
.pub-source {
  font-size: 0.75rem;
  color: var(--purple);
  font-family: var(--font-mono);
}

/* Certifications */
.cert-stack { display: flex; flex-direction: column; gap: 0.75rem; }

.cert-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.cert-card:hover {
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(157, 92, 255, 0.12);
}

.cert-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 0.35rem;
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(157, 92, 255, 0.25);
  white-space: nowrap;
}

.cert-name { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.cert-code { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); margin-top: 0.1rem; }

/* Achievements */
.achievements-stack { display: flex; flex-direction: column; gap: 0.75rem; }

.achievement-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ach-color, var(--purple));
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: transform var(--ease);
}
.achievement-item:hover { transform: translateX(4px); }

.ach-icon { font-size: 1.2rem; flex-shrink: 0; line-height: 1.5; }
.ach-title { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.ach-desc  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }

/* ─── 8. Skills ────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.skill-group:hover {
  border-color: var(--grp-color, var(--purple));
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.skill-group-icon { font-size: 1.1rem; }

.skill-group-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.skill-tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.skill-group:hover .skill-tag {
  border-color: color-mix(in srgb, var(--grp-color, var(--purple)) 40%, transparent);
  color: color-mix(in srgb, var(--grp-color, var(--purple)) 80%, var(--text));
}

/* ─── 9. Experience (Sticky Scroll) ────────────────────────────── */

/* The section has no built-in padding — the scroll container defines height */
.section-exp {
  padding: 0;
  position: relative;
}

.exp-scroll-container {
  position: relative;
  /* height is set by JS: numJobs * 130vh + 50vh */
}

.exp-sticky-panel {
  position: sticky;
  top: 64px; /* navbar height */
  height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* ── Sidebar ── */
.exp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem 1.75rem;
  border-right: 1px solid var(--border);
  overflow: hidden;
  background: rgba(0,0,0,0.15);
}

.exp-sidebar-top .section-title { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Nav list */
.exp-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

/* Vertical track line */
.exp-nav-track {
  position: absolute;
  left: 9px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--border);
  overflow: hidden;
  border-radius: 1px;
}

.exp-nav-track-fill {
  width: 100%;
  height: 0%;
  background: var(--grad);
  border-radius: 1px;
  transition: height 0.15s linear;
}

.exp-nav-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-md);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background var(--ease);
}
.exp-nav-btn:hover { background: rgba(255,255,255,0.04); }
.exp-nav-btn.active { background: rgba(255,255,255,0.06); }

.exp-nav-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg-alt);
  flex-shrink: 0;
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.exp-nav-btn.active .exp-nav-dot {
  background: var(--job-color, var(--purple));
  border-color: var(--bg-alt);
  box-shadow: 0 0 10px var(--job-color, var(--purple)), 0 0 20px var(--job-color, var(--purple));
  transform: scale(1.4);
}

.exp-nav-text { display: flex; flex-direction: column; gap: 0.1rem; overflow: hidden; }

.exp-nav-co {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--ease);
}
.exp-nav-btn.active .exp-nav-co { color: var(--text); font-weight: 600; }

.exp-nav-yr {
  font-size: 0.68rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Counter */
.exp-counter {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-top: auto;
}

.exp-counter-n {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 2ch;
  transition: all 0.3s ease;
}

.exp-counter-denom {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ── Right content panel ── */
.exp-content {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Thin progress bar at top of right panel */
.exp-progress-bar {
  height: 2px;
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.exp-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  transition: width 0.1s linear;
  border-radius: 0 1px 1px 0;
}

/* Card stack */
.exp-cards-wrapper {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.exp-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 3rem 4rem 3rem 3.5rem;

  /* Hidden state */
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.exp-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Decorative large index number */
.exp-bg-num {
  position: absolute;
  right: -0.05em;
  bottom: -0.15em;
  font-family: var(--font-head);
  font-size: min(22vw, 280px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.035);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.05em;
}

.exp-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
}

/* Company name — BIG accent heading */
.exp-company-block {
  margin-bottom: 1.25rem;
}

.exp-company-name {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--job-color, var(--purple));
  /* Subtle text shadow matching the job color */
  text-shadow: 0 0 60px var(--job-glow, rgba(157,92,255,0.3));
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.exp-company-detail {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.2rem;
  letter-spacing: 0.03em;
}

/* Role row */
.exp-role-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.exp-role {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.exp-type-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.7rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.exp-period {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
}

/* Colored accent line under header */
.exp-accent-line {
  height: 2px;
  width: 48px;
  border-radius: 2px;
  background: var(--job-color, var(--purple));
  box-shadow: 0 0 12px var(--job-glow, rgba(157,92,255,0.4));
  margin-bottom: 2rem;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Highlight list */
.exp-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.exp-hi {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  /* Staggered reveal */
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.45s ease var(--d, 0s),
    transform 0.45s ease var(--d, 0s);
}
.exp-card.active .exp-hi {
  opacity: 1;
  transform: translateX(0);
}

.exp-hi-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--job-color, var(--purple));
  box-shadow: 0 0 8px var(--job-glow, rgba(157,92,255,0.5));
  flex-shrink: 0;
  margin-top: 0.55rem;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.exp-hi-text {
  font-size: 0.91rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ── Responsive: collapse to scrollable list on mobile ── */
@media (max-width: 768px) {
  .section-exp { padding: 0; }

  .exp-scroll-container { height: auto !important; }

  .exp-sticky-panel {
    position: static;
    height: auto;
    grid-template-columns: 1fr;
    border: none;
  }

  .exp-sidebar {
    padding: 3rem 1.5rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .exp-nav-track { display: none; }
  .exp-counter   { display: none; }

  .exp-content { overflow: visible; }

  .exp-progress-bar { display: none; }

  .exp-cards-wrapper {
    position: static;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .exp-card {
    position: static;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: none;
  }

  .exp-card .exp-hi {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .exp-bg-num { display: none; }
  .exp-company-name { font-size: clamp(1.5rem, 7vw, 2.5rem); }
}

/* ─── 10. Projects ─────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-featured {
  grid-column: span 2;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.project-card:hover {
  border-color: var(--card-color, var(--purple));
  box-shadow: 0 16px 50px var(--card-glow, rgba(157,92,255,0.2));
  transform: translateY(-6px);
}

.project-card-bar {
  height: 3px;
  background: var(--card-color, var(--purple));
  flex-shrink: 0;
}

.project-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.project-role {
  font-size: 0.75rem;
  color: var(--card-color, var(--purple));
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}

.project-external {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.project-external:hover {
  color: var(--card-color, var(--purple));
  border-color: var(--card-color, var(--purple));
  background: rgba(255,255,255,0.05);
}

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

.project-highlights {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 0.5rem;
  flex: 1;
}
.project-highlights li {
  padding-left: 0.9rem;
  position: relative;
  line-height: 1.6;
}
.project-highlights li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--card-color, var(--purple));
  font-size: 0.7rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.project-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ─── 11. Education ────────────────────────────────────────────── */
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
}

.edu-card-left {
  padding: 2.5rem 2rem;
  background: linear-gradient(180deg, rgba(157,92,255,0.08), transparent);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.edu-card-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/umd-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18; /* increased visibility */
  filter: grayscale(100%) contrast(110%) brightness(75%);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.edu-card:hover .edu-card-left::after {
  transform: scale(1.08);
  opacity: 0.26;
}

.edu-school-badge,
.edu-school-info {
  position: relative;
  z-index: 1;
}

.edu-school-badge {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.edu-school {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.4;
}

.edu-period {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.edu-card-right { padding: 2rem 2.5rem; }

.edu-degree {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.edu-track {
  font-size: 0.9rem;
  color: var(--purple);
  font-weight: 500;
}

.edu-minors {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.edu-section { margin-bottom: 1.25rem; }

.edu-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.edu-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.6;
}

.edu-list-awards .edu-check {
  color: var(--gold);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.edu-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ─── 12. Leadership ───────────────────────────────────────────── */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.leadership-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.leadership-card:hover {
  border-color: var(--purple);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.leadership-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--purple-dim);
  border-radius: var(--r-sm);
  border: 1px solid rgba(157,92,255,0.15);
}

.leadership-role {
  font-size: 0.78rem;
  color: var(--purple);
  font-family: var(--font-mono);
  margin-bottom: 0.2rem;
}
.leadership-org {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ─── 13. Contact ──────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.contact-link-card:hover {
  border-color: var(--purple);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.contact-link-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--purple-dim);
  border: 1px solid rgba(157,92,255,0.15);
  color: var(--purple);
  flex-shrink: 0;
}

.contact-link-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-link-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-label {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  resize: none;
}
.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(157,92,255,0.12);
}
.form-input::placeholder { color: var(--text-faint); }

.form-textarea { min-height: 130px; }

.form-status {
  font-size: 0.85rem;
  min-height: 1.2rem;
  text-align: center;
  border-radius: var(--r-sm);
  padding: 0 0.5rem;
  transition: all var(--ease);
}
.form-status.success { color: #4ade80; }
.form-status.error   { color: #f87171; }

/* ─── 14. Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1.5rem;
}

.footer-inner {
  max-width: 1160px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--ease);
}
.footer-link:hover { color: var(--purple); }

/* ─── 15. Back to Top ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--grad);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--ease), transform var(--ease);
  z-index: 500;
  box-shadow: 0 4px 20px rgba(157,92,255,0.4);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-4px); }

/* ─── 16. Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ─── 17. Scrollbar & Selection ────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(157,92,255,0.4); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

::selection {
  background: rgba(157,92,255,0.3);
  color: var(--text);
}

/* ─── 18. Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-featured { grid-column: span 1; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .edu-card {
    grid-template-columns: 1fr;
    border-left: 3px solid var(--purple);
  }
  .edu-card-left {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
  }
  .edu-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding-block: 4rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(4, 6, 15, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 2rem;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    pointer-events: none;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-link {
    padding: 0.85rem 1.25rem;
    width: 100%;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--ease), border-color var(--ease), transform var(--ease);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-link::after {
    content: '→';
    opacity: 0;
    transform: translateX(-5px);
    transition: all var(--ease);
    color: var(--purple);
    font-weight: 700;
  }
  .nav-link:hover {
    background: rgba(157, 92, 255, 0.08);
    border-color: rgba(157, 92, 255, 0.25);
    transform: translateX(4px);
  }
  .nav-link:hover::after {
    opacity: 1;
    transform: translateX(0);
  }
  .nav-link.nav-cta {
    background: linear-gradient(135deg, var(--purple-dim), rgba(157, 92, 255, 0.2));
    border-color: rgba(157, 92, 255, 0.3);
    color: var(--purple) !important;
    justify-content: center;
    font-weight: 600;
    margin-top: 0.5rem;
  }
  .nav-link.nav-cta::after {
    display: none;
  }
  .nav-link.nav-cta:hover {
    background: linear-gradient(135deg, var(--purple), #ff4b8b);
    border-color: transparent;
    color: #fff !important;
    transform: none;
  }

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

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

  .form-row { grid-template-columns: 1fr; }

  .hero-name { font-size: clamp(2.5rem, 11vw, 4rem); }
}

/* ─── Photo Strip ──────────────────────────────────────────────── */
.photo-strip {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.photo-strip-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--purple);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Fixed-height flex row — landscape photo gets more width naturally */
.photo-thumbs {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0.85rem;
  height: clamp(260px, 32vw, 380px);
}

.photo-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

/* Landscape shot gets a wider slot */
.photo-thumb:nth-child(1) {
  flex: 0 0 clamp(260px, 38%, 460px);
}
/* Portrait shots share the rest */
.photo-thumb:nth-child(2),
.photo-thumb:nth-child(3) {
  flex: 0 0 clamp(130px, 17%, 210px);
}
/* Smith Business Magazine cover gets more width allowance */
.photo-thumb:nth-child(4) {
  flex: 0 0 clamp(200px, 25%, 320px);
}

.photo-thumb:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: var(--purple);
  box-shadow: 0 16px 40px rgba(157, 92, 255, 0.35);
  z-index: 1;
}
.photo-thumb:hover .photo-thumb-overlay { opacity: 1; }

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.55s ease;
}
.photo-thumb:hover img { transform: scale(1.07); }

.photo-thumb-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.15));
  backdrop-filter: blur(1px);
  color: #fff;
  opacity: 0;
  transition: opacity var(--ease);
  border-radius: inherit;
}

/* ─── Carousel Modal ───────────────────────────────────────────── */
.carousel-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-modal[hidden] { display: none; }

.carousel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 12, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: backdropIn 0.3s ease both;
}

.carousel-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  animation: shellIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Close button */
.carousel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), transform var(--ease);
  z-index: 10;
}
.carousel-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text);
  transform: rotate(90deg);
}

/* Counter */
.carousel-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  align-self: flex-end;
  padding-right: 3.5rem;
}

/* Image stage */
.carousel-stage {
  position: relative;
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 1;
  user-select: none;
}
.carousel-img.transitioning {
  opacity: 0;
  transform: scale(0.96);
}

/* Colored glow behind the image */
.carousel-img-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: var(--purple);
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  transition: background 0.4s ease;
}

/* Caption */
.carousel-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
  max-width: 480px;
  line-height: 1.6;
  min-height: 1.2em;
  transition: opacity 0.3s ease;
}

/* Arrow buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.carousel-arrow:hover {
  background: var(--purple-dim);
  border-color: var(--purple);
  color: var(--purple);
}
.carousel-prev {
  left: -68px;
  transform: translateY(-50%);
}
.carousel-prev:hover { transform: translateY(-50%) translateX(-2px); }
.carousel-next {
  right: -68px;
  transform: translateY(-50%);
}
.carousel-next:hover { transform: translateY(-50%) translateX(2px); }

/* Dot navigation */
.carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.2);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  padding: 0;
}
.carousel-dot.active {
  background: var(--purple);
  transform: scale(1.4);
  box-shadow: 0 0 8px var(--purple);
}

/* Animations */
@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shellIn {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Responsive: tuck arrows inside on small screens */
@media (max-width: 900px) {
  .carousel-prev { left: 0.5rem; }
  .carousel-next { right: 0.5rem; }
  /* let photo strip wrap to 2 rows on narrow tablets */
  .photo-thumbs {
    flex-wrap: wrap;
    height: auto;
  }
  .photo-thumb:nth-child(1) { flex: 0 0 100%; height: 280px; }
  .photo-thumb:nth-child(2),
  .photo-thumb:nth-child(3) { flex: 1 1 calc(30% - 0.6rem); min-width: 120px; height: 220px; }
  .photo-thumb:nth-child(4) { flex: 1.5 1 calc(40% - 0.6rem); min-width: 180px; height: 220px; }
}
@media (max-width: 480px) {
  .photo-thumbs { gap: 0.5rem; }
  .photo-thumb:nth-child(1) { height: 220px; }
  .photo-thumb:nth-child(2),
  .photo-thumb:nth-child(3) { flex: 1 1 calc(50% - 0.25rem); height: 180px; }
  .photo-thumb:nth-child(4) { flex: 0 0 100%; height: 240px; }
  .hero-stats { gap: 0.75rem; }
  .hero-stat  { padding: 0.75rem 1rem; }
  .leadership-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* ─── Education & Executive Programs Layout ────────────────────── */
.edu-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Executive Card Styles */
.exec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.75rem 3rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.exec-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 420px;
  max-width: 50%;
  background-image: url('/images/hbs-bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.12;
  filter: grayscale(100%) contrast(110%) brightness(75%);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0));
}

.exec-card:hover::after {
  transform: scale(1.05);
  opacity: 0.18;
}

.exec-card-header,
.exec-card-body {
  position: relative;
  z-index: 1;
}

/* Crimson color theme overlay */
.exec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #a51c30, #ff4b8b);
  opacity: 0.85;
}

.exec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(165, 28, 48, 0.45);
  box-shadow: 0 20px 40px rgba(165, 28, 48, 0.12);
}

.exec-card-header {
  margin-bottom: 1.75rem;
}

.exec-badge-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.exec-badge {
  background: rgba(165, 28, 48, 0.12);
  color: #ff5f74;
  border: 1px solid rgba(165, 28, 48, 0.35);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  display: inline-block;
}

.exec-label {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.exec-institution-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.exec-title {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.exec-period {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0;
}

.exec-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--purple);
  margin-top: 0.35rem;
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

.exec-description {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 2rem;
}

.exec-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.exec-highlight-item {
  display: flex;
  gap: 0.85rem;
}

.exec-highlight-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.exec-highlight-title {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.exec-highlight-desc {
  font-size: 0.82rem;
  color: var(--text-faint);
  line-height: 1.55;
  margin: 0;
}

/* Tablet viewports (max-width: 900px) */
@media (max-width: 900px) {
  .exec-card {
    padding: 2.25rem 2.25rem;
  }
  .exec-highlights {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Mobile viewports (max-width: 480px) */
@media (max-width: 480px) {
  .exec-card {
    padding: 1.75rem 1.5rem;
  }
  .exec-title {
    font-size: 1.25rem;
  }
  .exec-badge-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ─── Auth Portal & Admin Dashboard ────────────────────────────── */
.auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding-block: 4rem;
}
.auth-box {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
.auth-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.auth-header {
  text-align: center;
  margin-bottom: 2.25rem;
}
.auth-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}
.auth-title {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
}
.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.auth-error-alert {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Admin Dashboard Submissions Panel */
.dashboard-wrapper {
  margin-top: 2rem;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}
.dashboard-title-info h1 {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 0.35rem 0;
}
.dashboard-welcome {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}
.dashboard-welcome span {
  color: var(--purple);
  font-weight: 600;
}
.logout-form button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--ease);
}
.logout-form button:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Submissions Grid */
.submissions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.submission-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.submission-card:hover {
  border-color: var(--purple-dim);
  box-shadow: 0 10px 30px rgba(157, 92, 255, 0.05);
}
.submission-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  padding-bottom: 0.75rem;
}
.submission-sender {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.submission-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.submission-email {
  font-size: 0.82rem;
  color: var(--purple);
  text-decoration: none;
}
.submission-email:hover {
  text-decoration: underline;
}
.submission-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}
.submission-message {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  white-space: pre-wrap;
  margin: 0;
}

.no-submissions {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  color: var(--text-muted);
}
.no-submissions-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}
.no-submissions-text {
  font-size: 0.95rem;
  margin: 0;
}
