 #loader {
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 100vw;
      background: rgba(0, 0, 0, 0.9); /* black with opacity */
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: opacity 0.5s ease;
    }

    /* Spinner with white background circle */
    .spinner-circle {
      position: relative;
      width: 120px;
      height: 120px;
      background: white;
      border-radius: 50%;
      box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    }

    /* Rotating ring */
    .spinner-ring {
      position: absolute;
      width: 100%;
      height: 100%;
      border: 8px solid #ddd;
      border-top: 8px solid #4b3eff;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    /* Static logo in center */
    .spinner-logo {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width:80px;
      height: auto;
    }

    /* Spin animation */
    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Hide loader when page is loaded */
    body.loaded #loader {
      opacity: 0;
      pointer-events: none;
      visibility: hidden;
    }