/* ============================================================
   DESIGN SYSTEM — Executive Leadership Portfolio
   Rajkumar Venkataraman | Director of Product Engineering
   Convention: BEM | Scale: 8px | Mobile-first
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Palette — Light */
  --clr-bg:            #F8FAFC;
  --clr-bg-alt:        #F1F5F9;
  --clr-bg-inset:      #E8EEF8;
  --clr-surface:       #FFFFFF;
  --clr-surface-raise: rgba(255, 255, 255, 0.85);
  --clr-border:        rgba(15, 23, 42, 0.08);
  --clr-border-mid:    rgba(15, 23, 42, 0.11);
  --clr-border-strong: rgba(15, 23, 42, 0.16);

  --clr-text-1: #0F172A;
  --clr-text-2: #334155;
  --clr-text-3: #64748B;
  --clr-text-4: #94A3B8;
  --clr-inv:    #FFFFFF;

  /* Accent — Refined Indigo-Blue */
  --clr-a:     #2563EB;
  --clr-a-h:   #1D4ED8;
  --clr-a-sub: rgba(37, 99, 235, 0.07);
  --clr-a-mid: rgba(37, 99, 235, 0.14);
  --clr-a-str: rgba(37, 99, 235, 0.25);

  /* Semantic */
  --clr-emerald: #059669;
  --clr-sky:     #0284C7;
  --clr-violet:  #7C3AED;
  --clr-amber:   #D97706;
  --clr-teal:    #0D9488;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(15, 23, 42, 0.04);
  --sh-2: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --sh-3: 0 4px 6px rgba(15, 23, 42, 0.05), 0 2px 4px rgba(15, 23, 42, 0.04);
  --sh-4: 0 10px 20px rgba(15, 23, 42, 0.06), 0 4px 8px rgba(15, 23, 42, 0.04);
  --sh-5: 0 24px 40px rgba(15, 23, 42, 0.08), 0 8px 16px rgba(15, 23, 42, 0.04);
  --sh-accent: 0 4px 14px rgba(37, 99, 235, 0.28);
  --sh-focus:  0 0 0 3px rgba(37, 99, 235, 0.22);

  /* Typography */
  --f-sans: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont,
            'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'SF Mono', ui-monospace, 'Cascadia Code', 'Fira Code',
            Consolas, monospace;

  /* Spacing — 8px scale */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.25rem;
  --s-6:  1.5rem;
  --s-8:  2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;

  /* Radii */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Easing — physics-based */
  --ease-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo:   700ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-theme:  300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --w-container: 1200px;
  --h-nav: 68px;

  /* keep old names as aliases so any leftover refs still work */
  --color-accent:        var(--clr-a);
  --color-text-primary:  var(--clr-text-1);
  --color-text-secondary:var(--clr-text-3);
  --color-emerald:       var(--clr-emerald);
  --color-surface:       var(--clr-surface);
  --color-border:        var(--clr-border);
  --color-border-strong: var(--clr-border-strong);
  --color-accent-mid:    var(--clr-a-mid);
  --color-accent-subtle: var(--clr-a-sub);
  --color-bg-alt:        var(--clr-bg-alt);
  --color-text-muted:    var(--clr-text-4);
  --color-text-inverse:  var(--clr-inv);
  --nav-height:          var(--h-nav);
  --container-max:       var(--w-container);
  --shadow-sm:  var(--sh-2);
  --shadow-md:  var(--sh-3);
  --shadow-lg:  var(--sh-4);
  --shadow-xl:  var(--sh-5);
  --shadow-focus: var(--sh-focus);
  --space-1: var(--s-1); --space-2: var(--s-2); --space-3: var(--s-3);
  --space-4: var(--s-4); --space-5: var(--s-5); --space-6: var(--s-6);
  --space-8: var(--s-8); --space-10: var(--s-10); --space-12: var(--s-12);
  --space-16: var(--s-16); --space-20: var(--s-20);
  --radius-sm: var(--r-sm); --radius-md: var(--r-md); --radius-lg: var(--r-lg);
  --radius-full: var(--r-full);
  --ease-normal: var(--ease-base);
}

/* ── Dark Theme ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --clr-bg:            #060C18;
  --clr-bg-alt:        #0B1220;
  --clr-bg-inset:      #111D30;
  --clr-surface:       #131F32;
  --clr-surface-raise: rgba(19, 31, 50, 0.9);
  --clr-border:        rgba(255, 255, 255, 0.06);
  --clr-border-mid:    rgba(255, 255, 255, 0.09);
  --clr-border-strong: rgba(255, 255, 255, 0.14);

  --clr-text-1: #F1F5F9;
  --clr-text-2: #CBD5E1;
  --clr-text-3: #94A3B8;
  --clr-text-4: #475569;

  --clr-a:     #3B82F6;
  --clr-a-h:   #60A5FA;
  --clr-a-sub: rgba(59, 130, 246, 0.10);
  --clr-a-mid: rgba(59, 130, 246, 0.18);
  --clr-a-str: rgba(59, 130, 246, 0.30);

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.25);
  --sh-2: 0 1px 3px rgba(0, 0, 0, 0.30), 0 1px 2px rgba(0, 0, 0, 0.20);
  --sh-3: 0 4px 6px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.18);
  --sh-4: 0 10px 20px rgba(0, 0, 0, 0.30), 0 4px 8px rgba(0, 0, 0, 0.20);
  --sh-5: 0 24px 40px rgba(0, 0, 0, 0.35), 0 8px 16px rgba(0, 0, 0, 0.25);
  --sh-accent: 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes logo-reveal {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-border-strong) transparent;
}

body {
  font-family: var(--f-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--clr-text-2);
  background-color: var(--clr-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--ease-theme), color var(--ease-theme);
}

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

:focus-visible {
  outline: 2px solid var(--clr-a);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--clr-a-mid);
  color: var(--clr-text-1);
}

/* ── Reading Progress Bar ───────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 2000;
  pointer-events: none;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-a), var(--clr-sky));
  transform-origin: left;
  transform: scaleX(0);
  border-radius: 0 var(--r-full) var(--r-full) 0;
  transition: transform 0.1s linear;
}

/* ── Background ─────────────────────────────────────────────── */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at -5% 0%,   rgba(37, 99, 235, 0.055) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 105% 95%,  rgba(14, 165, 233, 0.045) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 50% 50%,   rgba(124, 58, 237, 0.02) 0%, transparent 65%);
}

[data-theme="dark"] .bg-gradient {
  background:
    radial-gradient(ellipse 70% 55% at -5% 0%,   rgba(59, 130, 246, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 105% 95%,  rgba(14, 165, 233, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 50% 50%,   rgba(124, 58, 237, 0.03) 0%, transparent 65%);
}

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  transition: box-shadow var(--ease-base), transform var(--ease-base), border-color var(--ease-base);
}

.card:hover {
  box-shadow: var(--sh-4);
  border-color: var(--clr-border-mid);
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: var(--s-8);
}

/* ── Section ────────────────────────────────────────────────── */
.section {
  padding-block: var(--s-20);
}

.section--alt {
  background-color: var(--clr-bg-alt);
}

.section__header {
  text-align: center;
  margin-bottom: var(--s-16);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-a);
  background: var(--clr-a-sub);
  border: 1px solid var(--clr-a-mid);
  padding: var(--s-1) var(--s-4);
  border-radius: var(--r-full);
  margin-bottom: var(--s-5);
}

.section__title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--clr-text-1);
  letter-spacing: -0.03em;
  margin-bottom: var(--s-4);
}

.section__subtitle {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--clr-text-3);
  max-width: 540px;
  margin-inline: auto;
}

.section__content {
  width: 100%;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.6875rem var(--s-6);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: all var(--ease-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--sh-focus);
}

.btn--primary {
  background: var(--clr-a);
  color: var(--clr-inv);
  border-color: var(--clr-a);
}

.btn--primary:hover {
  background: var(--clr-a-h);
  border-color: var(--clr-a-h);
  transform: translateY(-1px);
  box-shadow: var(--sh-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-text-2);
  border-color: var(--clr-border-strong);
}

.btn--ghost:hover {
  background: var(--clr-surface);
  border-color: var(--clr-a);
  color: var(--clr-a);
  transform: translateY(-1px);
  box-shadow: var(--sh-3);
}

.btn--outline {
  background: transparent;
  color: var(--clr-a);
  border-color: var(--clr-a);
}

.btn--outline:hover {
  background: var(--clr-a);
  color: var(--clr-inv);
  transform: translateY(-1px);
  box-shadow: var(--sh-accent);
}

.btn--full { width: 100%; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  height: var(--h-nav);
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--ease-base), box-shadow var(--ease-base), border-color var(--ease-base);
}

[data-theme="dark"] .nav {
  background: rgba(6, 12, 24, 0.88);
}

.nav.scrolled {
  box-shadow: var(--sh-3);
  border-bottom-color: var(--clr-border-mid);
}

.nav__inner {
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: var(--s-8);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
}

.nav__logo {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--clr-text-1);
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--s-1);
  transition: color var(--ease-fast);
}

.nav__logo:hover { color: var(--clr-a); }

.nav__logo-dot {
  width: 5px;
  height: 5px;
  background: var(--clr-a);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text-3);
  text-decoration: none;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  transition: color var(--ease-fast), background var(--ease-fast);
}

.nav__link:hover {
  color: var(--clr-text-1);
  background: var(--clr-a-sub);
}

.nav__link.active {
  color: var(--clr-a);
  background: var(--clr-a-sub);
  font-weight: 600;
}

.nav__controls {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}

.nav__theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--clr-border-mid);
  color: var(--clr-text-3);
  transition: all var(--ease-fast);
}

.nav__theme-btn:hover {
  background: var(--clr-surface);
  color: var(--clr-text-1);
  border-color: var(--clr-border-strong);
  box-shadow: var(--sh-2);
}

.nav__theme-btn:focus-visible {
  outline: none;
  box-shadow: var(--sh-focus);
}

.icon--sun  { display: block; }
.icon--moon { display: none; }
[data-theme="dark"] .icon--sun  { display: none; }
[data-theme="dark"] .icon--moon { display: block; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--s-2);
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text-1);
  border-radius: var(--r-full);
  transition: all var(--ease-base);
}

.nav__hamburger.active .nav__bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.active .nav__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.active .nav__bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--h-nav) + var(--s-16));
  padding-bottom: var(--s-8);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-16);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-a);
  margin-bottom: var(--s-5);
}

.hero__eyebrow-bar {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--clr-a);
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--clr-text-1);
  margin-bottom: var(--s-6);
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--clr-a) 0%, var(--clr-sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__summary {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.8;
  color: var(--clr-text-3);
  max-width: 520px;
  margin-bottom: var(--s-8);
}

.hero__actions {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-10);
}

.hero__socials {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}

.hero__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--clr-border-strong);
  color: var(--clr-text-3);
  background: var(--clr-surface);
  transition: all var(--ease-base);
}

.hero__social-link:hover {
  background: var(--clr-a);
  border-color: var(--clr-a);
  color: var(--clr-inv);
  transform: translateY(-2px);
  box-shadow: var(--sh-accent);
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__profile-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--clr-a) 0%, var(--clr-sky) 50%, var(--clr-violet) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 7s ease infinite;
  box-shadow: var(--sh-5), 0 0 40px rgba(37, 99, 235, 0.18);
  flex-shrink: 0;
  transition: transform var(--ease-slow), box-shadow var(--ease-slow);
}

.hero__profile-ring:hover {
  transform: scale(1.03);
  box-shadow: var(--sh-5), 0 0 60px rgba(37, 99, 235, 0.28);
}

.hero__profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--clr-bg-alt);
}

/* ── Stat Cards ─────────────────────────────────────────────── */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-12);
}

.stat-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5);
  text-align: center;
  box-shadow: var(--sh-2);
  cursor: default;
  transition: box-shadow var(--ease-base), transform var(--ease-base), border-color var(--ease-base);
}

.stat-card:hover {
  box-shadow: var(--sh-4), 0 0 0 1px var(--clr-a-mid);
  transform: translateY(-3px);
  border-color: var(--clr-a-mid);
}

.stat-card__number {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--clr-a);
  line-height: 1;
  margin-bottom: var(--s-2);
  font-variant-numeric: tabular-nums;
}

.stat-card__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clr-text-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* ── About ──────────────────────────────────────────────────── */
.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: start;
}

.about__lead {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.78;
  color: var(--clr-text-1);
  margin-bottom: var(--s-6);
}

.about__body {
  font-size: 1rem;
  line-height: 1.82;
  color: var(--clr-text-3);
  margin-bottom: var(--s-6);
}

.about__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.highlight-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-2);
  transition: all var(--ease-base);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-a), var(--clr-sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease-base);
  border-radius: var(--r-full) var(--r-full) 0 0;
}

.highlight-card:hover {
  box-shadow: var(--sh-4);
  border-color: var(--clr-a-mid);
  transform: translateY(-3px);
}

.highlight-card:hover::before {
  transform: scaleX(1);
}

.highlight-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--clr-a-sub);
  border-radius: var(--r-md);
  color: var(--clr-a);
  margin-bottom: var(--s-4);
  transition: all var(--ease-base);
}

.highlight-card:hover .highlight-card__icon {
  background: var(--clr-a);
  color: var(--clr-inv);
  transform: scale(1.05);
}

.highlight-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--clr-text-1);
  margin-bottom: var(--s-2);
  letter-spacing: -0.015em;
}

.highlight-card__body {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--clr-text-3);
}

/* ── Timeline ───────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: var(--s-10);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: var(--s-4);
  bottom: var(--s-4);
  width: 2px;
  background: linear-gradient(to bottom,
    var(--clr-a) 0%,
    var(--clr-sky) 50%,
    var(--clr-border-mid) 100%);
  border-radius: var(--r-full);
}

.timeline__item {
  position: relative;
  margin-bottom: var(--s-10);
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: calc(-1 * var(--s-10) + 6px);
  top: var(--s-8);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clr-a);
  border: 2.5px solid var(--clr-bg-alt);
  box-shadow: 0 0 0 3px var(--clr-a-mid);
  z-index: 1;
  transition: transform var(--ease-spring), box-shadow var(--ease-base);
}

.timeline__item:hover .timeline__marker {
  transform: scale(1.4);
  box-shadow: 0 0 0 5px var(--clr-a-mid), var(--sh-accent);
}

.timeline__content {
  padding: var(--s-8);
}

.timeline__header {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}

.timeline__role-block {
  flex: 1;
  min-width: 0;
}

.timeline__company-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-mid);
  border-radius: var(--r-lg);
  padding: var(--s-2);
  transition: all var(--ease-base);
  overflow: hidden;
}

.timeline__company-logo.reveal {
  opacity: 0;
  transform: scale(0.8) translateY(20px);
}

.timeline__company-logo.reveal.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.timeline__company-logo:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-3);
  border-color: var(--clr-a-mid);
}

.timeline__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--ease-slow);
}

.timeline__company-logo:hover .timeline__logo {
  transform: scale(1.06);
}

.timeline__role {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--clr-text-1);
  letter-spacing: -0.025em;
  margin-bottom: var(--s-2);
  line-height: 1.3;
}

.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.875rem;
}

.timeline__company {
  font-weight: 600;
  color: var(--clr-a);
}

.timeline__sep {
  color: var(--clr-text-4);
}

.timeline__period,
.timeline__location {
  color: var(--clr-text-4);
  font-size: 0.8125rem;
}

.timeline__badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px var(--s-3);
  border-radius: var(--r-full);
}

.timeline__badge--active {
  background: rgba(5, 150, 105, 0.08);
  color: var(--clr-emerald);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.timeline__summary {
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--clr-text-3);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--clr-border);
}

.timeline__impact {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.timeline__impact-item {
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--clr-text-3);
  padding-left: var(--s-4);
  border-left: 2px solid var(--clr-a-mid);
  transition: border-color var(--ease-fast);
}

.timeline__item:hover .timeline__impact-item {
  border-color: var(--clr-a);
}

.timeline__impact-item strong {
  color: var(--clr-text-1);
  font-weight: 600;
}

.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--clr-a-sub);
  color: var(--clr-a);
  border: 1px solid var(--clr-a-mid);
  letter-spacing: 0.02em;
  transition: all var(--ease-fast);
}

.tag:hover {
  background: var(--clr-a);
  color: var(--clr-inv);
  border-color: var(--clr-a);
}

/* ── Capabilities ───────────────────────────────────────────── */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.capability-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  box-shadow: var(--sh-2);
  transition: all var(--ease-base);
  position: relative;
  overflow: hidden;
}

.capability-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--clr-a-sub) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--ease-base);
  pointer-events: none;
  border-radius: inherit;
}

.capability-card:hover {
  box-shadow: var(--sh-5);
  border-color: var(--clr-a-mid);
  transform: translateY(-4px);
}

.capability-card:hover::after {
  opacity: 1;
}

.capability-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--clr-a-sub);
  border: 1px solid var(--clr-a-mid);
  border-radius: var(--r-md);
  color: var(--clr-a);
  margin-bottom: var(--s-5);
  transition: all var(--ease-spring);
  position: relative;
  z-index: 1;
}

.capability-card:hover .capability-card__icon {
  background: var(--clr-a);
  border-color: var(--clr-a);
  color: var(--clr-inv);
  transform: scale(1.08) rotate(-2deg);
  box-shadow: var(--sh-accent);
}

.capability-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text-1);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
  position: relative;
  z-index: 1;
}

.capability-card__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--clr-text-3);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--clr-border);
  position: relative;
  z-index: 1;
}

.capability-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  position: relative;
  z-index: 1;
}

.capability-card__list li {
  font-size: 0.8rem;
  color: var(--clr-text-3);
  padding-left: var(--s-4);
  position: relative;
  line-height: 1.55;
}

.capability-card__list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--clr-a);
  font-weight: 700;
}

/* ── Certifications ─────────────────────────────────────────── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-16);
}

.cert-card {
  display: flex;
  gap: var(--s-4);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-2);
  transition: all var(--ease-base);
}

.cert-card:hover {
  box-shadow: var(--sh-4);
  transform: translateY(-2px);
  border-color: var(--clr-border-mid);
}

.cert-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  transition: transform var(--ease-spring);
}

.cert-card:hover .cert-card__badge {
  transform: scale(1.1) rotate(3deg);
}

.cert-card__badge--green  { background: rgba(5,  150, 105, 0.10); color: var(--clr-emerald); }
.cert-card__badge--blue   { background: rgba(37,  99, 235, 0.10); color: var(--clr-a); }
.cert-card__badge--orange { background: rgba(217, 119,  6, 0.10); color: var(--clr-amber); }
.cert-card__badge--purple { background: rgba(124,  58, 237, 0.10); color: var(--clr-violet); }
.cert-card__badge--teal   { background: rgba(13,  148, 136, 0.10); color: var(--clr-teal); }

.cert-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--clr-text-1);
  margin-bottom: var(--s-1);
  letter-spacing: -0.01em;
}

.cert-card__issuer {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--clr-a);
  margin-bottom: var(--s-2);
}

.cert-card__meta {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--clr-text-3);
}

/* ── Education ──────────────────────────────────────────────── */
.education {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
}

.education__heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text-1);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--clr-border);
  letter-spacing: -0.01em;
}

.education__items {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.education__degree {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-text-1);
  margin-bottom: var(--s-1);
}

.education__meta {
  font-size: 0.875rem;
  color: var(--clr-text-3);
}

/* ── Blog / Insights ────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  box-shadow: var(--sh-2);
  text-decoration: none;
  transition: all var(--ease-base);
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-a), var(--clr-sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease-base);
}

.blog-card:hover {
  box-shadow: var(--sh-5);
  border-color: var(--clr-border-mid);
  transform: translateY(-4px);
}

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-card__category {
  display: inline-block;
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-bottom: var(--s-4);
  width: fit-content;
}

.blog-card__category--blue   { background: rgba(37, 99, 235, 0.08);  color: var(--clr-a);       border: 1px solid var(--clr-a-mid); }
.blog-card__category--purple { background: rgba(124, 58, 237, 0.08); color: var(--clr-violet);  border: 1px solid rgba(124, 58, 237, 0.15); }
.blog-card__category--green  { background: rgba(5, 150, 105, 0.08);  color: var(--clr-emerald); border: 1px solid rgba(5, 150, 105, 0.15); }
.blog-card__category--orange { background: rgba(217, 119, 6, 0.08);  color: var(--clr-amber);   border: 1px solid rgba(217, 119, 6, 0.15); }

.blog-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-text-1);
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin-bottom: var(--s-3);
  flex: 1;
  transition: color var(--ease-fast);
}

.blog-card:hover .blog-card__title {
  color: var(--clr-a);
}

.blog-card__excerpt {
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--clr-text-3);
  margin-bottom: var(--s-6);
}

.blog-card__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-a);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  transition: gap var(--ease-base);
}

.blog-card:hover .blog-card__cta {
  gap: var(--s-3);
}

/* ── Contact ─────────────────────────────────────────────────── */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-8);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.contact__card {
  padding: var(--s-8);
}

.contact__card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text-1);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--clr-border);
  letter-spacing: -0.01em;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.contact__item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 0.9375rem;
  color: var(--clr-text-3);
  text-decoration: none;
  padding: var(--s-3);
  border-radius: var(--r-md);
  transition: all var(--ease-base);
}

.contact__item:hover {
  background: var(--clr-a-sub);
  color: var(--clr-a);
}

.contact__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--clr-bg-alt);
  color: var(--clr-a);
  flex-shrink: 0;
  transition: all var(--ease-base);
}

.contact__item:hover .contact__item-icon {
  background: var(--clr-a);
  color: var(--clr-inv);
}

.contact__card--accent {
  background: linear-gradient(135deg, var(--clr-a-sub) 0%, transparent 100%);
  border-color: var(--clr-a-mid);
}

.contact__quote {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--clr-text-2);
  font-style: italic;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--clr-border);
}

.contact__availability {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-emerald);
}

.contact__availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-emerald);
  animation: pulse-dot 2.5s ease infinite;
  flex-shrink: 0;
}

.contact__form {
  padding: var(--s-8);
}

.contact__form-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text-1);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--clr-border);
  letter-spacing: -0.01em;
}

.form-group {
  margin-bottom: var(--s-5);
}

.form-group__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clr-text-2);
  margin-bottom: var(--s-2);
  letter-spacing: 0.01em;
}

.form-group__input {
  width: 100%;
  padding: 0.6875rem var(--s-4);
  font-size: 0.9375rem;
  font-family: var(--f-sans);
  color: var(--clr-text-1);
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border-mid);
  border-radius: var(--r-md);
  transition: all var(--ease-fast);
  appearance: none;
}

.form-group__input::placeholder {
  color: var(--clr-text-4);
}

.form-group__input:focus {
  outline: none;
  border-color: var(--clr-a);
  background: var(--clr-surface);
  box-shadow: 0 0 0 3px var(--clr-a-sub);
}

.form-group__select {
  cursor: pointer;
}

.form-group__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--clr-bg-alt);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--s-12);
  padding-bottom: var(--s-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--s-8);
  align-items: center;
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: var(--s-6);
}

.footer__logo {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--clr-text-1);
  margin-bottom: var(--s-2);
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--clr-text-4);
}

.footer__nav {
  display: flex;
  gap: var(--s-5);
}

.footer__link {
  font-size: 0.875rem;
  color: var(--clr-text-3);
  transition: color var(--ease-fast);
}

.footer__link:hover {
  color: var(--clr-a);
}

.footer__link--muted {
  color: var(--clr-text-4);
  font-size: 0.8125rem;
}

.footer__socials {
  display: flex;
  gap: var(--s-3);
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--clr-border-mid);
  color: var(--clr-text-3);
  background: var(--clr-surface);
  transition: all var(--ease-fast);
}

.footer__social:hover {
  background: var(--clr-a);
  border-color: var(--clr-a);
  color: var(--clr-inv);
  transform: translateY(-2px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  font-size: 0.8125rem;
  color: var(--clr-text-4);
}

/* ── Scroll to Top ──────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: var(--s-8);
  right: var(--s-8);
  z-index: 900;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-strong);
  color: var(--clr-text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-3);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all var(--ease-base);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--clr-a);
  border-color: var(--clr-a);
  color: var(--clr-inv);
  transform: translateY(-2px);
  box-shadow: var(--sh-accent);
}

/* ── Reveal Animations ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  var(--ease-expo),
    transform var(--ease-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }
.reveal:nth-child(5) { transition-delay: 320ms; }
.reveal:nth-child(6) { transition-delay: 400ms; }

/* ── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__visual    { order: -1; }
  .hero__actions,
  .hero__socials   { justify-content: center; }
  .hero__summary   { max-width: 100%; }
  .hero__stats     { grid-template-columns: repeat(2, 1fr); }
  .about__layout   { grid-template-columns: 1fr; gap: var(--s-10); }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid       { grid-template-columns: repeat(2, 1fr); }
  .contact__layout { grid-template-columns: 1fr; }
  .footer__inner   { grid-template-columns: 1fr; text-align: center; }
  .footer__nav     { justify-content: center; }
  .footer__socials { justify-content: center; }
}

@media (max-width: 768px) {
  :root { --h-nav: 60px; }

  .container     { padding-inline: var(--s-5); }
  .section       { padding-block: var(--s-16); }
  .section__header { margin-bottom: var(--s-10); }

  .nav__menu { display: none; }
  .nav__hamburger { display: flex; }

  .nav__menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--h-nav);
    left: 0;
    right: 0;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    padding: var(--s-4) var(--s-5) var(--s-6);
    gap: var(--s-1);
    box-shadow: var(--sh-4);
  }

  .hero__profile-ring { width: 220px; height: 220px; }
  .hero__stats        { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
  .about__highlights  { grid-template-columns: 1fr; }

  .timeline { padding-left: var(--s-6); }
  .timeline__marker { left: calc(-1 * var(--s-6) + 6px); top: var(--s-6); }
  .timeline__content { padding: var(--s-6); }
  .timeline__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
  }
  .timeline__company-logo { width: 56px; height: 56px; }
  .timeline__meta   { flex-direction: column; align-items: flex-start; gap: var(--s-1); }
  .timeline__sep    { display: none; }

  .capability-grid { grid-template-columns: 1fr; }
  .cert-grid       { grid-template-columns: 1fr; }
  .blog-grid       { grid-template-columns: 1fr; }
  .contact__layout { grid-template-columns: 1fr; }

  .footer__bottom  { flex-direction: column; text-align: center; }
  .scroll-top      { bottom: var(--s-5); right: var(--s-5); }
}

@media (max-width: 480px) {
  .hero__title   { font-size: 2.25rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .cert-grid     { grid-template-columns: 1fr; }
}
