/* Splash Screen Styles */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

#splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  text-align: center;
  position: relative;
}

/* Logo with Swirl Animation */
.splash-logo {
  width: 300px;
  max-width: 80vw;
  height: auto;
  opacity: 0;
  animation: swirlIn 1.2s ease-out forwards;
  animation-delay: 0.3s;
  display: block;
}

/* Swirl Animation - Logo spins and zooms in */
@keyframes swirlIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.1) rotate(20deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Main content initially hidden */
#main-content {
  opacity: 0;
  transition: opacity 0.8s ease-in;
}

#main-content.show {
  opacity: 1;
}

/* Prevent body scroll during splash - FIXED */
body.splash-active {
  overflow: hidden;
  /* Removed position: fixed and height: 100vh */
}

/* Ensure body can scroll after splash */
body {
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .splash-logo {
    width: 250px;
  }
} 

@media (max-width: 480px) {
  .splash-logo {
    width: 200px;
  }
}