/* Website Preloader - Progress Bar Style */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 30%, #2563eb 60%, #1e40af 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  width: 90%;
  max-width: 600px;
  animation: fadeInUp 0.8s ease;
}

.preloader-logo {
  font-size: 120px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  letter-spacing: -4px;
  margin-bottom: 20px;
  animation: logoFloat 2s ease-in-out infinite;
}

.preloader-text {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 30px;
  opacity: 0.95;
  letter-spacing: 1px;
}

/* Progress Bar Container */
.preloader-progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* Progress Bar Fill */
.preloader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
  border-radius: 10px;
  animation: progressAnimation 2s ease-out forwards;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  position: relative;
}

/* Shimmer effect */
.preloader-progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.5s infinite;
}

/* Loading percentage text */
.preloader-percentage {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
  opacity: 0.95;
  letter-spacing: 1px;
}

.preloader-tagline {
  margin-top: 10px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Animations */
@keyframes progressAnimation {
  0% { width: 0%; }
  20% { width: 30%; }
  40% { width: 50%; }
  60% { width: 75%; }
  80% { width: 90%; }
  100% { width: 100%; }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Film strip decoration */
.film-strip {
  position: absolute;
  width: 100%;
  height: 20px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 0px,
    rgba(255, 255, 255, 0.1) 10px,
    transparent 10px,
    transparent 20px
  );
}

.film-strip.top {
  top: 40px;
}

.film-strip.bottom {
  bottom: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .preloader-logo {
    font-size: 80px;
  }
  
  .preloader-text {
    font-size: 22px;
  }
  
  .preloader-tagline {
    font-size: 14px;
  }
  
  .preloader-spinner {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .preloader-logo {
    font-size: 60px;
  }
  
  .preloader-text {
    font-size: 18px;
  }
  
  .preloader-tagline {
    font-size: 12px;
  }
}

