/* ======================================================
   PROJECT ORANGE — BLOODY CYBER HACKER OVERDRIVE
   Fonts: Orbitron (titles), Audiowide (text)
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Audiowide&display=swap');

/* ==== GLOBAL ==== */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Audiowide', sans-serif;
  color: #dffbff;
  background: radial-gradient(circle at 10% 10%, #010a0f 0%, #000000 80%);
  overflow-x: hidden;
  text-align: center;
  position: relative;
  animation: bodyFade 1.8s ease-out forwards;
}

@keyframes bodyFade {
  from { opacity: 0; filter: blur(12px); }
  to { opacity: 1; filter: blur(0); }
}

/* ==== LIQUID GLASS BACKDROP ==== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,0,0,0.12), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(0,255,255,0.12), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,0,0,0.03) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(0,255,255,0.03) 0 1px, transparent 1px 40px);
  mix-blend-mode: overlay;
  backdrop-filter: blur(12px) brightness(1.15);
  -webkit-backdrop-filter: blur(12px) brightness(1.15);
  z-index: 0;
  animation: pulseBG 4s ease-in-out infinite alternate;
}

@keyframes pulseBG {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  25%  { filter: hue-rotate(45deg) brightness(1.3); }
  50%  { filter: hue-rotate(90deg) brightness(1.1); }
  75%  { filter: hue-rotate(-30deg) brightness(1.2); }
  100% { filter: hue-rotate(-90deg) brightness(1); }
}

/* ==== BLOOD FOG MIST ==== */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,0,0,0.15), transparent 70%);
  mix-blend-mode: screen;
  animation: fogPulse 6s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

@keyframes fogPulse {
  0% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 0.25; transform: scale(1.1) rotate(-2deg); }
}

/* ==== NEON SCANLINES ==== */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(0,255,255,0.04) 0px,
    rgba(0,255,255,0.04) 1px,
    transparent 2px,
    transparent 3px
  );
  animation: scan 0.4s linear infinite;
  mix-blend-mode: overlay;
  z-index: 2;
}

@keyframes scan {
  from { transform: translateY(0); }
  to { transform: translateY(4px); }
}

/* ==== ELECTRIC NOISE ==== */
@keyframes noise {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(1px,-1px); }
  40% { transform: translate(-1px,1px); }
  60% { transform: translate(2px,-2px); }
  80% { transform: translate(-2px,2px); }
}
.noise {
  position: fixed;
  inset: 0;
  background: repeating-radial-gradient(circle, rgba(0,255,255,0.06) 0, rgba(255,0,0,0.04) 3px);
  mix-blend-mode: overlay;
  animation: noise 0.35s steps(10) infinite;
  z-index: 3;
  pointer-events: none;
}

/* ==== CONTAINER ==== */
body > * {
  position: relative;
  z-index: 5;
  padding: 40px 5%;
  width: 90%;
  max-width: 100%;
  margin: auto;
}

/* ==== TITLES ==== */
.title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3em;
  color: #00eaff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #00eaff, 0 0 40px #0077ff;
  animation: glowBreath 2s infinite alternate ease-in-out, hueFlow 2.5s infinite alternate;
}

@keyframes glowBreath {
  0% { text-shadow: 0 0 20px #00ffff, 0 0 40px #0044ff; }
  50% { text-shadow: 0 0 40px #00ccff, 0 0 80px #ff0044; }
  100% { text-shadow: 0 0 25px #ff0044, 0 0 60px #ff1111; }
}

@keyframes hueFlow {
  0% { filter: hue-rotate(0deg); }
  25% { filter: hue-rotate(90deg); }
  50% { filter: hue-rotate(-45deg); }
  75% { filter: hue-rotate(120deg); }
  100% { filter: hue-rotate(-90deg); }
}

/* ==== TAGLINES ==== */
.tagline {
  font-family: 'Audiowide', sans-serif;
  font-size: 1.2em;
  color: #00ffa6;
  text-shadow: 0 0 8px #00ffa6, 0 0 20px #00ffcc;
  animation: flickerText 2.5s infinite alternate;
  margin: 5px 0;
}

@keyframes flickerText {
  0%, 18%, 22%, 25%, 53%, 100% { opacity: 1; }
  20%, 23%, 55% { opacity: 0.25; filter: hue-rotate(45deg); }
}

/* ==== BUTTONS ==== */
.menu button {
  position: relative;
  background: rgba(0,255,255,0.1);
  border: 2px solid #00eaff;
  color: #00eaff;
  padding: 14px 28px;
  margin: 10px auto;
  border-radius: 12px;
  text-transform: uppercase;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px #00ffff70, inset 0 0 10px rgba(255,0,0,0.1);
  overflow: hidden;
  animation: neonPulse 1.5s infinite alternate ease-in-out;
}

@keyframes neonPulse {
  0% { box-shadow: 0 0 10px #00ffff50, 0 0 25px #0047ff30; }
  100% { box-shadow: 0 0 25px #ff004450, 0 0 55px #00ffff80; }
}

.menu button:hover {
  background: rgba(255,0,0,0.25);
  color: #000;
  transform: scale(1.08);
  box-shadow: 0 0 30px #ff0044aa, inset 0 0 40px #ff0000;
}

/* ==== CONTENT ==== */
p, li {
  font-family: 'Audiowide', sans-serif;
  text-align: justify;
  color: #baf7ff;
  line-height: 1.7em;
  font-size: 1rem;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid rgba(255,0,0,0.5);
  padding: 10px 15px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  transition: background 0.4s ease, transform 0.3s ease, border-color 1s ease;
}
p:hover, li:hover {
  background: rgba(255,0,0,0.1);
  border-color: #00ffff;
  transform: scale(1.03);
}

/* ==== HEADINGS ==== */
h2, h3 {
  font-family: 'Orbitron', sans-serif;
  color: #39ff14;
  text-shadow: 0 0 8px #00ff88, 0 0 25px #00ffaa;
  margin-top: 2em;
  letter-spacing: 2px;
  animation: hueShift 3s infinite alternate;
}

@keyframes hueShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(90deg); }
}

/* ==== FOOTER ==== */
footer {
  font-family: 'Audiowide', sans-serif;
  color: #00b7ff;
  text-shadow: 0 0 5px #00b7ff, 0 0 10px #0047ff;
  margin-top: 4em;
  z-index: 3;
  text-align: center;
  opacity: 0.9;
  animation: pulseFooter 2s infinite alternate ease-in-out;
}
@keyframes pulseFooter {
  0% { text-shadow: 0 0 5px #0047ff; }
  100% { text-shadow: 0 0 20px #ff0033; }
}

/* ==== SOCIALS ==== */
.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}

.socials a {
  color: #00eaff;
  font-size: 1.6em;
  transition: all 0.25s ease;
  text-decoration: none;
}
.socials a:hover {
  color: #ff0033;
  text-shadow: 0 0 20px #ff0033, 0 0 40px #ff5577;
  transform: scale(1.4) rotate(4deg);
}

/* ==== AUDIO ==== */
audio#bg-music { display: none; }

/* ==== GAME ID DISPLAY ==== */
#game-id {
  position: fixed;
  bottom: 12px;
  right: 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  color: #ff0044;
  text-shadow: 0 0 6px #ff0044, 0 0 12px #ff5588;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 10px;
  border-radius: 8px;
  user-select: none;
  pointer-events: none;
  z-index: 9999;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: glowGameId 1.5s infinite alternate ease-in-out;
}

@keyframes glowGameId {
  0% { text-shadow: 0 0 6px #ff0044, 0 0 12px #ff5588; color: #ff0044; }
  100% { text-shadow: 0 0 20px #ff3399, 0 0 40px #ff66aa; color: #ff3399; }
}
