:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0d1b2f;
  --panel: rgba(15, 29, 50, 0.78);
  --panel-strong: rgba(18, 36, 62, 0.94);
  --text: #edf6ff;
  --muted: #9fb2ca;
  --line: rgba(156, 188, 231, 0.18);
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --green: #34d399;
  --violet: #a78bfa;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(167, 139, 250, 0.18), transparent 26rem),
    linear-gradient(135deg, #06101d 0%, #07111f 45%, #0b1628 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.profile-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(18px);
}

.brand, .nav-links { display: flex; align-items: center; gap: 12px; }

.brand { font-weight: 800; letter-spacing: -0.02em; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--violet));
  color: #03111f;
  font-weight: 900;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.62fr);
  gap: 28px;
  align-items: center;
}

.hero { padding: 92px 0 34px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 22px;
  max-width: 870px;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 { margin-bottom: 10px; font-size: 1.08rem; letter-spacing: -0.025em; }

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.72;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions.compact { justify-content: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #041120; border-color: transparent; }
.button.secondary { background: rgba(255,255,255,0.07); }
.button.ghost { color: var(--muted); }

.hero-card, .work-card, .stack-grid article, .metrics article, .github-panel, .contact-section, .timeline article {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 34px;
}

.card-glow {
  position: absolute;
  inset: -30% -20% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.22);
  filter: blur(28px);
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-bottom: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--violet));
  color: #041120;
  font-size: 2rem;
  font-weight: 900;
}

.hero-card h2 { font-size: 2rem; margin-bottom: 10px; }
.hero-card p, .work-card p, .stack-grid p, .timeline p, .github-panel p, .contact-section p { color: var(--muted); line-height: 1.65; }

.signal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.signal-grid span, .work-tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: #c7f9ff;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-size: 0.78rem;
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 34px 0 80px;
}

.metrics article { padding: 22px; border-radius: 24px; background: rgba(255,255,255,0.045); box-shadow: none; }
.metrics strong { display: block; font-size: 2rem; letter-spacing: -0.05em; }
.metrics span { display: block; margin-top: 8px; color: var(--muted); line-height: 1.45; font-size: 0.94rem; }

.content-section { padding: 78px 0; border-top: 1px solid var(--line); }

.work-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.work-card, .stack-grid article, .timeline article { padding: 24px; border-radius: 26px; }
.work-card { min-height: 210px; background: var(--panel-strong); }
.work-card h3 { margin-top: 22px; }

.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  align-items: start;
}

.timeline { display: grid; gap: 14px; }
.timeline article { box-shadow: none; }
.timeline span { display: block; margin-bottom: 10px; color: var(--green); font-weight: 800; }

.section-heading { max-width: 720px; margin-bottom: 24px; }
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stack-grid article { box-shadow: none; background: rgba(255,255,255,0.045); }

.github-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 32px 0 78px;
  padding: 30px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(124, 58, 237, 0.14));
}

.terminal-card {
  padding: 18px;
  border-radius: 22px;
  background: #020817;
  border: 1px solid rgba(255,255,255,0.1);
}

.dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; }
.dot.red { background: #fb7185; }
.dot.yellow { background: #facc15; }
.dot.green { background: #34d399; }
pre { margin: 18px 0 0; overflow-x: auto; color: #b7f7ff; line-height: 1.6; }

.contact-section {
  padding: 54px 24px;
  border-radius: 34px;
  text-align: center;
  background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(96,165,250,0.10));
}
.contact-section p { max-width: 660px; margin-left: auto; margin-right: auto; }

@media (max-width: 900px) {
  .section-grid, .two-column, .github-panel { grid-template-columns: 1fr; }
  .metrics, .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 62px; }
}

@media (max-width: 640px) {
  .profile-shell { width: min(100% - 24px, 1180px); padding-top: 12px; }
  .topbar { position: static; border-radius: 22px; align-items: flex-start; }
  .nav-links { display: none; }
  h1 { font-size: 3.15rem; }
  .hero-card { padding: 22px; border-radius: 26px; }
  .metrics, .work-list, .stack-grid { grid-template-columns: 1fr; }
  .content-section { padding: 54px 0; }
  .github-panel { padding: 22px; }
  .button { width: 100%; }
}
