/* Custom styles for Hidden Valley Siding and Seamless Rain Gutter */

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

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(22, 101, 52, 0.08);
}

/* Floating card animations */
.floating-card {
    animation: float 3.5s ease-in-out infinite;
}

.floating-card-delayed {
    animation: float 3.5s ease-in-out infinite;
    animation-delay: 1.2s;
}

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

/* Service card hover */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
}

/* Testimonial cards */
.testimonial-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Mobile menu */
.mobile-link {
    transition: color 0.2s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card,
    .floating-card-delayed {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .gallery-item img {
        transition: none;
    }
}

/* Selection color */
::selection {
    background-color: #dcefdc;
    color: #166534;
}

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

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

::-webkit-scrollbar-thumb {
    background: #b9dfb9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #85c485;
}
