/* ═══════════════════════════════════════════════════════════
   Muhammad Mahad Ahmad — Portfolio Stylesheet
   Design System: "Baskara"
   → Light mode base · Yellow accent · Oversized display type
   → Floating pill nav · Generous whitespace · Minimal borders
═══════════════════════════════════════════════════════════ */

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

:root {
  /* ── Yellow Accent ──────────────────── */
  --yellow:      #F5D000;
  --yellow-2:    #FBEA5A;
  --yellow-fade: #FFF8C0;

  /* ── Neutrals ───────────────────────── */
  --black:   #111111;
  --black-2: #1A1A1A;
  --white:   #FFFFFF;

  /* ── Grays ──────────────────────────── */
  --gray:       #6B6B6B;
  --gray-2:     #9A9A9A;
  --gray-light: #F2F2F2;
  --gray-border: rgba(0,0,0,0.08);

  /* ── Dark Section Tokens ────────────── */
  --dark:        #111111;
  --dark-2:      #161616;
  --dark-surface:#1C1C1C;
  --dark-border: rgba(255,255,255,0.08);
  --dark-border-2:rgba(255,255,255,0.13);

  /* ── Semantic ───────────────────────── */
  --green:  #22C55E;
  --red:    #EF4444;
  --blue:   #5B8DEE;
  --cyan:   #06B6D4;
  --orange: #F97316;

  /* ── Typography ─────────────────────── */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-mono:    'Fira Code', 'Cascadia Code', monospace;

  /* ── Layout ─────────────────────────── */
  --max-w:  1160px;
  --radius-pill: 99px;
  --radius-card: 20px;
  --radius-sm:   10px;

  /* ── Motion ─────────────────────────── */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--gray-light); }
::-webkit-scrollbar-thumb { background: #CCCCCC; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #BBBBBB; }

/* ── Selection ───────────────────────────────────────────── */
::selection { background: var(--yellow); color: var(--black); }

/* ── Container ───────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem; }


/* ══════════════════════════════════════════════
   BUTTONS — pill-shaped, Baskara style
══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.875rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: all 0.18s var(--ease);
  border: none; white-space: nowrap; letter-spacing: -0.01em;
}

/* Dark pill — primary action on light backgrounds */
.btn-dark, .btn-primary {
  background: var(--black); color: var(--white);
}
.btn-dark:hover, .btn-primary:hover {
  background: var(--black-2); transform: translateY(-1px);
}

/* Ghost — secondary on light backgrounds */
.btn-ghost {
  background: transparent; color: var(--black);
  border: 1.5px solid rgba(0,0,0,0.18);
}
.btn-ghost:hover {
  border-color: var(--black); transform: translateY(-1px);
}

/* Light pill — on dark backgrounds */
.btn-light {
  background: var(--white); color: var(--black);
}
.btn-light:hover { background: var(--gray-light); transform: translateY(-1px); }

/* Ghost light — secondary on dark backgrounds */
.btn-outline, .btn-ghost-light {
  background: transparent; color: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.18);
}
.btn-outline:hover, .btn-ghost-light:hover {
  color: white; border-color: rgba(255,255,255,0.5); transform: translateY(-1px);
}

/* Dark section secondary */
.btn-sec {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-sec:hover { background: rgba(255,255,255,0.14); color: white; }

/* Yellow */
.btn-yellow {
  background: var(--yellow); color: var(--black);
}
.btn-yellow:hover { background: var(--yellow-2); transform: translateY(-1px); }

.btn-sm { padding: 0.38rem 0.9rem; font-size: 0.8rem; }


/* ══════════════════════════════════════════════
   NAV — Floating dark pill
══════════════════════════════════════════════ */
.nav {
  position: fixed; top: 1.1rem;
  left: 50%; transform: translateX(-50%);
  z-index: 200; width: auto;
  max-width: calc(100vw - 2rem);
}

.nav-pill {
  display: flex; align-items: center;
  background: var(--black);
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.28rem;
  box-shadow: 0 2px 24px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.06);
}

.nav-brand {
  padding: 0.36rem 1rem;
  color: var(--white); font-weight: 700; font-size: 0.9rem;
  text-decoration: none; letter-spacing: -0.03em;
  font-family: var(--font-display);
  white-space: nowrap; flex-shrink: 0;
}
.nav-brand-dot { color: var(--yellow); }

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

.nav-link {
  padding: 0.36rem 0.9rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none; font-size: 0.82rem; font-weight: 450;
  border-radius: var(--radius-pill);
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: rgba(255,255,255,0.88); }
.nav-link.active { background: var(--white); color: var(--black); font-weight: 550; }

.nav-sep {
  width: 1px; height: 16px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0; margin: 0 0.15rem;
}

.nav-gh {
  padding: 0.36rem 0.95rem;
  color: rgba(255,255,255,0.45); font-size: 0.82rem; font-weight: 450;
  text-decoration: none; flex-shrink: 0;
  transition: color 0.18s;
  white-space: nowrap;
}
.nav-gh:hover { color: var(--white); }


/* ══════════════════════════════════════════════
   HERO — Yellow gradient, oversized name
══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 110% 70% at 50% -5%,
      var(--yellow) 0%,
      var(--yellow-2) 22%,
      #FFF8B0 42%,
      #FFFDE8 62%,
      var(--white) 80%
    );
  display: flex; flex-direction: column;
  align-items: center;
  padding: 4.5rem 0 0;
  position: relative; overflow: hidden;
}

/* Subtle dot grid */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb-1, .hero-orb-2, .hero-orb-3 { display: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 20%, transparent 80%);
  opacity: 0.5;
}

.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center;
  flex: 1; width: 100%; max-width: var(--max-w);
  padding: 3rem 2.5rem 4rem;
}

/* Available badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.95rem;
  background: rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-pill);
  font-size: 0.78rem; color: var(--black-2); font-weight: 500;
  margin-bottom: 2.5rem;
  animation: fadeInDown 0.5s var(--ease) both;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2.5s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.75); }
}

/* THE BIG NAME */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 11.5vw, 10.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--black);
  text-transform: uppercase;
  margin-bottom: 3rem;
  animation: fadeInUp 0.65s var(--ease) 0.08s both;
}

/* Two-column content below name */
.hero-bottom {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; width: 100%;
  animation: fadeInUp 0.65s var(--ease) 0.2s both;
}

.hero-left p {
  font-size: 1rem; color: var(--gray);
  line-height: 1.8; max-width: 400px; margin-bottom: 1.25rem;
}

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.28rem 0.8rem;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-pill);
  font-size: 0.78rem; color: var(--black-2); font-weight: 500;
}

.hero-right {
  display: flex; flex-direction: column; gap: 1.75rem;
  justify-content: flex-end; align-items: flex-start;
}

.hero-stats-row {
  display: flex; gap: 2.5rem;
}
.hero-stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 700;
  letter-spacing: -0.06em; color: var(--black);
  line-height: 1;
}
.hero-stat .lbl {
  font-size: 0.7rem; color: var(--gray-2);
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.2rem;
}

.hero-cta {
  display: flex; gap: 0.65rem; flex-wrap: wrap;
}

/* Corner meta labels */
.hero-footer {
  position: absolute; bottom: 2.25rem; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 2.5rem;
  font-size: 0.7rem; color: var(--gray-2);
  letter-spacing: 0.06em; z-index: 1;
}


/* ══════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════ */
.section { padding: 8rem 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-gray { background: var(--gray-light); }

/* Parenthetical eyebrow — Baskara signature */
.section-eyebrow {
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gray-2); margin-bottom: 1rem;
}
.section-eyebrow.light { color: rgba(255,255,255,0.35); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700; letter-spacing: -0.05em;
  line-height: 1.05; margin-bottom: 4rem;
  color: var(--black);
}
.section-title.light { color: var(--white); }

.section-sub {
  font-size: 1rem; color: var(--gray);
  max-width: 500px; margin-bottom: 3.5rem; line-height: 1.8;
}
.section-sub.light { color: rgba(255,255,255,0.5); }
.section-sub strong { font-weight: 600; color: var(--black); }
.section-sub.light strong { color: var(--white); }


/* ══════════════════════════════════════════════
   ABOUT — Light, two-column big headline
══════════════════════════════════════════════ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.7fr;
  gap: 5rem; align-items: start;
}

.about-image-wrap {
  width: 140px; height: 140px;
  border-radius: var(--radius-pill);
  background: var(--yellow-fade);
  overflow: hidden; margin-bottom: 2rem;
  border: 1px solid var(--gray-border);
}
.about-profile-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.about-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 700; letter-spacing: -0.05em;
  line-height: 1.1; color: var(--black);
  position: sticky; top: 5rem;
}

.about-body > p {
  color: var(--gray); line-height: 1.85;
  margin-bottom: 1.15rem; font-size: 0.97rem;
}
.about-body > p strong { color: var(--black); font-weight: 600; }

/* Card list — no outer box, just rows */
.about-cards {
  border: 1px solid var(--gray-border);
  border-radius: 16px; overflow: hidden;
  margin: 1.75rem 0;
}
.about-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--gray-border);
  background: var(--white);
  transition: background 0.18s var(--ease);
}
.about-card:last-child { border-bottom: none; }
.about-card:hover { background: var(--gray-light); }
.about-card-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }
.about-card h4 {
  font-size: 0.9rem; font-weight: 650;
  letter-spacing: -0.02em; margin-bottom: 0.2rem; color: var(--black);
}
.about-card p { font-size: 0.82rem; color: var(--gray); line-height: 1.6; margin: 0; }

.about-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }


/* ══════════════════════════════════════════════
   PROJECTS — Dark section, rounded cards
══════════════════════════════════════════════ */
.project-card {
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-card);
  background: var(--dark-surface);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s var(--ease), transform 0.22s var(--ease);
}
.project-card:hover {
  border-color: var(--dark-border-2);
  transform: translateY(-3px);
}
.project-card-featured { }

/* No coloured glows — just a subtle shadow lift */
#project-codesage:hover,
#project-vulnhawk:hover,
#project-attendance:hover { box-shadow: 0 12px 48px rgba(0,0,0,0.5); }

.project-card-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.project-card-inner-reverse { direction: rtl; }
.project-card-inner-reverse > * { direction: ltr; }

.project-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.project-badge {
  font-size: 0.67rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.09em; padding: 0.22rem 0.8rem;
  border-radius: var(--radius-pill);
}
.project-badge-ai   { background: rgba(245,208,0,0.12); color: #FBEA5A;  border: 1px solid rgba(245,208,0,0.25); }
.project-badge-sec  { background: rgba(239,68,68,0.10); color: #FCA5A5;  border: 1px solid rgba(239,68,68,0.2); }
.project-badge-blue { background: rgba(6,182,212,0.10); color: #67E8F9;  border: 1px solid rgba(6,182,212,0.2); }
.project-year { color: rgba(255,255,255,0.28); font-size: 0.78rem; }

.project-content {
  padding: 2.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}

.project-header { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 0.5rem; }
.project-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.project-title {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  letter-spacing: -0.05em; margin-bottom: 0.2rem;
  color: var(--white);
}
.project-tagline { color: rgba(255,255,255,0.45); font-size: 0.88rem; }
.project-desc { color: rgba(255,255,255,0.52); font-size: 0.9rem; line-height: 1.85; }

.project-highlights { display: flex; flex-direction: column; gap: 0.45rem; margin: 0.5rem 0; }
.highlight { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.85rem; color: rgba(255,255,255,0.52); }
.highlight-icon { flex-shrink: 0; font-size: 0.9rem; }

.project-stack { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.stack-tag {
  padding: 0.2rem 0.6rem; border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-mono); font-size: 0.71rem;
  color: rgba(255,255,255,0.38);
}

.project-links { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.5rem; }

/* Project visual panels */
.project-visual {
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 2rem; position: relative; overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.project-visual-sage {
  border-left: 1px solid var(--dark-border);
  background: rgba(245,208,0,0.03);
}
.project-visual-hawk {
  border-right: 1px solid var(--dark-border);
}
.project-visual-attendance {
  border-left: 1px solid var(--dark-border);
}


/* ══════════════════════════════════════════════
   MOCK UI COMPONENTS
══════════════════════════════════════════════ */

/* Mobile window */
.mobile-window {
  width: 100%; max-width: 215px; height: 400px;
  background: var(--dark); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.65);
  position: relative; display: flex; flex-direction: column;
}
.mobile-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 72px; height: 14px; background: rgba(255,255,255,0.07);
  border-bottom-left-radius: 9px; border-bottom-right-radius: 9px; z-index: 10;
}
.mobile-body { padding: 1.9rem 0.85rem 0.9rem; display: flex; flex-direction: column; height: 100%; gap: 0.85rem; }
.mobile-header { text-align: center; font-size: 0.82rem; font-weight: 600; color: white; }
.mobile-camera {
  flex: 1; background: rgba(255,255,255,0.04); border-radius: 10px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.face-box { position: absolute; border: 1.5px solid var(--blue); border-radius: 3px; }
.box-1 { top: 20%; left: 22%; width: 40px; height: 40px; }
.box-2 { top: 44%; left: 52%; width: 36px; height: 36px; border-color: var(--green); }
.box-3 { top: 62%; left: 18%; width: 48px; height: 48px; }
.scan-line {
  position: absolute; left: 0; right: 0; height: 1px;
  background: var(--blue); opacity: 0.45;
  animation: scan 2.4s ease-in-out infinite alternate;
}
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }
.mobile-btn {
  background: var(--yellow); color: var(--black);
  text-align: center; padding: 0.5rem; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
}

/* Code window */
.code-window {
  width: 100%; max-width: 330px;
  background: var(--dark); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.65);
  font-family: var(--font-mono);
}
.code-window-bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.68rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-dot { width: 9px; height: 9px; border-radius: 50%; }
.code-dot.red    { background: #E05252; }
.code-dot.yellow { background: #D4A843; }
.code-dot.green  { background: #34C87A; }
.code-window-title { margin-left: 0.5rem; font-size: 0.72rem; color: rgba(255,255,255,0.28); }

.code-chat { padding: 1.2rem; display: flex; flex-direction: column; gap: 1rem; }
.chat-msg { display: flex; gap: 0.55rem; }
.chat-user { justify-content: flex-end; }
.chat-bubble {
  max-width: 85%; padding: 0.55rem 0.8rem; border-radius: 10px;
  font-size: 0.74rem; line-height: 1.55; font-family: var(--font-sans);
}
.chat-bubble-user { background: rgba(245,208,0,0.14); color: #FBEA5A; border: 1px solid rgba(245,208,0,0.22); }
.chat-bubble-ai   { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.68); border: 1px solid rgba(255,255,255,0.08); }
.chat-bubble-ai code { color: #67E8F9; font-family: var(--font-mono); font-size: 0.7rem; }
.chat-avatar { font-size: 1.2rem; flex-shrink: 0; }
.chat-citation { margin-top: 0.4rem; font-size: 0.65rem; color: rgba(255,255,255,0.28); font-family: var(--font-mono); }
.typing-line { animation: fadeIn 0.7s ease both; }

/* Terminal */
.terminal-window {
  width: 100%; max-width: 355px;
  background: var(--dark); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.65);
  font-family: var(--font-mono);
}
.terminal-bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.68rem 1rem; background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-title { font-size: 0.68rem; color: rgba(255,255,255,0.28); margin-left: 0.5rem; flex: 1; text-align: center; }
.terminal-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.terminal-line { font-size: 0.76rem; display: flex; align-items: baseline; gap: 0.5rem; }
.t-indent { padding-left: 1rem; }
.t-cyan   { color: #67E8F9; }
.t-green  { color: #4ADE80; }
.t-red    { color: #F87171; }
.t-yellow { color: #FDE047; }
.t-dim    { color: rgba(255,255,255,0.28); }
.t-badge-crit { background: rgba(239,68,68,0.12);  color: #F87171; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.65rem; margin-left: auto; white-space: nowrap; border: 1px solid rgba(239,68,68,0.22); }
.t-badge-high { background: rgba(249,115,22,0.10); color: #FB923C; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.65rem; margin-left: auto; white-space: nowrap; border: 1px solid rgba(249,115,22,0.2); }
.t-badge-med  { background: rgba(234,179,8,0.10);  color: #FDE047; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.65rem; margin-left: auto; white-space: nowrap; border: 1px solid rgba(234,179,8,0.2); }


/* ══════════════════════════════════════════════
   SKILLS — Off-white section, light cards
══════════════════════════════════════════════ */
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 2rem;
}
.skill-group {
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: 16px; padding: 1.5rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.skill-group:hover { border-color: rgba(0,0,0,0.14); transform: translateY(-2px); }
.skill-group-title {
  font-size: 0.76rem; font-weight: 650; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gray-2);
  display: flex; align-items: center; gap: 0.45rem;
  margin-bottom: 1.1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-border);
}
.skill-group-icon { font-size: 1rem; }
.skill-pills { display: flex; flex-direction: column; gap: 0.55rem; }
.skill-pill { display: flex; align-items: center; gap: 0.7rem; }
.skill-pill span { font-size: 0.82rem; font-weight: 500; width: 100px; flex-shrink: 0; color: var(--black-2); }
.skill-bar { flex: 1; height: 3px; background: rgba(0,0,0,0.07); border-radius: 2px; overflow: hidden; }
.skill-fill { height: 100%; border-radius: 2px; width: 0; transition: width 1.1s var(--ease-out); }
.skill-expert .skill-fill   { background: var(--black); }
.skill-strong .skill-fill   { background: var(--blue); }
.skill-learning .skill-fill { background: var(--green); }
.skill-fill.animated { width: var(--w); }

.skills-legend { display: flex; gap: 2rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.legend-item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; color: var(--gray); }
.legend-dot { width: 10px; height: 3px; border-radius: 2px; }
.legend-dot.skill-expert   { background: var(--black); }
.legend-dot.skill-strong   { background: var(--blue); }
.legend-dot.skill-learning { background: var(--green); }


/* ══════════════════════════════════════════════
   EXPERIENCE / TIMELINE — Dark section
══════════════════════════════════════════════ */
.timeline {
  position: relative; padding-left: 2rem; max-width: 680px;
}
.timeline::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 1px; bottom: 0; background: var(--dark-border);
}
.timeline-item { position: relative; padding: 0 0 2.5rem 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -2.5rem; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--dark); border: 1.5px solid rgba(255,255,255,0.15);
  transition: all 0.2s var(--ease);
}
.timeline-item-active .timeline-dot { background: var(--yellow); border-color: var(--yellow); }
.timeline-item:hover .timeline-dot  { border-color: rgba(245,208,0,0.6); }

.timeline-date  { font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.35rem; }
.timeline-title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; margin-bottom: 0.2rem; letter-spacing: -0.03em; color: var(--white); }
.timeline-place { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-bottom: 0.55rem; }
.timeline-desc  { font-size: 0.88rem; color: rgba(255,255,255,0.48); line-height: 1.8; margin-bottom: 0.75rem; }
.timeline-tags  { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.timeline-tags span {
  font-size: 0.7rem; padding: 0.18rem 0.55rem; border-radius: 6px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.38); font-family: var(--font-mono);
}


/* ══════════════════════════════════════════════
   CTA BANNER — Full yellow, high contrast
══════════════════════════════════════════════ */
.cta-banner {
  background: var(--yellow);
  padding: 7rem 0;
}
.cta-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem; flex-wrap: wrap;
}
.cta-left { }
.cta-eyebrow { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(0,0,0,0.45); margin-bottom: 0.85rem; }
.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700; letter-spacing: -0.06em;
  line-height: 0.95; color: var(--black);
}
.cta-right { display: flex; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; }


/* ══════════════════════════════════════════════
   CONTACT — Light section
══════════════════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 3rem; align-items: start;
}
.contact-links { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: 14px; text-decoration: none; color: inherit;
  transition: all 0.18s var(--ease);
}
.contact-card:hover { border-color: rgba(0,0,0,0.14); transform: translateX(4px); }
.contact-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card-icon-email    { background: rgba(91,141,238,0.1); color: var(--blue); }
.contact-card-icon-github   { background: var(--gray-light); color: var(--black-2); }
.contact-card-icon-linkedin { background: rgba(6,182,212,0.1); color: var(--cyan); }
.contact-card-label { font-size: 0.7rem; color: var(--gray-2); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-card-value { font-size: 0.88rem; font-weight: 500; color: var(--black); margin-top: 0.1rem; }
.contact-card-arrow { margin-left: auto; color: var(--gray-2); transition: transform 0.18s; }
.contact-card:hover .contact-card-arrow { transform: translateX(3px); }

.contact-form-wrap {
  background: var(--gray-light); border: 1px solid var(--gray-border);
  border-radius: 16px; padding: 2rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.38rem; }
.form-group label { font-size: 0.78rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.07em; }
.form-group input,
.form-group textarea {
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: 10px; padding: 0.65rem 0.95rem;
  color: var(--black); font-family: var(--font-sans); font-size: 0.9rem;
  transition: border-color 0.18s, box-shadow 0.18s;
  resize: vertical; outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-2); }
.form-note { font-size: 0.82rem; margin-top: -0.2rem; min-height: 1.2rem; }
.form-note.success { color: #16a34a; }
.form-note.error   { color: var(--red); }


/* ══════════════════════════════════════════════
   FOOTER — Dark
══════════════════════════════════════════════ */
.footer {
  background: var(--dark); border-top: 1px solid var(--dark-border);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.footer-left p { color: rgba(255,255,255,0.28); font-size: 0.82rem; margin-top: 0.35rem; }
.nav-logo { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: white; text-decoration: none; letter-spacing: -0.04em; }
.nav-logo-dot { color: var(--yellow); }
.footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.38); text-decoration: none; font-size: 0.85rem; transition: color 0.18s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; border-top: 1px solid var(--dark-border);
  font-size: 0.78rem; color: rgba(255,255,255,0.28); flex-wrap: wrap; gap: 1rem;
}


/* ══════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════ */
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .project-card-inner { grid-template-columns: 1fr; }
  .project-card-inner-reverse { direction: ltr; }
  .project-visual {
    border: none !important; border-top: 1px solid var(--dark-border) !important;
    min-height: 260px;
  }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-headline { position: static; font-size: 2.2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-bottom { grid-template-columns: 1fr; gap: 2rem; }
  .cta-inner { flex-direction: column; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-sep { display: none; }
  .hero { padding-top: 3.5rem; }
  .hero-name { font-size: clamp(3.2rem, 18vw, 7rem); }
  .hero-footer { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 5rem 0; }
  .cta-banner { padding: 5rem 0; }
}
