/* Modern Splash Screen */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #2A2A2A 0%, #2A2A2A 50%, #2A2A2A 100%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'Poppins', sans-serif;
}

.splash-content {
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
}

.splash-logo {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: logoFloat 2s ease-in-out infinite alternate;
}

.splash-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.splash-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0;
  animation: slideUp 1s ease 0.5s forwards;
}

.splash-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
  opacity: 0;
  animation: slideUp 1s ease 0.8s forwards;
    color: white;
}

.splash-loader {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.splash-loader::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: loading 2s ease-in-out infinite;
}

.splash-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { width: 8px; height: 8px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 12px; height: 12px; left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { width: 6px; height: 6px; left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { width: 10px; height: 10px; left: 40%; animation-delay: 0.5s; }
.particle:nth-child(5) { width: 8px; height: 8px; left: 50%; animation-delay: 1.5s; }
.particle:nth-child(6) { width: 14px; height: 14px; left: 60%; animation-delay: 2.5s; }
.particle:nth-child(7) { width: 6px; height: 6px; left: 70%; animation-delay: 0.8s; }
.particle:nth-child(8) { width: 10px; height: 10px; left: 80%; animation-delay: 1.8s; }
.particle:nth-child(9) { width: 8px; height: 8px; left: 90%; animation-delay: 2.2s; }

@keyframes logoFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

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

@keyframes loading {
  0% { left: -100%; }
  50% { left: 0%; }
  100% { left: 100%; }
}

@keyframes float {
  0%, 100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10%, 90% {
    opacity: 1;
  }
  50% {
    transform: translateY(-10vh) rotate(180deg);
  }
}

.fade-out {
  animation: fadeOut 800ms ease both;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

body {
  overflow: hidden;
}

body.splash-hidden {
  overflow: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .splash-content {
    padding: 1rem;
  }
  
  .splash-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
  }
  
  .splash-logo-img {
    width: 60px;
    height: 60px;
  }
  
  .splash-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }
  
  .splash-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .splash-loader {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .splash-logo {
    width: 80px;
    height: 80px;
  }
  
  .splash-logo-img {
    width: 50px;
    height: 50px;
  }
  
  .splash-title {
    font-size: 1.2rem;
  }
  
  .splash-subtitle {
    font-size: 0.9rem;
  }
  
  .splash-loader {
    width: 120px;
  }
}
