/* ═══════════════════════════════════════════════════════
   FRANCIS SESAY — PORTFOLIO STYLESHEET
   Architecture: CSS Custom Properties → Component styles
   Design: Dark-first, glassmorphism, neon accents
   Fonts: Syne (display) + DM Sans (body) + JetBrains Mono
═══════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────
   1. DESIGN TOKENS (CSS Custom Properties)
────────────────────────────────────────────────────── */
:root {
  /* Colors — Dark theme (default) */
  --bg-primary:     #030712;
  --bg-secondary:   #0b1121;
  --bg-card:        #0f172a;
  --bg-glass:       rgba(15, 23, 42, 0.65);

  --text-primary:   #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --accent-blue:    #3b82f6;
  --accent-purple:  #8b5cf6;
  --accent-cyan:    #06b6d4;
  --accent-neon:    #a78bfa;

  --grad-primary:   linear-gradient(135deg, #3b82f6, #8b5cf6);
  --grad-hero:      linear-gradient(135deg, #1e3a8a 0%, #4c1d95 50%, #0f172a 100%);
  --grad-glow:      radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.15) 0%, transparent 70%);

  --border-subtle:  rgba(255,255,255,0.04);
  --border-card:    rgba(255,255,255,0.06);
  --border-active:  rgba(139,92,246,0.4);

  --shadow-card:    0 8px 32px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.08) inset;
  --shadow-glow:    0 0 40px rgba(139,92,246,0.25);

  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-xl:      32px;

  --font-display:   'Outfit', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  --nav-h:          76px;
  --transition:     0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light theme overrides */
[data-theme="light"] {
  --bg-primary:     #f8faff;
  --bg-secondary:   #f0f4ff;
  --bg-card:        #ffffff;
  --bg-glass:       rgba(255, 255, 255, 0.7);

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  --border-subtle:  rgba(0,0,0,0.06);
  --border-card:    rgba(0,0,0,0.08);

  --shadow-card:    0 4px 24px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.9) inset;
  --shadow-glow:    0 0 40px rgba(139,92,246,0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; }
strong { font-weight: 600; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 99px; }

/* ──────────────────────────────────────────────────────
   3. LAYOUT UTILITIES
────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section {
  padding: clamp(4rem, 10vw, 10rem) 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-neon);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 3.5rem;
}

/* ──────────────────────────────────────────────────────
   4. SCROLL PROGRESS BAR
────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad-primary);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ──────────────────────────────────────────────────────
   5. CURSOR GLOW (desktop)
────────────────────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s;
  opacity: 0;
}

/* ──────────────────────────────────────────────────────
   6. NAVIGATION
────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

[data-theme="light"] .nav.scrolled {
  background: rgba(248, 250, 255, 0.85);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav__logo-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

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

.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
  background: var(--border-subtle);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--border-subtle);
  display: grid;
  place-items: center;
  transition: background var(--transition);
  font-size: 1rem;
}

.theme-toggle:hover { background: var(--border-card); }

.theme-toggle__icon { line-height: 1; }
[data-theme="dark"]  .theme-toggle__sun  { display: block; }
[data-theme="dark"]  .theme-toggle__moon { display: none;  }
[data-theme="light"] .theme-toggle__sun  { display: none;  }
[data-theme="light"] .theme-toggle__moon { display: block; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ──────────────────────────────────────────────────────
   7. BUTTONS
────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn--primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139,92,246,0.3);
}
.btn--primary:hover {
  box-shadow: 0 8px 25px rgba(139,92,246,0.5);
  transform: translateY(-2px);
}

.btn--ghost {
  background: var(--border-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}
.btn--ghost:hover {
  background: var(--border-card);
  border-color: var(--border-active);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}
.btn--outline:hover {
  background: var(--border-subtle);
  border-color: var(--accent-neon);
}

.btn--sm  { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn--full { width: 100%; justify-content: center; }

/* ──────────────────────────────────────────────────────
   8. HERO SECTION
────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Animated background */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}

.hero__orb--1 {
  width: 500px; height: 500px;
  background: rgba(59, 130, 246, 0.15);
  top: -10%; left: -10%;
  animation-delay: 0s;
}

.hero__orb--2 {
  width: 400px; height: 400px;
  background: rgba(139, 92, 246, 0.12);
  top: 20%; right: -5%;
  animation-delay: -3s;
}

.hero__orb--3 {
  width: 300px; height: 300px;
  background: rgba(6, 182, 212, 0.08);
  bottom: 10%; left: 30%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 20px) scale(0.95); }
}

.hero__container {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero__content {
  flex: 1;
  max-width: 640px;
}

.hero__image-wrapper {
  flex-shrink: 0;
  position: relative;
  width: clamp(260px, 35vw, 400px);
}

.hero__image-glow {
  position: absolute;
  inset: -10%;
  background: var(--grad-primary);
  filter: blur(60px);
  opacity: 0.25;
  border-radius: 50%;
  z-index: 0;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.15; transform: scale(0.95); }
  100% { opacity: 0.35; transform: scale(1.05); }
}

.hero__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Hero social pill */
.hero__socials-pill {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero__socials-pill:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}

.hero__social-icon {
  color: var(--text-primary);
  opacity: 0.8;
  display: grid;
  place-items: center;
  transition: all var(--transition);
}

.hero__social-icon:hover {
  opacity: 1;
  color: var(--accent-neon);
  transform: scale(1.1);
}

.hero__socials-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .hero__socials-pill {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .hero__socials-divider {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hero__social-icon {
  color: var(--text-secondary);
}

[data-theme="light"] .hero__social-icon:hover {
  color: var(--accent-blue);
}

.hero__eyebrow { margin-bottom: 1.5rem; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  border: 1px solid var(--border-active);
  background: rgba(139,92,246,0.08);
  font-size: 0.8rem;
  color: var(--accent-neon);
  font-family: var(--font-mono);
}

.hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.7);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero__headline-sub {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.hero__headline-main {
  display: block;
  font-size: clamp(3rem, 7vw, 5.5rem);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__headline-typed {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 0.3rem;
}

.typed-cursor {
  color: var(--accent-neon);
  animation: blink 0.85s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  background: var(--border-subtle);
  border: 1px solid var(--border-card);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.chip:hover {
  color: var(--accent-neon);
  border-color: var(--border-active);
  background: rgba(139,92,246,0.08);
}

/* Scroll cue */
.hero__scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50%       { transform: scaleY(1.3); opacity: 0.8; }
}

/* ──────────────────────────────────────────────────────
   9. REVEAL ANIMATIONS
────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger siblings */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ──────────────────────────────────────────────────────
   10. ABOUT SECTION
────────────────────────────────────────────────────── */
.about__container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: start;
}

.about__body {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about__awards {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

/* Card stack on the right */
.about__card-stack {
  position: relative;
  height: 380px;
}

.about__card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  position: absolute;
  transition: transform var(--transition);
}

.about__card--main {
  width: 100%;
  top: 0; left: 0;
}

.about__card--float {
  padding: 1.25rem;
}

.about__card--edu {
  bottom: 4rem;
  right: -1.5rem;
  width: 200px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.about__card--open {
  bottom: 0;
  left: -1rem;
  width: 210px;
}

.about__card:hover { transform: translateY(-4px); }

.about__card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.about__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--border-active);
}

.about__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__card-header strong { display: block; font-size: 0.95rem; }
.about__card-header small {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.about__card-stats {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.about__mini-stat { text-align: center; flex: 1; }
.about__mini-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about__mini-stat span:last-child {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.about__card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-neon);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.about__badge-open {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.7);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────
   11. IMPACT / STATS SECTION
────────────────────────────────────────────────────── */
.impact {
  background: var(--bg-secondary);
  overflow: hidden;
}

.impact__bg-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
}

.impact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 3rem 0;
  border: 1px solid var(--border-card);
}

.impact__stat {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: background var(--transition);
}

.impact__stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.impact__stat:hover { background: var(--bg-secondary); }
.impact__stat:hover::before { opacity: 0.03; }

.impact__stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.impact__stat-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  position: relative;
  z-index: 1;
}

.impact__stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.impact__partners {
  text-align: center;
}

.impact__partners-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.impact__partners-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.partner-tag {
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.partner-tag:hover {
  border-color: var(--border-active);
  color: var(--accent-neon);
}

/* ──────────────────────────────────────────────────────
   12. SKILLS SECTION
────────────────────────────────────────────────────── */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.skill-card:hover::after { transform: scaleX(1); }

.skill-card__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.skill-card__header h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.skill-card__icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.skill-card__icon svg { width: 20px; height: 20px; }

.skill-card__icon--ai      { background: rgba(139,92,246,0.12); color: var(--accent-neon); }
.skill-card__icon--backend { background: rgba(59,130,246,0.12); color: var(--accent-blue); }
.skill-card__icon--frontend{ background: rgba(6,182,212,0.12);  color: var(--accent-cyan);  }
.skill-card__icon--devops  { background: rgba(249,115,22,0.12); color: #fb923c; }

.skill-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.stag {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: var(--border-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  transition: all var(--transition);
}

.stag--hot {
  background: rgba(139,92,246,0.1);
  color: var(--accent-neon);
  border-color: rgba(139,92,246,0.2);
}

.skill-card:hover .stag { border-color: var(--border-active); }

.skill-card__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.skill-bar {
  flex: 1;
  height: 4px;
  background: var(--border-subtle);
  border-radius: 99px;
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  width: 0;
  background: var(--grad-primary);
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

/* ──────────────────────────────────────────────────────
   13. PROJECTS SECTION
────────────────────────────────────────────────────── */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

/* Featured card spans 2 columns */
.project-card--featured {
  grid-column: span 2;
}

.project-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(139,92,246,0.08), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.project-card:hover .project-card__glow { opacity: 1; }

.project-card__inner {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.project-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.project-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.project-tag--ai      { background: rgba(139,92,246,0.12); color: #a78bfa; border: 1px solid rgba(139,92,246,0.2); }
.project-tag--ml      { background: rgba(59,130,246,0.12);  color: #60a5fa; border: 1px solid rgba(59,130,246,0.2);  }
.project-tag--data    { background: rgba(6,182,212,0.12);   color: #22d3ee; border: 1px solid rgba(6,182,212,0.2);   }
.project-tag--edu     { background: rgba(34,197,94,0.12);   color: #4ade80; border: 1px solid rgba(34,197,94,0.2);   }
.project-tag--sys     { background: rgba(249,115,22,0.12);  color: #fb923c; border: 1px solid rgba(249,115,22,0.2);  }

.project-award {
  margin-left: auto;
  font-size: 0.75rem;
  color: #fbbf24;
  font-weight: 500;
}

.project-wip {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #fbbf24;
  border: 1px dashed rgba(251,191,36,0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.project-card__stack span {
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: var(--border-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-card);
}

.project-card__footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.project-card__metric {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.project-card__metric strong { color: var(--accent-neon); }

/* ──────────────────────────────────────────────────────
   14. EXPERIENCE TIMELINE
────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  margin: 3rem 0;
}

/* Central vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent-purple), transparent);
  transform: translateX(-50%);
}

.timeline__item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

/* Even items go right */
.timeline__item[data-side="right"] { flex-direction: row-reverse; }

.timeline__dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent-purple);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 12px var(--accent-purple);
  transform: translateX(-50%);
  z-index: 1;
  flex-shrink: 0;
}

.timeline__card {
  flex: 1;
  max-width: calc(50% - 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition);
}

.timeline__card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
}

/* Spacer for the opposite side */
.timeline__item::before {
  content: '';
  flex: 1;
  max-width: calc(50% - 2rem);
}
.timeline__item[data-side="right"]::before { order: 2; }

.timeline__card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.timeline__card-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.timeline__org {
  font-size: 0.82rem;
  color: var(--accent-neon);
  margin-top: 2px;
}

.timeline__date {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline__bullets li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.timeline__bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-neon);
  font-size: 0.7rem;
  top: 0.2em;
}

/* Education card */
.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}

.edu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.04), rgba(139,92,246,0.04));
}

.edu-card:hover { border-color: var(--border-active); }

.edu-card__icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }

.edu-card__content { flex: 1; position: relative; }

.edu-card__content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.edu-card__content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.edu-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.edu-card__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ──────────────────────────────────────────────────────
   15. CONTACT SECTION
────────────────────────────────────────────────────── */
.contact {
  background: var(--bg-secondary);
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact__desc {
  color: var(--text-secondary);
  margin: 1.25rem 0 2rem;
  line-height: 1.7;
}

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

.contact__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.contact__link:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
  transform: translateX(4px);
}

.contact__link-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--border-subtle);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
}

/* Form */
.contact__form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.contact__form-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--border-subtle);
  border-bottom: 1px solid var(--border-card);
}

.contact__form-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.contact__form-dot--red    { background: #ff5f57; }
.contact__form-dot--yellow { background: #ffbd2e; }
.contact__form-dot--green  { background: #28c840; }

.contact__form-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.contact__form {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-neon);
  box-shadow: 0 0 0 3px rgba(167,139,250,0.12);
}

.form-note {
  font-size: 0.82rem;
  text-align: center;
  min-height: 1.2em;
}
.form-note.success { color: #4ade80; }
.form-note.error   { color: #f87171; }

/* ──────────────────────────────────────────────────────
   16. FOOTER
────────────────────────────────────────────────────── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__brand strong { display: block; font-size: 0.9rem; }
.footer__brand small  {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
}

.footer__nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__nav a:hover { color: var(--accent-neon); }

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ──────────────────────────────────────────────────────
   17. RESPONSIVE DESIGN
────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about__container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__card-stack { height: 280px; }

  .about__card--edu {
    right: 0;
    bottom: 2rem;
  }

  .timeline::before { display: none; }

  .timeline__item,
  .timeline__item[data-side="right"] {
    flex-direction: column;
    gap: 0;
  }

  .timeline__item::before { display: none; }

  .timeline__dot {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-bottom: 0.75rem;
  }

  .timeline__card { max-width: 100%; }
}

@media (max-width: 900px) {
  .hero__container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }
  .hero__cta, .hero__chips {
    justify-content: center;
  }
  .hero__headline-main {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
  .projects__grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-card--featured {
    grid-column: span 2;
  }
  .impact__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills__grid {
    grid-template-columns: 1fr;
  }
}

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

  /* Mobile nav */
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-top: 1px solid var(--border-subtle);
  }

  .nav__links.open { transform: translateX(0); }
  .nav__link { font-size: 1.1rem; padding: 0.75rem 2rem; }

  .nav__burger { display: flex; }
  .nav__actions { margin-left: auto; }
  .nav__actions .btn--outline { display: none; }

  .contact__container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__card-stack { height: auto; position: static; }
  .about__card--float { display: none; }
  .about__card--main { position: static; width: 100%; }

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

  .project-card--featured { grid-column: span 1; }

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

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .footer__nav { justify-content: center; }
  .footer__brand { justify-content: center; }

  .cursor-glow { display: none; }
}

@media (max-width: 480px) {
  .impact__grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
}

/* ──────────────────────────────────────────────────────
   18. REDUCED MOTION
────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero__orb { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
