:root {
  --bg: #14101a;
  --surface: #1e1826;
  --text: #f6e9f0;
  --muted: #a898b3;
  --accent: #ff7eb3;
  --accent-2: #c9a7ff;
  --border: #34283f;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", "Quicksand", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 126, 179, .15) 0, transparent 35%),
    radial-gradient(circle at 90% 30%, rgba(201, 167, 255, .12) 0, transparent 35%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline wavy; }

.nav {
  position: sticky; top: 1rem; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 900px; margin: 1rem auto 0;
  padding: .7rem 1.5rem;
  background: rgba(30, 24, 38, .85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.nav nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1rem; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--accent); text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: 1.2rem; color: var(--accent); }
.logo-icon { width: 1.4rem; height: 1.4rem; }

section { max-width: 1000px; margin: 0 auto; padding: 4.5rem 2rem; }
h2 { font-size: 2rem; margin: 0 0 2rem; }

.hero { padding-top: 6rem; text-align: center; }

body::before, body::after {
  content: ""; position: fixed; width: min(240px, 35vw); aspect-ratio: 1;
  background: url("data/leaves.svg") no-repeat center / contain;
  opacity: .25; pointer-events: none; z-index: -1;
}
body::before { top: 0; left: 0; transform: scaleY(-1); }
body::after { bottom: 0; right: 0; transform: scaleX(-1); }
.eyebrow {
  display: inline-block; padding: .3rem 1rem; border-radius: 999px;
  background: var(--border); color: var(--accent); font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.15; margin: 1rem 0 1.5rem; }
.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1.2rem; max-width: 36rem; margin: 0 auto; }

.cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; padding: .75rem 1.6rem; border-radius: 999px;
  border: 2px solid var(--accent); color: var(--accent); background: var(--surface);
  font-weight: 700;
  transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn.primary { background: var(--accent); color: #1a0f16; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.project-card {
  min-width: 0; padding: 1.2rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
}
.project-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 1rem 0 .25rem; }
.project-heading h3 { min-width: 0; margin: 0; }
.project-status {
  flex: 0 0 auto; padding: .15rem .55rem; border: 1px solid var(--border);
  border-radius: 999px; color: var(--muted); font-size: .72rem; font-weight: 700;
}
.project-card > p:not(.project-links) { margin: 0 0 .9rem; color: var(--muted); }
.project-preview { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 14px; }
.preview-one { background: linear-gradient(135deg, #382249, #194b51); }
.vision-frame {
  position: absolute; top: 20%; left: 26%; width: 42%; height: 58%;
  border: 1px solid rgba(143, 255, 211, .9); box-shadow: 0 0 24px rgba(143, 255, 211, .15);
}
.vision-frame::before, .vision-frame::after, .vision-frame span::before, .vision-frame span::after {
  position: absolute; width: 8px; height: 8px; border: 1px solid #8fffd3; content: "";
}
.vision-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.vision-frame::after { top: -1px; right: -1px; border-bottom: 0; border-left: 0; }
.vision-frame span::before { bottom: -1px; left: -1px; border-top: 0; border-right: 0; }
.vision-frame span::after { right: -1px; bottom: -1px; border-top: 0; border-left: 0; }
.preview-label {
  position: absolute; right: 8%; bottom: 12%; color: #8fffd3;
  font: 700 .58rem/1.2 ui-monospace, monospace; letter-spacing: .08em;
}
.preview-two {
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,.08) 50%, transparent 50.5%),
    linear-gradient(135deg, #53304b, #744f75 55%, #a06a7d);
}
.preview-two::before {
  position: absolute; inset: 17% 13%; border: 1px solid rgba(255, 235, 225, .6);
  background: repeating-linear-gradient(0deg, transparent 0 17px, rgba(255,255,255,.13) 18px 19px);
  content: "";
}
.preview-two::after {
  position: absolute; top: 31%; left: 36%; width: 27%; aspect-ratio: 1;
  border: 1px solid rgba(255, 235, 225, .8); border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 235, 225, .08), 0 0 0 16px rgba(255, 235, 225, .06);
  content: "";
}
.preview-three {
  background: linear-gradient(135deg, #283b55, #355c69 55%, #52736d);
}
.preview-three::before {
  position: absolute; inset: 17% 12%; border: 1px solid rgba(217, 248, 222, .45);
  background: repeating-linear-gradient(0deg, transparent 0 20px, rgba(217,248,222,.12) 21px 22px);
  content: "";
}
.preview-three::after {
  position: absolute; right: 20%; bottom: 25%; width: 11%; height: 34%;
  background: #a5e0bd; box-shadow: -20px 11px 0 #85c8bc, -40px 2px 0 #d4e9a4;
  content: "";
}
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .85rem; padding: 0; list-style: none; }
.tags li { padding: .15rem .65rem; border-radius: 999px; background: var(--border); color: var(--accent); font-size: .8rem; font-weight: 700; }
.project-links { margin: 0; color: var(--accent); font-weight: 600; }

.about p { max-width: 40rem; color: var(--muted); font-size: 1.1rem; }
.section-copy { color: var(--muted); font-size: 1.1rem; }
.skill-list, .language-list { margin: 0; }
.skill-list div, .language-list div {
  display: grid; gap: 1rem; padding: .9rem 0;
  border-bottom: 1px solid var(--border);
}
.skill-list div { grid-template-columns: minmax(140px, .4fr) 1fr; }
.language-list { max-width: 460px; }
.language-list div { grid-template-columns: 1fr auto; }
.skill-list dt, .language-list dt { color: var(--accent); font-weight: 700; }
.skill-list dd, .language-list dd { margin: 0; color: var(--muted); }
.contact { text-align: center; }
.contact-icon { display: block; width: 52px; height: 52px; margin: 0 auto 1rem; }
.contact-list {
  width: min(100%, 540px); margin: 1.5rem auto 0; padding: 0;
  list-style: none; text-align: left;
}
.contact-list li {
  display: grid; grid-template-columns: 24px 90px minmax(0, 1fr);
  align-items: center; gap: .8rem; padding: .9rem .25rem;
  border-bottom: 1px solid var(--border);
}
.contact-list svg {
  width: 22px; height: 22px; fill: none; stroke: var(--accent);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.contact-list .discord-icon { fill: var(--accent); stroke: none; }
.contact-type { color: var(--muted); font-weight: 600; }
.contact-list a { overflow-wrap: anywhere; }

footer { text-align: center; padding: 2rem; color: var(--muted); font-size: .9rem; }

@media (max-width: 600px) {
  .nav { margin: .5rem; top: .5rem; padding: .6rem 1rem; }
  .nav nav { gap: .25rem .65rem; }
  .nav nav a { font-size: .9rem; }
  section { padding: 3rem 1.25rem; }
  .hero { padding-top: 4rem; }
  .skill-list div { grid-template-columns: 1fr; gap: .2rem; }
}
