/* CyberShield Splash Screen - Animated & Fully Interactive */

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1628 0%, #0f172a 40%, #1e3a8a 70%, #0f172a 100%);
  background-size: 400% 400%;
  animation: splash-bg-shift 8s ease-in-out infinite;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  cursor: pointer;
  overflow: hidden;
}

.splash-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
  transition: background 0.2s ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes splash-bg-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transform: translate(var(--parallax-x, 0), var(--parallax-y, 0));
  transition: transform 0.12s ease-out;
}

/* Lock + Keys Container */
.splash-icons {
  position: relative;
  width: 160px;
  height: 160px;
  cursor: pointer;
}

.splash-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  z-index: 2;
  animation: splash-lock-pulse 2s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.splash-lock:hover {
  transform: scale(1.08) rotate(-3deg);
}

.splash-lock:active {
  transform: scale(0.98);
}

.splash-lock svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.6));
  transition: filter 0.3s ease;
}

.splash-lock:hover svg {
  filter: drop-shadow(0 0 24px rgba(59, 130, 246, 0.8));
}

/* Shackle unlock animation */
.splash-lock .lock-shackle {
  transform-origin: 12px 11px;
  animation: splash-shackle-sway 3s ease-in-out infinite;
}

@keyframes splash-shackle-sway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.splash-key {
  position: absolute;
  width: 30px;
  height: 30px;
  opacity: 0.9;
  animation: splash-key-float 2.5s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.splash-key:hover {
  transform: scale(1.2);
  opacity: 1;
}

.splash-key svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
  transition: filter 0.2s ease;
}

.splash-key:hover svg {
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.8));
}

.splash-key:nth-child(2) { top: 0; left: 50%; margin-left: -15px; animation-delay: 0s; }
.splash-key:nth-child(3) { top: 50%; right: -12px; margin-top: -15px; animation-delay: 0.4s; }
.splash-key:nth-child(4) { bottom: 0; left: 50%; margin-left: -15px; animation-delay: 0.8s; }
.splash-key:nth-child(5) { top: 50%; left: -12px; margin-top: -15px; animation-delay: 1.2s; }
.splash-key:nth-child(6) { top: 8px; right: 8px; animation-delay: 0.2s; }
.splash-key:nth-child(7) { bottom: 8px; left: 8px; animation-delay: 0.6s; }

@keyframes splash-lock-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.95; }
}

@keyframes splash-key-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(8deg); }
  75% { transform: translateY(4px) rotate(-8deg); }
}

/* Brand text */
.splash-brand {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #60a5fa, #3b82f6, #10b981);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: splash-text-shimmer 3s ease-in-out infinite;
}

.splash-tagline {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  animation: splash-tagline-fade 2s ease-in-out infinite;
}

@keyframes splash-text-shimmer {
  0%, 100% { background-position: 0% 50%; opacity: 1; }
  50% { background-position: 100% 50%; opacity: 0.95; }
}

@keyframes splash-tagline-fade {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

/* Interactive progress bar */
.splash-progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 0.25rem;
}

.splash-progress {
  width: 140px;
  height: 4px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.splash-progress:hover {
  transform: scaleY(1.3);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.splash-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 4px;
  transition: width 0.2s ease-out;
  animation: splash-progress-fill 2s ease-out forwards;
}

.splash-progress-bar.filled {
  width: 100% !important;
  animation: none;
}

@keyframes splash-progress-fill {
  to { width: 100%; }
}

.splash-skip-hint {
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.7);
  letter-spacing: 0.1em;
  animation: splash-hint-pulse 1.5s ease-in-out infinite;
}

@keyframes splash-hint-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes splash-text-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}
