@use '../../../../variables' as *;

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba($Navy, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  opacity: 1;
  visibility: visible;

  &.hidden {
    opacity: 0;
    visibility: hidden;
  }

  .splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .lottie-container {
    width: 250px;
    height: 250px;
    margin: 0 auto;
  }

  .loading-text {
    font-family: $MainFont;
    font-size: 1.4rem;
    font-weight: 300;
    color: $Green;
    letter-spacing: 0.1em;
    animation: pulseText 2s ease-in-out infinite;
  }

  @keyframes pulseText {
    0%, 100% {
      opacity: 0.6;
    }
    50% {
      opacity: 1;
    }
  }
}

@media (max-width: 768px) {
  .splash-screen {
    .lottie-container {
      width: 200px;
      height: 200px;
    }

    .loading-text {
      font-size: 1.2rem;
    }
  }
}

@media (max-width: 480px) {
  .splash-screen {
    .lottie-container {
      width: 180px;
      height: 180px;
    }

    .loading-text {
      font-size: 1rem;
    }
  }
}