/* ==========================================================================
   Forsko - Supreme "Last Level" Cinematic Splash Screen
   Theme: Cyber Dark Navy (#050814) | Electric Cyan | Emerald Success
   ========================================================================== */

:root {
  --splash-accent: #3B82F6;
  --splash-glow: rgba(59, 130, 246, 0.8);
}

/* Fullscreen Master Container */
.forsko-splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #050814;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.7s linear;
  -webkit-user-select: none;
  user-select: none;
  perspective: 1200px;
}

/* Exit Warp Transition State */
.forsko-splash-screen.fade-out {
  opacity: 0;
  transform: scale(1.12);
  filter: blur(25px);
  visibility: hidden;
  pointer-events: none;
}

/* Interactive Canvas Background */
.splash-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Ambient Glow Mesh */
.splash-ambient-mesh {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.28) 0%, transparent 65%),
    radial-gradient(circle at 10% 90%, rgba(139, 92, 246, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.15) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* Lens Flare Burst Effect at 100% Completion */
.splash-lens-flare {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  background: #FFFFFF;
  box-shadow: 0 0 100px 80px rgba(255, 255, 255, 0.95), 
              0 0 220px 160px rgba(59, 130, 246, 0.85),
              0 0 380px 280px rgba(16, 185, 129, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s ease;
}

.splash-lens-flare.active {
  transform: translate(-50%, -50%) scale(2.8);
  opacity: 0.9;
}

/* Top Navigation Bar Inside Splash */
.splash-top-bar {
  position: absolute;
  top: 24px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.splash-greeting-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.splash-time-greeting {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.5px;
  opacity: 0;
  animation: splashFadeIn 0.5s ease 0.3s forwards;
}

.splash-college-tag {
  font-size: 0.78rem;
  color: #94A3B8;
  font-weight: 500;
  opacity: 0;
  animation: splashFadeIn 0.5s ease 0.5s forwards;
  display: flex;
  align-items: center;
  gap: 6px;
}

.splash-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.splash-icon-btn,
.splash-skip-btn {
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  opacity: 0;
  animation: splashFadeIn 0.5s ease 0.4s forwards;
}

.splash-icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.splash-icon-btn:hover,
.splash-skip-btn:hover {
  background: var(--splash-accent);
  border-color: var(--splash-accent);
  box-shadow: 0 0 20px var(--splash-glow);
  transform: translateY(-2px);
}

/* 3D Parallax Center Content Container */
.forsko-splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  position: relative;
  z-index: 2;
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

/* --------------------------------------------------------------------------
   Logo Stage, Hex Shield, Light Beam & Orbital Rings
   -------------------------------------------------------------------------- */
.forsko-splash-logo-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  cursor: pointer;
}

.splash-energy-beam {
  position: absolute;
  top: -140px;
  bottom: -140px;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--splash-accent), #60A5FA, transparent);
  box-shadow: 0 0 20px var(--splash-accent);
  opacity: 0;
  animation: beamPulse 1.4s ease-out 0.2s forwards;
}

.splash-hex-shield {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px dashed rgba(59, 130, 246, 0.3);
  animation: spinClockwise 20s linear infinite;
  pointer-events: none;
}

.forsko-splash-logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  position: relative;
  z-index: 3;
  opacity: 0;
  animation: logoFlipIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  filter: drop-shadow(0 0 20px var(--splash-glow));
}

.forsko-splash-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--splash-glow) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  z-index: 1;
  animation: glowPulse 3s ease-out 0.5s forwards;
}

.splash-ring.ring-outer {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px dashed rgba(96, 165, 250, 0.5);
  animation: spinClockwise 12s linear infinite, ringFadeIn 0.6s ease 0.4s forwards;
  opacity: 0;
  z-index: 2;
}

.splash-ring.ring-middle {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.25);
  animation: ringFadeIn 0.6s ease 0.5s forwards;
  opacity: 0;
  z-index: 2;
}

.splash-ring.ring-inner {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--splash-accent);
  border-right-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 20px var(--splash-glow);
  animation: spinCounterClockwise 4s cubic-bezier(0.4, 0, 0.2, 1) infinite, ringFadeIn 0.6s ease 0.6s forwards;
  opacity: 0;
  z-index: 2;
}

@keyframes beamPulse {
  0% { opacity: 0; height: 0; }
  50% { opacity: 1; height: 360px; }
  100% { opacity: 0.3; height: 100%; }
}

@keyframes spinClockwise { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spinCounterClockwise { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }
@keyframes ringFadeIn { to { opacity: 1; } }

@keyframes logoFlipIn {
  0% { opacity: 0; transform: perspective(500px) rotateY(120deg) scale(0.4); filter: blur(14px); }
  70% { transform: perspective(500px) rotateY(-12deg) scale(1.12); }
  100% { opacity: 1; transform: perspective(500px) rotateY(0deg) scale(1); filter: blur(0); }
}

@keyframes glowPulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.4); }
  100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.15); }
}

/* --------------------------------------------------------------------------
   3D Letter Flip Title & Shimmer
   -------------------------------------------------------------------------- */
.forsko-splash-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: 8px;
  margin: 0 0 6px 0;
}

.splash-letter {
  display: inline-block;
  opacity: 0;
  color: #FFFFFF;
  background: linear-gradient(135deg, #FFFFFF 0%, #93C5FD 50%, var(--splash-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: letter3DFlip 0.75s cubic-bezier(0.16, 1, 0.3, 1) calc(0.9s + (var(--i) * 0.12s)) forwards;
}

@keyframes letter3DFlip {
  0% {
    opacity: 0;
    transform: perspective(400px) rotateX(90deg) translateY(24px);
    filter: blur(12px);
  }
  70% {
    transform: perspective(400px) rotateX(-12deg) translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: perspective(400px) rotateX(0deg) translateY(0);
    filter: blur(0);
  }
}

/* Subtitle */
.forsko-splash-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 2px;
  margin: 0 0 28px 0;
  opacity: 0;
  animation: subtitleFadeIn 0.6s ease 1.8s forwards;
}

@keyframes subtitleFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 0.9; transform: translateY(0); }
}

@keyframes splashFadeIn {
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Cyber Terminal Line Feed
   -------------------------------------------------------------------------- */
.splash-terminal-line {
  font-family: monospace;
  font-size: 0.85rem;
  color: #38BDF8;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: subtitleFadeIn 0.4s ease 2.0s forwards;
}

.terminal-prompt { color: #10B981; font-weight: 700; }
.terminal-cursor {
  animation: cursorBlink 0.8s infinite;
  color: #38BDF8;
  font-weight: 700;
}

@keyframes cursorBlink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* Status Text & Percentage Counter */
.splash-status-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 250px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94A3B8;
  opacity: 0;
  animation: subtitleFadeIn 0.4s ease 2.2s forwards;
}

.splash-module-tag {
  color: var(--splash-accent);
  font-family: monospace;
  font-weight: 700;
}

.splash-percent-text {
  color: var(--splash-accent);
  font-weight: 800;
  font-family: monospace;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Laser Progress Line Loader
   -------------------------------------------------------------------------- */
.forsko-splash-loader {
  width: 250px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  animation: subtitleFadeIn 0.4s ease 2.2s forwards;
}

.forsko-splash-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1D4ED8 0%, var(--splash-accent) 50%, #60A5FA 100%);
  border-radius: 10px;
  position: relative;
  transition: width 0.05s linear;
  box-shadow: 0 0 15px var(--splash-glow);
}

.splash-progress-head {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  background: #FFFFFF;
  box-shadow: 0 0 16px #FFFFFF, 0 0 30px var(--splash-accent);
  border-radius: 50%;
}

/* Academic Tag Badge */
.splash-badge-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(96, 165, 250, 0.85);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.22);
  padding: 5px 16px;
  border-radius: 20px;
  margin-top: 24px;
  letter-spacing: 1px;
  opacity: 0;
  animation: subtitleFadeIn 0.4s ease 2.4s forwards;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .splash-top-bar {
    top: 16px;
    left: 16px;
    right: 16px;
  }

  .splash-college-tag { display: none; }

  .forsko-splash-logo-container {
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
  }

  .forsko-splash-logo {
    width: 70px;
    height: 70px;
  }

  .forsko-splash-title {
    font-size: 2.2rem;
    letter-spacing: 5px;
  }

  .forsko-splash-subtitle {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .splash-status-wrapper,
  .forsko-splash-loader {
    width: 190px;
  }
}
