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

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

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

/* Header scrolled state */
.header-scrolled {
    background-color: white !important;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.header-scrolled .nav-link,
.header-scrolled #logo {
    color: rgb(51 65 85) !important; /* slate-700 */
}

.header-scrolled .nav-link:hover {
    color: rgb(220 38 38) !important; /* red-600 */
}

/* Custom form states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgb(220 38 38); /* red-600 */
    ring: 1px solid rgb(220 38 38);
}

/* Mobile menu transition */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
