*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --bg: #080b12;
  --surface: #0f1220;
  --surface2: #141827;
  --surface3: #1a2035;
  --border: #1e2538;
  --border2: #252d45;
  --accent: #6366f1;
  --accent2: #22d3ee;
  --accent3: #a78bfa;
  --text: #e2e8f0;
  --muted: #4b5675;
  --muted2: #64748b;
  --success: #22c55e;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden
}

/* Ambient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background:
    linear-gradient(120deg, rgba(99, 102, 241, .03), transparent 40%),
    linear-gradient(-120deg, rgba(34, 211, 238, .025), transparent 40%);

  animation: ambientMove 60s ease-in-out infinite alternate;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(160px);
  opacity: .035;
  pointer-events: none;
  z-index: 0
}

.orb1 {
  width: 700px;
  height: 700px;
  background: #6366f1;
  top: -250px;
  right: -200px
}

.orb2 {
  width: 600px;
  height: 600px;
  background: #22d3ee;
  bottom: -200px;
  left: -200px
}

.orb3 {
  width: 400px;
  height: 400px;
  background: #a78bfa;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)
}

@keyframes ambientMove {
  0% {
    transform: translateX(-2%);
  }

  100% {
    transform: translateX(2%);
  }
}

/* Layout */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 18, .85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border2);
  padding: 13px 0
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(99, 102, 241, .4);
  flex-shrink: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .78rem;
  color: #fff
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px
}

.logo-name {
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: -.02em
}

.logo-sub {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted2)
}

.logo-sub .prompt {
  color: var(--accent2)
}

nav {
  display: flex;
  align-items: center;
  gap: 4px
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted2);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .2s;
}

.nav-link::before {
  content: '[';
  color: var(--muted);
  margin-right: 1px
}

.nav-link::after {
  content: ']';
  color: var(--muted);
  margin-left: 1px
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--border2);
  background: var(--surface2)
}

.nav-link:hover::before,
.nav-link:hover::after {
  color: var(--accent2)
}

/* Blink cursor */
@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent2);
  vertical-align: -2px;
  animation: blink .9s step-end infinite;
  margin-left: 3px;
  border-radius: 1px
}

.cursor-shell {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--accent2);
  vertical-align: 1px;
  animation: blink .9s step-end infinite;
  margin-left: -3px;
  border-radius: 1px
}

/* Hero */
.hero {
  padding: 88px 0 64px
}

.hero-prompt {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted2);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-prompt .ps {
  color: var(--accent2)
}

.hero-prompt .cmd {
  color: var(--text)
}

.cmd {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  border-right: 2px solid var(--accent2);
  animation:
    typing 1s steps(6, end) forwards,
    hideCursor 0s linear 1s forwards;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 6ch
  }
}

@keyframes hideCursor {
  to {
    border-right: none
  }
}

.ascii-name {
  font-family: var(--mono);
  font-size: clamp(.52rem, .85vw, .72rem);
  line-height: 1.25;
  white-space: pre;
  margin: 14px 0 28px;
  background: linear-gradient(135deg, #6366f1, #22d3ee 55%, #a78bfa);
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(99, 102, 241, .35));
  letter-spacing: .01em;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  text-shadow: 0 0 .6px rgba(255, 255, 255, .15);
  transform: translateY(.5px) translateZ(0);
  backface-visibility: hidden;
}

.ascii-wrap {
  opacity: 0;
  transform: translateY(6px);
  animation: revealAscii .6s ease forwards;
  animation-delay: 1.15s;
  will-change: opacity, transform;
}

@keyframes revealAscii {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted2);
  margin-bottom: 18px;
}

.hero-meta .sep {
  color: var(--muted);
  opacity: .4
}

.hero-meta .val {
  color: var(--text)
}

.hero-meta .key {
  color: var(--accent3)
}

.hero-online {
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: blink 2s ease-in-out infinite
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted2);
  max-width: 550px;
  line-height: 1.7;
  margin-top: 8px;
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 9px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-size: .83rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(99, 102, 241, .3);
  transition: all .2s
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(99, 102, 241, .5)
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: .83rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border2);
  transition: all .2s
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent2);
  background: rgba(99, 102, 241, .07);
  transform: translateY(-2px)
}

.btn-cyan {
  border-color: rgba(34, 211, 238, .35);
  color: var(--accent2);
  background: rgba(34, 211, 238, .06)
}

.btn-cyan:hover {
  border-color: var(--accent2);
  color: #fff;
  background: rgba(34, 211, 238, .15);
  box-shadow: 0 0 20px rgba(34, 211, 238, .2)
}

.btn-orange {
  border-color: rgba(249, 115, 22, .35);
  color: #fb923c;
  background: rgba(249, 115, 22, .06)
}

.btn-orange:hover {
  border-color: #f97316;
  color: #fff;
  background: rgba(249, 115, 22, .15);
  box-shadow: 0 0 20px rgba(249, 115, 22, .2)
}

.btn-indigo {
  border-color: rgba(99, 102, 241, .35);
  color: #818cf8;
  background: rgba(99, 102, 241, .06);
}

.btn-indigo:hover {
  border-color: #6366f1;
  color: #fff;
  background: rgba(99, 102, 241, .15);
  box-shadow: 0 0 20px rgba(99, 102, 241, .2);
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  margin: 4px 0
}

/* Sections */
.section {
  padding: 56px 0
}

.section-label {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .06em;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label .sl-prefix {
  color: var(--accent2)
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border)
}

/* Terminal card (About) */
.term-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0, 0, 0, .3);
  transition: all .25s;
  position: relative;
}

.term-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  background: radial-gradient(ellipse at 0% 0%,
      rgba(99, 102, 241, .09),
      transparent 65%);
}

.term-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, .35);
}

.term-card:hover::before {
  opacity: 1;
}

.term-bar {
  background: var(--surface2);
  border-bottom: 1px solid var(--border2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%
}

.td-r {
  background: #ff5f57
}

.td-y {
  background: #ffbd2e
}

.td-g {
  background: #28c840
}

.term-bar-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted2);
  letter-spacing: .04em;
}

.term-body {
  padding: 24px 28px 28px
}

.tl {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: .83rem;
  line-height: 2;
  color: var(--muted2);
}

.tl .p {
  color: var(--accent2);
  flex-shrink: 0;
  white-space: nowrap
}

.tl .k {
  color: var(--accent3)
}

.tl .v {
  color: var(--text)
}

.tl.cmt {
  color: var(--muted);
  font-style: italic
}

.tl.cmt .p {
  color: var(--muted)
}

.tl-content {
  flex: 1;
  min-width: 0;
}

.bio-label {
  color: var(--accent3);
}

.tl-bio .tl-content {
  display: grid;
  grid-template-columns: auto auto 1fr;
  column-gap: 0;
  align-items: start;
}

.tl-bio .bio-text {
  color: var(--muted2);
  font-style: italic;
  white-space: normal;
  overflow-wrap: anywhere;
}

.eq {
  color: var(--muted);
}

.bio-text {
  color: var(--muted2);
  font-style: italic;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 2px 0
}

.tag {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 500;
  font-family: var(--mono);
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--muted2);
  transition: all .2s
}

.tag:hover {
  border-color: rgba(99, 102, 241, .4);
  color: var(--accent3);
  background: rgba(99, 102, 241, .08)
}

/* Interests grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px
}

.card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 22px 20px;
  color: var(--text);
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, .35)
}

.card:hover::before {
  opacity: 1
}

.card.c-indigo::before {
  background: radial-gradient(ellipse at 0% 0%, rgba(99, 102, 241, .1), transparent 65%)
}

.card.c-cyan::before {
  background: radial-gradient(ellipse at 0% 0%, rgba(34, 211, 238, .1), transparent 65%)
}

.card.c-purple::before {
  background: radial-gradient(ellipse at 0% 0%, rgba(167, 139, 250, .1), transparent 65%)
}

.card.c-blue::before {
  background: radial-gradient(ellipse at 0% 0%, rgba(59, 130, 246, .1), transparent 65%);
}

.card.c-green::before {
  background: radial-gradient(ellipse at 0% 0%, rgba(34, 197, 94, .1), transparent 65%)
}

.card.c-indigo:hover {
  border-color: rgba(99, 102, 241, .35)
}

.card.c-cyan:hover {
  border-color: rgba(34, 211, 238, .35)
}

.card.c-purple:hover {
  border-color: rgba(167, 139, 250, .35)
}

.card.c-blue:hover {
  border-color: rgba(59, 130, 246, .35);
}

.card.c-green:hover {
  border-color: rgba(34, 197, 94, .35)
}

.card-num {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: .04em;
}

.card.c-indigo .card-num {
  color: rgba(99, 102, 241, .6)
}

.card.c-cyan .card-num {
  color: rgba(34, 211, 238, .55)
}

.card.c-purple .card-num {
  color: rgba(167, 139, 250, .55)
}

.card.c-green .card-num {
  color: rgba(34, 197, 94, .55)
}

.card.c-blue .card-num {
  color: rgba(59, 130, 246, .55);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block
}

.card-title {
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 7px;
  letter-spacing: -.01em
}

.card-desc {
  font-size: .78rem;
  color: var(--muted2);
  line-height: 1.6
}

/* Connect */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all .2s;
  position: relative;
  overflow: hidden;
}

.link-card::after {
  content: '→';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
  transition: all .2s;
}

.link-card:hover {
  border-color: rgba(99, 102, 241, .35);
  background: var(--surface2);
  transform: translateY(-2px)
}

.link-card:hover::after {
  color: var(--accent2);
  transform: translateY(-50%) translateX(3px)
}

.link-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-family: var(--mono);
  color: var(--accent2);
  transition: filter .2s ease;
  opacity: 0.9;
}

.link-icon.blog {
  color: #818cf8;
}

.link-icon.linkedin {
  color: var(--accent2);
}

.link-icon.soundcloud {
  color: #fb923c;
}

.link-card:hover .link-icon {
  filter: drop-shadow(0 0 6px currentColor);
  opacity: 1;
}

.code-icon {
  letter-spacing: -1px;
  font-weight: 600;
}

.icon-music {
  font-size: 1.75rem;
  transform: translateY(-1px);
}

.link-name {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 2px
}

.link-handle {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted2)
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--muted2);
  font-size: .75rem;
  position: relative;
  z-index: 1;
  font-family: var(--mono)
}

footer a {
  color: var(--muted2);
  text-decoration: none;
  transition: color .15s
}

footer a:hover {
  color: var(--text)
}

.footer-sep {
  margin: 0 10px;
  opacity: .3
}

/* Responsive */
@media(max-width:640px) {
  .ascii-name {
    font-size: .4rem
  }

  .hero {
    padding: 56px 0 44px
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hero-meta .sep {
    display: none;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
  }

  .logo-sub {
    line-height: 1.4;
  }
}