/* Custom styles for Hulen's Landscaping */

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

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

::-webkit-scrollbar-track {
    background: #1a0a10;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #9d174d;
}

/* Selection color */
::selection {
    background: #fbbf24;
    color: #1a0a10;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(26, 10, 16, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero floating cards animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-card-1 {
    animation: float 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float 6s ease-in-out infinite 1s;
}

.floating-card-3 {
    animation: float 6s ease-in-out infinite 2s;
}

.floating-card-4 {
    animation: float 6s ease-in-out infinite 3s;
}

/* Service card hover glow */
.service-card:hover {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.1);
}

/* Gallery image overlay */
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Pulse animation for CTA */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(251, 191, 36, 0.6);
    }
}

.cta-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobileMenu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobileMenu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

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

/* Print styles */
@media print {
    nav,
    #contactForm,
    .cta-pulse {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
