/* Professional Preloader Styles for Euro Jet */

/* Base Preloader Container */
.loader-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: #fff;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrap.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Preloader 1: Fade In/Out with Logo */
.preloader-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-fade .logo-container {
  text-align: center;
}

.preloader-fade .logo-container img {
  max-width: 150px;
  height: auto;
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Preloader 2: Rotating Logo */
.preloader-rotate {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-rotate .logo-container img {
  max-width: 120px;
  height: auto;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Preloader 3: Pulse with Progress Bar */
.preloader-pulse-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-pulse-progress .logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: none;
}

.preloader-pulse-progress .logo-container img {
  width: 15vw !important;
  height: auto !important;
  max-height: none !important;
  animation: pulse 1.5s ease-in-out infinite;
  margin-bottom: 30px;
  transform: scale(1);
  object-fit: contain;
  max-width: none !important;
}

.preloader-pulse-progress .progress-bar {
  width: 600px;
  height: 3px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-pulse-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ec1d25, #d4141a);
  width: 0%;
  transition: width 0.3s ease;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes progress {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* Preloader 4: Bounce with Text */
.preloader-bounce-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-bounce-text .logo-container img {
  max-width: 110px;
  height: auto;
  animation: bounce 1.5s ease-in-out infinite;
  margin-bottom: 20px;
}

.preloader-bounce-text .loading-text {
  font-size: 1.3rem;
  font-weight: 500;
  color: #1e3c72;
  animation: textFade 2s ease-in-out infinite;
  font-family: "Kumbh Sans", sans-serif;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-25px);
  }
  60% {
    transform: translateY(-12px);
  }
}

@keyframes textFade {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Preloader 5: Spinner with Logo */
.preloader-spinner-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #1e3c72, #2a5298);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-spinner-logo .spinner-container {
  position: relative;
  width: 140px;
  height: 140px;
}

.preloader-spinner-logo .spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.preloader-spinner-logo .logo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.preloader-spinner-logo .logo-center img {
  max-width: 60px;
  height: auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Preloader 6: Morphing Logo */
.preloader-morph {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-morph .logo-container {
  position: relative;
  width: 120px;
  height: 120px;
}

.preloader-morph .logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: morph 3s ease-in-out infinite;
}

@keyframes morph {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    filter: hue-rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(5deg);
    filter: hue-rotate(90deg);
  }
  50% {
    transform: scale(0.9) rotate(-5deg);
    filter: hue-rotate(180deg);
  }
  75% {
    transform: scale(1.05) rotate(3deg);
    filter: hue-rotate(270deg);
  }
}

/* Preloader 7: Modern Minimalist */
.preloader-minimal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-minimal .logo-container {
  position: relative;
  text-align: center;
}

.preloader-minimal .logo-container img {
  max-width: 100px;
  height: auto;
  animation: minimalFade 2.5s ease-in-out infinite;
}

.preloader-minimal .loading-dots {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.preloader-minimal .dot {
  width: 8px;
  height: 8px;
  background: #1e3c72;
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.preloader-minimal .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.preloader-minimal .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes minimalFade {
  0%,
  100% {
    opacity: 0.6;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-10px);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Preloader 8: Aviation Theme */
.preloader-aviation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preloader-aviation::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: aviationGlow 3s ease-in-out infinite;
}

.preloader-aviation .logo-container {
  position: relative;
  z-index: 2;
}

.preloader-aviation .logo-container img {
  max-width: 120px;
  height: auto;
  animation: aviationFloat 2s ease-in-out infinite;
}

.preloader-aviation .loading-text {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 2px;
  animation: aviationText 2s ease-in-out infinite;
}

@keyframes aviationGlow {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
}

@keyframes aviationFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.05);
  }
}

@keyframes aviationText {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .preloader-fade .logo-container img,
  .preloader-rotate .logo-container img,
  .preloader-bounce-text .logo-container img,
  .preloader-spinner-logo .logo-center img,
  .preloader-morph .logo-container,
  .preloader-minimal .logo-container img,
  .preloader-aviation .logo-container img {
    max-width: 80px;
  }

  .preloader-pulse-progress .logo-container img {
    width: 85vw !important;
    max-width: none !important;
    max-height: none !important;
  }

  .preloader-pulse-progress .progress-bar {
    width: 375px;
    height: 2px;
  }

  .preloader-spinner-logo .spinner-container {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .preloader-fade .logo-container img,
  .preloader-rotate .logo-container img,
  .preloader-bounce-text .logo-container img,
  .preloader-spinner-logo .logo-center img,
  .preloader-morph .logo-container,
  .preloader-minimal .logo-container img,
  .preloader-aviation .logo-container img {
    max-width: 60px;
  }

  .preloader-pulse-progress .logo-container img {
    width: 30vw !important;
    max-width: none !important;
    max-height: none !important;
  }

  .preloader-pulse-progress .progress-bar {
    width: 312px;
    height: 2px;
  }

  .preloader-spinner-logo .spinner-container {
    width: 80px;
    height: 80px;
  }

  .preloader-bounce-text .loading-text,
  .preloader-aviation .loading-text {
    font-size: 1rem;
  }
}

/* Hide preloader when page is loaded */
.loader-wrap.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
