/* ===== Simple Professional Preloader ===== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a0a3e 0%, #0a0514 50%, #000000 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preloader.loaded {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Stars Background */
.stars-bg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: starTwinkle 3s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.star:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; left: 80%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 30%; left: 30%; animation-delay: 1s; }
.star:nth-child(4) { top: 40%; left: 70%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 15%; left: 50%; animation-delay: 0.3s; }
.star:nth-child(6) { top: 50%; left: 20%; animation-delay: 0.8s; }
.star:nth-child(7) { top: 25%; left: 60%; animation-delay: 1.2s; }
.star:nth-child(8) { top: 45%; left: 85%; animation-delay: 0.6s; }
.star:nth-child(9) { top: 35%; left: 40%; animation-delay: 1.8s; }
.star:nth-child(10) { top: 55%; left: 75%; animation-delay: 2s; }

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Center Content */
.preloader-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: contentFadeIn 1s ease-out;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Diya Icon */
.diya-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    animation: diyaGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
}

@keyframes diyaGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 50px rgba(255, 215, 0, 1));
    }
}

/* Greeting Text */
.greeting-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6B35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: titleShine 3s ease-in-out infinite;
}

@keyframes titleShine {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.greeting-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 400;
}

/* Company Branding */
.company-branding {
    margin-top: 40px;
    padding: 25px 50px;
    background: rgba(220, 20, 60, 0.1);
    border: 2px solid rgba(220, 20, 60, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    display: inline-block;
    animation: brandingPulse 3s ease-in-out infinite;
}

@keyframes brandingPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(220, 20, 60, 0);
    }
}

.company-name {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #DC143C 0%, #FF6B35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 8px;
}

.company-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    letter-spacing: 2px;
}

/* Loading Spinner */
.loading-spinner {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.spinner-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-orange, #FF6B35);
    border-radius: 50%;
    animation: spinnerBounce 1.4s ease-in-out infinite;
}

.spinner-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes spinnerBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 767px) {
    .greeting-title {
        font-size: 2.5rem;
    }
    
    .greeting-subtitle {
        font-size: 1.1rem;
    }
    
    .diya-icon {
        font-size: 4rem;
    }
    
    .company-name {
        font-size: 1.5rem;
    }
    
    .company-tagline {
        font-size: 0.8rem;
    }
    
    .company-branding {
        padding: 20px 35px;
    }
}
