/* ========================================
   UMOJA TALENT - PRELOADER PROFESSIONNEL
   ======================================== */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3a5f 0%, #0d4a6b 50%, #1e3a5f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.preloader-content {
  text-align: center;
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo Container */
.preloader-logo {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
}

.preloader-logo-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #0d9488;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.preloader-logo-ring:nth-child(2) {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-top-color: rgba(255, 255, 255, 0.5);
  animation-duration: 1.5s;
  animation-direction: reverse;
}

.preloader-logo-ring:nth-child(3) {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-top-color: #0d9488;
  animation-duration: 1s;
}

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

/* Logo Icon */
.preloader-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-icon i {
  font-size: 2rem;
  color: #fff;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Title */
.preloader-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: 1px;
}

/* Tagline */
.preloader-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #0d9488;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  margin: 0 0 2.5rem;
}

/* Progress Bar */
.preloader-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.preloader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0d9488, #14b8a6);
  border-radius: 2px;
  animation: progress 1.5s ease-in-out forwards;
}

@keyframes progress {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* Loading Dots */
.preloader-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.preloader-dots span {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite;
}

.preloader-dots span:nth-child(1) {
  animation-delay: 0s;
}

.preloader-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.preloader-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 80%, 100% {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1);
  }
  40% {
    background: #0d9488;
    transform: scale(1.2);
  }
}

/* Particles Background */
.preloader-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.preloader-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(13, 148, 136, 0.5);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.preloader-particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.preloader-particle:nth-child(2) {
  top: 60%;
  left: 20%;
  animation-delay: 1s;
  width: 6px;
  height: 6px;
}

.preloader-particle:nth-child(3) {
  top: 30%;
  left: 80%;
  animation-delay: 2s;
}

.preloader-particle:nth-child(4) {
  top: 70%;
  left: 85%;
  animation-delay: 3s;
  width: 5px;
  height: 5px;
}

.preloader-particle:nth-child(5) {
  top: 80%;
  left: 50%;
  animation-delay: 4s;
}

.preloader-particle:nth-child(6) {
  top: 10%;
  left: 60%;
  animation-delay: 5s;
  width: 7px;
  height: 7px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.5;
  }
  25% {
    transform: translateY(-20px) translateX(10px);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px) translateX(-10px);
    opacity: 0.7;
  }
  75% {
    transform: translateY(-30px) translateX(5px);
    opacity: 0.9;
  }
}

/* Responsive */
@media (max-width: 576px) {
  .preloader-logo {
    width: 80px;
    height: 80px;
  }
  
  .preloader-icon i {
    font-size: 1.5rem;
  }
  
  .preloader-title {
    font-size: 1.5rem;
  }
  
  .preloader-tagline {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }
  
  .preloader-progress {
    width: 150px;
  }
}
