:root {
  --bg: #0b0d12;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --brand: #7c5cff;
  --brand-2: #20e3b2;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-lg: 26px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: radial-gradient(1000px 800px at 20% 10%, rgba(124, 92, 255, 0.16), transparent 55%),
              radial-gradient(900px 700px at 80% 20%, rgba(32, 227, 178, 0.12), transparent 55%),
              var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
p { line-height: 1.65; color: var(--muted); margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
strong { color: var(--text); }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.section { padding: 88px 0; position: relative; }

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.section-head h2 { font-size: clamp(1.6rem, 2.2vw, 2rem); }
.section-head p { max-width: 70ch; }

/* Background blobs */
.bg-blobs {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: -1;
  filter: blur(50px);
  opacity: 0.9;
}

.blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  animation: float 12s ease-in-out infinite;
}

.blob-1 { left: 10%; top: 10%; background: rgba(124, 92, 255, 0.22); }
.blob-2 { right: 6%; top: 18%; background: rgba(32, 227, 178, 0.18); animation-delay: -3s; }
.blob-3 { left: 25%; bottom: 8%; background: rgba(255, 112, 184, 0.12); animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(18px, -20px) scale(1.04); }
}

/* Header/Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(11,13,18,0.78), rgba(11,13,18,0.36));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,92,255,0.95), rgba(32,227,178,0.85));
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: rgba(255,255,255,0.8);
  font-weight: 520;
  font-size: 0.96rem;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background 180ms ease, color 180ms ease;
}

.nav a:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.95);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 4px auto;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(135deg, rgba(124,92,255,0.95), rgba(32,227,178,0.90));
  color: #0b0d12;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, filter 160ms ease;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0px); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.btn-small {
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 0.92rem;
}

/* Hero */
.hero { padding-top: 72px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  font-weight: 650;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  width: fit-content;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.0vw, 3.3rem);
  margin-top: 14px;
}

.lede {
  margin-top: 14px;
  max-width: 70ch;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.stat {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.95);
}

.stat-label {
  margin-top: 6px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}

/* Right card */
.hero-card .card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.35), transparent 55%),
              linear-gradient(135deg, rgba(124,92,255,0.95), rgba(32,227,178,0.85));
  color: #0b0d12;
  box-shadow: var(--shadow);
}

.card-title { font-weight: 800; color: rgba(255,255,255,0.95); }
.card-subtitle { font-size: 0.94rem; color: rgba(255,255,255,0.68); margin-top: 3px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.card-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(32,227,178,0.9);
  box-shadow: 0 0 0 0 rgba(32,227,178,0.35);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(32,227,178,0.35); }
  70% { box-shadow: 0 0 0 12px rgba(32,227,178,0); }
  100% { box-shadow: 0 0 0 0 rgba(32,227,178,0); }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.about-card h3 { margin-bottom: 10px; }

.bullets {
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.72);
}

.bullets li { margin: 8px 0; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.76);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.skill {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.skill h3 { font-size: 1.05rem; margin-bottom: 8px; }

/* Projects empty state */
.projects-empty {
  display: grid;
}

.empty-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 72ch;
}

/* Talk */
.talk-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 14px;
  max-width: 72ch;
}

.talk-email {
  display: inline-block;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}

.talk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.talk-link {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.82);
}

/* Footer */
.footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.to-top {
  color: rgba(255,255,255,0.75);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }

  .nav {
    position: absolute;
    right: 1rem;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: min(320px, calc(100vw - 2rem));
    padding: 12px;
    border-radius: 18px;
    background: rgba(10, 12, 16, 0.88);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
  }

  .nav a { padding: 12px; }
  .nav.open { display: flex; }
}
