#preloader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 2s ease, visibility 2s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo {
  width: 90%;
  max-width: 1300px;
  height: auto;
  margin-bottom: 40px;
  opacity: 0;
  transform: scale(0.9);
  animation: logoFadeIn 1.5s ease forwards;
}

@keyframes logoFadeIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.preloader-text-wrapper {
  max-width: 1300px;
  width: 90%;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  display: inline-block;
}

#preloader-text {
  font-family: "Orbitron", monospace;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #fff;
  letter-spacing: 2px;
}

#cursor {
  display: inline-block;
  width: 10px;
  margin-left: 2px;
  animation: blink 0.7s infinite;
  color: #fff;
  font-size: 1.6rem;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.1%, 100% { opacity: 0; }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .preloader-logo {
    margin-bottom: 20px;
  }

  #preloader-text {
    letter-spacing: 1px;
  }
}

.preloader-text-wrapper {
  min-height: 3.6em;
}
