/* Loading overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
  
/* Container for loading content */
.loading-container {
  text-align: center;
  color: #f9c441;
  font-family: 'Outfit', sans-serif;
}
  
  .loading-container h2 {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
  }
  
  .loading-message {
    font-size: 16px;
    color: #ffffff;
    opacity: 0.9;
    margin-top: 20px;
  }
  
  .loading-bar-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    height: 12px;
    background: #333;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px auto;
  }
  .loading-bar {
    width: 0%;
    height: 100%;
    background: #f9c441;
    transition: width 0.3s ease;
  }

/* Percentage text above the bar */
#loading-progress {
  position: absolute;
  top: -25px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #f9c441;
}
  
 /* Add a subtle pulse effect to the completed loading bar */
 @keyframes completion-pulse {
    0% { box-shadow: 0 0 10px rgba(249, 196, 65, 0.6); }
    50% { box-shadow: 0 0 15px rgba(249, 196, 65, 0.8); }
    100% { box-shadow: 0 0 10px rgba(249, 196, 65, 0.6); }
  }
  
   /* Add a transition effect for the loading-bar reaching 100% */
   .loading-bar.complete {
    width: 100%;
    background: linear-gradient(90deg, #f9c441, #ffdb70);
    animation: none; /* Stop animation once complete */
    transition: width 0.3s ease-out, box-shadow 0.5s ease-out;
    box-shadow: 0 0 15px rgba(249, 196, 65, 0.8);
  }


  /* Add this at the end of loading-styles.css */

/* Hide loading screen once loaded */
.loading-complete #loading-overlay {
    opacity: 0;
    pointer-events: none;
  }
 
  .loading-bar.complete {
    animation: completion-pulse 1.5s ease-in-out;
  }