
/* animations.css */
.fade-in {
    animation: fadeIn 2s ease-in-out, scaleIn 2s ease-in-out;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes scaleIn {
    from {
      transform: scale(0.9);
    }
    to {
      transform: scale(1);
    }
  }
  
  .loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
  }
  
  .loader.hidden {
    opacity: 0;
    pointer-events: none; /* Prevents interaction when hidden */
  }
  
  @keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
  
  /* Spinner animation */
  .spinner {
    border: 10px solid #f3f3f3; /* Light grey */
    border-top: 10px solid #111; /* Blue */
    border-radius: 50%;
    width: 100px;
    height: 100px;
    animation: spin 2s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Text animation */
  .text-fade-in {
    animation: textFadeIn 2s ease-in-out;
  }
  
  @keyframes textFadeIn {
    from {
      opacity: 0;
      transform: translateY(20px); /* Optional: adds a slight upward movement */
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  