/*
Theme Name: RNLMEDIA 2025
Description: A cyberpunk-style WordPress theme with glitch effects
Version: 1.1
*/

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(120deg, #0f2027 0%, #2c5364 100%),
    repeating-linear-gradient(0deg, #00fff7 0 2px, transparent 2px 8px),
    repeating-linear-gradient(90deg, #fffc00 0 2px, transparent 2px 8px);
  background-blend-mode: screen, overlay, normal;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.10;
  mix-blend-mode: multiply;
}

.center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 1.2s cubic-bezier(.77,0,.18,1), opacity 1.2s cubic-bezier(.77,0,.18,1);
}

.center.zooming {
  transform: scale(2.2) translateY(-10vh);
  opacity: 0;
  pointer-events: none;
}

.glitch-title {
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
  transform: skew(-18deg, -6deg) rotate(-8deg) scaleX(1.08);
}

.glitch-title span {
  font-family: 'Orbitron', 'Arial Black', monospace;
  font-size: 5.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
  position: absolute;
  left: 0; top: 0; width: 100%;
  text-align: center;
  pointer-events: none;
}

.glitch-title .main {
  color: #fffc00;
  position: relative;
  z-index: 3;
  text-shadow:
    0 0 8px #fffc00,
    0 0 32px #00fff7;
  pointer-events: auto;
}

.glitch-title .glitch-cyan {
  color: #00fff7;
  z-index: 2;
  opacity: 0;
  text-shadow: 0 0 8px #00fff7, 0 0 32px #00fff7;
  animation: glitch-cyan 2.2s infinite steps(1, end);
}

.glitch-title .glitch-pink {
  color: #ff005a;
  z-index: 2;
  opacity: 0;
  text-shadow: 0 0 8px #ff005a, 0 0 32px #ff005a;
  animation: glitch-pink 2.2s infinite steps(1, end);
}

@keyframes glitch-cyan {
  0%, 100% { opacity: 0; clip-path: none; transform: none; }
  5% { opacity: 1; clip-path: inset(0 0 70% 0); transform: translateX(6px);}
  7% { opacity: 1; clip-path: inset(70% 0 0 0); transform: translateX(-8px);}
  9% { opacity: 0; clip-path: none; transform: none;}
}

@keyframes glitch-pink {
  0%, 100% { opacity: 0; clip-path: none; transform: none; }
  3% { opacity: 1; clip-path: inset(0 0 40% 0); transform: translateX(-7px);}
  6% { opacity: 1; clip-path: inset(40% 0 0 0); transform: translateX(8px);}
  8% { opacity: 0; clip-path: none; transform: none;}
}

.neon-underline {
  width: 80%;
  max-width: 600px;
  height: 8px;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(90deg, #00fff7 0%, #ffe600 100%);
  box-shadow: 0 0 24px 6px #00fff7, 0 0 48px 12px #ffe600;
  border-radius: 4px;
  position: relative;
  top: -18px;
  opacity: 0.95;
  filter: blur(0.2px);
  transform: skew(-18deg, -6deg) rotate(-8deg) scaleX(1.08);
}

.subtitle {
  font-family: 'Orbitron', 'Arial Black', monospace;
  color: #ffffff;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  margin-top: 1rem;
  text-align: center;
  text-shadow: 0 0 8px #ffe600, 0 0 16px #00fff7;
  opacity: 0.99;
  background: rgba(0,0,0,0.33);
  padding: 0.3em 1.2em;
  border-radius: 2px;
  box-shadow: 0 0 8px #ffe60044;
  transition: opacity 0.2s;
  transform: skew(-18deg, -6deg) rotate(-8deg) scaleX(1.08);
}

.scanlines {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 10;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}

@media (max-width: 600px) {
  .glitch-title span { font-size: 2.2rem; }
  .neon-underline { height: 5px; }
  .subtitle { font-size: 0.9rem; }
}