/* ============================================
   ZamTraveler Splash — Demon Slayer v15
   Fire + Gold + Lightning (no divider, no neon)
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0e1a;
  --text-primary: #f0f4ff;
  --text-secondary: #8892b0;
  --water-primary: #ff6a00;
  --water-bright: #ffd700;
  --water-secondary: #ff8c00;
  --water-deep: #cc5500;
  --fire-primary: #f59e0b;
  --fire-bright: #ffd700;
  --fire-secondary: #ef4444;
  --fire-deep: #dc2626;
  --blood: #8b0000;
  --blood-bright: #dc2626;
  --blood-glow: #ff1a1a;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   LOADER — Blood + Water pulse
   ============================================ */
.splash-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-loader-logo {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--fire-bright), var(--blood-bright), var(--water-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(255, 106, 0, 0.6)); }
  33% { transform: scale(1.1); filter: drop-shadow(0 0 25px rgba(220, 38, 38, 0.6)); }
  66% { transform: scale(1.15); filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.6)); }
}

/* ============================================
   SPLIT LAYOUT
   ============================================ */
.split-container {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100vh;
  width: 100%;
}

/* Each side */
.split-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: box-shadow 0.4s ease;
}

.water-side:hover {
  box-shadow: inset 0 0 150px rgba(255, 106, 0, 0.2), inset 0 0 60px rgba(255, 215, 0, 0.05);
}

.fire-side:hover {
  box-shadow: inset 0 0 150px rgba(245, 158, 11, 0.2), inset 0 0 60px rgba(220, 38, 38, 0.08);
}

/* ============================================
   PARTICLE CANVAS (JS-generated)
   ============================================ */
.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* ============================================
   SCREEN FLASH
   ============================================ */
.screen-flash {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15), transparent 70%);
  animation: screenFlash 0.3s ease-out forwards;
}

@keyframes screenFlash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ============================================
   BREATHING CIRCLES
   ============================================ */
.breathing-circle {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}

.water-side .breathing-circle {
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.2), inset 0 0 15px rgba(255, 106, 0, 0.1);
  animation: waterBreath 2.5s ease-out forwards;
}

.fire-side .breathing-circle {
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2), inset 0 0 15px rgba(245, 158, 11, 0.1);
  animation: fireBreath 2s ease-out forwards;
}

@keyframes waterBreath {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.6; }
  60% { opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

@keyframes fireBreath {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.7; }
  50% { opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* ============================================
   PHOTO BACKGROUNDS
   ============================================ */
.side-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.side-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.5);
  transition: background 0.3s ease;
}

.split-side:hover .side-photo::after {
  background: rgba(10, 14, 26, 0.3);
}

/* ============================================
   SLIDESHOW (JS-generated)
   ============================================ */
.slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.08);
  filter: brightness(0.6);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
  will-change: opacity, transform;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1);
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.4);
  transition: background 0.3s ease;
}

.split-side:hover .slide::after {
  background: rgba(10, 14, 26, 0.2);
}

/* Transition flash */
.transition-flash {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  animation: transFlash 0.5s ease-out forwards;
}

@keyframes transFlash {
  0% { opacity: 0.8; }
  100% { opacity: 0; }
}

/* ============================================
   WATER SIDE — Vision (Left)
   ============================================ */
.water-side {
  background: linear-gradient(180deg,
    rgba(255, 106, 0, 0.08) 0%,
    rgba(255, 140, 0, 0.12) 50%,
    rgba(204, 85, 0, 0.16) 100%
  );
}


/* ============================================
   FIRE SIDE — Traveler (Right)
   ============================================ */
.fire-side {
  background: linear-gradient(180deg,
    rgba(245, 158, 11, 0.16) 0%,
    rgba(239, 68, 68, 0.12) 50%,
    rgba(220, 38, 38, 0.08) 100%
  );
}


/* ============================================
   SIDE CONTENT
   ============================================ */
.side-content {
  position: relative;
  z-index: 6;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

.side-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.water-side .side-icon {
  background: rgba(255, 106, 0, 0.15);
  border: 1px solid rgba(255, 106, 0, 0.3);
  color: var(--water-primary);
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.3), 0 0 40px rgba(255, 106, 0, 0.1);
}

.fire-side .side-icon {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--fire-primary);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3), 0 0 40px rgba(245, 158, 11, 0.1);
}

.side-icon svg {
  width: 28px;
  height: 28px;
}

.side-zam {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.water-side .side-zam {
  background: linear-gradient(180deg, #ffd700, var(--water-primary), var(--water-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255, 106, 0, 0.6)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.fire-side .side-zam {
  background: linear-gradient(180deg, #ffd700, var(--fire-primary), var(--fire-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.6)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.side-name {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  will-change: transform;
}

.water-side .side-name {
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 106, 0, 0.5), 0 0 40px rgba(255, 106, 0, 0.2);
}

.fire-side .side-name {
  color: #ffb800;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5), 0 0 40px rgba(245, 158, 11, 0.2);
}

.side-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 280px;
}

.side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 4px;
}

.side-tags span {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 500;
}

.water-side .side-tags span {
  background: rgba(255, 106, 0, 0.12);
  color: #ffd700;
  border: 1px solid rgba(255, 106, 0, 0.3);
}

.fire-side .side-tags span {
  background: rgba(245, 158, 11, 0.12);
  color: #ffb800;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Coming Soon Badge — blood pulse */
.side-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(220, 38, 38, 0.2);
  color: #ffd700;
  border: 1px solid rgba(245, 158, 11, 0.4);
  animation: badgePulse 2.5s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 15px rgba(220, 38, 38, 0.3), 0 0 0 0 rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 25px rgba(255, 26, 26, 0.4), 0 0 0 12px rgba(245, 158, 11, 0); }
}

/* Hover arrows */
.side-arrow {
  position: absolute;
  bottom: 32px;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 6;
}

.water-side .side-arrow { left: 50%; transform: translateX(-50%) translateY(8px); }
.fire-side .side-arrow { left: 50%; transform: translateX(-50%) translateY(8px); }

.split-side:hover .side-arrow {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.water-side .side-arrow svg { color: #ffd700; filter: drop-shadow(0 0 8px rgba(255, 106, 0, 0.5)); }
.fire-side .side-arrow svg { color: #ffd700; filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5)); }

/* ============================================
   NAVIGATION PROGRESS BAR
   ============================================ */
.nav-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0;
  z-index: 8;
  pointer-events: none;
  border-radius: 0 2px 0 0;
}

.water-side .nav-progress {
  background: linear-gradient(90deg, #ffd700, #ff6a00, #dc2626);
  box-shadow: 0 0 12px #ffd700, 0 0 24px rgba(255, 106, 0, 0.4);
}

.fire-side .nav-progress {
  background: linear-gradient(90deg, #ffd700, #f59e0b, #ef4444);
  box-shadow: 0 0 12px #ffd700, 0 0 24px rgba(245, 158, 11, 0.4);
}

/* ============================================
   LIGHTNING BOLTS (SVG, JS-generated)
   ============================================ */
.lightning-bolt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 7;
  pointer-events: none;
  animation: boltFlash 0.4s ease-out forwards;
}

@keyframes boltFlash {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  12%  { opacity: 0.2; }
  20%  { opacity: 0.9; }
  35%  { opacity: 0.4; }
  50%  { opacity: 0.7; }
  100% { opacity: 0; }
}

/* ============================================
   FOOTER
   ============================================ */
.splash-footer {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  pointer-events: none;
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
  }

  .split-side:hover {
    flex: 1.08;
  }

  .side-zam {
    font-size: 3rem;
  }

  .side-name {
    font-size: 1.2rem;
  }

  .side-desc {
    font-size: 0.8rem;
    max-width: 240px;
  }

  .side-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .side-icon svg {
    width: 22px;
    height: 22px;
  }

  .side-content {
    gap: 10px;
    padding: 16px;
  }

  .side-arrow {
    display: none;
  }

  .splash-footer {
    bottom: 8px;
  }
}

@media (max-width: 380px) {
  .side-zam {
    font-size: 2.5rem;
  }

  .side-name {
    font-size: 1rem;
  }

  .side-tags {
    display: none;
  }
}
