/* Global loader overlay */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;              /* Initially hidden */
    justify-content: center;    /* Center horizontally */
    align-items: center;        /* Center vertically */
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5);  /* Semi-transparent dark background */
    backdrop-filter: blur(5px); /* Blur the background */
    transition: opacity 0.3s ease;
    opacity: 1;
  }
  
  /* Loader component styles */
  .loader-container {
    position: relative;
    width: 160px;
    height: 160px;
  }
  
  .logo-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #EF4444;
    overflow: hidden;
  }
  
  .building-container {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
  }
  
  .building-wrapper {
    position: absolute;
    bottom: 0;
    animation: grow 2.5s ease-in-out infinite;
  }
  
  .white-outline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
  }
  
  .building {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-color: #2563EB;
  }
  
  /* First building (left) */
  .bw1 {
    width: 20px;
    left: 28px;
    animation-delay: 0s;
    clip-path: polygon(100% 0, 0 15px, 0 100%, 100% 100%);
  }
  
  /* Second building */
  .bw2 {
    width: 16px;
    left: 55px;
    animation-delay: 0.3s;
    clip-path: polygon(0 0, 100% 15px, 100% 100%, 0 100%);
  }
  
  /* Center building - flat top */
  .bw3 {
    width: 20px;
    left: 75px;
    animation-delay: 0.6s;
    clip-path: polygon(0 2px, 100% 2px, 100% 100%, 0 100%);
  }
  
  /* Second to last building */
  .bw4 {
    width: 16px;
    left: 100px;
    animation-delay: 0.9s;
    clip-path: polygon(100% 0, 0 12px, 0 100%, 100% 100%);
  }
  
  /* Last building (right) */
  .bw5 {
    width: 18px;
    left: 120px;
    animation-delay: 1.2s;
    clip-path: polygon(0 0, 100% 12px, 100% 100%, 0 100%);
  }
  
  @keyframes grow {
    0% {
      height: 0;
    }
    50% {
      height: var(--max-height, 100px);
    }
    100% {
      height: 0;
    }
  }
  
  .loading-text {
    position: absolute;
    bottom: -40px;
    width: 100%;
    text-align: center;
    font-size: 16px;
    color: #fff;  /* White text for contrast */
  }
  
  .pulse {
    animation: pulse 2s ease-in-out infinite;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
    }
  }

  .loader.fade-out {
    opacity: 0;
  }
  