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

:root {
  --g: #d7ff00;
  --c: #00f0ff;
  --m: #ff20c8;
  --o: #ff5900;
  --v: #823bff;
  --bg: rgba(5,8,17,.82);
  --mx: 50%;
  --my: 50%;
}

html, body {
  background: #02030a !important;
  color: #f2f6ff !important;
  font-family: 'Rajdhani', sans-serif !important;
}
body {
  background-image:
    radial-gradient(700px circle at var(--mx) var(--my), rgba(0,240,255,.11), transparent 53%),
    radial-gradient(ellipse at 8% 25%, rgba(255,32,200,.10), transparent 38%),
    radial-gradient(ellipse at 92% 80%, rgba(130,59,255,.12), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(0,240,255,.035) 35px 36px),
    repeating-linear-gradient(90deg, transparent 0 35px, rgba(0,240,255,.028) 35px 36px) !important;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .12;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(230,250,255,.15) 3px 4px);
  mix-blend-mode: screen;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,32,200,.045), transparent 22%, transparent 78%, rgba(0,240,255,.045)),
    radial-gradient(ellipse at center, transparent 25%, rgba(0,0,0,.72) 100%);
}
#__next { position: relative; z-index: 2; }
#nx-bg { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .8; }

/* COMMAND-DECK HERO */
#nx-hero {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 38px 16px 27px;
  margin: 0 auto 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(130,59,255,.13), transparent 60%),
    linear-gradient(180deg, rgba(5,7,17,.35), rgba(5,7,17,.85));
  border-bottom: 1px solid rgba(0,240,255,.30);
  box-shadow: 0 15px 45px rgba(0,0,0,.20);
}
#nx-hero::before {
  content: "VOID DIVISION  /  HOMELAB CONTROL SYSTEM";
  display: block;
  margin: 0 auto 15px;
  color: var(--m);
  font: 11px 'Share Tech Mono', monospace;
  letter-spacing: .28em;
  text-shadow: 0 0 12px rgba(255,32,200,.72);
}
#nx-hero::after {
  content: "";
  position: absolute;
  left: 4%; right: 4%; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--g), var(--c), var(--m), transparent);
  box-shadow: 0 0 20px rgba(0,240,255,.5);
}
.nx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 19px;
}
.nx-chip {
  position: relative;
  padding: 7px 13px;
  color: var(--c);
  font: 11px 'Share Tech Mono', monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
  background: linear-gradient(115deg, rgba(0,240,255,.09), rgba(130,59,255,.11));
  border: 1px solid rgba(0,240,255,.45);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  box-shadow: inset 0 0 14px rgba(0,240,255,.04);
}
.nx-chip:first-child {
  color: var(--g);
  border-color: rgba(215,255,0,.6);
  background: rgba(215,255,0,.08);
  text-shadow: 0 0 10px rgba(215,255,0,.38);
}
.nx-chip:last-child { color: var(--m); border-color: rgba(255,32,200,.42); }
.nx-dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 8px;
  background: var(--g);
  box-shadow: 0 0 6px var(--g), 0 0 15px var(--g);
  animation: nx-pulse .9s steps(2,end) infinite;
}
.nx-title {
  position: relative;
  display: inline-block;
  margin: 0;
  color: #f8fbff;
  font: 800 clamp(36px, 8vw, 92px)/1.05 'Orbitron', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 0 4px #fff, 0 0 15px rgba(0,240,255,.95), 0 0 44px rgba(0,240,255,.43), 5px 4px 0 rgba(255,32,200,.20);
  filter: drop-shadow(0 0 18px rgba(130,59,255,.24));
}
.nx-title::before, .nx-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}
.nx-title::before {
  color: var(--c);
  text-shadow: -3px 0 var(--c);
  transform: translateX(-3px);
  animation: nx-glitch-a 2.4s steps(2,end) infinite;
}
.nx-title::after {
  color: var(--m);
  text-shadow: 3px 0 var(--m);
  transform: translateX(3px);
  animation: nx-glitch-b 1.8s steps(2,end) infinite;
}
.nx-sub {
  margin: 17px auto 0;
  min-height: 1.6em;
  color: var(--g);
  font: 13px 'Share Tech Mono', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(215,255,0,.40);
}
.nx-sub::after {
  content: "▋";
  margin-left: 5px;
  color: var(--m);
  animation: nx-blink .65s steps(1) infinite;
}

/* SERVICE CARDS: ANGULAR MECHA PANELS */
.service-card, .bookmark {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(16,22,41,.97), rgba(5,9,20,.94)),
    repeating-linear-gradient(135deg, rgba(0,240,255,.05) 0 1px, transparent 1px 9px) !important;
  border: 1px solid rgba(0,240,255,.34) !important;
  border-radius: 2px !important;
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 0 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.055), inset 4px 0 rgba(130,59,255,.24), 0 8px 22px rgba(0,0,0,.28);
  backdrop-filter: blur(13px) saturate(145%);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease !important;
}
.service-card::before, .bookmark::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 36%; height: 3px;
  background: linear-gradient(90deg, var(--g), var(--c), transparent);
  box-shadow: 0 0 12px rgba(0,240,255,.35);
  transition: width .24s ease;
  pointer-events: none;
}
.service-card::after, .bookmark::after {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.08), rgba(0,240,255,.13), transparent);
  transform: skewX(-22deg);
  transition: left .65s ease;
  pointer-events: none;
}
.service-card:hover::before, .bookmark:hover::before { width: 100%; }
.service-card:hover::after, .bookmark:hover::after { left: 135%; }
.service-card:hover, .bookmark:hover {
  border-color: var(--g) !important;
  filter: saturate(1.2);
  box-shadow: inset 4px 0 var(--g), inset 0 0 30px rgba(0,240,255,.065),
              0 0 0 1px rgba(215,255,0,.12), 0 0 25px rgba(0,240,255,.20),
              7px 7px 0 rgba(255,32,200,.12);
}
.service, .bookmark { animation: nx-rise .58s cubic-bezier(.16,.85,.3,1) both; }
.service:nth-child(2), .bookmark:nth-child(2) { animation-delay: .06s; }
.service:nth-child(3), .bookmark:nth-child(3) { animation-delay: .12s; }
.service:nth-child(4), .bookmark:nth-child(4) { animation-delay: .18s; }
.service:nth-child(5), .bookmark:nth-child(5) { animation-delay: .24s; }
.service:nth-child(6), .bookmark:nth-child(6) { animation-delay: .30s; }

h2, .service-group-name {
  color: var(--g) !important;
  font: 700 clamp(14px, 1.7vw, 19px) 'Orbitron', sans-serif !important;
  letter-spacing: .18em !important;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(215,255,0,.55), 0 0 26px rgba(215,255,0,.16);
  border-bottom: 1px solid rgba(0,240,255,.24);
  padding-bottom: 9px;
}
h2::before, .service-group-name::before {
  content: "◢ / ";
  color: var(--m);
  text-shadow: 0 0 12px rgba(255,32,200,.7);
}
.service-name, .bookmark a {
  color: #f4f7ff !important;
  font-family: 'Orbitron', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: .035em;
}
.service-card .service-description, .bookmark p, .service-description {
  color: #9daac5 !important;
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 14px;
}
.service-card .service-icon, .service-icon {
  filter: drop-shadow(0 0 8px rgba(0,240,255,.28));
}

/* SEARCH, WIDGETS, TOP BAR AND SCROLLBAR */
input, select, textarea {
  background: #080d18 !important;
  color: #f2f6ff !important;
  border: 1px solid rgba(0,240,255,.4) !important;
  border-radius: 2px !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--g) !important;
  box-shadow: 0 0 0 2px rgba(215,255,0,.10), 0 0 18px rgba(0,240,255,.12) !important;
}
header, nav { backdrop-filter: blur(14px); }
.widget, .widget-container, .information-widget {
  color: #eaf3ff;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--g), var(--c), var(--m));
  border-radius: 0;
}
::-webkit-scrollbar-track { background: #03050d; }

@keyframes nx-rise {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes nx-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .28; }
}
@keyframes nx-blink { 50% { opacity: 0; } }
@keyframes nx-glitch-a {
  0%, 86%, 100% { clip-path: inset(0 0 100% 0); }
  88% { clip-path: inset(15% 0 60% 0); transform: translateX(-7px); }
  91% { clip-path: inset(65% 0 9% 0); transform: translateX(4px); }
  94% { clip-path: inset(40% 0 35% 0); transform: translateX(-2px); }
}
@keyframes nx-glitch-b {
  0%, 82%, 100% { clip-path: inset(100% 0 0 0); }
  85% { clip-path: inset(68% 0 12% 0); transform: translateX(7px); }
  89% { clip-path: inset(8% 0 72% 0); transform: translateX(-4px); }
  92% { clip-path: inset(45% 0 35% 0); transform: translateX(2px); }
}
@media (max-width: 700px) {
  #nx-hero { padding: 25px 8px 20px; }
  #nx-hero::before { font-size: 9px; letter-spacing: .12em; }
  .nx-title { letter-spacing: .045em; }
  .nx-chip { padding: 6px 8px; font-size: 10px; }
  .service-card, .bookmark { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
