.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #2d004d; /* Changed to even darker purple */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
  overflow: hidden;
}

.splash-screen::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(45, 0, 77, 0) 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.splash-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20rem; /* Reduced from 30rem to 20rem */
  font-weight: 700;
  text-shadow: 0 0 10px rgba(191, 149, 63, 0.3);
  animation: pulse 2s infinite;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 0.8;
  margin: 0;
  padding: 0;
}

.splash-logo .dream {
  color: #ffffff;
  opacity: 0;
  animation: fadeIn 1s forwards 0.5s;
  line-height: 0.7;
  margin-bottom: -0.2em; /* Increased negative margin to bring words closer */
}

.splash-logo .jesus {
  /* Single gold color */
  color: #d4af37; /* Rich gold color */
  text-shadow: 
    0 0 30px rgba(212, 175, 55, 0.8),
    0 0 60px rgba(212, 175, 55, 0.4),
    0 2px 5px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeIn 1s forwards 1s, goldPulse 3s infinite 1s;
  line-height: 0.7;
  -webkit-text-stroke: 0.5px rgba(212, 175, 55, 0.3);
}

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

@keyframes goldPulse {
  0% {
    text-shadow: 
      0 0 30px rgba(212, 175, 55, 0.8),
      0 0 60px rgba(212, 175, 55, 0.4),
      0 2px 5px rgba(0, 0, 0, 0.5);
  }
  50% {
    text-shadow: 
      0 0 40px rgba(212, 175, 55, 0.9),
      0 0 80px rgba(212, 175, 55, 0.6),
      0 2px 5px rgba(0, 0, 0, 0.5);
  }
  100% {
    text-shadow: 
      0 0 30px rgba(212, 175, 55, 0.8),
      0 0 60px rgba(212, 175, 55, 0.4),
      0 2px 5px rgba(0, 0, 0, 0.5);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

#main-content {
  opacity: 0;
  transition: opacity 1s ease-in;
}

/* Star animations for splash screen */
.stars-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.star {
  position: absolute;
  opacity: 0;
  animation: twinkle 3s infinite;
  /* Create star shape using clip-path */
  background-color: white;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
}

.star:nth-child(1) {
  width: 8px;
  height: 8px;
  top: 20%;
  left: 30%;
  animation-delay: 0.1s;
}

.star:nth-child(2) {
  width: 12px;
  height: 12px;
  top: 40%;
  left: 15%;
  animation-delay: 0.5s;
}

.star:nth-child(3) {
  width: 10px;
  height: 10px;
  top: 25%;
  left: 60%;
  animation-delay: 0.9s;
}

.star:nth-child(4) {
  width: 14px;
  height: 14px;
  top: 75%;
  left: 75%;
  animation-delay: 1.2s;
}

.star:nth-child(5) {
  width: 12px;
  height: 12px;
  top: 80%;
  left: 25%;
  animation-delay: 0.7s;
}

.star:nth-child(6) {
  width: 8px;
  height: 8px;
  top: 10%;
  left: 85%;
  animation-delay: 0.3s;
}

.star:nth-child(7) {
  width: 10px;
  height: 10px;
  top: 45%;
  left: 90%;
  animation-delay: 1.5s;
}

.star:nth-child(8) {
  width: 9px;
  height: 9px;
  top: 65%;
  left: 10%;
  animation-delay: 0.2s;
}

.star:nth-child(9) {
  width: 14px;
  height: 14px;
  top: 90%;
  left: 50%;
  animation-delay: 0.8s;
}

.star:nth-child(10) {
  width: 11px;
  height: 11px;
  top: 15%;
  left: 45%;
  animation-delay: 1.1s;
}

@keyframes twinkle {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
    box-shadow: 0 0 5px 1px rgba(255, 255, 255, 0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(15deg);
    box-shadow: 0 0 15px 3px rgba(255, 255, 255, 0.9), 0 0 30px 5px rgba(255, 255, 255, 0.5);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(30deg);
    box-shadow: 0 0 5px 1px rgba(255, 255, 255, 0.3);
  }
}
/* Responsive adjustments for the larger splash logo */
@media (max-width: 1200px) {
  .splash-logo {
    font-size: 15rem;
  }
}

@media (max-width: 768px) {
  .splash-logo {
    font-size: 10rem;
  }
}

@media (max-width: 480px) {
  .splash-logo {
    font-size: 6rem;
  }
  
  .splash-logo .dream,
  .splash-logo .jesus {
    display: block;
    text-align: center;
  }
}
/* New splash content container */
.splash-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Adjust the splash logo to fit within the content container */
.splash-logo {
  height: auto;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-5vh); /* Move up slightly to center visually */
}
