.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.6s ease-out;
}

.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-screen.hidden {
  display: none;
}

.splash-waves {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,50 C150,80 350,0 600,50 C850,100 1050,20 1200,50 L1200,120 L0,120 Z" fill="%23FAEAF8" opacity="0.3"/></svg>');
  background-size: 50% 100%;
  animation: waveMove 15s linear infinite;
}

.wave:nth-child(2) {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,70 C200,100 400,40 600,70 C800,100 1000,40 1200,70 L1200,120 L0,120 Z" fill="%23F6D6F1" opacity="0.2"/></svg>');
  background-size: 50% 100%;
  animation: waveMove 20s linear infinite reverse;
}

.wave:nth-child(3) {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,90 C250,110 450,70 600,90 C750,110 950,70 1200,90 L1200,120 L0,120 Z" fill="%23F2C1EA" opacity="0.15"/></svg>');
  background-size: 50% 100%;
  animation: waveMove 25s linear infinite;
}

.splash-graphics {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.graphic-element {
  position: absolute;
  opacity: 0.6;
  animation: graphicPass 8s linear infinite;
}

.graphic-element:nth-child(1) {
  top: 15%;
  left: -10%;
  animation-delay: 0s;
}

.graphic-element:nth-child(2) {
  top: 45%;
  left: -10%;
  animation-delay: 2s;
}

.graphic-element:nth-child(3) {
  top: 75%;
  left: -10%;
  animation-delay: 4s;
}

.graphic-element:nth-child(4) {
  top: 30%;
  left: -10%;
  animation-delay: 1s;
}

.graphic-element:nth-child(5) {
  top: 60%;
  left: -10%;
  animation-delay: 3s;
}

.splash-logo-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.splash-logo {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(212, 51, 187, 0.2));
}

@keyframes logoEntrance {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes waveMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes graphicPass {
  0% {
    transform: translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(120vw) rotate(360deg);
    opacity: 0;
  }
}

body[data-theme="dark"] .splash-screen {
  background: #0f0c12;
}

body[data-theme="dark"] .wave {
  filter: brightness(0.4);
}

body[data-theme="dark"] .splash-logo {
  filter: brightness(0) invert(1) drop-shadow(0 10px 30px rgba(212, 51, 187, 0.4));
}

@media (max-width: 768px) {
  .splash-logo {
    width: 160px;
  }
}

@media (max-width: 480px) {
  .splash-logo {
    width: 140px;
  }
}
