/* Custom styles for Roberts Custom Shop */

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

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

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

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

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

/* Animation for scroll reveals */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default visible state for all content */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
}

/* Navbar shadow on scroll */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(111, 33, 33, 0.1);
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Image hover zoom effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Focus styles for accessibility */
input:focus, textarea:focus, button:focus {
    outline: none;
}

/* Custom selection color */
::selection {
    background-color: #a32e2e;
    color: #fdf8f6;
}
