/* Animated Snowfall Effect */

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

/* Snowflake animation */
@keyframes snowfallDrop {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(var(--end-x, 50px)) rotate(360deg);
        opacity: 0;
    }
}

/* Twinkling Christmas Lights */
body::before {
    content: "✨💡✨💡✨💡✨💡✨💡✨💡✨💡✨💡";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Festive border glow */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-image: linear-gradient(
        45deg,
        var(--christmas-red),
        var(--christmas-gold),
        var(--christmas-green),
        var(--christmas-red)
    ) 1;
    pointer-events: none;
    z-index: 5;
    animation: borderGlow 3s linear infinite;
}

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

/* Disable effects on small screens for performance */
@media (max-width: 768px) {
    body::before {
        font-size: 1rem;
    }

    /* Reduce snowflakes on mobile */
    .snowflake:nth-child(n+15) {
        display: none;
    }
}
