/* Preloader Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f8ff 0%, #ffffff 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preloader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-logo {
  width: 150px;
  height: 150px;
  margin-bottom: 30px;
  transform-origin: center;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(44, 114, 194, 0.3));
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preloader-spinner {
  position: relative;
  width: 200px;
  height: 200px;
}

.circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.circle-1 {
  border-top-color: #FFD700; /* Gold for prosperity */
  animation: spin 1s linear infinite; /* Reduced from 2s to 1s */
}

.circle-2 {
  border-right-color: #2C72C2; /* Yorker Holidays Blue */
  animation: spin 0.8s linear infinite reverse; /* Reduced from 1.5s to 0.8s */
  width: 175px;
  height: 175px;
  top: 12.5px;
  left: 12.5px;
}

.circle-3 {
  border-bottom-color: #E74C3C; /* Red for power */
  animation: spin 0.6s linear infinite; /* Reduced from 1.2s to 0.6s */
  width: 150px;
  height: 150px;
  top: 25px;
  left: 25px;
}

.circle-4 {
  border-left-color: #2ECC71; /* Green for growth */
  animation: spin 1.2s linear infinite reverse; /* Reduced from 2.5s to 1.2s */
  width: 125px;
  height: 125px;
  top: 37.5px;
  left: 37.5px;
}

.circle-5 {
  border-top-color: #9B59B6; /* Purple for innovation */
  animation: spin 0.9s linear infinite; /* Reduced from 1.8s to 0.9s */
  width: 100px;
  height: 100px;
  top: 50px;
  left: 50px;
}

.preloader-text {
  margin-top: 30px;
  font-family: 'Poppins', sans-serif;
  color: #2C72C2;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.9;
  animation: fadeInOut 0.8s ease-in-out infinite; /* Reduced from 1.5s to 0.8s */
  background: linear-gradient(to right, #2C72C2, #0a4b94, #2C72C2);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 1.5s linear infinite; /* Reduced from 3s to 1.5s */
}

.preloader-progress {
  width: 280px;
  height: 4px;
  background: rgba(44, 114, 194, 0.1);
  border-radius: 10px;
  margin-top: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 10px rgba(44, 114, 194, 0.1);
}

.progress-bar {
  height: 100%;
  width: 0;
  background: rgb(0 122 255);
  border-radius: 10px;
  background-size: 200% 100%;
  animation: gradientMove 1s ease infinite; /* Reduced from 2s to 1s */
  position: absolute;
  top: 0;
  left: 0;
  will-change: width; /* Optimize for smooth animation */
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.4;
}

.particle {
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  background: rgba(44, 114, 194, 0.15);
  border-radius: 50%;
  animation: moveParticles 5s linear infinite; /* Reduced from 10s to 5s */
  box-shadow: 0 0 5px rgba(44, 114, 194, 0.2);
}

.flag-dots {
  position: absolute;
  width: 320px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
}

.flag-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.3;
  animation: flagPulse 1s ease-in-out infinite; /* Reduced from 2s to 1s */
}

.flag-dot:nth-child(1) {
  background-color: #009c3b; /* Brazil */
  animation-delay: 0.05s; /* Reduced from 0.1s to 0.05s */
}

.flag-dot:nth-child(2) {
  background-color: #d52b1e; /* Russia */
  animation-delay: 0.15s; /* Reduced from 0.3s to 0.15s */
}

.flag-dot:nth-child(3) {
  background-color: #ff9933; /* India */
  animation-delay: 0.25s; /* Reduced from 0.5s to 0.25s */
}

.flag-dot:nth-child(4) {
  background-color: #ff0000; /* China */
  animation-delay: 0.35s; /* Reduced from 0.7s to 0.35s */
}

.flag-dot:nth-child(5) {
  background-color: #007a4d; /* South Africa */
  animation-delay: 0.45s; /* Reduced from 0.9s to 0.45s */
}

.flag-dot:nth-child(6) {
  background-color: #239f40; /* Iran */
  animation-delay: 0.55s; /* Reduced from 1.1s to 0.55s */
}

.flag-dot:nth-child(7) {
  background-color: #ce1126; /* Egypt */
  animation-delay: 0.65s; /* Reduced from 1.3s to 0.65s */
}

.flag-dot:nth-child(8) {
  background-color: #078930; /* Ethiopia */
  animation-delay: 0.75s; /* Reduced from 1.5s to 0.75s */
}

.flag-dot:nth-child(9) {
  background-color: #ff0000; /* UAE */
  animation-delay: 0.85s; /* Reduced from 1.7s to 0.85s */
}

.flag-dot:nth-child(10) {
  background-color: #006c35; /* Saudi Arabia */
  animation-delay: 0.95s; /* Reduced from 1.9s to 0.95s */
}

.flag-dot:nth-child(11) {
  background-color: #ff0000; /* Indonesia */
  animation-delay: 1.05s; /* Reduced from 2.1s to 1.05s */
}

.preloader-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(/assets/images/ui-elements/bg-blue.webp);
  background-size: cover;
  opacity: 0.03;
  mix-blend-mode: multiply;
}

.world-map {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background-image: url(/assets/images/maps/world-map-elegant.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.05;
  animation: rotateMap 30s linear infinite; /* Reduced from 60s to 30s */
}

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

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

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes moveParticles {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100vw);
    opacity: 0;
  }
}

@keyframes textShine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes flagPulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

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

.fade-out {
  animation: fadeOut 0.4s ease-in-out forwards; /* Reduced from 0.8s to 0.4s */
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.hidden {
  display: none;
} 
