.diwali-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: firework-burst 1.5s ease-out forwards;
}

@keyframes firework-burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffd700;
    border-radius: 50%;
    animation: sparkle-fall linear forwards;
    box-shadow: 0 0 6px #ffd700;
}

@keyframes sparkle-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(360deg);
    }
}

.diya {
    position: absolute;
    bottom: 20px;
    width: 40px;
    height: 40px;
    animation: diya-glow 2s ease-in-out infinite;
}

.diya-flame {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 20px;
    background: radial-gradient(ellipse at center, #fff 0%, #ffaa00 30%, #ff6600 60%, transparent 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flame-flicker 0.3s ease-in-out infinite alternate;
    filter: blur(1px);
}

.diya-light {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 170, 0, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: light-pulse 2s ease-in-out infinite;
}

.diya-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 18px;
    background: linear-gradient(to bottom, #d4af37 0%, #aa8c2d 100%);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes flame-flicker {
    0% {
        transform: translateX(-50%) scaleY(1) scaleX(1);
    }
    100% {
        transform: translateX(-50%) scaleY(1.1) scaleX(0.95);
    }
}

@keyframes light-pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) scale(1.3);
        opacity: 0.8;
    }
}

@keyframes diya-glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.rangoli {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    opacity: 0.3;
    animation: rangoli-rotate 20s linear infinite;
}

@keyframes rangoli-rotate {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

@media (max-width: 768px) {
    .diya {
        width: 30px;
        height: 30px;
        bottom: 10px;
    }
    .rangoli {
        width: 70px;
        height: 70px;
    }
}