/* ============================================
   RWS OMAN PRELOADER (Enhanced Spacing & Visuals)
   ============================================ */
body {
  overflow: hidden; 
}

body.loaded {
  overflow-x: hidden;
  overflow-y: auto;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #182a46 0%, #0c1524 100%);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s ease;
}

.loader-content {
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loader-logo {
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
  animation: logoReveal 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-logo img {
  max-height: 105px !important;
  max-width: 280px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(22, 185, 232, 0.25));
}

.loader-progress-wrap {
  width: 240px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.loader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #16B9E8, #4de2ff);
  box-shadow: 0 0 12px rgba(22, 185, 232, 0.8);
  border-radius: 4px;
  transition: width 0.6s ease-out;
}

.loader-text {
  margin-top: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

/* Animations */
@keyframes logoReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.loaded #preloader {
  transform: translateY(-100%);
}
