/* 🌐 Viewport height fix for mobile browsers */
:root {
  --vh: 100vh;
}


#jyoti-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  transition: opacity 1s ease;
  
  /* 🌈 Divine, warm, blended background */
  background: radial-gradient(circle at center, #fffbe6 0%, #ffe4b5 30%, lightskyblue 100%);
  background-size: cover;
  animation: loaderGradient 6s ease infinite;
}

/* 🔆 Jyoti Content Centered */
.jyoti-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}


/* 📝 Loader Text Styling */
.jyoti-text {
  font-size: 1.2rem;
  color: #6A0DAD;
  font-weight: bold;
  font-family: 'Trebuchet MS', sans-serif;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: opacity 0.4s ease;
}

/* 🚫 Freeze Scroll While Loading */
body.freeze-scroll {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

/* ✅ Fade Out Loader When Page is Ready */
body.loaded #jyoti-loader {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

/* 🌟 Modern Progress Bar */
.progress-container {
  width: 220px;
  height: 6px;
  background: #e0e0e0;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: -10px;
  animation: fadeIn 0.5s ease forwards 0.3s;
  opacity: 0;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #007aff, #00d4ff);
  border-radius: 50px;
  transition: width 1.5s ease-in-out;
}

@keyframes loadProgress {
  100% {
    width: 100%;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
