/* Custom Styles for Crystal Clear Cleaning */

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

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

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1f8a53;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #156d42;
}

/* Selection Color */
::selection {
    background-color: #1f8a53;
    color: #fefdf8;
}

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Button Hover Effects */
button,
a {
    transition: all 0.3s ease;
}

/* Image Hover Zoom */
img {
    transition: transform 0.5s ease;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(16, 69, 44, 0.1);
}

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

/* Print Styles */
@media print {
    nav,
    #contact-form,
    .animate-float,
    .animate-float-delayed {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Reduced Motion */
@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;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-emerald-600 {
        background-color: #0d5c38;
    }
    
    .text-emerald-600 {
        color: #0d5c38;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
    
    .animate-float,
    .animate-float-delayed {
        display: none;
    }
}
