.wrapper {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.wrapper.fade-out {
  opacity: 0;
}

/* Loader Styles */

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease-in-out;
  overflow: hidden;
}

.loader.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Animated Background Effect */

.loader-background-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient-pan 15s ease infinite;
  z-index: 1;
}

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

/* Loader Content (Logo + Dots) */

.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  /*Optional: Add a subtle background/padding if needed;*/
  /*background-color: rgba(255, 255, 255, 0.1);*/
  /*padding: 20px;*/
  /*border-radius: 10px;*/
}

.loader-content img {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Loading Dots Styles */

.loading-dots {
  display: flex;
  justify-content: center;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  margin: 0 5px;
  animation: dot-bounce 1.4s infinite ease-in-out both;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.dot:nth-child(1) {
  animation-delay: -0.32s;
}

.dot:nth-child(2) {
  animation-delay: -0.16s;
}

.dot:nth-child(3) {
  animation-delay: 0s;
}

.dot:nth-child(4) {
  animation-delay: 0.16s;
}

@keyframes dot-bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1.0);
  }
}

