/* Splash Screen */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.8s ease-in-out;
}

#splash-screen.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* Splash Content */
.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.splash-logos {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.splash-logo {
  height: 100px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  border-radius: 25px;
}

.splash-title {
  font-size: 2rem;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out 0.4s;
}

.splash-subtitle {
  font-size: 1.1rem;
  color: #c0dfff;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out 0.5s;
}

.splash-loader {
  width: 180px;
  height: 6px;
  border-radius: 3px;
  background-color: #ffffff33;
  overflow: hidden;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out 0.6s;
}

.loader-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #00eaff, #0099ff, #00eaff);
  background-size: 200%;
  animation: loaderMove 1.5s linear infinite;
}

.powered-by {
  color: #ffffff;
  font-size: 1.2rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out 0.7s, transform 0.5s ease-out 0.7s;
}

/* Animations */
@keyframes loaderMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.appear {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

/* Main Content Setup */
#main-content {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: none; /* Initially hidden */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

#main-content.visible {
  opacity: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  display: flex;
}

/* Background Particle Glow */
.glow-circle {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,255,0.15), transparent 70%);
  filter: blur(50px);
  animation: pulseGlow 2.5s ease-in-out infinite;
  z-index: 0;
}

/* Circle Pulse Loader */
.pulse-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out 0.7s;
}

.pulse-loader span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #00eaff;
  animation: bounce 1.2s infinite ease-in-out;
}

.pulse-loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.pulse-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  40% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* Splash tagline */
.splash-tagline {
  color: #9edfff;
  font-size: 1rem;
  margin-top: -1rem;
  font-style: italic;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out 0.6s;
}

/* Appear animation */
.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Glow pulse animation */
@keyframes pulseGlow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
}
