/* ============================================
   PAKTI - Splash Screen / Landing Page
   ============================================ */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 25%, #1a73e8 50%, #0d47a1 75%, #0a3d7a 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animated Background Particles */
.splash-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Logo Container */
.splash-logo-container {
  position: relative;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease forwards;
}

.splash-logo-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4), 0 0 30px rgba(26, 115, 232, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0), 0 0 50px rgba(26, 115, 232, 0.2);
    transform: scale(1.02);
  }
}

.splash-logo-icon {
  font-size: 60px;
  color: #ffffff;
}

/* Platform Name */
.splash-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 8px;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.splash-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease 0.5s forwards;
  opacity: 0;
}

/* Progress Bar Container */
.splash-progress-container {
  width: 300px;
  animation: fadeInUp 0.8s ease 0.7s forwards;
  opacity: 0;
}

.splash-progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
}

.splash-progress-percent {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.splash-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.splash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4fc3f7, #ffffff, #4fc3f7);
  background-size: 200% 100%;
  border-radius: 10px;
  width: 0%;
  transition: width 0.1s linear;
  animation: shimmerProgress 1.5s ease-in-out infinite;
  position: relative;
}

.splash-progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  filter: blur(5px);
}

@keyframes shimmerProgress {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Loading Text */
.splash-loading-text {
  margin-top: 25px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  animation: fadeInUp 0.8s ease 0.9s forwards, pulseText 1.5s ease-in-out infinite;
  opacity: 0;
}

.splash-loading-dots::after {
  content: '';
  animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

@keyframes pulseText {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Footer Info */
.splash-footer {
  position: absolute;
  bottom: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  animation: fadeInUp 0.8s ease 1.1s forwards;
  opacity: 0;
}

.splash-footer i {
  margin-right: 5px;
}

/* Splash Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

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