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

/* ─── THEME VARIABLES ─── */
:root {
  --bg:       #08090d;
  --surface:  #0f1117;
  --surface2: #161821;
  --border:   #1e2030;
  --accent:   #7c6af7;
  --accent2:  #56cfb2;
  --accent3:  #f9826c;
  --text:     #e2e4f0;
  --muted:    #6b7280;
  --radius:   14px;
  --nav-bg:   rgba(8,9,13,0.88);
  --shadow:   0 8px 32px rgba(0,0,0,0.4);
}
[data-theme="light"] {
  --bg:       #f4f5f9;
  --surface:  #ffffff;
  --surface2: #eceef5;
  --border:   #dde0ec;
  --text:     #0f1117;
  --muted:    #5a6272;
  --nav-bg:   rgba(244,245,249,0.9);
  --shadow:   0 8px 32px rgba(0,0,0,0.1);
}

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

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 5%;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
.nav-logo {
  font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px; flex-shrink: 0;
}
.nav-center { display: flex; gap: 28px; list-style: none; }
.nav-center a {
  color: var(--muted); text-decoration: none; font-size: 0.875rem;
  font-weight: 500; transition: color 0.2s; position: relative; padding-bottom: 2px;
}
.nav-center a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transition: transform 0.2s;
}
.nav-center a:hover { color: var(--text); }
.nav-center a.active { color: var(--text); }
.nav-center a.active::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, transform 0.2s; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(20deg); }

.nav-cta {
  padding: 8px 20px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 0.85rem; text-decoration: none;
  transition: opacity 0.2s, transform 0.2s; flex-shrink: 0;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.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 menu */
.mobile-menu {
  display: none; position: fixed; top: 61px; left: 0; right: 0;
  background: var(--nav-bg); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border); z-index: 199;
  flex-direction: column; padding: 16px 5% 24px;
  gap: 4px; transform: translateY(-10px); opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu.visible { transform: translateY(0); opacity: 1; }
.mobile-menu a {
  color: var(--text); text-decoration: none; font-size: 1rem;
  font-weight: 500; padding: 12px 0;
  border-bottom: 1px solid var(--border); display: block;
}
.mobile-menu a:last-child { border-bottom: none; }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 60px; align-items: center;
  padding: 140px 5% 80px;
  position: relative; overflow: hidden;
}

/* Dot grid background */
#hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(124,106,247,0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none;
}
.hero-glow-1 {
  width: 500px; height: 500px; top: -80px; right: 8%;
  background: radial-gradient(circle, rgba(124,106,247,0.22) 0%, transparent 70%);
}
.hero-glow-2 {
  width: 350px; height: 350px; bottom: 0; left: 5%;
  background: radial-gradient(circle, rgba(86,207,178,0.14) 0%, transparent 70%);
}

.hero-text { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid rgba(124,106,247,0.35);
  background: rgba(124,106,247,0.08);
  font-size: 0.78rem; font-weight: 500; color: var(--accent);
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 7px; height: 7px; background: var(--accent2);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 900; letter-spacing: -3px; line-height: 1.0;
  margin-bottom: 20px;
}
h1 .name { display: block; }
h1 .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent3) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Typewriter */
.typewriter-line {
  font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted);
  margin-bottom: 14px; min-height: 1.8em;
}
.tw-dynamic { color: var(--accent2); font-weight: 600; }
.tw-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--accent2); margin-left: 2px;
  animation: blink 1s step-end infinite; vertical-align: text-bottom;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }

.hero-tagline {
  color: var(--muted); font-size: 1rem; max-width: 500px;
  margin-bottom: 18px; line-height: 1.8;
}
/* ─── HERO DASHBOARD GRID ─── */
.hero-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hero-panel:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.hero-panel-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(124,106,247,0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-panel:nth-child(2) .hero-panel-icon {
  background: rgba(86,207,178,0.08);
  color: var(--accent2);
}
.hero-panel:nth-child(3) .hero-panel-icon {
  background: rgba(249,130,108,0.08);
  color: var(--accent3);
}
.hero-panel:nth-child(4) .hero-panel-icon {
  background: rgba(124,106,247,0.08);
  color: var(--accent);
}
.hero-panel-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
}
.hero-panel-content h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-panel-content p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }

/* ─── SVG ICONS ─── */
.svg-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2px;
  vertical-align: middle;
  display: inline-block;
  transition: transform 0.2s;
}
.hero-social-link svg,
.contact-link svg,
.resume-btn svg {
  margin-right: 6px;
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
  color: var(--text);
  margin: 0;
  display: inline-block;
  vertical-align: middle;
}
/* Sun / Moon selection by theme */
[data-theme="light"] .svg-theme-sun { display: none; }
[data-theme="light"] .svg-theme-moon { display: inline-block; }
[data-theme="dark"] .svg-theme-sun { display: inline-block; }
[data-theme="dark"] .svg-theme-moon { display: none; }

/* Stars */
.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
.svg-icon-star {
  width: 14px;
  height: 14px;
  color: #ffb800;
  display: inline-block;
}

/* Timeline badge SVG */
.svg-icon-timeline {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 2px;
  display: inline-block;
}
.timeline-item:nth-child(even) .svg-icon-timeline {
  stroke: var(--accent2);
}
.timeline-item:nth-child(odd) .svg-icon-timeline {
  stroke: var(--accent);
}

/* Project banner SVG */
.svg-icon-project {
  width: 44px;
  height: 44px;
  stroke: #ffffff;
  stroke-width: 1.5px;
  z-index: 1;
  display: inline-block;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--card-color);
  stroke-width: 2px;
  display: inline-block;
}

.speaking-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  stroke-width: 2px;
  display: inline-block;
}

.hero-social { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-social-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); text-decoration: none; font-size: 0.8rem; font-weight: 500;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.hero-social-link:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.hero-social-link.hl-email {
  background: linear-gradient(135deg, var(--accent), #5a52e0);
  border-color: transparent; color: #fff;
}
.hero-social-link.hl-email:hover { opacity: 0.88; border-color: transparent; }

.btn-primary {
  padding: 13px 30px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #5a52e0);
  color: #fff; font-weight: 700; font-size: 0.92rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(124,106,247,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,106,247,0.48); }
.btn-secondary {
  padding: 13px 30px; border-radius: 10px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text); font-weight: 600; font-size: 0.92rem;
  text-decoration: none; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); background: rgba(124,106,247,0.08); }

/* ─── HERO IMAGE CAROUSEL ─── */
.hero-carousel { position: relative; z-index: 1; }
.carousel-wrap { position: relative; }
.carousel-frame {
  width: 100%; aspect-ratio: 4/5; border-radius: 24px;
  position: relative; overflow: hidden;
  background: var(--surface2);
  box-shadow: var(--shadow);
}
.carousel-wrap::before {
  content: ''; position: absolute; inset: -2px; border-radius: 26px; z-index: -1;
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
  opacity: 0.55;
}
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.9s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
  transition: opacity 0.5s;
}
.carousel-placeholder.hidden { opacity: 0; pointer-events: none; }
.placeholder-monogram {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900; color: #fff; letter-spacing: -1px;
}
.placeholder-hint {
  color: var(--muted); font-size: 0.78rem; text-align: center;
  padding: 0 28px; font-family: 'Fira Code', monospace; line-height: 1.7;
}

.carousel-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.carousel-dot {
  width: 6px; height: 6px; border-radius: 100px;
  background: rgba(255,255,255,0.35); cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.carousel-dot.active { width: 20px; background: rgba(255,255,255,0.9); }

.hero-float-1 {
  position: absolute; top: -18px; right: -18px; width: 72px; height: 72px;
  border-radius: 18px; background: linear-gradient(135deg, var(--accent), #5a52e0);
  opacity: 0.2; transform: rotate(15deg); pointer-events: none;
}
.hero-float-2 {
  position: absolute; bottom: -14px; left: -14px; width: 54px; height: 54px;
  border-radius: 50%; background: var(--accent2); opacity: 0.2; pointer-events: none;
}

/* ─── SECTIONS ─── */
section { padding: 100px 5%; }
section + section { padding-top: 76px; }
.section-label {
  font-family: 'Fira Code', monospace; font-size: 0.74rem;
  color: var(--accent2); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 10px; display: block; font-weight: 700;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 14px;
}
.section-sub {
  color: var(--muted); font-size: 1rem;
  max-width: 680px; margin-bottom: 44px; line-height: 1.78;
}
.divider {
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* ─── ABOUT ─── */
#about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.about-content p { color: var(--muted); font-size: 0.98rem; margin-bottom: 18px; line-height: 1.8; }
.about-content p strong { color: var(--text); font-weight: 700; }
.about-offerings-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}
.about-offerings-list li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}
.about-offerings-list li::before {
  content: '▸';
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 1px;
}
.about-offerings-list li strong {
  color: var(--text);
  display: inline;
}

/* ─── ABOUT WORKFLOW ZIG-ZAG ─── */
.about-workflow {
  display: flex;
  flex-direction: column;
}
.workflow-zigzag {
  position: relative;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.workflow-line {
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
  opacity: 0.2;
  transform: translateX(-50%);
}
.workflow-step {
  position: relative;
  display: flex;
  width: 100%;
}
.workflow-number {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Fira Code', monospace;
  z-index: 2;
  box-shadow: 0 0 10px rgba(124, 106, 247, 0.15);
}
.workflow-step.step-right .workflow-number {
  border-color: var(--accent2);
  box-shadow: 0 0 10px rgba(86, 207, 178, 0.15);
}
.workflow-card {
  width: calc(50% - 22px);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.workflow-step.step-left .workflow-card {
  margin-right: auto;
  text-align: right;
}
.workflow-step.step-right .workflow-card {
  margin-left: auto;
  text-align: left;
}
.workflow-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.workflow-card p {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.workflow-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.workflow-step.step-right .workflow-card:hover {
  border-color: var(--accent2);
}

/* ─── IMPACT & APPROACH ─── */
.impact-grid, .approach-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 24px;
}
.impact-card, .approach-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color 0.2s, transform 0.2s;
}
.impact-card:hover, .approach-card:hover {
  border-color: var(--accent); transform: translateY(-3px);
}
.impact-number {
  font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--accent2); margin-bottom: 8px;
}
.impact-card h3, .approach-card h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 8px;
}
.impact-card p, .approach-card p {
  color: var(--muted); font-size: 0.9rem; line-height: 1.7;
}

/* ─── SERVICES ─── */
.service-group { margin-bottom: 28px; }
.service-group-header { margin-bottom: 18px; }
.service-group-header h3 { font-size: 1.2rem; margin-bottom: 6px; }
.service-group-header p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.services-grid {
  display: flex;
  flex-flow: row nowrap;
  gap: 20px;
  width: 100%;
  align-items: stretch;
}
.service-card {
  flex: 1 1 25%;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: flex 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.4s ease,
              border-color 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--card-color, var(--accent)) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover,
.service-card:focus,
.service-card:focus-within {
  flex: 1.6 1 40%;
  border-color: var(--card-color, var(--accent));
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow);
  outline: none;
}
.service-card:hover::before,
.service-card:focus::before,
.service-card:focus-within::before {
  opacity: 0.06;
}
.services-grid:hover .service-card:not(:hover) {
  flex: 0.8 1 20%;
  opacity: 0.6;
  transform: scale(0.97);
}
.service-card-inner { display: flex; flex-direction: column; gap: 12px; }
.service-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: rgba(124,106,247,0.12); border: 1px solid rgba(124,106,247,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.service-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.72; }
.service-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.service-tag {
  font-size: 0.72rem; padding: 3px 9px; border-radius: 100px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); font-family: 'Fira Code', monospace;
}
.service-details {
  max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), margin-top 0.4s ease;
}
.service-card:hover .service-details,
.service-card:focus .service-details,
.service-card:focus-within .service-details {
  max-height: 240px;
  margin-top: 14px;
}
.service-details ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-details li { color: var(--muted); font-size: 0.86rem; line-height: 1.65; display: flex; gap: 8px; }
.service-details li::before { content: '▸'; color: var(--accent2); flex-shrink: 0; }

/* ─── PROJECTS ─── */
#projects { background: var(--surface); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 24px; }
.project-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
  cursor: pointer;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.project-banner {
  height: 175px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.project-body { padding: 26px; }
.project-tag {
  font-size: 0.72rem; padding: 3px 10px; border-radius: 100px;
  font-family: 'Fira Code', monospace; font-weight: 500;
  margin-bottom: 10px; display: inline-block;
}
.project-body h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.project-body p { color: var(--muted); font-size: 0.87rem; line-height: 1.72; margin-bottom: 18px; }
.project-stack { display: flex; flex-wrap: wrap; gap: 7px; }
.stack-badge {
  font-size: 0.72rem; padding: 4px 10px; border-radius: 6px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); font-family: 'Fira Code', monospace;
}



/* ─── ACADEMY & INSIGHTS (BLOG) ─── */
#academy-blog { background: var(--bg); }
.blog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  margin-top: 10px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease,
              opacity 0.3s ease;
}
.blog-card-accent {
  height: 5px;
  width: 100%;
}
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.blog-category {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 2px;
}
.blog-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.65;
  flex-grow: 1;
}
.blog-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent2);
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
  align-self: flex-start;
  transition: color 0.2s;
}
.blog-link:hover {
  color: var(--accent);
}
.blog-card:hover,
.blog-card:focus,
.blog-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
  outline: none;
}
.blog-card.hidden {
  display: none;
  opacity: 0;
}

/* ─── AI SPEAKING SPLIT LAYOUT ─── */
#speaking { background: var(--surface); }
.speaking-split-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 48px;
  align-items: start;
}
.speaking-sidebar {
  position: sticky;
  top: 100px;
}
.speaking-cta-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
}
.speaking-cta-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.speaking-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.speaking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.speaking-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}
.speaking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.speaking-format-badge {
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: 'Fira Code', monospace;
  font-weight: 500;
  text-transform: uppercase;
}
.format-keynote { background: rgba(124,106,247,0.1); color: var(--accent); border: 1px solid rgba(124,106,247,0.2); }
.format-workshop { background: rgba(86,207,178,0.1); color: var(--accent2); border: 1px solid rgba(86,207,178,0.2); }
.format-seminar { background: rgba(249,130,108,0.1); color: var(--accent3); border: 1px solid rgba(249,130,108,0.2); }

.speaking-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.speaking-card p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}
.speaking-card:hover,
.speaking-card:focus,
.speaking-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
  outline: none;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .speaking-split-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .speaking-sidebar {
    position: static;
  }
  .speaking-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── TESTIMONIALS ─── */
#testimonials { background: var(--bg); }
.testimonials-container {
  max-width: 780px;
  margin: 0 auto;
}
.testimonial-stage { display: grid; gap: 18px; }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  position: relative; transition: border-color 0.2s, transform 0.2s;
  min-height: 220px;
}
.testimonial-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.quote-mark {
  font-size: 3.5rem; line-height: 1; color: var(--accent);
  opacity: 0.2; font-family: Georgia, serif; font-weight: 900;
  position: absolute; top: 14px; right: 18px;
}
.testimonial-text {
  color: var(--muted); font-size: 0.92rem; line-height: 1.82;
  margin-bottom: 24px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.9rem; }
.author-role { color: var(--muted); font-size: 0.78rem; }
.stars { color: #f9826c; font-size: 0.78rem; margin-bottom: 2px; letter-spacing: 1px; }

/* ─── TECH STACK ─── */
.tech-section { padding: 60px 0; background: var(--surface); }
.tech-section > p {
  text-align: center; color: var(--muted); font-size: 0.76rem;
  margin-bottom: 28px; letter-spacing: 2px; text-transform: uppercase;
  font-family: 'Fira Code', monospace;
}
.tech-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}
.tech-column {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 20px 18px;
  box-shadow: 0 8px 30px rgba(10, 14, 24, 0.06);
}
.tech-column h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.tech-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: var(--surface2); border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 500;
  white-space: nowrap;
}
.programming-languages-section { padding-top: 16px; }
.programming-layout {
  display: grid;
  grid-template-columns: 1.2fr repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}
.programming-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 16px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.programming-card.primary {
  background: linear-gradient(135deg, rgba(124,106,247,0.16), rgba(80,199,228,0.12));
  border-color: rgba(124,106,247,0.34);
}
.programming-level {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.programming-card h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.programming-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* ─── CONTACT ─── */
#contact { background: var(--bg); text-align: center; }
.contact-card {
  max-width: 840px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 52px 44px; position: relative; overflow: hidden;
}
.contact-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: 20px; z-index: -1;
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
  opacity: 0.18;
}
.contact-card h2 { font-size: 2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 28px; }

/* ─── CONTACT CORE OFFERINGS BLOCKS ─── */
.contact-offerings-grid {
  display: flex;
  flex-flow: row nowrap;
  gap: 18px;
  margin-bottom: 32px;
  text-align: left;
  width: 100%;
  align-items: flex-start; /* Prevent vertical stretching of sibling cards */
}
.contact-offering-item {
  flex: 1 1 33.33%;
  min-width: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: flex 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.4s ease,
              border-color 0.3s;
  cursor: pointer;
}
.contact-offering-item:hover,
.contact-offering-item:focus,
.contact-offering-item:focus-within {
  flex: 1.4 1 45%;
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  outline: none;
}

/* Shrink non-hovered contact cards */
.contact-offerings-grid:hover .contact-offering-item:not(:hover) {
  flex: 0.8 1 27.5%;
  opacity: 0.6;
  transform: scale(0.98);
}

.offering-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 4px;
}
.contact-offering-item h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}
.contact-offering-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), margin-top 0.4s ease;
}
.contact-offering-item:hover .contact-offering-details,
.contact-offering-item:focus .contact-offering-details,
.contact-offering-item:focus-within .contact-offering-details {
  max-height: 280px; /* Increased max-height to fit both paragraph and list */
  margin-top: 12px;
}
.contact-offering-details p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 10px 0; /* Add bottom spacing to separate description from list */
}
.contact-offering-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-offering-details li {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
  display: flex;
  gap: 6px;
}
.contact-offering-details li::before {
  content: '▸';
  color: var(--accent2);
  flex-shrink: 0;
}

/* Mobile responsive offerings stack */
@media (max-width: 768px) {
  .contact-offerings-grid {
    flex-direction: column;
    gap: 12px;
  }
  .contact-offering-item {
    flex: 1 1 auto !important;
    min-width: 100% !important;
  }
  .contact-offerings-grid:hover .contact-offering-item:not(:hover) {
    flex: 1 1 auto !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .contact-offering-item:hover {
    transform: translateY(-2px) !important;
  }
}
.contact-actions-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
  margin-top: 10px;
}
.contact-primary-row {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: center;
}
.contact-secondary-row {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
  cursor: pointer;
}
.contact-btn-primary {
  flex: 1;
  max-width: 260px;
  background: linear-gradient(135deg, var(--accent), #5a52e0);
  border: 1px solid transparent;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(124,106,247,0.25);
}
.contact-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,106,247,0.4);
}
.contact-btn-secondary {
  flex: 1;
  max-width: 170px;
  min-width: 130px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
}
.contact-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  background: var(--surface);
}

/* Mobile responsive buttons stack */
@media (max-width: 600px) {
  .contact-primary-row {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-btn-primary {
    max-width: 100%;
  }
  .contact-secondary-row {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-btn-secondary {
    max-width: 100%;
    min-width: 100%;
  }
}

.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(5, 7, 12, 0.72); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-backdrop.active { opacity: 1; visibility: visible; }
.modal-card {
  width: min(760px, 100%); max-height: 90vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow); padding: 28px; position: relative;
}
.modal-card-large { width: min(980px, 100%); }
.modal-close {
  position: absolute; top: 16px; right: 16px; border: none; background: var(--surface2);
  color: var(--text); width: 38px; height: 38px; border-radius: 999px; cursor: pointer;
  font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
}
.modal-header h3 {
  font-size: 1.35rem; font-weight: 800; margin-bottom: 8px;
}
.modal-header p { color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.modal-body { margin-top: 10px; }
.modal-body iframe {
  width: 100%; min-height: 70vh; border: 1px solid var(--border); border-radius: 12px;
  background: #fff;
}
.project-modal-body { display: flex; flex-direction: column; gap: 12px; }
.project-modal-tag {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 0.72rem; font-family: 'Fira Code', monospace; background: rgba(124,106,247,0.12);
  color: var(--accent); border: 1px solid rgba(124,106,247,0.25);
  margin-bottom: 10px;
}
.project-modal-stack {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px;
}
.project-modal-stack .stack-badge { background: var(--surface2); }
.project-modal-details ul {
  list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 6px;
}
.project-modal-details li { color: var(--muted); display: flex; gap: 8px; line-height: 1.7; }
.project-modal-details li::before { content: '▸'; color: var(--accent2); flex-shrink: 0; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
body.modal-open { overflow: hidden; }

/* ─── FOOTER ─── */
footer {
  padding: 28px 5%; text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.82rem; background: var(--surface);
}
footer span { color: var(--accent); }

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(124,106,247,0.4);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,106,247,0.55); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  #hero { grid-template-columns: 1fr; padding-top: 120px; gap: 40px; }
  .hero-carousel { order: -1; max-width: 320px; margin: 0 auto; }
  .carousel-frame { aspect-ratio: 3/2; }
  .about-grid { grid-template-columns: 1fr; }
  .teaching-grid { grid-template-columns: 1fr; }
  .services-grid {
    flex-flow: column nowrap;
    gap: 16px;
  }
  .service-card {
    flex: 1 1 auto !important;
    min-width: 100% !important;
  }
  .services-grid:hover .service-card:not(:hover) {
    flex: 1 1 auto !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .service-card:hover {
    transform: translateY(-2px) !important;
  }
}
@media (max-width: 768px) {
  .nav-center { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  section { padding: 72px 5%; }
  .timeline-header { grid-template-columns: 1fr; gap: 4px; }
  .timeline-date { grid-column: 1; grid-row: auto; text-align: left; margin-top: 6px; }
  .hero-dashboard-grid { grid-template-columns: 1fr; gap: 12px; }
  .workflow-line { left: 12px; transform: none; }
  .workflow-number { left: 12px; transform: none; }
  .workflow-card {
    width: calc(100% - 32px);
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
  .job-tasks-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
@media (max-width: 500px) {
  h1 { letter-spacing: -2px; }
  .contact-card { padding: 36px 24px; }
}

/* ─── EXPERIENCE TIMELINE ─── */
#experience {
  background: var(--surface);
}
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 40px auto 0;
  padding-left: 36px;
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 26px;
  bottom: -50px;
  width: 2px;
  background: var(--border);
  opacity: 0.35;
}
.timeline-item:last-child::before {
  display: none;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-badge {
  position: absolute;
  left: -36px;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.timeline-item:nth-child(even) .timeline-badge {
  border-color: var(--accent2);
  box-shadow: 0 0 12px rgba(86, 207, 178, 0.25);
}
.timeline-item:nth-child(odd) .timeline-badge {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(124, 106, 247, 0.25);
}
.timeline-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.timeline-content:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.timeline-header {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 12px;
}
.timeline-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}
.timeline-company {
  grid-column: 1;
  font-weight: 600;
  color: var(--accent2);
  font-size: 0.9rem;
  margin-top: 2px;
}
.timeline-date {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
  text-align: right;
}
.timeline-content > p {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 16px;
}
.timeline-item:nth-child(odd) {
  --item-accent: var(--accent);
}
.timeline-item:nth-child(even) {
  --item-accent: var(--accent2);
}
.job-tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.task-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 52px;
}
.task-box:hover,
.task-box:focus,
.task-box:focus-within {
  border-color: var(--item-accent);
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.task-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.task-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.task-expand-icon {
  font-size: 1.1rem;
  color: var(--item-accent);
  font-family: monospace;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.task-box:hover .task-expand-icon,
.task-box:focus .task-expand-icon,
.task-box:focus-within .task-expand-icon {
  transform: rotate(45deg);
}
.task-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.task-box:hover .task-desc,
.task-box:focus .task-desc,
.task-box:focus-within .task-desc {
  max-height: 160px;
  opacity: 1;
  margin-top: 10px;
}

/* ─── SELECTED IMPACT CONTEXT ─── */
.impact-context {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* ─── TESTIMONIAL CONTROLS ─── */
.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.testimonial-btn:hover {
  border-color: var(--accent);
  background: rgba(124, 106, 247, 0.08);
  color: var(--accent);
}

/* ─── COLLAPSIBLE TIMELINE ─── */
.timeline-collapsed-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}
.timeline-collapsed-wrapper.expanded {
  max-height: 2500px; /* High enough to fit all collapsed cards */
}
.timeline-toggle-container {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  width: 100%;
}

