/* Loader Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #111111 0%, #1e1e1e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s, visibility 0.6s;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Golgappa Animation */
.golgappa-loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
}

.plate {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 209, 0, 0.2);
}

.puri {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--primary-yellow);
    border-radius: 50%;
    animation: float 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 209, 0, 0.4);
}

.filling {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #ff9800;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.splash {
    position: absolute;
    background: rgba(255, 209, 0, 0.6);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
}

.splash-1 {
    width: 15px;
    height: 15px;
    top: 30px;
    left: 30px;
    animation: splash 2s ease-in-out infinite;
}

.splash-2 {
    width: 12px;
    height: 12px;
    top: 45px;
    right: 35px;
    animation: splash 2s ease-in-out 0.3s infinite;
}

.splash-3 {
    width: 10px;
    height: 10px;
    top: 20px;
    right: 45px;
    animation: splash 2s ease-in-out 0.6s infinite;
}

@keyframes splash {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    50% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(0.9);
    }
}

/* Text Animation */
.loader-text {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.loader-text span {
    color: var(--primary-yellow);
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 3px;
    animation: glow 1.5s ease-in-out infinite alternate;
    text-shadow: 0 0 10px rgba(255, 209, 0, 0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.loader-text span:nth-child(1) { animation-delay: 0s; transition-delay: 0s; }
.loader-text span:nth-child(2) { animation-delay: 0.1s; transition-delay: 0.1s; }
.loader-text span:nth-child(3) { animation-delay: 0.2s; transition-delay: 0.2s; }
.loader-text span:nth-child(4) { animation-delay: 0.3s; transition-delay: 0.3s; }
.loader-text span:nth-child(5) { animation-delay: 0.4s; transition-delay: 0.4s; }
.loader-text span:nth-child(6) { animation-delay: 0.5s; transition-delay: 0.5s; }

@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 209, 0, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 209, 0, 0.7), 0 0 30px rgba(255, 209, 0, 0.5);
    }
}

/* Progress Bar */
.loader-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--primary-yellow), var(--secondary-yellow));
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 0;
    animation: progress 2.5s ease-in-out forwards;
    box-shadow: 0 0 10px rgba(255, 209, 0, 0.5);
}

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

/* Hide content while loading */
body.loading {
    overflow: hidden;
}

body.loading .main-content,
body.loading .header,
body.loading .footer {
    opacity: 0;
    transition: opacity 0.3s;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .loader-text span {
        font-size: 2.2rem;
        margin: 0 2px;
    }
    
    .golgappa-loader {
        width: 100px;
        height: 100px;
    }
    
    .plate {
        width: 80px;
    }
    
    .puri {
        width: 50px;
        height: 50px;
    }
    
    .filling {
        width: 30px;
        height: 30px;
    }
    
    .loader-progress {
        width: 150px;
    }
}

/* ... rest of the loader styles ... */ 