/* =============================================================================
   XXL ESPORT GAMING LOUNGE - 3D SİNEMATİK LOGO GİRİŞ ANİMASYONU
   ============================================================================= */

/* Tam Ekran Giriş Kapsayıcısı */
#intro-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #030407;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
  perspective: 1200px;
}

#intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Arka Plan Siber Parçacık ve Izgara Efekti */
.intro-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

.intro-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(16, 11, 28, 0.2) 0%, rgba(3, 4, 7, 0.95) 75%, #020204 100%);
  pointer-events: none;
}

/* Neon Mor & Camgöbeği Arka Işık (Aura Bloom) */
.intro-aura-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.55) 0%, rgba(6, 182, 212, 0.3) 35%, rgba(139, 92, 246, 0.1) 60%, transparent 75%);
  filter: blur(60px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 3D Logo Sahne Alanı */
.intro-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  z-index: 10;
  padding: 2rem;
}

/* Logo Parçalarının Bulunduğu 3D Kutu */
.intro-logo-box {
  position: relative;
  width: 340px;
  height: 254px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .intro-logo-box {
    width: 270px;
    height: 202px;
  }
}

/* Harf Katmanları (X1, X2, L) */
.intro-letter-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

/* Logo Birleştikten Sonra Üzerinden Geçen Sinematik Işık Şeridi (Specular Sheen Sweep) */
.intro-sheen-sweep {
  position: absolute;
  top: -20%;
  left: 0;
  width: 120%;
  height: 140%;
  background: linear-gradient(
    108deg,
    transparent 20%,
    rgba(255, 255, 255, 0.05) 38%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(215, 240, 255, 0.9) 53%,
    rgba(192, 132, 252, 0.6) 58%,
    transparent 72%
  );
  transform: translate3d(-120%, 0, 0) skewX(-20deg);
  will-change: transform, opacity;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0;
}

/* Şok Dalgası / Darbe Halkası */
.intro-shockwave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.9);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.7), inset 0 0 20px rgba(6, 182, 212, 0.5);
  opacity: 0;
  pointer-events: none;
}

/* "ESPORT GAMING LOUNGE" Alt Yazısı */
.intro-subtitle-wrap {
  margin-top: 2.2rem;
  overflow: hidden;
  text-align: center;
  transform-style: preserve-3d;
}

.intro-subtitle {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #f1f5f9;
  letter-spacing: 0.15em;
  opacity: 0;
  filter: blur(10px);
  will-change: transform, opacity, letter-spacing, filter;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 45%, #a855f7 85%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
}

@media (max-width: 640px) {
  .intro-subtitle {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }
}

/* İntro Atlama Butonu (Skip Button) */
.intro-skip-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: rgba(15, 20, 32, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 9999px;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.intro-skip-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.8);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
}

.intro-skip-progress {
  width: 14px;
  height: 14px;
  transform: rotate(-90deg);
}

.intro-skip-circle-bg {
  stroke: rgba(255, 255, 255, 0.15);
}

.intro-skip-circle-bar {
  stroke: #a855f7;
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
  transition: stroke-dashoffset 0.1s linear;
}

/* İntro Altında Tıklama / Atla İpucu */
.intro-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #64748b;
  text-transform: uppercase;
  opacity: 0.7;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.intro-hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  animation: introPulse 1.5s infinite;
}

@keyframes introPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}
