/* Custom animations and overrides */

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slideIn {
    animation: slideIn 0.8s ease-out forwards;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #e07a5f;
    border-radius: 5px;
}

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

/* Header scroll effect */
.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobileMenu.active {
    max-height: 300px;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #e07a5f;
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.2);
}

/* Button hover effects */
button:hover,
a:hover {
    transform: translateY(-2px);
}

button:active,
a:active {
    transform: translateY(0);
}

/* Card hover effects */
.group:hover .group-hover\:bg-terracotta-500 {
    background-color: #e07a5f;
}

.group:hover .group-hover\:bg-sand-500 {
    background-color: #e9b44c;
}

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}
