.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--page-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
  }

  .loader__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 500px;
  }

  @media screen and (max-width: 768px) {
    .loader__icon {
      width: 300px;
    }
  }

  @media screen and (max-width: 480px) {
    .loader__icon {
      width: 200px;
    }
  }

  .loader__icon img {
    position: relative;
    display: flex;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    animation: logoOpacityAnimation 1s infinite;
  }

    @keyframes logoScaleAnimation {
        0% {
        transform: scale(1);
        }
        50% {
        transform: scale(1.1);
        }
        100% {
        transform: scale(1);
        }
    }

    @keyframes logoOpacityAnimation {
        0% {
            opacity: 1;
        }
        50% {
            opacity: 0.5;
        }
        100% {
            opacity: 1;
        }
    }

.loaderTextBox {
    position: absolute;
    display: none;
    bottom: 40px; 
    left: 50%;
    transform: translate(-200%, 300px); 
    animation: textShow 1s forwards;
    background: rgba(var(--navbar-bg-color-rgb), 0.8);
    padding: 10px 20px;
    border-radius: 10px;
}

.loaderTextBox.show {
    display: flex;
}

@keyframes textShow {
    0% {
        transform: translate(-50%, 200px); 
    }
    100% {
        transform: translate(-50%, 0); 
    }
}

.loaderText {
    color: var(--text-color);
    font-size: 1.2rem;
    text-align: center;
}
