/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to left, rgb(18, 21, 61), rgb(10, 10, 35));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Keep on top */
  }
  
  .preloader img {
    width: 200px; /* Starting size of the preloader image */
    height: 250px;
    animation: move-to-favicon 2s forwards ease-in-out; /* Animation */
    opacity: 1;
  }
  
  @keyframes move-to-favicon {
    0% {
      transform: translate(0, 0) scale(1); /* Start at center */
      opacity: 1;
    }
    90% {
      transform: translate(calc(-50vw + 32px), calc(-50vh + 32px)) scale(0.1); /* Move to top-left */
      opacity: 0.7;
    }
    100% {
      transform: translate(calc(-50vw + 16px), calc(-50vh + 16px)) scale(0); /* Shrink to 0 */
      opacity: 0;
    }
  }
  
  /* Prevent scrolling while preloader is visible */
  .no-scroll {
    overflow: hidden;
  }
