/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg: #0f1117;
  --bg-alt: #12141c;
  --surface: #161920;
  --surface-hi: #1d2029;
  --border: #252833;
  --border-hi: #2f3340;
  --text: #e2e4ed;
  --text-muted: #8890a8;
  --text-faint: #414659;
  --accent: #7ea8f8;
  --accent-dim: #3d5a9e;
  --accent-soft: rgba(126, 168, 248, 0.08);
  --accent-2: #a78bfa;
  --accent-3: #67d0b5;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --r: 8px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
     RESET & BASE
     ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
     LAYOUT
     ============================================================ */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.section {
  padding: 7rem 0;
}
.alt {
  background: var(--bg-alt);
}

/* ============================================================
     NAV
     ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2.5rem;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-faint);
  transition: color 0.16s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-gl {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 0.32rem 0.85rem;
  border-radius: 4px;
  transition: all 0.16s var(--ease);
}
.nav-gl:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* ============================================================
     HERO
     ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
#cvs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
  animation: up 0.5s ease both;
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.hero-name {
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.5rem;
  animation: up 0.5s 0.07s ease both;
}
.hero-name span {
  color: var(--accent);
  font-weight: 300;
  font-style: italic;
}
.hero-tagline {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2.75rem;
  animation: up 0.5s 0.14s ease both;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
  animation: up 0.5s 0.2s ease both;
}
.btn {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  transition: all 0.16s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-filled {
  background: var(--accent);
  color: #0f1117;
}
.btn-filled:hover {
  background: #a0befa;
  transform: translateY(-1px);
}
.btn-outline {
  border: 1px solid var(--border-hi);
  color: var(--text-muted);
}
.btn-outline:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.hero-divider {
  width: 1px;
  height: 48px;
  background: var(--border-hi);
  margin-bottom: 2.5rem;
  margin-left: 2px;
  animation: up 0.5s 0.25s ease both;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: up 0.5s 0.3s ease both;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat-n {
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-l {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.stat-div {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.scroll-ln {
  width: 1px;
  height: 44px;
  background: var(--border-hi);
  transform-origin: top;
  animation: grow 1.5s 1s ease both;
}

/* ============================================================
     SECTION HEADERS
     ============================================================ */
.s-idx {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent-dim);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.s-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
  color: var(--text);
}
.s-sub {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.85;
}
.s-hd {
  margin-bottom: 3rem;
}

/* ============================================================
     FILTER BAR
     ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2.25rem;
}
.f-btn {
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.8rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition: all 0.16s var(--ease);
}
.f-btn:hover,
.f-btn.on {
  background: var(--accent);
  color: #0f1117;
  border-color: var(--accent);
}

/* ============================================================
     PROJECT GRID
     ============================================================ */
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  gap: 1px;
  background: var(--border);
}
.pcard {
  background: var(--surface);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: background 0.16s var(--ease);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.pcard:hover {
  background: var(--surface-hi);
}
.pcard.sk {
  height: 200px;
  animation: shimmer 1.5s infinite;
  background: linear-gradient(
    90deg,
    var(--surface) 25%,
    var(--surface-hi) 50%,
    var(--surface) 75%
  );
  background-size: 200% 100%;
}
.ct {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.cn {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.25;
}
.ca {
  flex-shrink: 0;
  color: var(--text-faint);
  margin-top: 0.1rem;
  transition:
    transform 0.16s var(--ease),
    color 0.16s var(--ease);
}
.pcard:hover .ca {
  transform: translate(2px, -2px);
  color: var(--accent);
}
.cd {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.72;
  flex: 1;
}
.cf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.cm {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.cl {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  padding: 0.16rem 0.5rem;
  border-radius: 3px;
  border: 1px solid transparent;
}
.cs {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-faint);
}
.cst {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.14rem 0.5rem;
  border-radius: 3px;
}
.st-a {
  background: rgba(103, 208, 181, 0.08);
  color: #67d0b5;
  border: 1px solid rgba(103, 208, 181, 0.2);
}
.st-x {
  background: var(--surface-hi);
  color: var(--text-faint);
  border: 1px solid var(--border);
}

/* Language chips */
.lp {
  background: rgba(255, 183, 77, 0.07);
  color: #ffb74d;
  border-color: rgba(255, 183, 77, 0.18);
}
.lj {
  background: rgba(255, 213, 79, 0.07);
  color: #ffd54f;
  border-color: rgba(255, 213, 79, 0.18);
}
.lt {
  background: rgba(126, 168, 248, 0.08);
  color: #7ea8f8;
  border-color: rgba(126, 168, 248, 0.2);
}
.lr {
  background: rgba(255, 138, 101, 0.08);
  color: #ff8a65;
  border-color: rgba(255, 138, 101, 0.2);
}
.lg {
  background: rgba(103, 208, 181, 0.08);
  color: #67d0b5;
  border-color: rgba(103, 208, 181, 0.2);
}
.lc2 {
  background: rgba(167, 139, 250, 0.08);
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.2);
}
.lc {
  background: rgba(147, 197, 253, 0.08);
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.2);
}
.ls {
  background: rgba(110, 231, 183, 0.08);
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.2);
}
.lo {
  background: var(--surface-hi);
  color: var(--text-faint);
  border-color: var(--border);
}

/* ============================================================
     ABOUT
     ============================================================ */
.agrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.at p {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.1rem;
}
.at strong {
  color: var(--text);
  font-weight: 500;
}

.albox {
  padding: 2rem 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.al-lbl {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.4rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.lbw {
  margin-bottom: 1rem;
}
.lbt {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.lbn {
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--text);
}
.lbp {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
}
.lbtrack {
  height: 3px;
  background: var(--border-hi);
  border-radius: 100px;
  overflow: hidden;
}
.lbfill {
  height: 100%;
  border-radius: 100px;
  width: 0;
  transition: width 1.1s var(--ease);
}

/* ============================================================
     COLLABORATE
     ============================================================ */
.cgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.ccard {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.16s var(--ease);
}
.ccard:hover {
  background: var(--surface-hi);
}
.cnum {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent-dim);
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
}
.ccard h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.65rem;
  color: var(--text);
}
.ccard p {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.78;
}

/* ============================================================
     CONTACT
     ============================================================ */
.contact-w {
  max-width: 560px;
}
.contact-w .s-sub {
  margin-bottom: 2.5rem;
}
.clinks {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.clink {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.16s var(--ease);
}
.clink:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  transform: translateY(-1px);
}

/* ============================================================
     FOOTER
     ============================================================ */
.foot {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  background: var(--bg);
}
.foot-i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.foot-logo {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.foot-copy {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-faint);
}
.foot-gl {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  transition: color 0.16s;
}
.foot-gl:hover {
  color: var(--accent);
}

/* ============================================================
     ANIMATIONS
     ============================================================ */
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
@keyframes grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

/* ============================================================
     RESPONSIVE
     ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .agrid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .stat-n {
    font-size: 2rem;
  }
  .hero-stats {
    gap: 1.75rem;
  }
  .section {
    padding: 5rem 0;
  }
  .hero-scroll {
    display: none;
  }
  .wrap {
    padding: 0 1.5rem;
  }
}

/* ============================================================
     NAV — right side group
     ============================================================ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-kofi {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #0f1117;
  background: #ff5e5b;
  border: 1px solid #ff5e5b;
  padding: 0.32rem 0.85rem;
  border-radius: 4px;
  transition: all 0.16s var(--ease);
  white-space: nowrap;
}
.nav-kofi:hover {
  background: #ff7875;
  border-color: #ff7875;
  transform: translateY(-1px);
}
.nav-kofi svg {
  flex-shrink: 0;
}

/* ============================================================
     FILTER BAR — category + language chips
     ============================================================ */
.filter-divider {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--border-hi);
  margin: 0 0.25rem;
  align-self: center;
  flex-shrink: 0;
}

.f-cat {
  border-style: dashed;
}

/* ============================================================
     NAV — right side group
     ============================================================ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.nav-kofi {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #0f1117;
  background: #ff5e5b;
  border: 1px solid #ff5e5b;
  padding: 0.32rem 0.85rem;
  border-radius: 4px;
  transition: all 0.16s var(--ease);
  white-space: nowrap;
}
.nav-kofi:hover {
  background: #ff7875;
  border-color: #ff7875;
  transform: translateY(-1px);
}

/* ============================================================
     FILTER BAR — divider between categories and language chips
     ============================================================ */
.filter-divider {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--border-hi);
  margin: 0 0.25rem;
  align-self: center;
  flex-shrink: 0;
}
.f-cat {
  border-style: dashed;
}

/* Ko-fi contact link accent */
.clink-kofi {
  color: #ff8785;
  border-color: rgba(255, 94, 91, 0.25);
}
.clink-kofi:hover {
  color: #ff5e5b;
  border-color: rgba(255, 94, 91, 0.6);
}

/* ============================================================
     PROJECT CARD ICON
     ============================================================ */
.card-icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-hi);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* GitLab project avatar image */
.card-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Emoji fallback */
.card-icon-emoji {
  font-size: 1.25rem;
  line-height: 1;
}

/* Generated letter avatar fallback */
.card-icon-letter {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
}

/* push name and arrow apart from the icon */
.ct {
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
}
.ct .cn {
  flex: 1;
  min-width: 0;
}
