/* Premium VIP Loading Screen */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E3A5F 0%, #2C2C2C 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

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

.loader-container {
    text-align: center;
    position: relative;
}

.premium-loader {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Logo Animation */
.loader-logo {
    position: relative;
    margin-bottom: 40px;
    animation: logoGlow 2s ease-in-out infinite;
}

.logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    margin-bottom: 5px;
}

.logo-v {
    font-size: 60px;
    font-weight: 900;
    color: #D4AF37;
    display: inline-block;
    animation: letterFloat 2s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.logo-aran {
    font-size: 48px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 3px;
    margin-left: 10px;
    opacity: 0;
    animation: fadeInSlide 1s ease forwards 0.5s;
}

.logo-subtitle {
    font-size: 18px;
    color: #D4AF37;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInSlide 1s ease forwards 0.8s;
}

/* Progress Bar */
.loader-progress {
    width: 250px;
    margin-top: 30px;
}

.progress-bar-wrapper {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4AF37 0%, #F4E4A1 50%, #D4AF37 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progressFill 2s ease-in-out forwards, shimmer 1s linear infinite;
}

.loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.luxury-particles span {
    position: absolute;
    display: block;
    width: 4px;
    height: 4px;
    background: #D4AF37;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    animation: particleFloat 10s linear infinite;
}

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

.luxury-particles span:nth-child(2) {
    left: 30%;
    animation-delay: 1s;
    animation-duration: 10s;
}

.luxury-particles span:nth-child(3) {
    left: 50%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.luxury-particles span:nth-child(4) {
    left: 70%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.luxury-particles span:nth-child(5) {
    left: 90%;
    animation-delay: 4s;
    animation-duration: 11s;
}

/* Premium Diamond Pattern */
.premium-loader::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    animation: diamondRotate 4s linear infinite;
}

.premium-loader::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 150px;
    height: 150px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    animation: diamondRotate 6s linear infinite reverse;
}

/* Animations */
@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.8));
    }
}

@keyframes letterFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes progressFill {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

@keyframes particleFloat {
    0% {
        bottom: -10px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}

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

/* Loading Screen Variants */
.loader-container.loaded {
    animation: scaleOut 0.5s ease forwards;
}

@keyframes scaleOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .premium-loader {
        width: 250px;
        height: 250px;
    }
    
    .logo-v {
        font-size: 48px;
    }
    
    .logo-aran {
        font-size: 36px;
    }
    
    .logo-subtitle {
        font-size: 14px;
    }
    
    .loader-progress {
        width: 200px;
    }
}

/* Premium Shine Effect */
.loader-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(212, 175, 55, 0.1) 50%,
        transparent 70%
    );
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Luxury Border Animation */
.premium-loader .luxury-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #D4AF37;
    animation: borderRotate 2s linear infinite;
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}