/* Custom styles for Valley Excavating */

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

/* Scroll reveal base - content is always visible */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal enhanced with JS (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 249, 244, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(125, 30, 30, 0.08);
}

/* Custom selection color */
::selection {
    background: #ff9090;
    color: #3d0c0c;
}

/* Subtle pattern for cream sections */
.bg-cream {
    background-color: #fef9f4;
    background-image: radial-gradient(circle at 1px 1px, rgba(125, 30, 30, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Button focus visible */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #ff9090;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure images don't shift layout */
img {
    max-width: 100%;
    height: auto;
}

/* Hero geometric decorations animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-12px) rotate(12deg); }
}

@keyframes float-alt {
    0%, 100% { transform: translateY(0) rotate(-12deg); }
    50% { transform: translateY(10px) rotate(-12deg); }
}

@media (prefers-reduced-motion: no-preference) {
    .absolute.top-1\/4.left-1\/3 {
        animation: float 4s ease-in-out infinite;
    }
    .absolute.bottom-1\/3.right-1\/3 {
        animation: float-alt 5s ease-in-out infinite;
    }
}
