/* Custom styles to complement Tailwind */

html {
    scroll-behavior: smooth;
}

body {
    /* Prevents text selection on double click, feels more app-like */
    -webkit-tap-highlight-color: transparent;
}

/* Custom scrollbar for webkit */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
    background: #2D5A40;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1A3C29;
}

/* Animation utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* Scroll reveal classes */
.reveal-on-scroll {
    opacity: 1; /* Default visible for accessibility */
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* For browsers that don't support JS, content is still visible due to default opacity:1 */
/* The JS adds the is-visible class for the transition effect */

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

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}
