/* Custom styles for Lawn Brothers Landscape */

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

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

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

/* Image hover zoom */
.group:hover img {
    transform: scale(1.05);
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(12deg);
    }
    50% {
        transform: translateY(-10px) rotate(12deg);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    50% {
        transform: translateY(-8px) rotate(45deg);
    }
}

/* Apply floating to decorative shapes */
.absolute.rounded-2xl.rotate-12 {
    animation: float 4s ease-in-out infinite;
}

.absolute.rounded-lg.rotate-45 {
    animation: float-slow 5s ease-in-out infinite;
}

/* Hero image gradient overlay */
.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(15, 118, 110, 0.3), transparent);
}

/* Testimonial card hover */
.shadow-xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow-xl:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section background patterns */
.bg-slate-50::before,
.bg-white::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(13, 148, 136, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}
