/* ============================================
   Page Loader - Modern Elegant
   ============================================ */

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  pointer-events: all;
}

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

.loader-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.loader-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
}

.loader-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.ring-segment {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: #a4b25d;
  border-radius: 50%;
  animation: ring-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.ring-segment:nth-child(1) {
  animation-delay: 0s;
  border-top-color: #a4b25d;
  opacity: 1;
}

.ring-segment:nth-child(2) {
  animation-delay: -0.4s;
  border-top-color: rgba(164, 178, 93, 0.6);
  opacity: 0.8;
  transform: scale(0.85);
}

.ring-segment:nth-child(3) {
  animation-delay: -0.8s;
  border-top-color: rgba(164, 178, 93, 0.3);
  opacity: 0.6;
  transform: scale(0.7);
}

.loader-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-dot {
  width: 8px;
  height: 8px;
  background: #a4b25d;
  border-radius: 50%;
  animation: center-pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(164, 178, 93, 0.5);
}

@keyframes ring-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes center-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 12px rgba(164, 178, 93, 0.5);
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
    box-shadow: 0 0 20px rgba(164, 178, 93, 0.8);
  }
}

