/* Enhanced Loader Styles - OHZI Inspired */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111111;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

.loader.loaded {
  opacity: 0;
  pointer-events: none;
}

.loader__content {
  position: relative;
  width: 120px;
  height: 120px;
}

.loader__shadow {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 12px;
  background: radial-gradient(ellipse at center, rgba(135, 206, 235, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: shadow-pulse 2s ease-in-out infinite;
}

.loader__box {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 50%, #87CEEB 100%);
  border-radius: 16px;
  position: relative;
  animation: box-float 2s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(135, 206, 235, 0.3);
}

.loader__box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: #111111;
  border-radius: 8px;
  animation: inner-rotate 1s linear infinite;
}

.loader__box::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #87CEEB, #B0E0E6, #87CEEB);
  border-radius: 18px;
  opacity: 0.3;
  animation: border-glow 2s ease-in-out infinite;
  z-index: -1;
}

.loader__particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  pointer-events: none;
}

.loader__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #87CEEB;
  border-radius: 50%;
  animation: particle-float 3s ease-in-out infinite;
}

.loader__particle:nth-child(1) {
  top: 20px;
  left: 50%;
  animation-delay: 0s;
}

.loader__particle:nth-child(2) {
  top: 50%;
  right: 20px;
  animation-delay: 0.5s;
}

.loader__particle:nth-child(3) {
  bottom: 20px;
  left: 50%;
  animation-delay: 1s;
}

.loader__particle:nth-child(4) {
  top: 50%;
  left: 20px;
  animation-delay: 1.5s;
}

.loader__text {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #87CEEB;
  text-align: center;
  letter-spacing: 2px;
  opacity: 0.8;
  animation: text-pulse 2s ease-in-out infinite;
}

@keyframes box-float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
  }
  25% { 
    transform: translateY(-15px) rotate(1deg);
  }
  50% { 
    transform: translateY(-10px) rotate(0deg);
  }
  75% { 
    transform: translateY(-15px) rotate(-1deg);
  }
}

@keyframes inner-rotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes border-glow {
  0%, 100% { 
    opacity: 0.3;
    transform: scale(1);
  }
  50% { 
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@keyframes shadow-pulse {
  0%, 100% { 
    transform: translateX(-50%) scale(1);
    opacity: 0.4;
  }
  50% { 
    transform: translateX(-50%) scale(1.3);
    opacity: 0.2;
  }
}

@keyframes particle-float {
  0%, 100% { 
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }
  50% { 
    transform: translateY(-20px) scale(1.2);
    opacity: 1;
  }
}

@keyframes text-pulse {
  0%, 100% { 
    opacity: 0.8;
  }
  50% { 
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .loader__content {
    width: 100px;
    height: 100px;
  }
  
  .loader__box {
    width: 70px;
    height: 70px;
  }
  
  .loader__box::before {
    width: 35px;
    height: 35px;
  }
  
  .loader__shadow {
    width: 70px;
    height: 10px;
  }
  
  .loader__particles {
    width: 100px;
    height: 100px;
  }
  
  .loader__text {
    font-size: 12px;
    bottom: -50px;
  }
}