/* Website Loader Styles */
.website-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.website-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
}

.loader-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: logoFloat 3s ease-in-out infinite;
}

.loader-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.loader-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.loader-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2e8b57, #3498db, #27ae60);
    background-size: 200% 100%;
    animation: progressLoad 3s ease-in-out, gradientShift 1.5s ease-in-out infinite;
    border-radius: 2px;
}

.loader-percentage {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s forwards;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }

.village-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 2s forwards;
}

.feature-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.welcome-message {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInUp 1s ease 2.5s forwards;
    text-align: center;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Responsive Design for Loader */
@media (max-width: 768px) {
    .loader-title {
        font-size: 2rem;
    }
    
    .loader-subtitle {
        font-size: 1rem;
    }
    
    .village-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-item {
        padding: 0.8rem;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .loader-logo {
        font-size: 3rem;
    }
    
    .loader-title {
        font-size: 1.5rem;
    }
    
    .village-features {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}
