/* Christmas Snowfall Effect */
.snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Christmas Santa Hat on Logo */
.santa-hat {
    position: absolute;
    top: -13px;
    left: 45%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

/* Mobile Santa Hat - Smaller Version */
.santa-hat-mobile {
    position: absolute;
    top: -12px;
    left: 2px;
    z-index: 10;
    pointer-events: none;
    transform: scale(0.75);
}

.hat-main {
    width: 22px;
    height: 24px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border-radius: 2px 6px 10px 14px;
    position: relative;
    transform: rotate(-15deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    clip-path: polygon(0% 100%, 15% 85%, 25% 60%, 35% 40%, 50% 20%, 70% 10%, 85% 5%, 100% 0%, 100% 100%);
}

.hat-brim {
    position: absolute;
    bottom: -3px;
    left: -3px;
    width: 28px;
    height: 7px;
    background: white;
    border-radius: 50% 50% 40% 60%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: rotate(2deg) perspective(20px) rotateX(15deg);
    clip-path: polygon(10% 0%, 90% 0%, 95% 50%, 85% 100%, 15% 100%, 5% 50%);
}

.hat-pompom {
    position: absolute;
    top: -4px;
    right: -2px;
    width: 7px;
    height: 7px;
    background: radial-gradient(circle, white, #f0f0f0);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: santa-hat-wobble 3s ease-in-out infinite;
}

@keyframes santa-hat-wobble {
    0%, 100% { 
        transform: rotate(2deg); 
    }
    50% { 
        transform: rotate(-2deg); 
    }
}

.snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.5);
    user-select: none;
    pointer-events: none;
    font-size: 1em;
    animation-name: snowfall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    text-shadow: none;
}

@keyframes snowfall {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    2% {
        opacity: 1;
    }
    5% {
        opacity: 1;
    }
    15% {
        opacity: 0;
    }
    100% {
        transform: translateY(calc(100vh + 300vh)) rotate(360deg);
        opacity: 0;
    }
}

/* Different snowflake variations */
.snowflake:nth-child(1) { left: 2%; animation-duration: 6s; animation-delay: 0s; font-size: 1.2em; }
.snowflake:nth-child(2) { left: 10%; animation-duration: 8s; animation-delay: 1s; font-size: 0.8em; }
.snowflake:nth-child(3) { left: 20%; animation-duration: 7s; animation-delay: 0.5s; font-size: 1em; }
.snowflake:nth-child(4) { left: 30%; animation-duration: 9s; animation-delay: 1.5s; font-size: 1.1em; }
.snowflake:nth-child(5) { left: 40%; animation-duration: 6s; animation-delay: 2s; font-size: 0.9em; }
.snowflake:nth-child(6) { left: 50%; animation-duration: 8s; animation-delay: 0.5s; font-size: 1.3em; }
.snowflake:nth-child(7) { left: 60%; animation-duration: 7s; animation-delay: 1s; font-size: 0.7em; }
.snowflake:nth-child(8) { left: 70%; animation-duration: 9s; animation-delay: 2.5s; font-size: 1em; }
.snowflake:nth-child(9) { left: 80%; animation-duration: 6s; animation-delay: 1.2s; font-size: 1.1em; }
.snowflake:nth-child(10) { left: 90%; animation-duration: 8s; animation-delay: 0.3s; font-size: 0.9em; }
.snowflake:nth-child(11) { left: 5%; animation-duration: 7s; animation-delay: 2.2s; font-size: 1.2em; }
.snowflake:nth-child(12) { left: 15%; animation-duration: 9s; animation-delay: 0.8s; font-size: 0.8em; }
.snowflake:nth-child(13) { left: 25%; animation-duration: 6s; animation-delay: 1.8s; font-size: 1em; }
.snowflake:nth-child(14) { left: 35%; animation-duration: 8s; animation-delay: 0.2s; font-size: 1.1em; }
.snowflake:nth-child(15) { left: 45%; animation-duration: 7s; animation-delay: 2.8s; font-size: 0.9em; }
.snowflake:nth-child(16) { left: 55%; animation-duration: 9s; animation-delay: 1.3s; font-size: 1.3em; }
.snowflake:nth-child(17) { left: 65%; animation-duration: 6s; animation-delay: 0.7s; font-size: 0.7em; }
.snowflake:nth-child(18) { left: 75%; animation-duration: 8s; animation-delay: 2.1s; font-size: 1em; }
.snowflake:nth-child(19) { left: 85%; animation-duration: 7s; animation-delay: 1.6s; font-size: 1.1em; }
.snowflake:nth-child(20) { left: 95%; animation-duration: 9s; animation-delay: 0.9s; font-size: 0.9em; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .snowflake {
        font-size: 0.8em;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .snowflake {
        animation: none;
    }
}