.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #08080e;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.loader-blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.16;
}

.loader-blob-1 {
  top: -12%;
  left: -10%;
  background: #8b5cf6;
  animation: blob-drift-1 16s ease-in-out infinite alternate;
}

.loader-blob-2 {
  bottom: -15%;
  right: -12%;
  background: #6366f1;
  animation: blob-drift-2 20s ease-in-out infinite alternate;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-logo-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 80deg, rgba(139, 92, 246, 0.95) 180deg, rgba(102, 126, 234, 0.95) 300deg, transparent 320deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: loader-spin 1.3s linear infinite;
}

.loader-logo {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  animation: logo-breath 2.4s ease-in-out infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes logo-breath {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes blob-drift-1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(18vw, 12vh) scale(1.25);
  }
}

@keyframes blob-drift-2 {
  0% {
    transform: translate(0, 0) scale(1.2);
  }
  100% {
    transform: translate(-15vw, -10vh) scale(0.9);
  }
}

@media (max-width: 768px) {
  .loader-logo-wrap {
    width: 78px;
    height: 78px;
  }

  .loader-logo {
    width: 46px;
    height: 46px;
  }
}
