/* Splash Screen Styles */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(57, 167, 138, 0.15) 0%, transparent 50%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.04) 0%, transparent 35%),
    linear-gradient(60deg, transparent 45%, rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.02) 65%, transparent 65%),
    linear-gradient(135deg, #2f5d50 0%, #17362f 100%);
  background-size: cover;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  opacity: 1;
  visibility: visible;
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  text-align: center;
  animation: pulse 2.5s infinite ease-in-out;
}

.splash-logo {
  width: 120px;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.splash-text {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.03);
    opacity: 0.9;
  }
}

/* Modern Progress Bar */
.splash-progress-container {
  width: 300px;
  height: 6px;
  margin-top: 32px;
  position: relative;
}

/* The faint background track */
.splash-progress-track {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  position: absolute;
  top: 0;
  left: 0;
}

/* The filling bar (trail) */
.splash-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #ff9900);
  border-radius: 99px;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 12px rgba(255, 153, 0, 0.5);
  animation: loadProgress 3s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* The Moving Character (Rocket/Plane) */
.splash-rocket {
  width: 24px;
  height: 24px;
  color: #fff;
  filter: drop-shadow(0 0 8px #ff9900);
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%) rotate(45deg);
  /* Paper plane is usually 45deg */
  margin-left: 0;
  /* aligned to start */
  animation: moveRocket 3s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.splash-rocket svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes loadProgress {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

@keyframes moveRocket {
  0% {
    left: 0%;
  }

  100% {
    left: 100%;
  }
}