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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #07080f;
  color: #e2e8f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0d0e1a; }
::-webkit-scrollbar-thumb { background: #3b4a6b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #6366f1; }

/* ── PAGE SHELL ── */
.page { min-height: 100vh; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(7, 8, 15, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; color: #fff; }
.dot { color: #6366f1; }
.nav-links { display: flex; gap: 0.25rem; }

.nav-links button {
  background: none;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-links button:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.35; }

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: -150px; left: -100px;
  animation: drift 12s ease-in-out infinite alternate;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  bottom: -100px; right: -80px;
  animation: drift 16s ease-in-out infinite alternate-reverse;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #06b6d4, transparent);
  top: 50%; left: 55%;
  animation: drift 10s ease-in-out infinite alternate;
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 40px) scale(1.08); }
}

.hero-content { position: relative; z-index: 1; max-width: 780px; }

.hero-name {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 40%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}
.hero-title {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #94a3b8;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }



/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
}
.btn-icon { width: 14px; height: 14px; }
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(99, 102, 241, 0.6); }
.btn-secondary {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.btn-secondary:hover { background: rgba(99, 102, 241, 0.2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #64748b; border: 1px solid rgba(255, 255, 255, 0.1); }
.btn-ghost:hover { color: #e2e8f0; border-color: rgba(255, 255, 255, 0.25); transform: translateY(-2px); }

/* ── SCROLL HINT ── */
.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%); cursor: pointer; z-index: 1;
}
.scroll-arrow {
  width: 22px; height: 22px;
  border-right: 2px solid #3b4a6b;
  border-bottom: 2px solid #3b4a6b;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
  50%       { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* ── SECTIONS ── */
.section { padding: 6rem 2rem; }
.section-dark { background: #0d0e1a; }
.container { max-width: 900px; margin: 0 auto; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem; color: #6366f1;
  margin-bottom: 0.5rem; letter-spacing: 0.04em;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -1px;
  color: #f1f5f9; margin-bottom: 2.5rem;
}

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 3.5rem; align-items: start; }
.about-photo { width: 100%; }
.headshot {
  width: 100%; height: 380px; border-radius: 16px;
  object-fit: cover; object-position: top;
  border: 2px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.2); display: block;
}
.headshot-placeholder {
  width: 100%; height: 380px; border-radius: 16px;
  border: 2px dashed #3b4a6b;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem; color: #3b4a6b; font-size: 0.7rem; text-align: center; padding: 1rem;
}
.headshot-placeholder svg { width: 40px; height: 40px; opacity: 0.6; }
.about-right { display: flex; flex-direction: column; gap: 2rem; }
.about-text { display: flex; flex-direction: column; gap: 1rem; }
.about-text p { color: #94a3b8; font-size: 1.05rem; line-height: 1.75; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
  display: flex; flex-direction: column; gap: 0.3rem; padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px; transition: border-color 0.2s, background 0.2s;
}
.stat-card:hover { background: rgba(99, 102, 241, 0.06); border-color: rgba(99, 102, 241, 0.3); }
.stat-number { font-size: 1.6rem; font-weight: 800; color: #c7d2fe; }
.stat-label { font-size: 0.78rem; color: #64748b; font-weight: 500; }


/* ── FUN Q&A ── */
.qa-block { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.qa-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; color: #6366f1;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.qa-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.qa-row {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px; transition: border-color 0.2s, background 0.2s;
}
.qa-row:hover { background: rgba(99, 102, 241, 0.05); border-color: rgba(99, 102, 241, 0.2); }
.qa-q { font-size: 0.78rem; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: 0.06em; }
.qa-a { font-size: 0.97rem; color: #cbd5e1; font-style: italic; }

/* ── EXPERIENCE TIMELINE ── */
.timeline { display: flex; flex-direction: column; gap: 2rem; position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem; width: 2px;
  background: linear-gradient(to bottom, #6366f1, #8b5cf6, transparent); border-radius: 1px;
}
.timeline-item { position: relative; }
.timeline-dot {
  position: absolute; left: -1.875rem; top: 1.25rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: #6366f1; box-shadow: 0 0 10px rgba(99, 102, 241, 0.7);
}
.timeline-card {
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px; padding: 1.5rem 1.75rem;
  transition: border-color 0.2s, background 0.2s;
}
.timeline-card:hover { background: rgba(99, 102, 241, 0.05); border-color: rgba(99, 102, 241, 0.25); }
.timeline-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.job-company { font-size: 1.1rem; font-weight: 700; color: #e2e8f0; margin-bottom: 0.15rem; }
.job-role { font-size: 0.9rem; color: #6366f1; font-weight: 500; }
.job-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.job-period { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: #475569; }
.job-location { font-size: 0.78rem; color: #334155; }
.job-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.job-bullets li { font-size: 0.92rem; color: #94a3b8; line-height: 1.65; padding-left: 1.1rem; position: relative; }
.job-bullets li::before { content: '›'; position: absolute; left: 0; color: #6366f1; font-weight: 700; }

/* ── EDUCATION ── */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.edu-card {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px; transition: border-color 0.2s, background 0.2s;
}
.edu-card:hover { background: rgba(99, 102, 241, 0.05); border-color: rgba(99, 102, 241, 0.25); }
.edu-year { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; color: #6366f1; margin-bottom: 0.5rem; }
.edu-school { font-size: 1.05rem; font-weight: 700; color: #e2e8f0; margin-bottom: 0.3rem; }
.edu-degree { font-size: 0.92rem; color: #64748b; margin-bottom: 0.75rem; }
.edu-distinction {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  padding: 0.2rem 0.7rem; border-radius: 999px;
  background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc; letter-spacing: 0.03em;
}

/* ── SKILLS ── */
.skill-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.skill-group-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: #475569; margin-bottom: 0.75rem;
}
.skill-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-pill {
  padding: 0.35rem 0.85rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s; cursor: default;
}
.skill-pill:hover {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  color: #fff;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ── CONTACT ── */
.contact-container { text-align: center; }
.contact-sub { color: #64748b; font-size: 1.1rem; max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.7; }
.contact-cta {
  display: inline-block; padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; text-decoration: none;
  font-size: 1.1rem; font-weight: 700; border-radius: 10px;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
  transition: all 0.2s; letter-spacing: -0.3px;
}
.contact-cta:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(99, 102, 241, 0.6); }

/* ── FOOTER ── */
.footer {
  text-align: center; padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem; color: #334155;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.footer-sep { opacity: 0.4; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .nav { padding: 1rem 1.25rem; }
  .about-grid { grid-template-columns: 1fr; }
  .headshot { height: 280px; }
  .qa-list { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .skill-groups { grid-template-columns: 1fr; }
  .timeline-header { flex-direction: column; }
  .job-meta { align-items: flex-start; }
}
