/* Custom styles for Klean Kut Cleaning & Lawn Service */

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

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

::-webkit-scrollbar-track {
    background: #0A192F;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #B2F5EA;
}

/* Selection color */
::selection {
    background: #4FD1C5;
    color: #0A192F;
}

/* Navbar scroll state */
.navbar-scrolled #nav-bg {
    opacity: 1;
}

/* Mobile menu animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu button animation */
.menu-line {
    transform-origin: center;
}

.menu-open .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-open .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #4FD1C5;
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* Form select styling */
select option {
    background: #0A192F;
    color: white;
}

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

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #4FD1C5;
    outline-offset: 2px;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #E2E8F0 25%, #F7FAFC 50%, #E2E8F0 75%);
    background-size: 200% 200%;
    animation: shimmer 1.5s ease-in-out infinite;
}

img.loaded {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Print styles */
@media print {
    header, footer, .gallery-section {
        display: none;
    }
    
    body {
        color: #000;
        background: white;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
