 /* Loader full screen */
#loader-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
    flex-direction: column; /* ensures title appears below SVG */
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  overflow: hidden;
  background: linear-gradient(135deg, #00246b, #8ab6f9); /* gradient base */
}



    /* Hide main content initially */
    #main-content {
      display: none;
    }

.loader {
  width: 20em; /* default for large screens */
  height: 20em;
  max-width: 80vw; /* ensures it doesn't overflow on very small screens */
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}

    .loader path {
      stroke: #000;
      stroke-width: 0.6px;
      animation: dashArray 4s ease-in-out infinite,
                 dashOffset 4s linear infinite;
    }

    @keyframes dashArray {
      0% { stroke-dasharray: 0 1 359 0; }
      50% { stroke-dasharray: 0 359 1 0; }
      100% { stroke-dasharray: 359 1 0 0; }
    }

    @keyframes dashOffset {
      0% { stroke-dashoffset: 365; }
      100% { stroke-dashoffset: 5; }
    }

    

    /* Medium devices (tablets) */
@media (max-width: 768px) {
  .loader {
    width: 15em;
    height: 15em;
  }
}

/* Small devices (phones) */
@media (max-width: 480px) {
  .loader {
    width: 10em;
    height: 10em;
  }
}

.loader-title {
  font-family: 'Exo 2', sans-serif;
  font-weight: 900;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 1.5rem;
  color: #000000;
  z-index: 1;
  opacity: 0;letter-spacing: 2px;
  animation: fadeUp 2s ease-out forwards;
  animation-delay: 1s;
}

/* Each letter gets individual scaling */
.loader-title span {
  display: inline-block;
  transition: transform 0.4s ease, color 0.4s ease;
  background-color: black;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* The scaling curve – smaller in the middle */
.loader-title span:nth-child(1),
.loader-title span:nth-child(9) {
  transform: scale(1.3);
}
.loader-title span:nth-child(2),
.loader-title span:nth-child(8) {
  transform: scale(1.2);
}
.loader-title span:nth-child(3),
.loader-title span:nth-child(7) {
  transform: scale(1.15);
}
.loader-title span:nth-child(4),
.loader-title span:nth-child(6) {
  transform: scale(1.1);
}
.loader-title span:nth-child(5) {
  transform: scale(1.0);
}

/* Fade-up animation */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .loader-title span {
    font-size: 2rem;
  }
}

@media (min-width: 769px) {
  .loader-title span {
    font-size: 3.5rem;
  }
}
