/* Page Loader Styles */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A1628 0%, #1a2942 50%, #0A1628 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Logo Container */
.loader-logo {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
    animation: logoFloat 3s ease-in-out infinite;
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    animation: logoPulse 2s ease-in-out infinite;
}

/* Circular Spinner */
.loader-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
}

.spinner-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #D4AF37;
    border-right-color: #D4AF37;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-circle:nth-child(2) {
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    border-top-color: rgba(212, 175, 55, 0.6);
    border-right-color: rgba(212, 175, 55, 0.6);
    animation: spin 2s linear infinite reverse;
}

.spinner-circle:nth-child(3) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: rgba(212, 175, 55, 0.3);
    border-right-color: rgba(212, 175, 55, 0.3);
    animation: spin 2.5s linear infinite;
}

/* Decorative Elements */
.loader-ornaments {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.loader-ornament {
    color: #D4AF37;
    font-size: 1.2rem;
    animation: ornamentTwinkle 1.5s ease-in-out infinite;
}

.loader-ornament:nth-child(2) {
    animation-delay: 0.3s;
}

.loader-ornament:nth-child(3) {
    animation-delay: 0.6s;
}

/* Loading Text */
.loader-text {
    margin-top: 2rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #D4AF37;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: textFade 2s ease-in-out infinite;
}

/* Background Decorative Circles */
.loader-bg-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.loader-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: circleFloat 8s ease-in-out infinite;
}

.loader-bg-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-duration: 10s;
}

.loader-bg-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 15%;
    animation-duration: 12s;
    animation-delay: 1s;
}

.loader-bg-circle:nth-child(3) {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 80%;
    animation-duration: 15s;
    animation-delay: 2s;
}

/* Shimmer Effect */
.loader-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.1) 50%,
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5));
    }
}

@keyframes ornamentTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

@keyframes textFade {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes circleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .loader-logo {
        width: 120px;
        height: 120px;
    }

    .loader-spinner {
        width: 150px;
        height: 150px;
    }

    .loader-text {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .loader-ornament {
        font-size: 1rem;
    }

    .loader-bg-circle:nth-child(1) {
        width: 200px;
        height: 200px;
    }

    .loader-bg-circle:nth-child(2) {
        width: 150px;
        height: 150px;
    }

    .loader-bg-circle:nth-child(3) {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .loader-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }

    .loader-spinner {
        width: 130px;
        height: 130px;
    }

    .loader-text {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
        margin-top: 1.5rem;
    }

    .loader-ornament {
        font-size: 0.9rem;
    }

    .loader-ornaments {
        gap: 1rem;
    }
}

