:root {
  --bg: #080b14;
  --panel: rgba(17, 23, 39, .72);
  --panel-solid: #111727;
  --text: #f4f7ff;
  --muted: #9ba6bd;
  --line: rgba(255,255,255,.10);
  --accent: #8b7cff;
  --accent-2: #5ee7ff;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(139,124,255,.16), transparent 28rem),
    radial-gradient(circle at 12% 32%, rgba(94,231,255,.08), transparent 24rem),
    var(--bg);
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(139,124,255,.35); }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(8,11,20,.74);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139,124,255,.35), rgba(94,231,255,.15));
}
.nav-links { display: flex; gap: 30px; color: var(--muted); font-size: 14px; }
.nav-links a:hover, .nav-github:hover { color: var(--text); }
.nav-github { font-size: 14px; font-weight: 600; }

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0;
}
.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 80px;
  align-items: center;
  padding-top: 90px;
}
.eyebrow, .section-kicker {
  margin: 0 0 20px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}
.pulse {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 16px var(--accent-2);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 26px;
  font-size: clamp(50px, 7vw, 92px);
  line-height: 1.03;
  letter-spacing: -.065em;
}
h1 span, h2 span { color: transparent; background: linear-gradient(90deg, #fff, #a9a1ff 55%, #67eaff); -webkit-background-clip: text; background-clip: text; }
.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.25); }
.button.primary { background: var(--text); color: #090c15; }
.button.secondary { background: rgba(255,255,255,.04); }

.hero-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(139,124,255,.16), rgba(255,255,255,.02) 45%),
    var(--panel);
  box-shadow: 0 30px 100px rgba(0,0,0,.25);
}
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { width: 270px; height: 270px; top: 50px; right: -35px; background: radial-gradient(circle at 35% 35%, rgba(139,124,255,.75), rgba(139,124,255,0) 70%); }
.orb-two { width: 210px; height: 210px; top: 160px; left: -55px; background: radial-gradient(circle, rgba(94,231,255,.30), transparent 68%); }
.avatar {
  position: relative;
  width: 120px; height: 120px;
  display: grid; place-items: center;
  margin-bottom: auto;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 20px 70px rgba(0,0,0,.25);
  font-size: 58px;
  font-weight: 900;
}
.card-name { position: relative; font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.card-role { position: relative; color: var(--muted); margin-top: 2px; }
.card-line { width: 100%; height: 1px; background: var(--line); margin: 24px 0 15px; }
.card-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.card-meta span:last-child { color: #7df1bc; }

.split {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 100px;
  border-top: 1px solid var(--line);
}
h2 { font-size: clamp(38px, 5vw, 62px); line-height: 1.08; letter-spacing: -.055em; margin-bottom: 0; }
.about-copy { max-width: 690px; color: var(--muted); font-size: 18px; }
.about-copy p + p { margin-top: 20px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 45px; }
.section-note { color: var(--muted); font-size: 13px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  transition: transform .25s ease, border-color .25s ease;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(139,124,255,.42); }
.project-card.featured { background: linear-gradient(145deg, rgba(139,124,255,.18), rgba(17,23,39,.75) 55%); }
.project-top { display: flex; justify-content: space-between; align-items: center; }
.project-number { color: var(--muted); font-size: 13px; }
.tag {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b9b1ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.project-card h3 { margin: auto 0 12px; font-size: 27px; letter-spacing: -.04em; }
.project-card p { color: var(--muted); margin-bottom: 26px; }
.project-footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.project-footer span:last-child { color: var(--text); font-size: 16px; }

.skills { border-top: 1px solid var(--line); }
.skill-row {
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.skill-row span, .skill-row em { color: var(--muted); font-size: 13px; font-style: normal; }
.skill-row strong { font-size: 18px; }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  border-top: 1px solid var(--line);
}
.contact-side { align-self: end; max-width: 500px; color: var(--muted); }
.contact-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 17px 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}
.contact-link:hover { color: var(--accent-2); }

.footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 25px 0 35px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #69748c;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

@media (max-width: 820px) {
  .nav { width: min(var(--max), calc(100% - 28px)); }
  .nav-links { display: none; }
  .section { width: min(var(--max), calc(100% - 28px)); padding: 82px 0; }
  .hero, .split, .contact { grid-template-columns: 1fr; gap: 50px; }
  .hero { min-height: auto; padding-top: 70px; }
  .hero-card { min-height: 380px; }
  .project-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .skill-row { grid-template-columns: 45px 1fr; }
  .skill-row em { grid-column: 2; }
  .footer { flex-direction: column; }
}
