/* Splash Screen Styles */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background-color: #000;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.splash-screen.visible {
  opacity: 1;
  visibility: visible;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.splash-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.splash-background img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: zoomInOut 15s ease-in-out infinite;
  transform: scale(1.1);
  background-repeat: no-repeat;
}

/* Animation for the background image */
@keyframes zoomInOut {
  0% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1.1);
  }
}

/* Add a subtle pulse effect to the whole screen */
.splash-screen.visible::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  animation: pulseGlow 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes pulseGlow {
  0% {
    box-shadow: inset 0 0 80px 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: inset 0 0 100px 10px rgba(255, 255, 255, 0.15);
  }
  100% {
    box-shadow: inset 0 0 80px 0 rgba(255, 255, 255, 0.1);
  }
}

/* Optional: Add a loading indicator */
.splash-background::after {
  content: '';
  position: absolute;
  bottom: 50px;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid #fff;
  animation: spin 1s linear infinite;
  z-index: 2;
}



/* Responsive adjustments */
@media (max-width: 768px) {
  .splash-background img {
    animation: zoomInOutMobile 15s ease-in-out infinite;
  }
  
  @keyframes zoomInOutMobile {
    0% {
      transform: scale(1.05);
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1.05);
    }
  }
}