#initial-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #0f0f0f 0%,
    #1a1a1a 15%,
    #2d2d2d 30%,
    #3a3a3a 50%,
    #2d2d2d 70%,
    #1a1a1a 85%,
    #0f0f0f 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.8s ease-out,
    visibility 0.8s ease-out;
}

#initial-loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  max-width: 600px;
  padding: 2rem;
}

.loading-screen .logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.loading-screen .logo {
  width: 90px;
  height: 90px;
  filter: drop-shadow(0 6px 20px rgba(241, 195, 56, 0.5));
  transition: transform 0.3s ease;
  animation: spiritualRadiance 4s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

/* Highly enhanced shining effect - ONLY for initial loading screen logo */
.loading-screen .logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.8) 15%,
    rgba(255, 255, 255, 0.95) 30%,
    rgba(255, 255, 255, 1) 45%,
    rgba(255, 255, 255, 1) 55%,
    rgba(255, 255, 255, 0.95) 70%,
    rgba(255, 255, 255, 0.8) 85%,
    transparent 100%
  );
  animation: initialLoadingShine 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
  border-radius: 50%;
  box-shadow:
    0 0 35px rgba(255, 255, 255, 0.8),
    0 0 70px rgba(255, 255, 255, 0.4),
    inset 0 0 25px rgba(255, 255, 255, 0.3);
}

.loading-screen .logo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(241, 195, 56, 0.3);
  border-radius: 50%;
  animation: energyPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  box-shadow:
    0 0 0 10px rgba(241, 195, 56, 0.1),
    0 0 0 20px rgba(241, 195, 56, 0.05);
}

.loading-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  align-items: flex-start;
}

.loading-logo-line-1 {
  color: #b22222;
  font-weight: 800;
  font-size: 3.2rem;
  position: relative;
  margin-bottom: -3px;
  text-align: left;
  line-height: var(--logo-line-height, 1);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
  animation: textSlideIn 0.8s ease-out 0.4s both;
}

.loading-logo-line-2 {
  color: #ffffff;
  font-weight: 700;
  font-size: 2.6rem;
  margin-top: 0;
  position: relative;
  text-align: left;
  line-height: var(--logo-line-height, 1);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
  animation: textSlideIn 0.8s ease-out 0.5s both;
}

.tagline {
  font-size: 1.8rem;
  font-weight: 600;
  color: #f1c338;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  animation: slideInUp 0.8s ease-out 0.6s both;
  letter-spacing: 0.5px;
}

.welcome-message {
  font-size: 1.1rem;
  font-weight: 400;
  color: #e0e0e0;
  margin: 0 0 1.5rem 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  animation: slideInUp 0.8s ease-out 0.7s both;
  text-align: center;
  opacity: 0.9;
  font-style: italic;
}

.description {
  font-size: 1.2rem;
  font-weight: 400;
  color: #e0e0e0;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: slideInRight 0.8s ease-out 0.6s both;
}

.loading-animation {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  animation: slideInUp 0.8s ease-out 0.9s both;
}

.dot {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #f1c338 0%, #ff8c00 70%, #f1c338 100%);
  border-radius: 50%;
  animation: diyaGlow 2s ease-in-out infinite;
  box-shadow:
    0 0 8px rgba(241, 195, 56, 0.6),
    0 0 16px rgba(241, 195, 56, 0.4),
    0 0 24px rgba(241, 195, 56, 0.2),
    inset 0 0 4px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: visible;
  will-change: transform, opacity, box-shadow;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.dot::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: radial-gradient(
    circle,
    rgba(241, 195, 56, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: diyaGlowRing 2s ease-in-out infinite;
  z-index: -1;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.dot::after {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: radial-gradient(
    circle,
    rgba(255, 140, 0, 0.2) 0%,
    transparent 60%
  );
  border-radius: 50%;
  animation: diyaGlowOuter 2s ease-in-out infinite;
  z-index: -2;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(2)::before {
  animation-delay: 0.2s;
}

.dot:nth-child(2)::after {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

.dot:nth-child(3)::before {
  animation-delay: 0.4s;
}

.dot:nth-child(3)::after {
  animation-delay: 0.4s;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spiritualRadiance {
  0%,
  100% {
    filter: drop-shadow(0 6px 20px rgba(241, 195, 56, 0.5))
      drop-shadow(0 0 30px rgba(241, 195, 56, 0.3));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 8px 25px rgba(241, 195, 56, 0.7))
      drop-shadow(0 0 40px rgba(241, 195, 56, 0.5))
      drop-shadow(0 0 60px rgba(241, 195, 56, 0.3));
    transform: scale(1.05);
  }
}

@keyframes initialLoadingShine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Enhanced mobile shine for initial loading screen */
@media (max-width: 768px) {
  .loading-screen .logo::after {
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.9) 10%,
      rgba(255, 255, 255, 0.98) 25%,
      rgba(255, 255, 255, 1) 40%,
      rgba(255, 255, 255, 1) 60%,
      rgba(255, 255, 255, 0.98) 75%,
      rgba(255, 255, 255, 0.9) 90%,
      transparent 100%
    );
    animation: initialLoadingShine 2s ease-in-out infinite;
    box-shadow:
      0 0 45px rgba(255, 255, 255, 0.9),
      0 0 90px rgba(255, 255, 255, 0.5),
      0 0 135px rgba(255, 255, 255, 0.2),
      inset 0 0 35px rgba(255, 255, 255, 0.4);
  }
}

@media (max-width: 480px) {
  .loading-screen .logo::after {
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.95) 5%,
      rgba(255, 255, 255, 1) 20%,
      rgba(255, 255, 255, 1) 35%,
      rgba(255, 255, 255, 1) 65%,
      rgba(255, 255, 255, 1) 80%,
      rgba(255, 255, 255, 0.95) 95%,
      transparent 100%
    );
    animation: initialLoadingShine 1.7s ease-in-out infinite;
    box-shadow:
      0 0 55px rgba(255, 255, 255, 1),
      0 0 110px rgba(255, 255, 255, 0.6),
      0 0 165px rgba(255, 255, 255, 0.3),
      inset 0 0 45px rgba(255, 255, 255, 0.5);
  }
}

@keyframes energyPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

@keyframes textSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes textGlow {
  0% {
    text-shadow:
      0 2px 8px rgba(0, 0, 0, 0.5),
      0 0 20px rgba(241, 195, 56, 0.3);
  }
  100% {
    text-shadow:
      0 2px 8px rgba(0, 0, 0, 0.5),
      0 0 30px rgba(241, 195, 56, 0.5);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes diyaGlow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.9);
    box-shadow:
      0 0 8px rgba(241, 195, 56, 0.4),
      0 0 16px rgba(241, 195, 56, 0.2),
      0 0 24px rgba(241, 195, 56, 0.1),
      inset 0 0 4px rgba(255, 255, 255, 0.2);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
    box-shadow:
      0 0 12px rgba(241, 195, 56, 0.8),
      0 0 24px rgba(241, 195, 56, 0.6),
      0 0 36px rgba(241, 195, 56, 0.4),
      0 0 48px rgba(255, 140, 0, 0.2),
      inset 0 0 6px rgba(255, 255, 255, 0.4);
  }
}

@keyframes diyaGlowRing {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@keyframes diyaGlowOuter {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(0.6);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.4);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .loading-screen .logo-container {
    gap: 0.75rem;
  }
  .loading-logo-line-1 {
    font-size: 2.4rem;
  }
  .loading-logo-line-2 {
    font-size: 2rem;
  }
  .tagline {
    font-size: 1.4rem;
  }
  .welcome-message {
    font-size: 1rem;
  }
  .description {
    font-size: 1.1rem;
  }
  .loading-screen .logo {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .loading-screen .logo-container {
    gap: 0.5rem;
  }
  .loading-logo-line-1 {
    font-size: 2rem;
  }
  .loading-logo-line-2 {
    font-size: 1.7rem;
  }
  .tagline {
    font-size: 1.2rem;
  }
  .welcome-message {
    font-size: 0.9rem;
  }
  .description {
    font-size: 1rem;
  }
  .loading-screen .logo {
    width: 60px;
    height: 60px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .welcome-message,
  .loading-logo-line-1,
  .loading-logo-line-2,
  .tagline,
  .description,
  .loading-animation,
  .dot,
  .loading-screen .logo-container,
  .loading-screen .logo,
  .loading-screen .logo::before,
  .loading-screen .logo::after {
    animation: none;
    transition: none;
  }
}
