/* Custom Animations */
@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-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #627d98, #d4a017);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #486581, #b8860b);
}

/* Input Focus Styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
}

/* Button Hover Effects */
button,
a {
    transition: all 0.3s ease;
}

/* Image Loading */
img {
    loading: lazy;
}

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

#mobile-menu.active {
    max-height: 400px;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Service Card Hover */
.group:hover .group-hover\:bg-gold-500 {
    background-color: #d4a017;
}

.group:hover .group-hover\:bg-navy-900 {
    background-color: #102a43;
}
