/* ============================================
   ADVANCED PRELOADER
   ============================================ */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #0A0A1A;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.preloader-content{
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}
.preloader-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}

/* ===== ANIMATED BACKGROUND ===== */
.preloader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: floatCircle 8s ease-in-out infinite;
}

.bg-circle.circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    background: linear-gradient(135deg, #0F5C73, #45E688);
    animation-delay: 0s;
}

.bg-circle.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: linear-gradient(135deg, #45E688, #0F5C73);
    animation-delay: 2s;
}

.bg-circle.circle-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 92, 115, 0.05);
    animation-delay: 4s;
}

.bg-circle.circle-4 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 10%;
    background: rgba(69, 230, 136, 0.08);
    animation-delay: 1s;
}

@keyframes floatCircle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(30px, 10px) scale(1.02);
    }
}

/* ===== PRELOADER ICON ===== */
.preloader-icon {
    position: relative;
    margin-bottom: 10px;
}

.icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-shape {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(69, 230, 136, 0.1);
    animation: pulseRing 2s ease-out infinite;
}

.icon-shape:nth-child(1) {
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.icon-shape:nth-child(2) {
    width: 80px;
    height: 80px;
    animation-delay: 0.5s;
}

.icon-shape:nth-child(3) {
    width: 60px;
    height: 60px;
    animation-delay: 1s;
}

.icon-shape:nth-child(4) {
    width: 40px;
    height: 40px;
    animation-delay: 1.5s;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.icon-wrapper i {
    font-size: 40px;
    color: #45E688;
    z-index: 2;
    animation: pulseIcon 1.5s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== ANIMATED TEXT ===== */
.preloader-text {
    position: relative;
}

.txt-loading {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.letters-loading {
    font-family: 'SpaceGrotesk-Bold', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    position: relative;
    animation: letterBounce 1.2s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.letters-loading:nth-child(1) { animation-delay: 0.0s; }
.letters-loading:nth-child(2) { animation-delay: 0.1s; }
.letters-loading:nth-child(3) { animation-delay: 0.2s; }
.letters-loading:nth-child(4) { animation-delay: 0.3s; }
.letters-loading:nth-child(5) { animation-delay: 0.4s; }
.letters-loading:nth-child(6) { animation-delay: 0.5s; }
.letters-loading:nth-child(7) { animation-delay: 0.6s; }
.letters-loading:nth-child(8) { animation-delay: 0.7s; }
.letters-loading:nth-child(9) { animation-delay: 0.8s; }
.letters-loading:nth-child(10) { animation-delay: 0.9s; }

.letters-loading::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #45E688;
    overflow: hidden;
    animation: letterReveal 1.2s ease-in-out infinite;
    width: 0;
    white-space: nowrap;
}

@keyframes letterBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes letterReveal {
    0% {
        width: 0;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

/* ===== LOADING BAR ===== */
.preloader-bar {
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0F5C73, #45E688, #0F5C73);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progressLoad 2.5s ease-in-out infinite, shimmer 1.5s ease-in-out infinite;
}

@keyframes progressLoad {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.progress-text {
    font-family: 'SpaceGrotesk-Medium', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeText 1.5s ease-in-out infinite;
}

@keyframes fadeText {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* ===== PULSE DOTS ===== */
.pulse-dots {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.pulse-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #45E688;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.pulse-dots span:nth-child(1) { animation-delay: 0s; }
.pulse-dots span:nth-child(2) { animation-delay: 0.3s; }
.pulse-dots span:nth-child(3) { animation-delay: 0.6s; }

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.3);
        opacity: 0.3;
    }
}

/* ===== LOADER COMPLETE ANIMATION ===== */
.preloader.exit {
    animation: fadeOut 0.6s ease forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .letters-loading {
        font-size: 32px;
    }

    .icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .icon-shape:nth-child(1) {
        width: 80px;
        height: 80px;
    }

    .icon-shape:nth-child(2) {
        width: 65px;
        height: 65px;
    }

    .icon-shape:nth-child(3) {
        width: 50px;
        height: 50px;
    }

    .icon-shape:nth-child(4) {
        width: 35px;
        height: 35px;
    }

    .icon-wrapper i {
        font-size: 30px;
    }

    .preloader-bar {
        width: 220px;
    }

    .bg-circle.circle-1 {
        width: 300px;
        height: 300px;
    }

    .bg-circle.circle-2 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .letters-loading {
        font-size: 24px;
        gap: 2px;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .icon-shape:nth-child(1) {
        width: 60px;
        height: 60px;
    }

    .icon-shape:nth-child(2) {
        width: 50px;
        height: 50px;
    }

    .icon-shape:nth-child(3) {
        width: 40px;
        height: 40px;
    }

    .icon-shape:nth-child(4) {
        width: 30px;
        height: 30px;
    }

    .icon-wrapper i {
        font-size: 24px;
    }

    .preloader-bar {
        width: 180px;
    }

    .txt-loading {
        gap: 2px;
    }
}