/* === HORROR ARG LAYER — HIDDEN SECRETS === */

/* Subliminal flash message */
.subliminal-flash {
  position: fixed;
  z-index: 9998;
  pointer-events: none;
  color: #ff0000;
  font-family: monospace;
  font-size: 1.4rem;
  letter-spacing: 3px;
  opacity: 0;
  transition: none;
  text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
  mix-blend-mode: screen;
}

.subliminal-flash.visible {
  opacity: 0.7;
}

/* Screen glitch overlay */
.glitch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 0, 0, 0.03) 2px,
    rgba(255, 0, 0, 0.03) 4px
  );
}

.glitch-overlay.active {
  opacity: 1;
}

/* Body glitch effect */
@keyframes glitchShake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3px, 1px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-1px, 3px); }
  80% { transform: translate(3px, -1px); }
  100% { transform: translate(0, 0); }
}

body.glitching {
  animation: glitchShake 0.1s linear;
}

body.glitching * {
  filter: hue-rotate(90deg) !important;
}

/* Eye that follows cursor */
.hidden-eye {
  position: fixed;
  width: 20px;
  height: 14px;
  background: #111;
  border: 2px solid #333;
  border-radius: 50%;
  z-index: 10;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  overflow: hidden;
}

.hidden-eye.visible {
  opacity: 0.6;
}

.eye-pupil {
  width: 8px;
  height: 8px;
  background: #ff0000;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -4px;
  margin-left: -4px;
  transition: transform 0.1s ease-out;
  box-shadow: 0 0 4px #ff0000;
}

/* Idle creepiness — page slowly desaturates and shifts */
@keyframes idleFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.97; }
  75% { opacity: 0.99; }
}

body.idle-creepy {
  filter: saturate(0.5) brightness(0.9);
  transition: filter 8s ease-in;
  animation: idleFlicker 4s ease-in-out infinite;
}

body.idle-creepy .star-deco,
body.idle-creepy .deco-stamp {
  color: #ff0000 !important;
  animation: sparklePulse 1s ease-in-out infinite !important;
}

body.idle-creepy .home-marquee {
  color: #ff0000;
}

/* Corrupted text flash */
.text-corrupt {
  color: #ff0000 !important;
  text-shadow: 0 0 10px #ff0000, 2px 2px 0 #000 !important;
  filter: none !important;
}

/* Hidden text - only visible on selection */
.hidden-text {
  color: transparent;
  font-size: 0.6rem;
  user-select: all;
}

.hidden-text::selection {
  background: #ff0000;
  color: #fff;
}

/* Secret message (konami code) */
.secret-message {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: secretReveal 2s ease-out;
}

@keyframes secretReveal {
  0% { opacity: 0; }
  30% { opacity: 0; }
  31% { opacity: 1; }
  40% { opacity: 0; }
  50% { opacity: 1; }
  55% { opacity: 0; }
  60% { opacity: 1; }
  100% { opacity: 1; }
}

.secret-inner {
  text-align: center;
  color: #ff0000;
  font-family: monospace;
  font-size: 1.2rem;
  line-height: 2.5;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #ff0000;
}

.secret-inner p {
  animation: fadeInUp 0.5s ease-out both;
}

.secret-inner p:nth-child(2) { animation-delay: 1s; }
.secret-inner p:nth-child(3) { animation-delay: 2s; }

.secret-code {
  color: #fff;
  font-size: 1.5rem;
  margin-top: 20px;
  animation: fadeInUp 0.5s ease-out 3s both !important;
  text-shadow: 0 0 15px #fff;
  letter-spacing: 4px;
}

body.secret-unlocked {
  overflow: hidden;
}

/* Creepy hover on specific elements — brief red flash */
.home-avatar:active,
.about-photo:active {
  filter: grayscale(1) brightness(2) contrast(5) !important;
  transition: none;
}

/* Hidden source code messages rendered as invisible divs */
.arg-hidden {
  display: none;
}
