/* ═══════════════════════════════════════════════════════
   WHITE VILLA — PREMIUM PAGE LOADER (Homepage Only)
   ═══════════════════════════════════════════════════════ */

/* ── Overlay ── */
#wv-page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0b1a14 0%, #0f2318 40%, #071510 100%);
  overflow: hidden;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

#wv-page-loader.wv-loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Ambient particles ── */
.wv-loader-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.wv-loader-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.45), transparent 70%);
  animation: particleFloat linear infinite;
  opacity: 0;
}

.wv-loader-particle:nth-child(1) {
  width: 5px;
  height: 5px;
  left: 12%;
  animation-duration: 9s;
  animation-delay: 0s;
  top: 80%;
}

.wv-loader-particle:nth-child(2) {
  width: 4px;
  height: 4px;
  left: 28%;
  animation-duration: 11s;
  animation-delay: 1.2s;
  top: 90%;
}

.wv-loader-particle:nth-child(3) {
  width: 7px;
  height: 7px;
  left: 42%;
  animation-duration: 7s;
  animation-delay: 2.1s;
  top: 85%;
}

.wv-loader-particle:nth-child(4) {
  width: 5px;
  height: 5px;
  left: 58%;
  animation-duration: 10s;
  animation-delay: 0.6s;
  top: 88%;
}

.wv-loader-particle:nth-child(5) {
  width: 6px;
  height: 6px;
  left: 72%;
  animation-duration: 12s;
  animation-delay: 1.8s;
  top: 92%;
}

.wv-loader-particle:nth-child(6) {
  width: 3px;
  height: 3px;
  left: 88%;
  animation-duration: 6s;
  animation-delay: 3.2s;
  top: 78%;
}

.wv-loader-particle:nth-child(7) {
  width: 4px;
  height: 4px;
  left: 6%;
  animation-duration: 13s;
  animation-delay: 0.4s;
  top: 82%;
}

.wv-loader-particle:nth-child(8) {
  width: 6px;
  height: 6px;
  left: 94%;
  animation-duration: 8s;
  animation-delay: 2.8s;
  top: 75%;
}

.wv-loader-particle:nth-child(9) {
  width: 3px;
  height: 3px;
  left: 50%;
  animation-duration: 9s;
  animation-delay: 1s;
  top: 95%;
}

.wv-loader-particle:nth-child(10) {
  width: 5px;
  height: 5px;
  left: 35%;
  animation-duration: 10s;
  animation-delay: 4s;
  top: 70%;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }

  10% {
    opacity: 0.9;
  }

  90% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(-115vh) scale(0.4);
    opacity: 0;
  }
}

/* ── Center logo wrapper ── */
.wv-loader-logo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  animation: logoEntrance 0.85s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes logoEntrance {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.88);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Outer glow ring ── */
.wv-loader-glow-ring {
  position: relative;
  width: clamp(110px, 18vw, 150px);
  height: clamp(110px, 18vw, 150px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rotating dashed ring */
.wv-loader-glow-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(212, 175, 55, 0.35);
  animation: ringRotate 8s linear infinite;
}

/* Pulsing soft glow */
.wv-loader-glow-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  animation: ringPulse 2.4s ease-in-out infinite;
}

@keyframes ringRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes ringPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }

  50% {
    transform: scale(1.06);
    opacity: 0.3;
    box-shadow: 0 0 30px 8px rgba(212, 175, 55, 0.15);
  }
}

/* ── Logo circle backdrop ── */
.wv-loader-logo-circle {
  width: clamp(100px, 16vw, 136px);
  height: clamp(100px, 16vw, 136px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* ── Logo image ── */
.wv-loader-logo-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  animation: logoBreathe 3s 1s ease-in-out infinite;
}

@keyframes logoBreathe {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* ── Brand name ── */
.wv-loader-brand {
  text-align: center;
}

.wv-loader-brand-name {
  display: block;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.wv-loader-brand-tagline {
  display: block;
  font-size: clamp(0.62rem, 1.5vw, 0.72rem);
  color: rgba(212, 175, 55, 0.8);
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Divider ── */
.wv-loader-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
  margin: 0 auto 0.2rem;
}

/* ── Progress bar ── */
.wv-loader-progress-wrap {
  width: clamp(160px, 28vw, 240px);
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.wv-loader-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4af37 0%, #f5e08a 50%, #d4af37 100%);
  background-size: 200% 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
  animation: progressShimmer 1.6s linear infinite;
}

@keyframes progressShimmer {
  0% {
    background-position: 200% center;
  }

  100% {
    background-position: -200% center;
  }
}

/* ── Hint text ── */
.wv-loader-hint {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  animation: hintBlink 2s 1s ease-in-out infinite;
}

@keyframes hintBlink {

  0%,
  100% {
    opacity: 0.28;
  }

  50% {
    opacity: 0.65;
  }
}