* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Bricolage Grotesque', sans-serif;
    overflow-x: hidden;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes bounce-soft {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-bounce-soft {
    animation: bounce-soft 2s ease-in-out infinite;
}

/* Snow effect */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(200, 200, 255, 0.5);
    opacity: 0.7;
}

@keyframes fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Door hover glow effect */
.door-container:hover {
    z-index: 10;
}

/* Responsive grid adjustments */
@media (max-width: 400px) {
    .grid-cols-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 300px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fcfaf8;
}

::-webkit-scrollbar-thumb {
    background: #ed8989;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d87878;
}

/* Textarea focus style */
textarea:focus {
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
}

/* Button press effect */
button:active {
    transform: scale(0.98);
}