/* ============================================================
   MUHAMMED MUSA — PERSONAL BRAND WEBSITE
   style.css  |  Mobile-first, WCAG 2.1 AA, GPU-accelerated
   ============================================================ */

/* ─── 1. CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  /* Brand Colours */
  --primary:       #0B3D52;
  --primary-dark:  #071F2E;
  --primary-mid:   #0D4F6C;
  --primary-light: #E8F4F9;
  --accent:        #00C896;
  --accent-dark:   #00A87E;
  --accent-glow:   rgba(0, 200, 150, 0.18);

  /* Neutrals */
  --bg:            #F7F9FC;
  --bg-tinted:     #EEF5F9;
  --surface:       #FFFFFF;
  --border:        #E0E8EF;
  --text:          #1A1A2E;
  --text-secondary:#4A5568;
  --text-muted:    #8896A7;

  /* Dark section neutrals */
  --dark-bg:       #071F2E;
  --dark-surface:  rgba(255, 255, 255, 0.05);
  --dark-border:   rgba(255, 255, 255, 0.1);
  --dark-text:     rgba(255, 255, 255, 0.9);
  --dark-muted:    rgba(255, 255, 255, 0.55);

  /* Typography */
  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-py:    100px;
  --section-py-sm:  64px;
  --container-max: 1160px;
  --container-px:   24px;
  --nav-h:          70px;

  /* Shape */
  --radius-sm:  8px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 14px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-glow:0 0 40px rgba(0, 200, 150, 0.15);

  /* Transitions */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── 2. RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ─── 3. LAYOUT UTILITIES ───────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  padding: var(--section-py) 0;
}

.section--dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.section--tinted {
  background: var(--bg-tinted);
}

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

/* ─── 4. TYPOGRAPHY ─────────────────────────────────────────────── */
.section__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section__label--light { color: var(--accent); }

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}
.section--dark .section__heading { color: var(--dark-text); }

.section__sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
}
.section--dark .section__sub { color: var(--dark-muted); }

.section__header {
  margin-bottom: 56px;
}
.section__header.text-center .section__sub {
  margin: 0 auto;
}

/* ─── 5. BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 150ms var(--ease-fast), box-shadow 150ms var(--ease-fast), background 150ms, border-color 150ms, color 150ms;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.btn:active { transform: scale(0.97); }

/* Primary (used in hero) */
.btn--primary {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 200, 150, 0.35);
}

/* Accent (used in nav CTA, contact) */
.btn--accent {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn--accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 200, 150, 0.35);
}

/* Outline (hero secondary) */
.btn--outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

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

/* ─── 6. NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: background 300ms var(--ease-fast), box-shadow 300ms var(--ease-fast), backdrop-filter 300ms;
}

.nav.scrolled {
  background: rgba(7, 31, 46, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 150ms, background 150ms;
}
.nav__link:hover,
.nav__link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav__cta {
  flex-shrink: 0;
  padding: 9px 20px;
  font-size: 0.875rem;
  margin-left: 8px;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: 8px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 200ms var(--ease-fast), opacity 200ms;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── 7. MOBILE DRAWER ──────────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--primary-dark);
  z-index: 300;
  padding: 80px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 300ms var(--ease);
}
.drawer.open { transform: translateX(0); }

.drawer__close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(255,255,255,0.7);
  padding: 8px;
  border-radius: 8px;
  transition: color 150ms, background 150ms;
}
.drawer__close:hover { color: #fff; background: rgba(255,255,255,0.08); }

.drawer__links { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.drawer__link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  padding: 12px 8px;
  border-radius: 8px;
  transition: color 150ms, background 150ms;
}
.drawer__link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.drawer__cta { margin-top: 8px; }

.drawer__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms;
}
.drawer__backdrop.visible { opacity: 1; pointer-events: all; }

/* ─── 8. HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  flex: 1;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
}

.hero__divider { color: rgba(255,255,255,0.3); }

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Photo placeholder */
.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__photo-ring {
  position: relative;
  width: min(380px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(0,200,150,0.2) 100%);
}

.hero__photo-ring::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-glow), transparent 60%, var(--accent-glow));
  animation: rotate 8s linear infinite;
  opacity: 0.5;
}

.hero__photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
}

.hero__photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2.4s ease-in-out infinite;
  transition: color 150ms;
}
.hero__scroll-indicator:hover { color: rgba(255,255,255,0.8); }

/* ─── 9. ABOUT ───────────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__visual {
  display: flex;
  justify-content: center;
}

.about__graphic {
  width: min(320px, 100%);
  filter: drop-shadow(0 20px 40px rgba(11, 61, 82, 0.15));
}

.about__svg { width: 100%; height: auto; }

.about__content { max-width: 560px; }

.about__lead {
  font-size: 1.1rem;
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-weight: 400;
}

.about__body {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.about__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(11, 61, 82, 0.15);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ─── 10. EXPERTISE ──────────────────────────────────────────────── */
.expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.expertise__card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), border-color 250ms, background 250ms;
}

.expertise__card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(0, 200, 150, 0.3);
  box-shadow: 0 20px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(0, 200, 150, 0.15);
}

.expertise__icon {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.expertise__card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 10px;
  line-height: 1.35;
}

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

/* ─── 11. PROJECTS / TIMELINE ─────────────────────────────────────── */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Vertical connector line behind all items */
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--border) 100%);
}

.timeline__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 28px;
  padding-bottom: 48px;
}

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

.timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3px;
}

.timeline__dot {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--border);
  flex-shrink: 0;
  transition: border-color 300ms;
  position: relative;
  z-index: 1;
}

.timeline__dot--active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 200, 150, 0.2);
}

.timeline__content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 250ms, border-color 250ms, transform 250ms var(--ease);
}

.timeline__content:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 61, 82, 0.2);
  transform: translateX(4px);
}

.timeline__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.timeline__date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.2);
  padding: 3px 10px;
  border-radius: 100px;
}

.timeline__org {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.timeline__role {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.35;
}

.timeline__bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.timeline__bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.timeline__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── 12. CREDENTIALS ────────────────────────────────────────────── */
.credentials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.credential__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 28px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 250ms, border-color 250ms, transform 250ms var(--ease);
}

.credential__card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 61, 82, 0.2);
  transform: translateY(-3px);
}

.credential__card--progress {
  border-style: dashed;
  opacity: 0.85;
}

.credential__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--primary);
}

.credential__icon--muted { color: var(--text-muted); }

.credential__text { flex: 1; min-width: 0; }

.credential__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.35;
}

.credential__inst {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.credential__detail {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.credential__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.25);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ─── 13. INSIGHTS / BLOG ─────────────────────────────────────────── */
.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.insight__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 250ms, border-color 250ms, transform 250ms var(--ease);
}

.insight__card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 61, 82, 0.2);
  transform: translateY(-5px);
}

a.insight__card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.insight__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
  align-self: flex-start;
}

.insight__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.insight__excerpt {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
}

.insight__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.insight__date,
.insight__read {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── 14. CONTACT ────────────────────────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--dark-text);
  margin-bottom: 16px;
  margin-top: 12px;
}

.contact__sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-muted);
  margin-bottom: 36px;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: color 150ms, background 150ms, border-color 150ms;
}

.contact__link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-color: rgba(0, 200, 150, 0.3);
}

/* ─── 15. FORM ───────────────────────────────────────────────────── */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.01em;
}

.form__input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--dark-text);
  transition: border-color 150ms, background 150ms, box-shadow 150ms;
  width: 100%;
}

.form__input::placeholder { color: rgba(255,255,255,0.3); }

.form__input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.15);
}

.form__input.error {
  border-color: #F87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.form__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form__select option { background: var(--primary-dark); color: #fff; }

.form__textarea { resize: vertical; min-height: 130px; }

.form__group--checkbox { flex-direction: row; align-items: flex-start; gap: 10px; }

.form__check-label {
  display: flex;
  gap: 10px;
  cursor: pointer;
}

.form__check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--accent);
  margin-top: 2px;
  cursor: pointer;
}

.form__check-text {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.5);
}

.form__link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ─── 16. FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: #040F18;
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer__nav a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  transition: color 150ms;
}

.footer__nav a:hover { color: #fff; }

.footer__social {
  color: rgba(255,255,255,0.5);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: color 150ms, border-color 150ms, background 150ms;
}

.footer__social:hover {
  color: var(--accent);
  border-color: rgba(0, 200, 150, 0.3);
  background: rgba(0, 200, 150, 0.06);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__copy,
.footer__moment {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer__moment { font-style: italic; }

/* ─── 17. ANIMATIONS ─────────────────────────────────────────────── */

/* Hero entrance (load-time, no JS needed) */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.75s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered reveals (class added by JS via Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

/* Staggered delays */
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }

/* Hero glow ring rotation */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Scroll indicator bounce */
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* Nav active highlight pulse */
.nav__link.active {
  color: #fff;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── 18. RESPONSIVE — TABLET ─────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 60px;
  }

  .hero__image { order: -1; }

  .hero__photo-ring { width: min(260px, 70vw); }

  .hero__subtitle { align-items: center; }

  .hero__ctas { justify-content: center; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about__content { max-width: 100%; }

  .about__badges { justify-content: center; }

  .expertise__grid { grid-template-columns: repeat(2, 1fr); }

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

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__hamburger { display: flex; }
}

/* ─── 19. RESPONSIVE — MOBILE ─────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --section-py: 64px;
    --container-px: 20px;
  }

  .hero__name {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

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

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

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

  .timeline::before { left: 8px; }

  .timeline__item { grid-template-columns: 20px 1fr; gap: 16px; }

  .timeline__content { padding: 20px; }

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

  .footer__inner { flex-direction: column; align-items: flex-start; }

  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ─── 20. REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .hero__photo-ring::before { animation: none; }
}
