/* Professional Loading Screen */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(2px);
}

.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  color: #1E40AF;
  position: relative;
}

.logo-container {
  position: relative;
  margin-bottom: 2rem;
}

.logo {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  animation: horseAnimation 2.5s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
  position: relative;
}

.logo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.logo-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.company-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(30, 64, 175, 0.2);
  border-top: 4px solid #1E40AF;
  border-radius: 50%;
  margin: 2.5rem auto 1.5rem;
  opacity: 0;
  animation: spin 1.2s linear infinite, fadeIn 0.8s ease-out 1.2s forwards;
}

.loading-text {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1.4s forwards, pulse 2.5s ease-in-out 2s infinite;
  letter-spacing: 1px;
}

/* Professional Keyframe Animations */
@keyframes horseAnimation {
  0% {
    transform: scale(0.8) translateX(-40px);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3) translateX(40px);
    opacity: 1;
  }
  100% {
    transform: scale(0.8) translateX(-40px);
    opacity: 0.7;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo {
    width: 120px;
    height: 120px;
  }
  
  .logo-icon {
    width: 50px;
    height: 50px;
  }
  
  .company-name {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 100px;
    height: 100px;
  }
  
  .logo-icon {
    width: 45px;
    height: 45px;
  }
  
  .company-name {
    font-size: 1.25rem;
  }
  
  .loading-text {
    font-size: 0.9rem;
  }
}