/* Animations for  Repair Home */

/* Loader */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-white, #ffffff);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
}

.loader {
  width: 150px;
  height: 150px;
  background-image: url('../assets/Logos/Logo1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 10px;
  animation: pulse 1.5s ease-in-out infinite;
}

@media (min-width: 768px) {
  .loader {
    width: 300px;
    height: 300px;
    margin-bottom: 15px;
  }
}

.loading-bar-wrapper {
  width: 300px;
  height: 3px;
  background: #0b2244;
  position: relative;
  margin-bottom: 15px;
  border-radius: 2px;
}

.loading-dot {
  width: 10px;
  height: 10px;
  background-color: #0b2244;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: moveDot 2s ease-in-out infinite alternate;
  box-shadow: 0 0 0 2px #fff;
}

.loading-text {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #0b2244;
  letter-spacing: 5px;
  text-transform: uppercase;
  animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes moveDot {
  0% {
    left: 0%;
    background-color: #0b2244;
  }

  100% {
    left: 100%;
    background-color: #0b2244;
  }
}

@keyframes pulseText {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

/* Micro-interactions */
.image-zoom {
  overflow: hidden;
}

.image-zoom img {
  transition: transform 0.5s ease;
}

.image-zoom:hover img {
  transform: scale(1.05);
}

/* Keyframes for Hero */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  animation: fadeInUp 1s ease-out forwards;
}

.hero-content p {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-content .hero-btns {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s forwards;
}