body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f172a;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    padding: 20px;
}

.loader-con {
    position: relative;
    width: 260px;
    height: 100px;
    overflow: hidden;
}

.pfile {
    position: absolute;
    bottom: 20px;
    width: 40px;
    height: 50px;
    background: linear-gradient(90deg, #229aaf, #8dc2cb);
    border-radius: 6px;
    transform-origin: center;
    animation: flyRight 3s ease-in-out infinite;
    opacity: 0;
}

.pfile::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 28px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
}

.pfile::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 6px;
    width: 18px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
}

.pfile {
  animation-delay: calc(var(--i) * 0.5s);
}

@keyframes flyRight {
  0% {
    left: -20%;
    transform: scale(0.2) rotate(-10deg);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  50% {
    left: 40%;
    transform: scale(1.1) rotate(0deg);
    opacity: 1;
  }

  100% {
    left: 110%;
    transform: scale(0.2) rotate(10deg);
    opacity: 0;
  }
}

.loading-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: textBounce 1.5s ease-in-out infinite;
}

/* Small idle bounce */
@keyframes textBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 480px) {
  .loader-con {
    width: 220px;
    height: 90px;
  }

.pfile {
    width: 34px;
    height: 44px;
  }

  .loading-text {
    font-size: 0.9rem;
  }
}

/* Transition */
.wrapper {
    transition: opacity 0.8s ease, transform 0.8s ease;
    opacity: 1;
    transform: scale(1);
}

.wrapper.fade-out {
    opacity: 0;
    transform: scale(1.05);
}