/* Splash Screen Styles */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* AVIF is ~99% smaller than the original PNG. Keep the PNG as a fallback
     for browsers without AVIF support. */
  background-image: url('../../assets/Splash/SplashBackground.png');
  background-image: image-set(
    url('../../assets/Splash/SplashBackground.avif') type('image/avif'),
    url('../../assets/Splash/SplashBackground.png') type('image/png')
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #2a2a2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease-out;
}

.splash-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.3) 0%, rgba(58, 58, 58, 0.3) 100%);
  z-index: 1;
}

.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

#lottie-canvas {
  position: relative;
  width: 300px !important;
  height: 300px !important;
  max-width: 90vw;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prevent body scroll when splash is active */
body.splash-active {
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #lottie-canvas {
    width: 250px !important;
    height: 250px !important;
  }
}

@media (max-width: 480px) {
  #lottie-canvas {
    width: 200px !important;
    height: 200px !important;
  }
}
