/* ===== INTRO OVERLAY ===== */
.intro-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  background: #050508;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.intro-bg-pulse {
  position: absolute; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(57,255,20,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(255,16,240,0.06) 0%, transparent 60%);
  animation: introPulse 3s ease-in-out infinite alternate;
}
@keyframes introPulse {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* Scanlines */
.intro-scanlines {
  position: absolute; width: 100%; height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
  opacity: 0.4;
  animation: scanFlicker 0.1s steps(2) infinite;
}
@keyframes scanFlicker {
  0% { opacity: 0.35; }
  100% { opacity: 0.45; }
}

.intro-content {
  position: relative; z-index: 10;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}

/* Skull intro */
.intro-skull {
  opacity: 0;
  transform: scale(0) rotate(-20deg);
  animation: skullEntry 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.3s forwards;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 30px rgba(255,107,0,0.4));
}
@keyframes skullEntry {
  0% { opacity: 0; transform: scale(0) rotate(-20deg); }
  60% { opacity: 1; transform: scale(1.2) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.skull-eye-l, .skull-eye-r {
  animation: eyeFlicker 0.15s steps(2) infinite 1s;
}
@keyframes eyeFlicker {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* Logo text */
.intro-logo {
  font-family: 'Bangers', cursive;
  font-size: clamp(70px, 15vw, 130px);
  letter-spacing: 6px;
  opacity: 0;
  animation: logoGlitchIn 1s ease 1s forwards;
  position: relative;
}

.intro-yolo {
  background: linear-gradient(135deg, #39FF14, #00F0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(57,255,20,0.3));
}

.intro-x {
  background: linear-gradient(135deg, #FF10F0, #FF2D55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transform: rotate(-8deg);
  filter: drop-shadow(0 0 20px rgba(255,16,240,0.3));
  font-size: 1.1em;
}

@keyframes logoGlitchIn {
  0% { opacity: 0; transform: translateX(-50px); filter: blur(10px); }
  20% { opacity: 1; transform: translateX(10px) skewX(-5deg); filter: blur(0); }
  25% { transform: translateX(-5px) skewX(3deg); }
  30% { transform: translateX(3px) skewX(-1deg); }
  35% { transform: translateX(0) skewX(0); }
  40%, 100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}

/* Tagline typing */
.intro-tagline {
  font-family: 'Space Mono', monospace;
  font-size: clamp(12px, 2vw, 16px);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 10px;
  min-height: 24px;
  border-right: 2px solid var(--neon-green, #39FF14);
  padding-right: 4px;
  animation: blink 0.7s step-end infinite 2s;
  white-space: nowrap;
  overflow: hidden;
}
@keyframes blink {
  50% { border-color: transparent; }
}

/* Loading bar */
.intro-loader {
  width: 250px; height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  margin-top: 40px;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.5s ease 2s forwards;
}
.intro-loader-bar {
  width: 0; height: 100%;
  background: linear-gradient(90deg, #39FF14, #00F0FF, #FF10F0);
  border-radius: 4px;
  animation: loadBar 2s ease 2.2s forwards;
}
@keyframes loadBar {
  0% { width: 0; }
  30% { width: 40%; }
  60% { width: 70%; }
  90% { width: 95%; }
  100% { width: 100%; }
}

/* Enter button */
.intro-enter-btn {
  margin-top: 30px;
  background: #39FF14; color: #000;
  font-family: 'Bangers', cursive;
  font-size: 18px; letter-spacing: 3px;
  padding: 14px 40px; border: none;
  cursor: pointer; text-transform: uppercase;
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s;
  animation: btnReveal 0.6s ease 4.3s forwards;
}
.intro-enter-btn:hover {
  background: #FFE600;
  transform: translateY(0) scale(1.05);
  box-shadow: 0 0 40px rgba(57,255,20,0.5);
}
@keyframes btnReveal {
  to { opacity: 1; pointer-events: all; transform: translateY(0); }
}

/* Floating particles */
.intro-particles {
  position: absolute; width: 100%; height: 100%;
  top: 0; left: 0; pointer-events: none; z-index: 5;
}
.intro-particles span {
  position: absolute;
  font-size: 28px; opacity: 0;
  animation: particleFly 4s ease-in-out infinite;
}
.intro-particles span:nth-child(1) { left:10%; top:20%; animation-delay:0.5s; }
.intro-particles span:nth-child(2) { left:85%; top:15%; animation-delay:1s; }
.intro-particles span:nth-child(3) { left:15%; top:75%; animation-delay:1.5s; }
.intro-particles span:nth-child(4) { left:80%; top:70%; animation-delay:2s; }
.intro-particles span:nth-child(5) { left:50%; top:10%; animation-delay:0.8s; }
.intro-particles span:nth-child(6) { left:40%; top:85%; animation-delay:1.2s; }
.intro-particles span:nth-child(7) { left:70%; top:40%; animation-delay:2.5s; }
.intro-particles span:nth-child(8) { left:25%; top:50%; animation-delay:1.8s; }

@keyframes particleFly {
  0% { opacity: 0; transform: translateY(40px) scale(0.5) rotate(0deg); }
  30% { opacity: 0.25; }
  50% { opacity: 0.25; transform: translateY(-30px) scale(1) rotate(180deg); }
  80% { opacity: 0; }
  100% { opacity: 0; transform: translateY(-80px) scale(0.5) rotate(360deg); }
}

/* Intro exit */
.intro-overlay.exit {
  animation: introExit 0.8s cubic-bezier(0.6, 0, 0.4, 1) forwards;
}
@keyframes introExit {
  0% { opacity: 1; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.3); pointer-events: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Main site entry */
.main-site.entering {
  animation: siteEnter 0.8s ease 0.3s both;
}
@keyframes siteEnter {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
