/* ============================================================
   DESIGN SYSTEM
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0a0a0f;
  --glass:        rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --accent:       #00d4ff;
  --accent-glow:  rgba(0,212,255,0.15);
  --violet:       #7c3aed;
  --green:        #00ff88;
  --green-glow:   rgba(0,255,136,0.15);
  --text:         #f0f0f0;
  --muted:        #6b7280;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --radius:       16px;
  --radius-sm:    8px;
  --transition:   0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

/* ---- Glass card ---- */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.glass-card:hover {
  box-shadow: 0 0 32px var(--accent-glow);
  border-color: rgba(0,212,255,0.25);
}

/* ---- Section layout ---- */
.section { padding: 80px 0; }
.section-inner { max-width: 900px; margin: 0 auto; padding: 0 32px; }
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 40px;
  line-height: 1.2;
}
.accent-bar {
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  border-radius: 2px;
  margin-bottom: 16px;
}

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   LEFT NAV
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0;
  width: 72px; height: 100vh;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0;
  z-index: 100;
  gap: 32px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -1px;
}
.nav-links { list-style: none; display: flex; flex-direction: column; gap: 24px; flex: 1; justify-content: center; }
.nav-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  position: relative;
  cursor: none;
  transition: background var(--transition);
}
.nav-link:hover, .nav-link.active { background: var(--accent-glow); }
.nav-dot {
  width: 6px; height: 6px;
  background: var(--muted);
  border-radius: 50%;
  transition: background var(--transition), transform var(--transition);
}
.nav-link:hover .nav-dot,
.nav-link.active .nav-dot { background: var(--accent); transform: scale(1.5); }

.nav-link::after {
  content: attr(data-label);
  position: absolute;
  left: 52px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(8px);
}
.nav-link:hover::after { opacity: 1; }

main { margin-left: 72px; }

.nav-toggle {
  display: none;
  position: fixed; top: 20px; right: 20px;
  z-index: 200;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  #navbar {
    width: 240px; height: 100vh;
    flex-direction: column;
    position: fixed; top: 0; left: 0;
    transform: translateX(-100%);
    transition: transform var(--transition);
    border-right: 1px solid var(--glass-border);
    border-bottom: none;
    padding: 24px 0;
  }
  #navbar.open { transform: translateX(0); }
  main { margin-left: 0; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#paymentGraph {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.4;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; text-align: center; padding: 0 24px; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.hero-name {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.hero-role {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  color: var(--text);
  opacity: 0.85;
  min-height: 36px;
  margin-bottom: 40px;
}
.typed-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-btn {
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  transition: var(--transition);
  cursor: none;
  backdrop-filter: blur(8px);
}
.hero-btn:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }
.hero-btn--outline { border-color: var(--accent); color: var(--accent); }
.hero-btn--outline:hover { background: var(--accent); color: var(--bg); }

/* ============================================================
   AI BADGE TICKER
   ============================================================ */
.ai-ticker {
  overflow: hidden;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 0;
  background: rgba(0,212,255,0.02);
}
.ai-ticker-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  align-items: center;
}
.ai-ticker-track span:not(:nth-child(even)) { color: var(--accent); }
.ai-ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   MAGNETIC CURSOR
   ============================================================ */
.cursor {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-follower {
  width: 32px; height: 32px;
  border: 1px solid rgba(0,212,255,0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor.hovering { width: 16px; height: 16px; background: var(--violet); }
.cursor-follower.hovering { width: 48px; height: 48px; border-color: rgba(124,58,237,0.5); }

@media (max-width: 768px) {
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
}

/* ============================================================
   IMPACT METRICS
   ============================================================ */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.impact-card {
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.impact-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.impact-card:hover::before { opacity: 1; }
.impact-icon { font-size: 28px; margin-bottom: 12px; }
.impact-value {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-mono);
  line-height: 1.1;
  margin-bottom: 10px;
}
.impact-label { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ============================================================
   ABOUT
   ============================================================ */
.section--alt { background: rgba(255,255,255,0.015); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.about-bio { display: flex; flex-direction: column; gap: 16px; }
.about-bio p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.about-bio strong { color: var(--text); }
.about-details { padding: 24px; display: flex; flex-direction: column; }
.about-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 13px;
}
.about-detail-row:last-child { border-bottom: none; }
.about-detail-label { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; }
.open-badge {
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.25);
  color: var(--green);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-family: var(--font-mono);
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.timeline { position: relative; display: flex; flex-direction: column; }
.timeline::before {
  content: '';
  position: absolute;
  left: 16px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--violet), transparent);
  opacity: 0.3;
}
.timeline-item { display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding-bottom: 32px; }
.timeline-marker { display: flex; justify-content: center; padding-top: 24px; }
.timeline-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--muted); border: 2px solid var(--bg); flex-shrink: 0;
}
.timeline-dot--accent {
  width: 16px; height: 16px; background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-dot--sm { width: 8px; height: 8px; }
.timeline-card { padding: 24px; }
.timeline-item--featured .timeline-card { border-color: rgba(0,212,255,0.2); }
.timeline-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.timeline-role { font-size: 17px; font-weight: 600; color: var(--text); }
.timeline-company { font-size: 14px; color: var(--accent); margin-top: 2px; }
.timeline-meta { text-align: right; }
.timeline-date { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.timeline-location { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.timeline-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { font-family: var(--font-mono); font-size: 11px; padding: 3px 10px; border-radius: 100px; border: 1px solid; }
.chip--cyan  { color: var(--accent); border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.06); }
.chip--violet{ color: #a78bfa; border-color: rgba(124,58,237,0.3); background: rgba(124,58,237,0.06); }
.chip--green { color: var(--green); border-color: rgba(0,255,136,0.3); background: rgba(0,255,136,0.06); }
.timeline-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.timeline-bullets li { font-size: 14px; color: var(--muted); line-height: 1.6; padding-left: 16px; position: relative; }
.timeline-bullets li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 12px; }
.timeline-bullets li strong { color: var(--text); }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.skill-group { padding: 24px; }
.skill-group-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.project-card--featured { grid-column: 1 / -1; }
.project-card { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.project-header { display: flex; justify-content: space-between; align-items: center; }
.project-tag { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.project-title { font-size: 20px; font-weight: 700; color: var(--text); }
.project-desc  { font-size: 14px; color: var(--muted); line-height: 1.7; }
.project-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.project-impact { display: flex; flex-wrap: wrap; gap: 8px; }
.impact-pill {
  font-size: 12px; font-family: var(--font-mono);
  padding: 4px 12px;
  background: rgba(0,255,136,0.06);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 100px; color: var(--green);
}
.policy-flow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 16px;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}
.flow-step {
  font-family: var(--font-mono); font-size: 12px;
  padding: 6px 12px; border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  transition: background 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.flow-step.active {
  background: rgba(0,212,255,0.1); border-color: var(--accent);
  color: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
}
.flow-step--decision.active {
  background: rgba(0,255,136,0.1); border-color: var(--green);
  color: var(--green); box-shadow: 0 0 10px var(--green-glow);
}
.flow-arrow { color: var(--muted); font-size: 14px; }
@media (max-width: 768px) { .projects-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT & FOOTER
   ============================================================ */
.contact-sub { color: var(--muted); font-size: 15px; max-width: 520px; margin-bottom: 40px; line-height: 1.7; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.contact-card { padding: 24px; display: flex; flex-direction: column; gap: 6px; cursor: none; }
.contact-icon { font-size: 24px; }
.contact-label { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.contact-value { font-size: 14px; color: var(--text); }
.contact-card:hover .contact-value { color: var(--accent); }

footer {
  border-top: 1px solid var(--glass-border);
  padding: 24px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  display: flex; flex-direction: column; gap: 6px;
  margin-left: 72px;
}
.footer-mono { font-family: var(--font-mono); color: var(--accent); }
kbd {
  background: var(--glass); border: 1px solid var(--glass-border);
  padding: 2px 6px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 11px;
}
@media (max-width: 768px) { footer { margin-left: 0; } }

/* ============================================================
   COMMAND PALETTE
   ============================================================ */
.palette-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
}
.palette-overlay.open { display: flex; }
.palette {
  background: #12121a;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  width: 560px; max-width: 90vw;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,212,255,0.1);
}
.palette-input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
}
.palette-icon { color: var(--muted); font-size: 16px; }
.palette-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-mono); font-size: 15px;
}
.palette-input::placeholder { color: var(--muted); }
.palette-results { list-style: none; max-height: 360px; overflow-y: auto; padding: 8px; }
.palette-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  cursor: pointer; color: var(--muted); font-size: 14px;
  transition: background var(--transition), color var(--transition);
}
.palette-item:hover, .palette-item.selected {
  background: var(--accent-glow); color: var(--text);
}
.palette-item-icon { font-size: 16px; width: 24px; text-align: center; }
.palette-item-label { flex: 1; }
.palette-section-label {
  padding: 8px 14px 4px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); opacity: 0.6;
}

/* ============================================================
   NOTABLE CLIENTS STRIP
   ============================================================ */
.clients-strip {
  padding: 24px 32px;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(124,58,237,0.03);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.clients-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.clients-track {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.client-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.client-name:hover { color: var(--text); }
.client-sep { color: var(--glass-border); font-size: 16px; }
