/* BeWom Elegant Splash Screen */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Invisible emoji preloader to force font loading */
#emoji-preloader {
  position: fixed;
  top: -9999px;
  left: -9999px;
  font-size: 100px;
  pointer-events: none;
  opacity: 0;
}

/* Elegant Splash Screen Container */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

/* Splash Container */
.splash-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Logo Container */
.splash-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  position: relative;
}

/* Logo Image */
.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: elegantFade 2.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 20px rgba(182, 127, 255, 0.15));
}

/* Elegant Fade Animation */
@keyframes elegantFade {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.3;
    transform: scale(0.95);
  }
}

/* Smooth fade out when Flutter loads */
#loading.fade-out {
  animation: fadeOut 0.6s ease-out forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .splash-logo {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .splash-logo {
    width: 120px;
    height: 120px;
  }
}