/* ---------- base layout ---------- */
body.landing {
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  color: #39ff14;
  font-family: 'Share Tech Mono', monospace;
  overflow: hidden;
  position: relative;
  font-size: 1.1rem;
}

/* ---------- terminal screen ---------- */
.terminal {
  overflow-y: auto;
  padding: 2rem;
  flex-grow: 1;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #00ffff #111;
}

/* ---------- blinking cursor ---------- */
.cursor {
  display: inline-block;
  width: 12px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  0%,50% { opacity: 1; }
  50.01%,100% { opacity: 0; }
}

/* ---------- link (after boot) ---------- */
a.link {
  display: block;
  margin-top: 1rem;
  color: #00ffff;
  text-decoration: none;
  text-shadow: 0 0 5px #00ffff;
  animation: pulse 2s infinite;
  font-size: 2rem;
}
a.link:hover { text-shadow: 0 0 8px #00ffff; }
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: .6; }
  100% { opacity: 1; }
}

/* ---------- loading bar ---------- */
.loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 13px;
  width: 0%;
  background: linear-gradient(to right, #39ff14, #00ffff, #ff00ff);
  box-shadow: 0 0 6px #00ffff;
  transition: width .3s ease;
  z-index: 10;
}

/* ---------- CRT bubble / glare ---------- */
.bubble {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  transform: perspective(800px) scale(1.01);
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.05), transparent 60%);
  box-shadow: 0 0 40px rgba(0,255,255,.2);
  backdrop-filter: blur(.6px);
  width: 90vw;
  height: 90vh;
  display: flex;
  flex-direction: column;
}

/* ---------- scan-line overlay ---------- */
.overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.02),
    rgba(255,255,255,.02) 1px,
    transparent 1px,
    transparent 3px
  );
  animation: flicker .3s infinite alternate;
  pointer-events: none;
  z-index: 1;
}
@keyframes flicker {
  from { opacity: .96; }
  to   { opacity: .98; }
}

/* ---------- glitch text styles ---------- */
.glitch {
  position: relative;
  color: #ff00ff;
  animation: glitch 1.2s infinite;
  text-shadow: 1px 0 #00ffff, -1px 0 #ff00ff;
}
.glitch-red {
  position: relative;
  color: #ff3131;
  animation: glitch-red 1.2s infinite;
  text-shadow: 1px 0 #ff3131, -1px 0 #ff0066;
}
@keyframes glitch {
  0%   { transform: translate(0); }
  20%  { transform: translate(-1px,1px); }
  40%  { transform: translate(1px,-1px); }
  60%  { transform: translate(-2px,2px); }
  80%  { transform: translate(2px,-2px); }
  100% { transform: translate(0); }
}
@keyframes glitch-red {
  0%   { transform: translate(0); }
  20%  { transform: translate(1px,0); }
  40%  { transform: translate(-1px,1px); }
  60%  { transform: translate(1px,-2px); }
  80%  { transform: translate(-1px,2px); }
  100% { transform: translate(0); }
}

/* ---------- skull icon ---------- */
.skull-icon {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 13rem;
  color: #ff3131;
  animation: skullSpinY 6s linear infinite, skullGlitch 2s infinite alternate;
  text-shadow:
    0 0 6px #ff0066,
    0 0 10px #ff0000,
    0 0 20px #ff00ff;
  transform-style: preserve-3d;
  backface-visibility: none;
  z-index: 1000;
}
@keyframes skullSpinY {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}
@keyframes skullGlitch {
  0%, 100% { opacity: 1; filter: none; }
  40%      { opacity: 0.85; filter: brightness(1.4) hue-rotate(20deg); }
  70%      { opacity: 0.7;  filter: brightness(0.8) hue-rotate(-20deg); }
}

/* ---------- meme grid ---------- */
.meme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding-top: 0.5rem; /* adjust this if needed */
  padding-bottom: 5rem;
  z-index: 1;
}

.meme-box {
  position: relative;
  border: 2px solid #00ffff44;
  padding: 0.5rem;
  background: #111111;
  box-shadow: 0 0 10px #00ffff55;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.meme-box:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px #ff00ffcc;
}

.meme-box img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.1) brightness(1.05);
}

.meme-box span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #39ff14;
  text-shadow: 0 0 2px #39ff14;
  font-family: 'Share Tech Mono', monospace;
}

/* glitchy header bar */
.header-glitch {
  color: #00ffff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  animation: glitch-red 1.3s infinite;
  text-shadow: 1px 0 #ff00ff, -1px 0 #00ffff;
}

/* meme modal */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: zoom-out;
}

.modal-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
  animation: modalGlitchIn 0.3s ease;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border: 3px solid #00ffff;
  box-shadow: 0 0 25px #00ffff88;
}

.modal-content span {
  display: block;
  margin-top: 1rem;
  color: #39ff14;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  text-shadow: 0 0 2px #39ff14;
}

@keyframes modalGlitchIn {
  0% {
    opacity: 0;
    transform: scale(1.2) rotate(2deg);
    filter: hue-rotate(180deg) brightness(2);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: none;
  }
}

.hidden {
  display: none;
}

.cli-bar {
  color: #00ffff;
  font-size: 0.9rem;
  text-shadow: 0 0 2px #00ffff;
  margin-bottom: 0.5rem;
  opacity: 0.75;
}

.glitch-error {
  color: #ff3131;
  font-size: 0.9rem;
  animation: glitch-red 0.8s infinite;
  text-shadow: 1px 0 #ff0066, -1px 0 #ff3131;
  opacity: 0.9;
}

.ascii-art {
  font-family: 'Share Tech Mono', monospace;
  color: #39ff14;
  font-size: 0.85rem;
  white-space: pre;
  line-height: 1.4;
  animation: asciiFlicker 1.2s infinite;
  text-shadow: 0 0 2px #39ff14;
  margin: 0;
}

@keyframes asciiFlicker {
  0%   { opacity: 1; text-shadow: 0 0 2px #39ff14; }
  25%  { opacity: 0.92; text-shadow: 0 0 4px #00ff88; }
  50%  { opacity: 0.88; text-shadow: 0 0 3px #39ff14; }
  75%  { opacity: 0.95; text-shadow: 0 0 6px #00ffff; }
  100% { opacity: 1; text-shadow: 0 0 2px #39ff14; }
}

.email-ticker {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  padding: 0.6rem 1.2rem;
  border: 2px solid #ff00ff;
  box-shadow: 0 0 10px #ff00ffcc, 0 0 20px #00ffff66 inset;
  font-size: 1rem;
  font-family: 'Share Tech Mono', monospace;
  color: #39ff14;
  text-shadow: 0 0 2px #39ff14, 0 0 6px #00ffcc;
  z-index: 999;
  animation: pulseTicker 1.5s infinite ease-in-out;
}

@keyframes pulseTicker {
  0%   { opacity: 1; transform: translateX(-50%) scale(1); }
  50%  { opacity: 0.85; transform: translateX(-50%) scale(1.03); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

.ascii-footer {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: #39ff14;
  white-space: pre;
  line-height: 1.3;
  text-shadow:
    0 0 2px #39ff14,
    0 0 5px #00ffcc,
    0 0 8px #00ffff;
  animation: asciiFooterFlicker 1.2s infinite;
  pointer-events: none;
  z-index: 5;
}

@keyframes asciiFooterFlicker {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  40%      { opacity: 0.92; transform: translateX(-50%) scale(1.01); }
  60%      { opacity: 0.88; transform: translateX(-50%) scale(0.99); }
  80%      { opacity: 0.95; }
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}


.header-section {
  flex: 1 1 60%;
  min-width: 300px;
}

.top-right {
  flex: 0 1 35%;
  max-width: 320px;
  align-self: flex-start;
}
.static {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif') center center / cover no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.scanlines {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.02) 2px,
    transparent 2px,
    transparent 4px
  );
  z-index: 1;
  pointer-events: none;
}

/* Super glitch hover effect */
.meme-box:hover img {
  animation: memeGlitch 0.4s steps(2, start) infinite, hueShift 1s linear infinite;
  filter: contrast(2) brightness(1.3) saturate(2) hue-rotate(90deg);
  transform: scale(1.05) skew(1deg, 1deg);
  box-shadow:
    -2px 0 magenta,
    2px 0 cyan,
    0 0 12px #ff00ff,
    0 0 22px #00ffff;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(
  45deg,
  rgba(255, 0, 255, 0.1),
  rgba(0, 255, 255, 0.1) 10px
);
}

@keyframes memeGlitch {
  0% {
    clip-path: inset(0 0 0 0);
    transform: scale(1.07) translate(0, 0);
  }
  15% {
    clip-path: inset(20% 0 60% 0);
    transform: translate(-4px, 2px);
  }
  30% {
    clip-path: inset(10% 0 50% 0);
    transform: translate(4px, -2px);
  }
  45% {
    clip-path: inset(30% 0 20% 0);
    transform: translate(-3px, 1px);
  }
  60% {
    clip-path: inset(5% 0 40% 0);
    transform: translate(3px, -1px);
  }
  75% {
    clip-path: inset(15% 0 35% 0);
    transform: translate(-2px, 0px);
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
  }
}

@keyframes hueShift {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.scan-distortion {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 2px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  animation: scanDistort 0.2s infinite ease-in-out;
}

@keyframes scanDistort {
  0%   { transform: translateY(0px); }
  25%  { transform: translateY(1px); }
  50%  { transform: translateY(-1px); }
  75%  { transform: translateY(0.5px); }
  100% { transform: translateY(0px); }
}

/* secret trigger */
.bottom-links {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  width: 90%;
  padding: 20px 20px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

.secret-trigger {
  font-size: 1.8rem;
  color: #550000;
  opacity: 0.25;
  transition: all 0.3s ease;
  user-select: none;
  text-decoration: none;
}

.secret-trigger:hover {
  opacity: 1;
  color: #ff3131;
  text-shadow:
    0 0 4px #ff3131,
    0 0 8px #ff00ff,
    0 0 12px #00ffff;
  cursor: pointer;
}

.escape-link {
  font-size: 1.1rem;
}

/* video stuff */
.video-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
  padding: 0 1rem;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.video-row video {
  width: 100%;
  max-width: 640px;
  border: 2px solid #00ffff;
  box-shadow: 0 0 10px #ff00ff;
  border-radius: 10px;
  box-sizing: border-box;
}