/**
 * AP PRIYANSH SOLUTIONS - Splash Screen Styles
 * Logo glow fade-in → Typewriter title → Typewriter tagline → Exit zoom
 */

#splash-screen {
  position: fixed;
  inset: 0;
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  overflow: hidden;
  cursor: pointer;
}

/* Stars / subtle shimmer background */
#splash-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(201, 160, 63, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(14, 36, 61, 0.4) 0%, transparent 55%);
  pointer-events: none;
}

/* Logo Container */
#splash-logo-box {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 36px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

#splash-logo-box.logo-visible {
  opacity: 1;
  transform: scale(1);
}

/* Rotating gold glow ring around logo */
#splash-logo-box::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(223, 183, 108, 0.8) 25%,
    transparent 50%,
    rgba(201, 160, 63, 0.6) 75%,
    transparent 100%
  );
  opacity: 0;
  animation: logoRingRotate 2s linear infinite;
  transition: opacity 0.5s ease;
}

#splash-logo-box.logo-visible::before {
  opacity: 1;
}

@keyframes logoRingRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Inner mask to show only the ring edge */
#splash-logo-box::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: #000;
}

/* Actual Logo Image */
#splash-logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(223, 183, 108, 0.7));
}

/* Title Typography */
#splash-title {
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  color: #FFFFFF;
  text-align: center;
  letter-spacing: 0.06em;
  min-height: 3.2rem;
  position: relative;
  z-index: 3;
  white-space: nowrap;
}

.splash-gold {
  color: #DFB76C;
  text-shadow: 0 0 20px rgba(223, 183, 108, 0.6);
}

/* Tagline Typography */
#splash-tagline {
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  font-size: clamp(0.78rem, 2.2vw, 1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 12px;
  text-align: center;
  min-height: 1.4rem;
  position: relative;
  z-index: 3;
}

/* Blinking cursor */
.type-cursor {
  display: inline-block;
  width: 2px;
  color: #DFB76C;
  animation: cursorBlink 0.7s step-end infinite;
  font-weight: 300;
  margin-left: 1px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Skip Button */
#skip-splash-btn {
  position: absolute;
  bottom: 32px;
  right: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  z-index: 5;
}

#skip-splash-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(223, 183, 108, 0.4);
}

/* Splash Exit Animation */
.splash-exit {
  animation: splashExitAnim 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes splashExitAnim {
  0% { opacity: 1; transform: scale(1); }
  60% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(1.12); }
}
