/* ==========================
   Reset
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow: hidden;
  height: 100%;
}

:root {
    --deadzone-size: clamp(300px, 36vw, 540px);
    --deadzone-radius: calc(var(--deadzone-size) / 2);
}
body {
  font-family: Arial, sans-serif; /* default fallback */
  color: #fff;
  background: linear-gradient(120deg, #0a0a0a, #111111);
  background-size: 400% 400%;
  animation: bgShift 10s ease infinite;
}

.ps2-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1000;
}

.orb {
  position: absolute;
  width: 28vw;
  height: 28vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;

  background:
    radial-gradient(circle at 35% 35%,
      rgba(255,255,255,0.9),
      rgba(120,180,255,0.4) 15%,
      rgba(80,120,255,0.15) 35%,
      transparent 60%
    );

  box-shadow:
  0 0 20px rgba(80,120,255,0.2),
  0 0 50px rgba(80,120,255,0.08);

  animation:
    spin 12s linear infinite,
    pulse 8s ease-in-out infinite alternate;
}

.orb::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;

  background:
    conic-gradient(
      from 0deg,
      transparent,
      rgba(120,180,255,0.3),
      transparent,
      rgba(180,120,255,0.25),
      transparent
    );

  filter: blur(18px);
  mix-blend-mode: screen;

  animation: spinReverse 18s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spinReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes pulse {
  from {
    scale: 1;
    opacity: 1;
  }
  to {
    scale: 0.98;
    opacity: 0.4;
  }
}

/* ==========================
   Fonts
========================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');

@font-face {
  font-family: 'MyY2K';
  src: url('fonts/Year.otf') format('opentype');
}

@font-face {
  font-family: 'Matrix';
  src: url('fonts/Miltown_.ttf') format('opentype');
}


.mid-header {
  transform: translateY(-15vh) translateX(var(--beat-x, 0px)) translateY(var(--beat-y, 0px)) scale(var(--beat-scale, 1));
  position: relative;
  display: inline-block;
  text-shadow: 0 0 12px rgba(0,255,200,0.35), 0 0 25px rgba(0,255,200,0.18), 0 0 40px rgba(0,255,200,0.1);
  filter: drop-shadow(0 0 20px rgba(0,255,200,0.15));
  transition: text-shadow 0.08s ease-out, transform 0.08s ease-out; 
  font-family: 'MyY2K';
  font-size: 4rem;
  font-weight: 700;
  z-index : 20;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.mid-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(0,255,200,0.15), transparent 50%);
  filter: blur(18px);
  opacity: 0.45;
  pointer-events: none;
}

.mid-header::before {
  content: "Hit The Apex";
  position: absolute;
  inset: 0;
  transform: skewX(12deg); 

  background: linear-gradient(
    120deg,
    #00ffcc,
    #ff00ff,
    #00aaff,
    #ffff00,
    #00ffcc
  );

  background-size: 300% 300%;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: acidShift 3s ease-in-out infinite alternate;

  pointer-events: none;
}

@keyframes acidShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* ==========================
   Splash Screen
========================== */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 1s ease;
}

.splash-open {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  padding: 0;
  border: none;
  background: transparent;
  color: #c6f7ff;
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease, filter 0.2s ease;
  animation: splashPulse 1.6s ease-in-out infinite alternate;
}

.splash-open.visible {
  opacity: 1;
  pointer-events: auto;
}

.splash-open.played {
  opacity: 0.55;
  transform: translateX(-50%) scale(0.98);
  filter: brightness(0.9);
}

@keyframes splashPulse {
  0% {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  }
  100% {
    text-shadow: 0 0 24px rgba(0, 255, 255, 0.95);
  }
}

#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Logo text */
#logo {
  position: relative;
  overflow: visible;
  font-family: 'Orbitron', 'MyY2K', sans-serif;
  font-weight: 700;
  font-size: 5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: inline-block;
  min-width: 12ch; /* reserve space for widest font */
  text-align: center;
  color: #fff;
  text-shadow: 0 0 3px #00f2fe, 0 0 6px #ff00ff, 0 0 10px #00d0ff; /* toned-down glow */
  background: linear-gradient(90deg, #00f2fe, #ff00ff, #00d0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scaleX(1.1);
  transition: transform 0.1s ease, opacity 0.1s ease; /* smooth glitch/flicker */
}

#logo.datamosh {
  position: relative;
  color: transparent;
  background: linear-gradient(90deg, #00f2fe, #ff00ff, #00d0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#logo.datamosh .slice-size {
  visibility: hidden;
  display: block;
  height: auto;
}

#logo.datamosh .slice {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
  left: calc(var(--slice-index) * (100% / var(--slice-count)));
  width: calc(100% / var(--slice-count));
  animation: datamoshStrand var(--duration, 2.8s) ease-out forwards;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity, filter;
  filter: none;
}

#logo.datamosh .slice-static {
  animation: none !important;
  opacity: 1 !important;
  z-index: 2;
}

#logo.datamosh .slice span {
  display: inline-block;
  position: absolute;
  left: calc(var(--slice-index) * -100%);
  top: 0;
  width: calc(var(--slice-count) * 100%);
  white-space: nowrap;
  text-align: left;
  color: transparent;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateZ(0);
}

#logo.datamosh .slice:not(.slice-static) span.glitch-copy {
  opacity: 0.55;
  filter: blur(0.7px);
  text-shadow: 1px 0 0 rgba(255, 0, 150, 0.55), -1px 0 0 rgba(0, 235, 255, 0.55);
}

#logo.datamosh .slice:not(.slice-static) span.ghost-copy {
  opacity: 0.28;
  filter: blur(1px);
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.16);
}

#logo.datamosh .slice span.ghost-copy {
  opacity: 0.28;
  filter: blur(1px);
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.16);
}

/* #logo.datamosh .slice:not(.slice-static) span {
  animation: bitcrusherBuild var(--duration, 2.8s) cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
} */

@keyframes bitcrusherBuild {
  0%, 30% {
    text-shadow: none;
    filter: contrast(1) brightness(1) saturate(1) blur(0);
  }
  40% {
    text-shadow: 0.15px 0 0 rgba(255,255,255,0.07), -0.15px 0 0 rgba(0,0,0,0.05);
    filter: contrast(1.02) brightness(0.995) saturate(1.02) blur(0.04px);
  }
  55% {
    text-shadow: 0.28px 0 0 rgba(255,255,255,0.1), -0.28px 0 0 rgba(0,0,0,0.08);
    filter: contrast(1.06) brightness(0.98) saturate(1.06) blur(0.08px);
  }
  70% {
    text-shadow: 0.5px 0 0 rgba(255,255,255,0.14), -0.5px 0 0 rgba(0,0,0,0.1);
    filter: contrast(1.14) brightness(0.95) saturate(1.12) blur(0.15px);
  }
  85% {
    text-shadow: 0.85px 0 0 rgba(255,255,255,0.2), -0.85px 0 0 rgba(0,0,0,0.14);
    filter: contrast(1.35) brightness(0.92) saturate(1.18) blur(0.3px);
  }
  100% {
    text-shadow: 1.3px 0 0 rgba(255,255,255,0.3), -1.3px 0 0 rgba(0,0,0,0.25);
    filter: contrast(2) brightness(0.88) saturate(1.35) blur(0.65px);
  }
}

@keyframes datamoshStrand {
  0% {
    transform: translate3d(0, 0, 0) skewX(0);
    opacity: 1;
  }
  18% {
    transform: translate3d(calc(var(--x-offset) * 0.03), calc(var(--fall-length) * 0.12), 0) skewX(calc(var(--skew) * 0.06));
  }
  36% {
    transform: translate3d(calc(var(--x-offset) * 0.07), calc(var(--fall-length) * 0.26), 0) skewX(calc(var(--skew) * 0.11));
  }
  54% {
    transform: translate3d(calc(var(--x-offset) * 0.11), calc(var(--fall-length) * 0.42), 0) skewX(calc(var(--skew) * 0.16));
  }
  72% {
    transform: translate3d(calc(var(--x-offset) * 0.15), calc(var(--fall-length) * 0.58), 0) skewX(calc(var(--skew) * 0.2));
    opacity: 0.95;
  }
  90% {
    transform: translate3d(calc(var(--x-offset) * 0.2), calc(var(--fall-length) * 0.75), 0) skewX(calc(var(--skew) * 0.24));
    opacity: 0.85;
    filter: invert(0.36) saturate(1.1) contrast(1.05);
  }
  100% {
    transform: translate3d(calc(var(--x-offset) * 0.24), var(--fall-length), 0) skewX(calc(var(--skew) * 0.26));
    opacity: 0;
    filter: invert(1) saturate(1.4) contrast(1.2);
  }
}

/* Expansion animation */
#logo.expand {
  font-size: 2.5rem;
  letter-spacing: 0.4em;
}

/* ==========================
   Navbar
========================== */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

nav a:hover {
  color: #00f2fe;
}

/* ==========================
   Hero Section
========================== */
.hero {
  height: 100vh;
  /*background: url("DSCF2737.JPG") center/cover no-repeat;*/
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
#hero-text {
  
  font-family: "Exo 2", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  display: inline-block; /* shrink to content width */
  min-height: 2em;       /* adjust for tallest message */
  line-height: 1;        /* prevents vertical jumps from flicker */
  white-space: pre;      /* preserves spacing */
  vertical-align: top;   /* keeps layout stable with header/button */
  text-shadow:
    0 0 1px rgba(0,0,0,1),
    0 0 3px rgba(0,0,0,0.7),
    0 0 6px rgba(0,0,0,0.4),
    0 0 4px rgba(255,255,255,0.2);
}

.hero h1 {
  font-size: 3rem;
  animation: fadeIn 2s ease;
}

.hero p {
  opacity: 0.9;
  z-index: 20;
  transform: translateY(210%);
}

/* ==========================
   matrix rain
========================== */
#matrix-container {

    position: fixed;

    left: 0;
    bottom: 0;

    width: 50vw;
    height: 50vh;

    z-index: 0;
    pointer-events: none;
}

#matrix {
    width: 100%;
    height: 100%;
}

.acid-bath-wrapper {
    position: absolute;
    font-family: 'Matrix', monospace;
    left: 50%;
    top: 50%;

    /* transform:  scale(1.3)translate(-30%, -25%); */
   transform:  scale(1)translate(-50%, -47%);

    /* font-family: monospace; */
    font-size: clamp(32px, 4vw, 72px);

    letter-spacing: 0.35em;

    /* color: rgba(0,255,65,0.85); */
    color: rgba(255, 255, 255, 0.85);

    text-shadow:
        0 0 6px rgba(0,255,65,.6),
        0 0 12px rgba(0,255,65,.4),
        0 0 24px rgba(0,255,65,.2),
        0 0 60px rgb(255, 255, 255);

    opacity: 0;

    transition:  opacity .4s ease;

    pointer-events: none;

    z-index: 2;

        /* animation:
        acidBathFlicker 5s ease-in-out infinite; */
}

@keyframes acidBathFlicker {

   

    0%, 47%, 53%, 100% {
        opacity: 0.85;
    }

    48% {
        opacity: 0.75;
    }

    49% {
        opacity: 0.55;
    }

    50% {
        opacity: 0.8;
    }

    51% {
        opacity: 0.65;
    }

    52% {
        opacity: 0.75;
    }
}

.acid-bath-wrapper.active {
    opacity: 1;
}
.acid-bath-title {
  
          animation:
        acidBathFlicker 5s ease-in-out infinite;
        
    /* opacity: 1; */
}

.pump-center {
    position: relative;

    transform: translate(20px,-15px);
}

.pump-it-up-scroll {
  /* transform: scale(2); */
   transform: scale(2) perspective(10cm) rotateX(-15deg) rotateY(30deg);
    position: absolute;

    width: 400px;
    height: 400px;

    display: flex;
    justify-content: center;
    align-items: center;

    pointer-events: none;

    opacity: 0;
    transition: opacity .35s ease;

    z-index: 1000;
}
.pump-it-up-scroll.active {
    opacity: 1;
}

.pump-it-up-scroll svg {
    width: 100%;
    height: 100%;
}
text{
    fill:#fff;
    font:900 28px/1 Arial, sans-serif;
    letter-spacing:6px;
    text-transform:uppercase;
}

.pump-it-up-effect {
    position: fixed;

    left: 0;
    top: 0;

    width: 50vw;
    height: 50vh;

    display: flex;
    justify-content: center;
    align-items: center;

    pointer-events: none;

    opacity: 1;
    transition: opacity 0.35s ease;

    z-index: 1000;
}

.pump-it-up-effect.active {
    opacity: 1;
}

.pump-logo {
  /* transform: scale(3); */
    position: absolute;
    width: 260px;
    height: auto;

    opacity: 0;

    filter:
        drop-shadow(0 0 12px rgba(255,255,255,0.15))
        drop-shadow(0 0 30px rgba(255,255,255,0.08));

    transform: scale(1.92);

    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.pump-it-up-effect.active .pump-logo {
    opacity: 1;
    /* transform: scale(1); */
    /* transform: scale(2); */
    transform: scale(2) perspective(10cm) rotateX(-15deg) rotateY(30deg);
}

.final-signal-effect {
    position: fixed;

    right: 0;
    bottom: 0;

    width: 50vw;
    height: 50vh;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;

    transition: opacity .4s ease;

    z-index: 1000;
        /* opacity: 1 !important;
    background: rgba(255,0,0,.2) !important;
    border: 2px solid red !important; */
}

.final-signal-effect.active {
    opacity: 1;
}
.layer {
    opacity: 1 !important;
    color: white !important;
}

.final-signal-effect::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
      radial-gradient(
        circle,
        rgba(180,220,255,.12),
        transparent 70%
      );

    filter: blur(40px);

    animation:
      atmosphereMove 20s ease-in-out infinite;

    pointer-events: none;
}

.zone-final-signal.active .final-signal-effect {
    opacity: 1;
}

/* ===========================
   FINAL SIGNAL
   =========================== */

.signal {
    position: relative;

    width: 80%;
    height: 80%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.layer {
    position: absolute;

    display: flex;
    flex-direction: column;
    align-items: center;

    font-family: "Bodoni Moda", serif;

    font-size: clamp(2rem, 4vw, 5rem);

    letter-spacing: 0.22em;
    text-transform: uppercase;

    white-space: nowrap;
}

.layer span {
    display: block;
}

/* ---------------------------
   MAIN TEXT
   --------------------------- */

.main {
    z-index: 5;

    color: rgba(255,255,255,.98);

    text-shadow:
        0 0 8px rgba(255,255,255,.55),
        0 0 18px rgba(220,230,255,.25),
        0 0 40px rgba(180,210,255,.08);

    animation:
        signalBreath 14s ease-in-out infinite;
}

/* ---------------------------
   GHOST ECHOES
   --------------------------- */

.ghost {
    color: rgba(220,235,255,.08);

    filter: blur(8px);

    animation:
        signalGhost 14s ease-in-out infinite;
}

.ghost:nth-child(1) { animation-delay: 0s; }
.ghost:nth-child(2) { animation-delay: 0.2s; }
.ghost:nth-child(3) { animation-delay: 0.4s; }
.ghost:nth-child(4) { animation-delay: 0.6s; }

/* ---------------------------
   ATMOSPHERIC FOG
   --------------------------- */

.final-signal-effect::before {
    content: "";

    position: absolute;
    inset: -30%;

    background:
        radial-gradient(
            circle,
            rgba(200,220,255,.04),
            rgba(180,190,255,.02) 40%,
            transparent 75%
        );

    filter: blur(120px);

    animation:
        atmosphereMove 30s ease-in-out infinite;

    pointer-events: none;
}

/* ---------------------------
   FOG DRIFT
   --------------------------- */

@keyframes atmosphereMove {

    0% {
        transform:
            translate(-4%, -2%)
            scale(1);
    }

    50% {
        transform:
            translate(4%, 2%)
            scale(1.12);
    }

    100% {
        transform:
            translate(-4%, -2%)
            scale(1);
    }
}

/* ---------------------------
   MAIN EMERGENCE
   --------------------------- */

@keyframes signalBreath {

    0%,
    30% {
        opacity: 0.15;
        transform: scale(0.97);
    }

    45% {
        opacity: 0.55;
        transform: scale(1.00);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }

    60% {
        opacity: 0.5;
        transform: scale(1.02);
    }

    100% {
        opacity: 0.15;
        transform: scale(0.97);
    }
}

/* ---------------------------
   FRACTURE BURST
   --------------------------- */

@keyframes signalGhost {

    0%,
    42% {
        opacity: 0.01;

        filter: blur(8px);

        transform:
            translate(
                calc(var(--x) * 0.5px),
                calc(var(--y) * 0.5px)
            )
            scale(0.95);
    }

    48% {
        opacity: 0.04;
    }

    50% {
        opacity: 0.14;

        filter: blur(30px);

        transform:
            translate(
                calc(var(--x) * 4px),
                calc(var(--y) * 4px)
            )
            scale(1.18);
    }

    58% {
        opacity: 0.05;

        filter: blur(16px);

        transform:
            translate(
                calc(var(--x) * 2px),
                calc(var(--y) * 2px)
            )
            scale(1.04);
    }

    100% {
        opacity: 0.01;

        filter: blur(8px);

        transform:
            translate(
                calc(var(--x) * 0.5px),
                calc(var(--y) * 0.5px)
            )
            scale(0.95);
    }
}

/* ===========================
   KEEP IT MOVIN
   =========================== */

.keep-it-movin-effect {

    position: fixed;

    top: 0;
    right: 0;

    width: 50vw;
    height: 50vh;

    pointer-events: none;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;

    z-index: 1000;

    overflow: visible;
}

.keep-it-movin-effect.active {
  transform: perspective(10cm) rotateX(-25deg) rotateY(-25deg);
    opacity: 1;
}

.keep-it-movin-effect img {

    width: min(50%, 500px);

    opacity: 0;

    transform: scale(1);
    

    filter:
        drop-shadow(0 0 10px rgba(255,255,255,.15))
        drop-shadow(0 0 25px rgba(255,255,255,.08));

    will-change:
        transform,
        opacity;
}

.keep-it-movin-effect.active img {

    opacity: 1;
    

    animation:
        keepItMovinPulse 4s ease-in-out infinite;
}

@keyframes keepItMovinPulse {

    0% {
        transform: scale(0.88);
    }

    25% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1.15);
    }

    75% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(0.88);
    }
}


/* ==========================
   Buttons
========================== */
.btn {
  padding: 10px 20px;
  background: linear-gradient(to right, #00f2fe, #ff00ff);
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px #00f2fe, 0 0 20px #ff00ff;
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px #00f2fe, 0 0 40px #ff00ff;
}

/* ==========================
   Sections
========================== */
.section {
  padding: 100px 20px;
  text-align: center;
  background: #111;
}

.section:nth-child(even) {
  background: #1a1a1a;
}

/* ==========================
   Links
========================== */
.links a {
  display: block;
  margin: 10px;
  font-size: 20px;
  color: #00f2fe;
  text-decoration: none;
  transition: 0.3s;
}

.links a:hover {
  transform: translateX(10px);
}

/* ==========================
   Animations
========================== */
@keyframes bgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* ==========================
   Speed streaks (subtle)
========================== */
.speed-streak {
  position: absolute;
  top: -50%;
  left: 0;
  width: 2px;
  height: 150%;
  background: linear-gradient(to bottom, rgba(0,242,254,0.05), rgba(255,0,255,0));
  animation: streakMove 4s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}

.speed-streak:nth-child(2) { left: 20%; animation-duration: 5s; opacity: 0.15; }
.speed-streak:nth-child(3) { left: 40%; animation-duration: 6s; opacity: 0.1; }
.speed-streak:nth-child(4) { left: 60%; animation-duration: 4.5s; opacity: 0.12; }
.speed-streak:nth-child(5) { left: 80%; animation-duration: 5.5s; opacity: 0.08; }

@keyframes streakMove {
  0% { transform: translateY(-100%) translateX(0) rotate(-10deg); }
  100% { transform: translateY(100%) translateX(20px) rotate(-10deg); }
}

/* ==========================
   Particles
========================== */
#particles {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: linear-gradient(45deg, #00f2fe, #ff00ff);
  opacity: 1;
  animation: particleMove 1.2s forwards;
}

@keyframes particleMove {
  0% {
    transform: translate(0,0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(0.5);
    opacity: 0;
  }
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

/* VIDEO BACKGROUND */
.video-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.video-background.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-background video {
  position: absolute;

  width: 100%;
  height: 110%; /* 👈 overshoot vertically */

  top: 0%;     /* 👈 shift upward to hide bottom bar */

  object-fit: cover;
}

.information {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 1000;
  border: none;
  background: rgba(0,0,0,0.65);
  color: #00ffcc;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  cursor: pointer;
 box-shadow: 0 0 20px rgba(0,255,200,0.15);
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.background-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  border: none;
  background: rgba(0,0,0,0.65);
  color: #00ffcc;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  cursor: pointer;
 box-shadow: 0 0 20px rgba(0,255,200,0.15);
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.background-toggle:hover {
  transform: translateY(-1px);
  background: rgba(0,0,0,0.8);
}

/* EQ VISUALIZER WRAPPER - CIRCULAR */
.eq-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(62vw, 700px);
  height: min(62vw, 700px);
  z-index: 9;
  background: transparent;
  border: none;
  pointer-events: none;
}

#eq-visualizer {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

.ps2-toggle {
  position: absolute;
  left: 50.7%;
  bottom: 8%;
  transform: translate(-50%,210%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: #c6f7ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0;
  border-radius: 50%;
  /*box-shadow: 0 0 16px rgba(0, 225, 255, 0.12);*/
  cursor: pointer;
  z-index: 4;
  pointer-events: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ps2-toggle:hover {
  /* transform: translateX(-50%) scale(1.08); */
  /*box-shadow: 0 0 20px rgba(0, 225, 255, 0.22);*/
}

.ps2-toggle .icon {
  display: inline-flex;
  width: auto;
  text-align: center;
  font-size: 1.3rem;
}

.ps2-toggle .label {
  display: none;
}

.ps2-toggle.playing {
  color: #8cf0ff;
}

/* OVERLAY GRID */
.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* HOVER ZONES */
.music-zone {
  cursor: pointer;
  background: rgba(255,255,255,0.04);
    opacity: 0.4;
    transition: opacity .25s ease;
    /* background: rgba(255,0,0,0.25) !important; */
}

.music-zone.active {
     /* background: rgba(255,255,255,0.06); */
      background: rgb(0, 0, 0, 0,06);
    backdrop-filter: blur(4px);
    box-shadow:
        inset 0 0 20px rgba(255,255,255,0.08),
        0 0 30px rgba(0,255,200,0.15);
        opacity: 1;
        overflow: hidden;
        
}

.zone-pump-it-up {
    top: 0;
    left: 0;
    width: 50vw;
    height: 50vh;
}

.zone-keep-it-movin {
    top: 0;
    right: 0;
    width: 50vw;
    height: 50vh;
}

.zone-acid-bath {
    bottom: 0;
    left: 0;
    width: 50vw;
    height: 50vh;
}

.zone-final-signal {
    bottom: 0;
    right: 0;
    width: 50vw;
    height: 50vh;
}

.content {
  position: relative;
  z-index: 1;
  color: white; /* adjust as needed */
}

.music-section {
  height: 200px;
  border: 2px solid black;
  margin: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
}

.music-zone {
  border: 1px solid rgba(255,255,255,0.2);
}

.scope-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45vw;
  height: 25vh;
  max-width: 560px;
  max-height: 320px;
  z-index: 2;
  pointer-events: auto;
  background: transparent;
  border: none;
  backdrop-filter: none;
}

#oscilloscope,
#trail {
  pointer-events: none;
}

#oscilloscope {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  -webkit-mask-image: radial-gradient(
    circle at center,
    rgba(0,0,0,1) 42%,
    rgba(0,0,0,0) 100%
  );
  mask-image: radial-gradient(
    circle at center,
    rgba(0,0,0,1) 42%,
    rgba(0,0,0,0) 100%
  );

/*mask-image: radial-gradient(
  ellipse 70% 60% at center,
  rgba(0,0,0,1) 60%,
  rgba(0,0,0,0.3) 80%,
  rgba(0,0,0,0) 100%
);*/
} 

.center-deadzone {
  position: fixed;

  width: 36vw;
  height: 36vw;

  max-width: 540px;
  max-height: 540px;

  min-width: 300px;
  min-height: 300px;

  border-radius: 50%;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  z-index: 1;

  pointer-events: auto;

  border: 1px solid rgba(255,255,255,0.2);

  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 calc(16px * var(--deadzone-glow, 0.2)) rgba(0,255,200,0.18);
  transition: box-shadow 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
  overflow: hidden;
}

.center-deadzone::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 calc(36px * var(--deadzone-glow, 0)) rgba(0,255,200, calc(0.28 * var(--deadzone-glow, 0)));
  opacity: var(--deadzone-glow, 0);
  transition: box-shadow 0.12s ease, opacity 0.12s ease;
}

.center-deadzone.hovered {
  border-color: rgba(0,255,200,0.45);
}