/* DeepNet CSS – Guardian ID (Cyberpunk dark theme) */
body {
  background-color: #000;
  color: #e0ffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: #00ffff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

a {
  color: #00ffff;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: #00e0e0;
}

.navbar {
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
}

.card {
  background-color: #101010;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0,255,255,0.3);
}

.btn-info {
  background-color: #00cccc;
  border: none;
  color: #000;
}

.btn-outline-info {
  border-color: #00ffff;
  color: #00ffff;
}

.btn-outline-info:hover {
  background-color: #00ffff;
  color: #000;
}

/* Headline glitch – tuned to cyan+matrix green (no purple sweep) */
.glitch {
  position: relative;
  color: #00ffff;
  font-weight: bold;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  background: #000;
  color: #0ff;
  clip: rect(0, 900px, 0, 0);
}

.glitch::before {
  animation: glitchTop 2s infinite linear alternate-reverse;
  color: #0ff;
}

.glitch::after {
  animation: glitchBot 2s infinite linear alternate-reverse;
  color: #00ff99;
}

@keyframes glitchTop {
  0% { clip: rect(0, 999px, 0, 0); }
  10% { clip: rect(10px, 999px, 30px, 0); }
  20% { clip: rect(5px, 999px, 25px, 0); }
  30% { clip: rect(15px, 999px, 40px, 0); }
  100% { clip: rect(0, 999px, 0, 0); }
}

@keyframes glitchBot {
  0% { clip: rect(0, 999px, 0, 0); }
  10% { clip: rect(20px, 999px, 40px, 0); }
  20% { clip: rect(15px, 999px, 25px, 0); }
  30% { clip: rect(25px, 999px, 45px, 0); }
  100% { clip: rect(0, 999px, 0, 0); }
}

.scanline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #00ff99;
  animation: blink 1.2s infinite;
  font-size: 1.05rem;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.shadow-inner {
  box-shadow: inset 0 0 50px rgba(0,255,255,0.05);
}

.border-info {
  border-color: #00ffff !important;
}

.bg-dark {
  background-color: #121212 !important;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ==============================
   GUARDIAN ID – Cyberpunk UI Add-ons
   ============================== */

:root {
  --gi-cyan: #00ffff;
  --gi-cyan-dim: rgba(0,255,255,0.25);
  --gi-green: #00ff99;
  --gi-green-dim: rgba(0,255,153,0.25);
  --gi-black: #000;
  --gi-panel: #101010;
}

::selection {
  background: rgba(0,255,255,0.25);
  color: #e0ffff;
}

/* Subtle background glow + vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0,255,255,0.06), transparent 55%),
    radial-gradient(ellipse at top, rgba(0,255,153,0.05), transparent 45%),
    linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.55));
  opacity: 0.95;
  mix-blend-mode: screen;
  z-index: 0;
}

main, nav, footer {
  position: relative;
  z-index: 1;
}

/* ==============================
   Navbar: sci-fi links + bilingual switch
   ============================== */

.navbar .nav-link {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  padding: 0.65rem 0.9rem;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.45rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gi-cyan), transparent);
  box-shadow: 0 0 12px rgba(0,255,255,0.45);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 250ms ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.navbar .nav-link::before {
  content: "";
  position: absolute;
  inset: 0.25rem 0.35rem;
  border: 1px solid rgba(0,255,255,0.12);
  border-radius: 10px;
  opacity: 0;
  transform: skewX(-12deg);
  transition: opacity 250ms ease;
}

.navbar .nav-link:hover::before {
  opacity: 1;
  animation: giScanSweep 900ms ease;
}

@keyframes giScanSweep {
  0% { box-shadow: inset -240px 0 0 rgba(0,255,255,0.0); }
  50% { box-shadow: inset 240px 0 0 rgba(0,255,255,0.08); }
  100% { box-shadow: inset 240px 0 0 rgba(0,255,255,0.0); }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.75rem;
}

.lang-switch a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.82;
}

.lang-switch a.active {
  opacity: 1;
  text-shadow: 0 0 12px rgba(0,255,255,0.55);
}

.lang-divider {
  color: rgba(224,255,255,0.35);
}

/* ==============================
   Brand: 3D animated + Matrix sweep
   ============================== */

.brand-3d {
  transform-style: preserve-3d;
  perspective: 900px;
  will-change: transform;
  animation: giBrandFloat 4.8s ease-in-out infinite;
}

.brand-3d:hover {
  animation: none;
  transform: perspective(900px) rotateX(10deg) rotateY(-12deg) translateY(-1px);
}

@keyframes giBrandFloat {
  0%   { transform: perspective(900px) rotateX(4deg) rotateY(-6deg) translateY(0px); }
  50%  { transform: perspective(900px) rotateX(7deg) rotateY(6deg) translateY(-1px); }
  100% { transform: perspective(900px) rotateX(4deg) rotateY(-6deg) translateY(0px); }
}

.brand-title {
  position: relative;
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.15rem 0.15rem;
  text-shadow:
    0 0 10px rgba(0,255,255,0.35),
    0 2px 0 rgba(0,0,0,0.75);
  transform: translateZ(16px);
}

/* Matrix glow sweep */
.matrix-sweep::before {
  content: "";
  position: absolute;
  top: -0.15rem;
  bottom: -0.15rem;
  width: 90px;
  left: 0;
  transform: translate(-160%, 0);
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(0,255,153,0.35), transparent);
  filter: blur(1.2px);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: giMatrixSweep 4.2s ease-in-out infinite;
}

.matrix-sweep::after {
  content: attr(data-matrix);
  position: absolute;
  top: 50%;
  left: 0;
  width: 90px;
  transform: translate(-160%, -50%);
  overflow: hidden;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(0,255,153,0.95);
  text-shadow: 0 0 16px rgba(0,255,153,0.55);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(0.15px);
  animation: giMatrixSweep 4.2s ease-in-out infinite;
}

@keyframes giMatrixSweep {
  0%   { transform: translate(-160%, -50%); opacity: 0; }
  12%  { opacity: 0.95; }
  48%  { transform: translate(140%, -50%); opacity: 0.85; }
  62%  { opacity: 0; }
  100% { transform: translate(140%, -50%); opacity: 0; }
}

/* Flipping brand logo */
.logo-flip {
  width: 40px;
  height: 40px;
  position: relative;
  perspective: 900px;
  margin-right: 0.6rem;
  transform: translateZ(18px);
}

.logo-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.logo-face svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 14px rgba(0,255,255,0.35));
}

.logo-face--b {
  transform: rotateY(180deg);
}

.logo-flip.is-animated .logo-face--a {
  animation: giLogoFlipA 2.2s ease-in-out 0.4s 1 forwards;
}

.logo-flip.is-animated .logo-face--b {
  animation: giLogoFlipB 2.2s ease-in-out 0.4s 1 forwards;
}

@keyframes giLogoFlipA {
  0% { transform: rotateY(0deg); opacity: 1; }
  45% { transform: rotateY(90deg); opacity: 0.2; }
  100% { transform: rotateY(180deg); opacity: 0; }
}

@keyframes giLogoFlipB {
  0% { transform: rotateY(180deg); opacity: 0; }
  55% { transform: rotateY(90deg); opacity: 0.35; }
  100% { transform: rotateY(0deg); opacity: 1; }
}

/* ==============================
   Home hero
   ============================== */

.hero {
  position: relative;
  border-bottom: 1px solid rgba(0,255,255,0.15);
  overflow: hidden;
}

.hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.2) contrast(1.05);
  opacity: 0.45;
}

.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,255,255,0.20), transparent 55%),
    radial-gradient(circle at 70% 35%, rgba(0,255,153,0.12), transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.92));
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  text-align: center;
}

.hero .hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.badge-neo {
  border: 1px solid rgba(0,255,255,0.25);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(0,0,0,0.35);
  box-shadow: inset 0 0 22px rgba(0,255,255,0.06);
}

/* ==============================
   Boot / welcome overlay
   ============================== */

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, rgba(0,255,255,0.08), rgba(0,0,0,0.92) 55%, rgba(0,0,0,0.98));
  display: none;
}

.boot-overlay.is-visible { display: block; }
.boot-overlay.is-hidden  { display: none; }

.boot-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.boot-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2.5rem 1.25rem;
}

.boot-panel {
  width: min(780px, 94vw);
  border: 1px solid rgba(0,255,255,0.18);
  border-radius: 14px;
  background: rgba(0,0,0,0.55);
  box-shadow: 0 0 40px rgba(0,255,255,0.12);
  padding: 2rem 1.5rem;
  backdrop-filter: blur(10px);
}

.boot-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 520px) {
  .boot-row { grid-template-columns: 1fr; text-align: center; }
  .logo-flip { margin: 0 auto 0.5rem auto; }
}

.boot-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0;
}

.boot-sub {
  margin: 0.75rem 0 1.25rem 0;
}

.boot-hint {
  opacity: 0.7;
  margin-top: 0.75rem;
}

.boot-overlay.is-leaving {
  animation: giBootLeave 900ms ease forwards;
}

@keyframes giBootLeave {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ==============================
   Matrix map styling
   ============================== */

.matrix-map {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0,255,255,0.18);
  box-shadow: 0 0 30px rgba(0,255,255,0.10);
}

.matrix-map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  filter: hue-rotate(120deg) saturate(1.6) contrast(1.2);
}

.matrix-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(0,255,153,0.0) 0px, rgba(0,255,153,0.0) 2px, rgba(0,255,153,0.06) 3px, rgba(0,255,153,0.0) 4px);
  mix-blend-mode: screen;
  opacity: 0.95;
}

/* Utility */
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
