/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    position: relative;
}

.loader-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    position: relative;
    animation: logoFloat 2s ease-in-out infinite;
    background: white;
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.loader-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-top-color: #6366f1;
    animation: rotate 1.5s linear infinite;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.loader-text {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #6366f1 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    will-change: transform, opacity;
    margin-bottom: 20px;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.loader-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.loader-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    animation: dotPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.loader-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 30px;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Particle effect */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 0.5);
    border-radius: 50%;
    animation: particleFloat 6s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    left: 25%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.particle:nth-child(3) {
    left: 40%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.particle:nth-child(4) {
    left: 55%;
    animation-delay: 0.5s;
    animation-duration: 7.5s;
}

.particle:nth-child(5) {
    left: 70%;
    animation-delay: 1.5s;
    animation-duration: 8.5s;
}

.particle:nth-child(6) {
    left: 85%;
    animation-delay: 2.5s;
    animation-duration: 7s;
}

/* Mobile Responsive Styles for Preloader */
@media (max-width: 767px) {
    .loader-logo {
        width: 80px;
        height: 80px;
        padding: 15px;
    }

    .loader-ring {
        width: 110px;
        height: 110px;
        border-width: 2px;
    }

    .loader-text {
        font-size: 24px;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }

    .loader-dot {
        width: 10px;
        height: 10px;
    }

    .loader-tagline {
        font-size: 11px;
        letter-spacing: 1.5px;
        margin-top: 20px;
    }

    .particle {
        width: 3px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .loader-logo {
        width: 70px;
        height: 70px;
        padding: 12px;
    }

    .loader-ring {
        width: 95px;
        height: 95px;
    }

    .loader-text {
        font-size: 20px;
        letter-spacing: 1.5px;
    }

    .loader-dot {
        width: 8px;
        height: 8px;
    }

    .loader-dots {
        gap: 8px;
    }

    .loader-tagline {
        font-size: 10px;
        letter-spacing: 1px;
    }
}