/* 
 * Java Hut Custom Styles
 * Complementary to Tailwind CSS
 */

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

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

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

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

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

/* Selection Color */
::selection {
    background: #DFB1A3;
    color: #3C2415;
}

/* Navbar Transitions */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #B9523D;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Image Loading Placeholder */
img {
    background-color: #F4EBD9;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Form Focus States */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(185, 82, 61, 0.1);
}

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