/* Custom styles to complement Tailwind */
html {
    scroll-behavior: smooth;
}

body {
    /* Ensure font rendering is crisp */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* Subtle 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); }
}

.floating-card-1 {
    animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-reverse 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float 4.5s ease-in-out infinite;
}

/* Ensure images don't overflow on small screens */
img {
    max-width: 100%;
    height: auto;
}

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

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}
