/* 🔹 Preloader Container */
.preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  /* background: #0e0e0e; */
  background-color: #008cff;
  background-color: #f9fbff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 999999;
  overflow: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

/*  Hidden State */
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/*  Logo */
.preloader-logo {
  width: 200px;
  height: 120px;
  object-fit: contain;
  /* filter: drop-shadow(0 0 12px rgba(0, 140, 255, 0.6)); */
  /* animation: pulse 1.5s ease-in-out infinite alternate; */
}

/*  Loading Bar */
.loading-bar {
  width: 180px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px; 
  overflow: hidden;
  position: relative;
}

/*  Progress Animation */
.loading-bar .progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #163C85, #00e5ff);
  border-radius: 10px;
  animation: loadProgress 1s ease-in-out forwards;
}

/*  Animations */
@keyframes pulse {
  from {
    transform: scale(0.95);
    opacity: 0.8;
  }
  to {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes loadProgress {
  0% { width: 0%; }
  50% { width: 65%; }
  80% { width: 85%; }
  100% { width: 100%; }
}

/*  Responsive */
@media (max-width: 768px) {
  .preloader-logo {
    width: 150px;
    height: 70px;
  }
  .loading-bar {
    width: 140px;
    height: 5px;
  }
}
