/* Modern Loader Styles */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #2d2d2d 50%, #1a1a1a 75%, #0a0a0a 100%);
  background-size: 400% 400%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  animation: gradientShift 3s ease-in-out infinite;
}

.loader-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(199, 134, 101, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(230, 161, 122, 0.3), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(199, 134, 101, 0.4), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(230, 161, 122, 0.3), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(199, 134, 101, 0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 4s linear infinite;
  opacity: 0.6;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes sparkle {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-100px);
  }
}

.loader-container.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  color: white;
  position: relative;
  padding: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.loader-content::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, rgba(199, 134, 101, 0.3), rgba(230, 161, 122, 0.3), rgba(199, 134, 101, 0.3));
  border-radius: 22px;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite;
}

.loader-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  animation: logoPulse 2s ease-in-out infinite;
  position: relative;
  filter: drop-shadow(0 0 20px rgba(199, 134, 101, 0.3));
}

.loader-logo::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle, rgba(199, 134, 101, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: logoGlow 3s ease-in-out infinite;
}

.loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #c78665;
  border-right: 3px solid rgba(199, 134, 101, 0.5);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
  box-shadow: 0 0 15px rgba(199, 134, 101, 0.3);
}

.loader-spinner::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid rgba(199, 134, 101, 0.2);
  border-radius: 50%;
  animation: spin 2s linear infinite reverse;
}

.loader-text {
  font-family: "Cormorant", serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
  animation: textFade 2s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(199, 134, 101, 0.5);
  letter-spacing: 1px;
}

.loader-subtitle {
  font-family: "Hind", sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  font-weight: 300;
  letter-spacing: 0.5px;
  animation: subtitleGlow 3s ease-in-out infinite;
}

.loader-progress {
  width: 200px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loader-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: progressShine 2s ease-in-out infinite;
}

.loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #c78665, #e6a17a, #f4b366);
  border-radius: 3px;
  width: 0%;
  animation: progressFill 3s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(199, 134, 101, 0.5);
  position: relative;
}

.loader-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.loader-dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(45deg, #c78665, #e6a17a);
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite both;
  box-shadow: 0 0 8px rgba(199, 134, 101, 0.4);
  position: relative;
}

.loader-dot::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.loader-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
  animation-delay: -0.16s;
}

.loader-dot:nth-child(3) {
  animation-delay: 0s;
}

/* Animations */
@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes logoGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes textFade {
  0%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-5px);
  }
}

@keyframes subtitleGlow {
  0%, 100% {
    opacity: 0.8;
    text-shadow: 0 0 5px rgba(199, 134, 101, 0.3);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 15px rgba(199, 134, 101, 0.6);
  }
}

@keyframes progressFill {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

@keyframes progressShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes borderGlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes dotPulse {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .loader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }
  
  .loader-spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
  }
  
  .loader-text {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .loader-subtitle {
    font-size: 12px;
    margin-bottom: 20px;
  }
  
  .loader-progress {
    width: 150px;
  }
  
  .loader-dots {
    gap: 6px;
    margin-top: 15px;
  }
  
  .loader-dot {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 480px) {
  .loader-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
  
  .loader-spinner {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
  }
  
  .loader-text {
    font-size: 18px;
    margin-bottom: 6px;
  }
  
  .loader-subtitle {
    font-size: 11px;
    margin-bottom: 15px;
  }
  
  .loader-progress {
    width: 120px;
  }
  
  .loader-dots {
    gap: 4px;
    margin-top: 10px;
  }
  
  .loader-dot {
    width: 5px;
    height: 5px;
  }
} 