/* Preloader Wrapper */
#preloader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  #preloader.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  /* Glass Effect Box */
  .glass-box {
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  /* Loader Rings */
  .loader {
    position: relative;
    width: 60px;
    height: 60px;
  }
  
  .ring {
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid transparent;
    animation: spin 1s linear infinite;
  }
  .ring:nth-child(1) { border-top-color: #00ffe1; }
  .ring:nth-child(2) { border-bottom-color: #ff00c8; animation-delay: 0.3s; }
  .ring:nth-child(3) { border-left-color: #fffc00; animation-delay: 0.6s; }
  
  @keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1); }
  }
  
  /* Typing Text */
  .typing {
    margin-top: 18px;
    font-size: 14px;
    color: #eee;
    font-family: 'Fira Code', monospace;
    height: 1.4em;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #eee;
    animation: blink 0.7s steps(1) infinite;
  }
  
  @keyframes blink {
    50% { border-color: transparent; }
  }
  