.preloader {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: "proxima-nova-soft", sans-serif;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
  position: relative;
  min-height: 100vh;
  max-height: 100vh;
  width: 100%;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: #000;
  top: 0;
  left: 0;
  will-change: opacity;
  transform: translateZ(0); /* GPU acceleration */
}

.preloader .vertical-centered-box {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Removed :after pseudo-element - not needed with flexbox */

.preloader .vertical-centered-box .content {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.loader-main {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 30px;
}

.loader-circle {
  position: absolute;
  left: 0;
  top: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.loader-line-mask {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 120px;
  overflow: hidden;
  transform-origin: 60px 60px;
  -webkit-mask-image: -webkit-linear-gradient(top, #000, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0));
  animation: rotate 1.2s infinite linear;
}

.loader-line {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #000080; /* Navy Blue */
}

.text-loading {
  position: relative;
  font-family: inherit;
  font-size: 42px; /* Increased for premium look */
  font-weight: 900;
  letter-spacing: 8px; /* Wider spacing */
  color: #fff;
  text-transform: uppercase;
  margin: 0;
}

.text-loading span {
  display: inline-block;
  animation: text-jump 2s infinite ease-in-out;
}

.text-loading span:nth-child(1) {
  animation-delay: 0.1s;
}
.text-loading span:nth-child(2) {
  animation-delay: 0.2s;
}
.text-loading span:nth-child(3) {
  animation-delay: 0.3s;
}
.text-loading span:nth-child(4) {
  animation-delay: 0.4s;
}
.text-loading span:nth-child(5) {
  animation-delay: 0.5s;
}
.text-loading span:nth-child(6) {
  animation-delay: 0.6s;
}
.text-loading span:nth-child(7) {
  animation-delay: 0.7s;
}
.text-loading span:nth-child(8) {
  animation-delay: 0.8s;
}
.text-loading span:nth-child(9) {
  animation-delay: 0.9s;
}

.loading-subtitle {
  font-size: 12px;
  letter-spacing: 12px;
  color: #fff;
  margin-top: 20px;
  font-weight: 400;
  opacity: 0.6;
  text-transform: uppercase;
}

@keyframes text-jump {
  0%,
  100% {
    color: #ffffff;
    transform: translateY(0);
  }
  50% {
    color: #000080; /* Navy Blue */
    transform: translateY(-10px);
  }
}

.preloader {
  background: #2c2d44;
}

.preloader svg {
  display: none !important;
}

#particles-background,
#particles-foreground {
  left: -51%;
  top: -51%;
  width: 202%;
  height: 202%;
  transform: scale3d(0.5, 0.5, 1);
}

#particles-background {
  background: #2c2d44;
  background-image: -moz-linear-gradient(45deg, #1d1d1d 2%, #002025 100%);
  background-image: -webkit-linear-gradient(45deg, #1d1d1d 2%, #002025 100%);
  background-image: linear-gradient(45deg, #1d1d1d 2%, #002025 100%);
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fade {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.25;
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
