/* ══════════════════════════════════════════════════════
   Logo Splash Screen Animation
   ══════════════════════════════════════════════════════ */

#splashScreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #111d4a 0%, #1B2C6B 50%, #1a3a8f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.splash-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.splash-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  opacity: 0;
  animation: splashLogoIn 0.8s ease forwards;
  filter: drop-shadow(0 0 0 rgba(184, 147, 90, 0));
}

.splash-name {
  color: #d4aa72;
  font-family: 'Cairo', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  margin-top: 18px;
  opacity: 0;
  animation: splashTextIn 0.6s ease 0.7s forwards;
}

.splash-sub {
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 6px;
  opacity: 0;
  animation: splashTextIn 0.6s ease 1s forwards;
}

.splash-line {
  width: 60px;
  height: 2px;
  background: #B8935A;
  margin-top: 16px;
  opacity: 0;
  animation: splashLineIn 0.5s ease 1.2s forwards;
}

/* ── Keyframes ── */
@keyframes splashLogoIn {
  0% {
    opacity: 0;
    transform: scale(0.7);
    filter: drop-shadow(0 0 0 rgba(184, 147, 90, 0));
  }
  60% {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(184, 147, 90, 0.4));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(184, 147, 90, 0.25));
  }
}

@keyframes splashTextIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splashLineIn {
  0% {
    opacity: 0;
    width: 0;
  }
  100% {
    opacity: 1;
    width: 60px;
  }
}

/* ── Gold shimmer on logo ── */
.splash-logo.shimmer {
  animation: splashLogoIn 0.8s ease forwards, goldShimmer 1.5s ease 0.8s;
}

@keyframes goldShimmer {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(184, 147, 90, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(184, 147, 90, 0.6)) drop-shadow(0 0 60px rgba(212, 170, 114, 0.3));
  }
}

/* ── Exit animation ── */
#splashScreen.splash-exit {
  animation: splashExit 0.6s ease forwards;
}

@keyframes splashExit {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px);
  }
}
