/* Custom Styles */
html {
    scroll-behavior: smooth;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7f1d1d;
}

/* Animation for floating cards */
@keyframes float {
    0% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(2deg); }
}

@keyframes float-reverse {
    0% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(10px) rotate(-1deg); }
    100% { transform: translateY(0px) rotate(-1deg); }
}

/* Apply animation to cards in hero */
@media (min-width: 1024px) {
    .absolute.top-0.right-0 {
        animation: float 4s ease-in-out infinite;
    }
    .absolute.top-40.left-4 {
        animation: float-reverse 5s ease-in-out infinite;
    }
    .absolute.bottom-0.right-10 {
        animation: float 4.5s ease-in-out infinite;
    }
}

/* Ensure text contrast is high on all backgrounds */
.text-slate-900 {
    color: #0f172a;
}

.text-slate-800 {
    color: #1e293b;
}

.text-slate-600 {
    color: #475569;
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #7f1d1d;
    outline-offset: 2px;
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
