/* =========================================================
   DarkvoyagerLabs — core stylesheet
   Design language: "Signal Scan" — a HUD scanline motif
   that ties the nav underline, search focus ring and the
   hero's cycling covers into one recurring gesture.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  /* -- color tokens -- */
  --void:       #05070a;
  --surface:    #0d1117;
  --surface-2:  #131a23;
  --surface-3:  #1b2430;
  --line:       rgba(255,255,255,.08);
  --line-soft:  rgba(255,255,255,.05);
  --text:       #e9eef3;
  --text-dim:   #8b98a7;
  --text-faint: #5a6675;

  --cyan:   #4deeea;
  --lime:   #a8ff60;
  --red:    #ff3860;
  --blue:   #4d7cff;
  --yellow: #ffd23f;

  --grad-scan: linear-gradient(90deg, var(--cyan) 0%, var(--lime) 25%, var(--yellow) 50%, var(--red) 75%, var(--blue) 100%);
  --grad-scan-wide: linear-gradient(90deg, var(--cyan), var(--lime), var(--yellow), var(--red), var(--blue), var(--cyan));

  /* -- type -- */
  --f-display: 'Orbitron', 'Rajdhani', sans-serif;
  --f-body: 'Rajdhani', 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  /* -- layout -- */
  --nav-h: 76px;
  --nav-h-scrolled: 64px;
  --radius: 10px;
  --radius-lg: 18px;
  --ease-scan: cubic-bezier(.65,0,.35,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: var(--f-body);
  color: var(--text);
  background: var(--void);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.5;
}

/* Blurred global backdrop built from bg.png, kept off the paint layer that
   holds actual content so the blur can be strong without touching text. */
body::before{
  content:'';
  position: fixed;
  inset: -60px;
  background: url('../bg.png') center/cover no-repeat;
  filter: blur(34px) brightness(.38) saturate(1.15);
  transform: scale(1.08);
  z-index: -2;
  pointer-events: none;
}
body::after{
  content:'';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(5,7,10,.2), rgba(5,7,10,.85) 70%);
  z-index: -1;
  pointer-events: none;
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
img{ max-width:100%; display:block; }
button{ font-family: inherit; cursor:pointer; }
input{ font-family: inherit; }

.eyebrow{
  font-family: var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--cyan);
}

.visually-hidden{
  position:absolute !important; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap; border:0; padding:0; margin:-1px;
}

:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* =========================================================
   TOP NAV
   ========================================================= */
.site-nav{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 500;
  height: var(--nav-h);
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(9,12,17,.42);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line-soft);
  transition: height .3s var(--ease-scan), background .3s ease, border-color .3s ease;
}

/* On interior pages (no hero underneath) the nav gets a touch more body
   immediately, since there's no image behind it to separate it visually. */
.site-nav.is-solid{
  background: rgba(9,12,17,.72);
}

.site-nav.is-scrolled{
  height: var(--nav-h-scrolled);
  background: rgba(7,9,13,.78);
  border-bottom-color: var(--line);
}

.nav-brand{
  display:flex;
  align-items:center;
  gap: .7rem;
  min-width:0;
}
.nav-brand img{
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(77,238,234,.35));
}
.nav-brand .brand-name{
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  white-space: nowrap;
}
.nav-brand .brand-name .accent{ color: var(--cyan); }

.nav-links{
  display:flex;
  align-items:center;
  gap: clamp(1.4rem, 2.4vw, 2.6rem);
}

.nav-link{
  position: relative;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding-bottom: 6px;
  background-image: linear-gradient(90deg, var(--cyan) 50%, var(--text-dim) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position .45s var(--ease-scan);
}
.nav-link::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:0;
  height: 2px;
  background: var(--grad-scan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-scan);
}
.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active{
  background-position: 0% 0;
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after{
  transform: scaleX(1);
}

.nav-toggle{
  display:none;
  width: 40px; height: 40px;
  align-items:center; justify-content:center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.4rem;
  line-height:1;
}
.nav-toggle:hover{ border-color: var(--cyan); color: var(--cyan); }

.nav-mobile-panel{
  position: fixed;
  top: var(--nav-h-scrolled);
  left:0; right:0;
  z-index: 480;
  background: rgba(8,11,16,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display:flex;
  flex-direction: column;
  padding: 8px 0;
  transform: translateY(-110%);
  transition: transform .38s var(--ease-scan);
}
.nav-mobile-panel.is-open{ transform: translateY(0); }
.nav-mobile-panel a{
  padding: 16px clamp(18px, 6vw, 56px);
  font-family: var(--f-body);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
}
.nav-mobile-panel a:hover,
.nav-mobile-panel a.is-active{ color: var(--cyan); }

@media (max-width: 860px){
  .nav-links{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-brand .brand-name{ font-size: .92rem; }
}

/* =========================================================
   HERO (index.html only)
   ========================================================= */
.hero{
  position: relative;
  height: min(100svh, 780px);
  min-height: 520px;
  overflow: hidden;
  display:flex;
  align-items:flex-end;
}
.hero-track{
  position:absolute; inset:0;
  display:flex;
  width: 100%;
  height: 100%;
  transition: transform 1s var(--ease-scan);
}
.hero-slide{
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}
.hero-slide img{
  width:100%; height:100%; object-fit: cover;
  filter: blur(2.5px) brightness(.62) saturate(1.1);
  transform: scale(1.04);
}
.hero::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(5,7,10,.25) 0%, rgba(5,7,10,.35) 50%, rgba(5,7,10,.95) 100%);
  pointer-events:none;
}
.hero-content{
  position: relative;
  z-index: 2;
  width:100%;
  padding: 0 clamp(18px, 4vw, 56px) clamp(48px, 9vw, 96px);
}
.hero-tagline{
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 5.6vw, 4.2rem);
  letter-spacing: .02em;
  line-height: 1.05;
  margin: 0 0 .3rem;
  background: var(--grad-scan-wide);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: scan-drift 9s linear infinite;
}
@keyframes scan-drift{
  0%{ background-position: 0% 0; }
  100%{ background-position: 100% 0; }
}
.hero-sub{
  font-family: var(--f-mono);
  color: var(--text-dim);
  font-size: .95rem;
  letter-spacing: .06em;
  max-width: 46ch;
}
.hero-dots{
  position:absolute;
  bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display:flex; gap:8px;
}
.hero-dots span{
  width:6px; height:6px; border-radius:50%;
  background: var(--line);
  transition: background .3s ease, transform .3s ease;
}
.hero-dots span.is-active{ background: var(--cyan); transform: scale(1.35); }

/* =========================================================
   PAGE HEADER BANNER (about / static pages)
   ========================================================= */
.page-banner{
  position: relative;
  height: clamp(220px, 38vw, 380px);
  margin-top: var(--nav-h);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.page-banner img{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
  filter: blur(3px) brightness(.4) saturate(1.1);
  transform: scale(1.05);
}
.page-banner::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(5,7,10,.3), rgba(5,7,10,.95));
}
.page-banner-content{
  position:relative; z-index:2;
  text-align:center;
  padding: 0 20px;
}
.page-banner-content h1{
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 900;
  margin: 0 0 .4rem;
  letter-spacing:.03em;
}
.page-banner-content p{
  font-family: var(--f-mono);
  color: var(--text-dim);
  font-size: .9rem;
  letter-spacing:.05em;
}

/* Slim header used on pages without an image banner (connect/contribute) */
.slim-header{
  margin-top: var(--nav-h);
  padding: clamp(56px, 9vw, 96px) clamp(18px,4vw,56px) clamp(28px,5vw,48px);
  text-align:center;
  position:relative;
}
.slim-header::before{
  content:'';
  position:absolute; left:50%; top:0; transform:translateX(-50%);
  width:min(640px,80%); height:1px;
  background: var(--grad-scan);
  opacity:.5;
}
.slim-header h1{
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 4.6vw, 2.8rem);
  font-weight: 900;
  margin: 0 0 .5rem;
}
.slim-header p{
  font-family: var(--f-mono);
  color: var(--text-dim);
  font-size: .88rem;
  letter-spacing: .04em;
}

/* =========================================================
   SEARCH
   ========================================================= */
.search-wrap{
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 50;
}
.search-box{
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: transparent;
}
.search-box::before{
  content:'';
  position:absolute; inset:0;
  border-radius: inherit;
  padding: 2px;
  background: var(--grad-scan-wide);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .2s ease;
  animation: scan-drift 4s linear infinite;
}
.search-box:focus-within::before{ opacity: 1; }
.search-box:focus-within{
  box-shadow: 0 0 26px rgba(77,238,234,.18);
}
.search-field{
  position: relative;
  display:flex;
  align-items:center;
  gap:.6rem;
  background: rgba(13,17,23,.85);
  border: 1px solid var(--line);
  border-radius: inherit;
  padding: .85rem 1.1rem;
}
.search-box:focus-within .search-field{ border-color: transparent; }
.search-field svg{ flex:0 0 auto; opacity:.6; }
.search-field input{
  flex:1;
  background:none; border:none; outline:none;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--f-body);
  letter-spacing: .02em;
}
.search-field input::placeholder{ color: var(--text-faint); }

.search-suggestions{
  position: absolute;
  top: calc(100% + 10px);
  left: 20px; right: 20px;
  background: rgba(11,14,20,.97);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0,0,0,.55);
  opacity:0; visibility:hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  max-height: 340px;
  overflow-y: auto;
}
.search-suggestions.is-open{
  opacity:1; visibility:visible; transform: translateY(0);
}
.suggestion-item{
  display:flex; align-items:center; gap:.7rem;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--line-soft);
}
.suggestion-item:last-child{ border-bottom:none; }
.suggestion-item:hover, .suggestion-item.is-focused{ background: rgba(77,238,234,.08); }
.suggestion-item img{ width:34px; height:34px; border-radius:6px; object-fit:cover; flex:0 0 auto; }
.suggestion-item .s-name{ font-weight:600; font-size:.92rem; }
.suggestion-item .s-type{ font-family: var(--f-mono); font-size:.7rem; color: var(--text-dim); }
.suggestion-empty{
  padding: 1rem;
  text-align:center;
  color: var(--text-faint);
  font-family: var(--f-mono);
  font-size: .82rem;
}

/* =========================================================
   SORT BAR (projects.html)
   ========================================================= */
.sort-bar{
  display:flex;
  flex-wrap:wrap;
  gap: .6rem;
  justify-content:center;
  max-width: 900px;
  margin: 34px auto 0;
  padding: 0 20px;
}
.sort-btn{
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  padding: .5rem 1rem;
  border-radius: 999px;
  transition: all .25s ease;
}
.sort-btn:hover{ color: var(--text); border-color: var(--text-dim); }
.sort-btn.is-active{
  color: var(--void);
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(77,238,234,.4);
}

/* =========================================================
   PROJECT CARDS
   ========================================================= */
.cards-section{
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px clamp(18px,4vw,40px) 100px;
}
.cards-heading{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom: 22px;
  gap: 1rem;
  flex-wrap:wrap;
}
.cards-heading h2{
  font-family: var(--f-display);
  font-size: clamp(1.2rem,2.4vw,1.7rem);
  margin:0;
}
.cards-heading .view-all{
  font-family: var(--f-mono);
  font-size: .8rem;
  color: var(--cyan);
  letter-spacing: .04em;
}
.cards-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.project-card{
  display:flex;
  flex-direction:column;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow:hidden;
  text-align:left;
  color: inherit;
  transition: transform .3s var(--ease-scan), border-color .3s ease, box-shadow .3s ease;
}
.project-card:hover{
  transform: translateY(-6px);
  border-color: rgba(77,238,234,.4);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.project-card .card-media{
  position:relative;
  width:100%;
  aspect-ratio: 16/10;
  overflow:hidden;
  background: var(--surface-2);
}
.project-card .card-media img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .5s var(--ease-scan);
}
.project-card:hover .card-media img{ transform: scale(1.06); }
.card-type-badge{
  position:absolute; top:10px; left:10px;
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .05em;
  text-transform:uppercase;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(5,7,10,.72);
  border: 1px solid var(--line);
  color: var(--cyan);
}
.card-body{
  flex:1;
  display:flex;
  flex-direction:column;
  padding: 1rem 1.1rem 1.15rem;
  gap: .5rem;
}
.card-body h3{
  font-family: var(--f-display);
  font-size: 1.02rem;
  margin:0;
  letter-spacing: .01em;
}
.card-meta{
  display:flex;
  align-items:center;
  gap: .5rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--text-dim);
  letter-spacing:.03em;
}
.card-meta .dot{ width:3px; height:3px; border-radius:50%; background:var(--text-faint); }
.card-desc{
  font-size: .88rem;
  color: var(--text-dim);
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  flex:1;
}
.card-rating{
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--yellow);
  letter-spacing: .03em;
}
.card-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top: .3rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line-soft);
}
.card-price{
  font-family: var(--f-mono);
  font-weight:600;
  font-size: .92rem;
  color: var(--lime);
}
.card-price.is-free{ color: var(--lime); }
.dl-btn{
  position:relative;
  overflow:hidden;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--grad-scan-wide);
  background-size: 260% 100%;
  border: none;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  animation: scan-drift 6s linear infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}
.dl-btn:hover{ transform: scale(1.06); box-shadow: 0 0 20px rgba(77,238,234,.35); }
.dl-btn.is-disabled{
  background: var(--surface-3);
  color: var(--text-faint);
  animation: none;
  cursor: not-allowed;
  pointer-events: none;
}
.dl-btn.is-disabled:hover{ transform:none; box-shadow:none; }

.cards-empty{
  text-align:center;
  padding: 60px 20px;
  color: var(--text-faint);
  font-family: var(--f-mono);
  font-size: .9rem;
}

/* =========================================================
   MODAL
   ========================================================= */
.modal-overlay{
  position: fixed; inset:0;
  z-index: 900;
  background: rgba(4,5,8,.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
  opacity:0; visibility:hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal-overlay.is-open{ opacity:1; visibility:visible; }
.modal-box{
  position:relative;
  width: min(880px, 100%);
  max-height: 88vh;
  overflow-y:auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transform: translateY(18px) scale(.98);
  transition: transform .3s var(--ease-scan);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.modal-overlay.is-open .modal-box{ transform: translateY(0) scale(1); }
.modal-close{
  position: sticky;
  top: 14px; left: 14px;
  margin: 14px 0 -34px 14px;
  width: 38px; height:38px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(5,7,10,.75);
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-size: 1.1rem;
  z-index: 5;
  transition:ease 0.2s;
}
.modal-close:hover{ color: var(--text);
 background: var(--red);
 border-color: var(--red); }
.modal-hero{
  width:100%;
  aspect-ratio: 16/8;
  object-fit:cover;
}
.modal-content{
  padding: 1.6rem clamp(1.2rem, 4vw, 2.4rem) 2.2rem;
}
.modal-content h2{
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 .3rem;
}
.modal-tags{
  display:flex; flex-wrap:wrap; gap:.5rem;
  margin-bottom: 1rem;
}
.modal-tags span{
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding: .3rem .6rem;
  border-radius:999px;
  border:1px solid var(--line);
  color: var(--text-dim);
}
.modal-desc{
  color: var(--text-dim);
  line-height:1.7;
  margin-bottom: 1.4rem;
}
.modal-shots{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: .7rem;
  margin-bottom: 1.5rem;
}
.modal-shots img{
  width:100%; aspect-ratio:16/10; object-fit:cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.modal-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap:wrap;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.2rem;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-section{
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 100px;
  text-align:center;
}
.about-intro{
  color: var(--text-dim);
  min-height: 1.6em;
  margin-bottom: 2.4rem;
}
.about-card{
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem clamp(1.4rem, 5vw, 3rem);
}
.about-card h2{
  font-family: var(--f-display);
  font-size: 1.7rem;
  margin: 0 0 .2rem;
}
.about-card .role{
  font-family: var(--f-mono);
  color: var(--cyan);
  font-size: .82rem;
  letter-spacing: .05em;
  margin-bottom: 1.4rem;
}
.about-meta{
  display:flex;
  justify-content:center;
  gap: clamp(1.2rem, 4vw, 3rem);
  flex-wrap:wrap;
  margin-bottom: 1.6rem;
}
.about-meta div{ text-align:left; }
.about-meta .label{
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform:uppercase;
  color: var(--text-faint);
}
.about-meta .value{ font-size: 1rem; font-weight:600; }
.about-link{
  display:inline-block;
  font-family: var(--f-mono);
  font-size: .85rem;
  color: var(--lime);
  border-bottom: 1px dashed var(--lime);
  margin-bottom: 1.8rem;
}
.about-circles{
  display:flex;
  justify-content:center;
  gap: 1rem;
  flex-wrap:wrap;
}

/* =========================================================
   SOCIAL CIRCLES (connect + about)
   ========================================================= */
.social-circle{
  width: 52px; height:52px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  transition: all .25s ease;
}
.social-circle svg{ width:22px; height:22px; }
.social-circle:hover{
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 10px 26px rgba(77,238,234,.25);
}

.connect-grid{
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 1rem;
}
.connect-item{
  display:flex;
  align-items:center;
  gap: .9rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .25s ease;
}
.connect-item:hover{
  border-color: var(--cyan);
  transform: translateY(-3px);
  background: rgba(77,238,234,.05);
}
.connect-item .ci-icon{
  width:42px; height:42px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.05);
  flex:0 0 auto;
}
.connect-item .ci-icon svg{ width:20px; height:20px; }
.connect-item .ci-label{ font-weight:600; font-size:.95rem; }
.connect-item .ci-handle{
  font-family: var(--f-mono);
  font-size: .74rem;
  color: var(--text-dim);
  word-break: break-all;
}

.discord-cta{
  max-width: 620px;
  margin: 40px auto 90px;
  padding: 0 20px;
  text-align:center;
}
.discord-cta .dc-box{
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem;
  background: linear-gradient(180deg, rgba(77,124,255,.08), rgba(255,255,255,.01));
}
.discord-cta h3{
  font-family: var(--f-display);
  margin: 0 0 .5rem;
  font-size: 1.3rem;
}
.discord-cta p{ color: var(--text-dim); margin-bottom: 1.3rem; }
.discord-btn{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  font-family: var(--f-mono);
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:.85rem;
  color: var(--void);
  background: var(--blue);
  padding: .8rem 1.6rem;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.discord-btn:hover{ transform: scale(1.05); box-shadow: 0 0 24px rgba(77,124,255,.45); }

/* =========================================================
   CONTRIBUTE PAGE
   ========================================================= */
.contribute-intro{
  max-width: 620px;
  margin: 0 auto 50px;
  padding: 0 20px;
  text-align:center;
  color: var(--text-dim);
}

.support-panel{
  max-width: 620px;
  margin: 0 auto 70px;
  padding: 0 20px;
  text-align:center;
}
.support-panel .sp-box{
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem;
  background: linear-gradient(180deg, rgba(168,255,96,.08), rgba(255,255,255,.01));
}
.support-panel .eyebrow{ color: var(--lime); }
.support-panel h2{
  font-family: var(--f-display);
  margin: .5rem 0 .5rem;
  font-size: 1.4rem;
}
.support-panel p{ color: var(--text-dim); margin-bottom: 1.4rem; }
.support-btn{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  font-family: var(--f-mono);
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:.85rem;
  color: var(--void);
  background: var(--lime);
  padding: .8rem 1.8rem;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.support-btn:hover{ transform: scale(1.05); box-shadow: 0 0 24px rgba(168,255,96,.45); }

.contribute-projects{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 20px;
}
.contribute-projects .section-head{
  text-align:center;
  margin-bottom: 2rem;
}
.contribute-projects .section-head .eyebrow{ color: var(--cyan); }
.contribute-projects h2{
  font-family: var(--f-display);
  font-size: 1.4rem;
  margin: .5rem 0 .5rem;
}
.contribute-projects .section-head p{
  color: var(--text-dim);
  font-size: .92rem;
  max-width: 52ch;
  margin: 0 auto;
}

.contribute-list{
  display:flex;
  flex-direction:column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contribute-item{
  display:flex;
  align-items:center;
  gap: 1.1rem;
  padding: 1.1rem 1.3rem;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-wrap: wrap;
  transition: all .25s ease;
}
.contribute-item:hover{
  border-color: var(--cyan);
  background: rgba(77,238,234,.04);
  transform: translateY(-2px);
}
.contribute-item img{
  width: 64px; height:64px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}
.contribute-item .ci-info{ flex:1; min-width: 200px; }
.contribute-item h3{
  font-family: var(--f-display);
  font-size: 1rem;
  margin: 0 0 .25rem;
}
.contribute-item .ci-type{
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .3rem;
}
.contribute-item .help-wanted{
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--yellow);
}
.contribute-item .ci-btn{
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--cyan);
  padding: .55rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contribute-item .ci-btn:hover{ transform: scale(1.05); box-shadow: 0 0 18px rgba(77,238,234,.35); }

.contribute-other{
  text-align:center;
  margin: 0 auto 100px;
  padding: 0 20px;
  color: var(--text-dim);
  font-size: .92rem;
}
.contribute-other a{
  color: var(--cyan);
  border-bottom: 1px dashed var(--cyan);
}

/* =========================================================
   FORM (contribute-project.html)
   ========================================================= */
.form-shell{
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 20px 110px;
}
.form-field{
  margin-bottom: 1.35rem;
  display:flex;
  flex-direction:column;
  gap: .45rem;
}
.form-field label{
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-field .req{ color: var(--red); }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="url"],
.form-field select,
.form-field textarea{
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .8rem .95rem;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field select{ appearance: none; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  outline:none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(77,238,234,.15);
}
.form-field textarea{ resize: vertical; min-height: 130px; }

.checkbox-group{ display:flex; flex-wrap:wrap; gap:.6rem; }
.checkbox-pill{ position:relative; }
.checkbox-pill input{
  position:absolute; opacity:0;
  width:100%; height:100%;
  margin:0; cursor:pointer;
}
.checkbox-pill span{
  display:inline-block;
  font-family: var(--f-mono);
  font-size: .78rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: all .2s ease;
}
.checkbox-pill input:checked + span{
  background: var(--cyan);
  color: var(--void);
  border-color: var(--cyan);
}
.checkbox-pill input:focus-visible + span{
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.form-submit{
  width:100%;
  padding: .95rem;
  border: none;
  border-radius: 999px;
  background: var(--grad-scan-wide);
  background-size: 260% 100%;
  animation: scan-drift 6s linear infinite;
  color: var(--void);
  font-family: var(--f-mono);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .92rem;
  transition: transform .2s ease;
}
.form-submit:hover{ transform: scale(1.015); }

.form-note{
  font-family: var(--f-mono);
  font-size: .74rem;
  color: var(--text-faint);
  text-align:center;
  margin-top: 1.1rem;
}
.honeypot-field{
  position:absolute;
  left: -9999px;
  top: -9999px;
}

/* =========================================================
   DONATE PAGE
   ========================================================= */
.donate-grid{
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1rem;
}
.donate-item{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap: .7rem;
  padding: 1.4rem 1.3rem;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all .25s ease;
}
.donate-item:hover{
  border-color: var(--lime);
  transform: translateY(-4px);
  background: rgba(168,255,96,.05);
}
.donate-item .di-icon{
  width: 46px; height:46px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.05);
}
.donate-item .di-icon svg{ width:22px; height:22px; }
.donate-item h3{
  font-family: var(--f-display);
  font-size: 1.02rem;
  margin: 0;
}
.donate-item p{
  color: var(--text-dim);
  font-size: .86rem;
  margin: 0;
  line-height: 1.5;
}
.donate-item .di-link{
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--lime);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .2s ease;
}
.donate-item .di-link:hover{ transform: scale(1.05); }

.donate-note{
  max-width: 620px;
  margin: 0 auto 100px;
  padding: 0 20px;
  text-align:center;
  color: var(--text-faint);
  font-family: var(--f-mono);
  font-size: .82rem;
  line-height: 1.7;
}

/* =========================================================
   THANK YOU PAGE
   ========================================================= */
.thanks-shell{
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 20px 140px;
  text-align:center;
}
.thanks-shell .big-check{
  width: 70px; height:70px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  border: 2px solid var(--lime);
  display:flex; align-items:center; justify-content:center;
  color: var(--lime);
  font-size: 1.8rem;
}
.thanks-shell h1{
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0 0 .6rem;
}
.thanks-shell p{ color: var(--text-dim); margin-bottom: 1.8rem; }
.thanks-shell .back-link{
  display:inline-block;
  font-family: var(--f-mono);
  font-size: .85rem;
  color: var(--cyan);
  border-bottom: 1px dashed var(--cyan);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  border-top: 1px solid var(--line-soft);
  padding: 28px clamp(18px,4vw,56px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap:wrap;
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--text-faint);
}
.site-footer a:hover{ color: var(--cyan); }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}


.page-loader{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 1.3rem;
  background: var(--void);
  transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.is-hidden{ opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader .loader-logo{
  width: 60px; height: 60px; object-fit: contain;
  animation: loader-pulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(77,238,234,.5));
}
@keyframes loader-pulse{ 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.12);opacity:.7;} }
.page-loader .loader-bar{
  width: 180px; height: 3px; border-radius: 999px;
  background: rgba(255,255,255,.08); overflow: hidden; position: relative;
}
.page-loader .loader-bar::after{
  content:''; position: absolute; top:0; left:-40%; width:40%; height:100%;
  background: var(--grad-scan); animation: loader-sweep 1.1s ease-in-out infinite;
}
@keyframes loader-sweep{ 0%{left:-40%;} 100%{left:100%;} }
.page-loader .loader-text{
  font-family: var(--f-mono); font-size:.72rem; letter-spacing:.14em;
  text-transform:uppercase; color: var(--text-dim);
}
.page-loader .loader-text .cursor{ display:inline-block; animation: loader-blink 1s steps(1) infinite; }
@keyframes loader-blink{ 50%{ opacity:0; } }

.star-rating{ display:flex; flex-direction: row-reverse; justify-content: flex-end; gap: .25rem; }
.star-rating input{ position:absolute; opacity:0; width:1px; height:1px; }
.star-rating label{ font-size: 1.9rem; color: var(--line); cursor:pointer; transition: color .15s ease, transform .15s ease; }
.star-rating input:checked ~ label{ color: var(--yellow); }
.star-rating label:hover, .star-rating label:hover ~ label{ color: var(--yellow); transform: scale(1.08); }

.feedback-btn {
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  font-family: var(--f-mono);
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:.85rem;
  color: #80ffff;
  padding: .8rem 1.8rem;
  transition: transform .2s ease, box-shadow .2s ease;
  border-top: 2px solid #80ffff;
  border-bottom: 2px solid #80ffff;
}
.feedback-btn:hover{ 
    transform: scale(1.05); box-shadow: 0 0 24px #0003ffb1;
    color: #000;
    background: #80ffff;
}

/* =========================================================
   ERROR PAGE (404.html)
   ========================================================= */
.error-shell{
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(70px, 14vw, 130px) 20px clamp(70px, 12vw, 140px);
  text-align:center;
}
.error-eyebrow{
  font-family: var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--red);
  margin-bottom: .6rem;
}
.error-code{
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(4.5rem, 18vw, 9rem);
  line-height: 1;
  margin: 0 0 .6rem;
  background: var(--grad-scan-wide);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: scan-drift 6s linear infinite, error-glitch 5s steps(1) infinite;
}
@keyframes error-glitch{
  0%, 92%, 100%{ text-shadow: none; transform: translate(0,0); }
  93%{ text-shadow: 2px 0 var(--red), -2px 0 var(--cyan); transform: translate(-1px,0); }
  95%{ text-shadow: -2px 0 var(--lime), 2px 0 var(--blue); transform: translate(1px,0); }
  97%{ text-shadow: none; transform: translate(0,0); }
}
.error-shell h2{
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  margin: 0 0 .6rem;
}
.error-shell p{
  color: var(--text-dim);
  font-family: var(--f-mono);
  font-size: .88rem;
  max-width: 44ch;
  margin: 0 auto 2.2rem;
  line-height: 1.7;
}
.error-actions{
  display:flex;
  gap: 1rem;
  justify-content:center;
  flex-wrap:wrap;
}
.error-btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-family: var(--f-mono);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.error-btn.primary{ color: var(--void); background: var(--cyan); }
.error-btn.primary:hover{ transform: scale(1.05); box-shadow: 0 0 22px rgba(77,238,234,.4); }
.error-btn.secondary{ color: var(--text-dim); border: 1px solid var(--line); background: transparent; }
.error-btn.secondary:hover{ border-color: var(--cyan); color: var(--cyan); transform: scale(1.05); }