/* Preloader CSS */
#page-loader {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#page-loader img {
  width: 350px;
  margin-bottom: 20px;
  animation: fade 1s ease-in-out infinite alternate;
}

@keyframes fade {
  from { opacity: 1; }
  to { opacity: 0.5; }
}

.loading-bar {
  width: 250px;
  height: 4px;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
}

.loading-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 50%;
  background-color: #00ff3c;
  animation: progress 1s linear infinite;
}

@keyframes progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

body.loaded #page-loader {
  display: none;
}
