/* Custom Styles for F-M Excavation Inc. */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #34d399;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Input focus states */
input:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

/* Selection color */
::selection {
    background: #34d399;
    color: #0f172a;
}

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

#mobile-menu.open {
    max-height: 500px;
}

/* Hero parallax effect */
#hero {
    scroll-behavior: smooth;
}

/* Card hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Prevent layout shift on images */
img {
    image-rendering: auto;
}

/* Touch device optimizations */
@media (hover: none) {
    .group:hover .group-hover\\:scale-110 {
        transform: none;
    }
    
    .group:hover .group-hover\\:opacity-100 {
        opacity: 0;
    }
}
