/* Custom styles for Martinez Home Repair Services */

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

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

::-webkit-scrollbar-track {
    background: #050d1a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6ee7c5;
}

/* Geometric clip for diagonal section */
.clip-diagonal {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

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

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

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

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

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

/* Back to top button animation */
#back-to-top.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .gallery-item img,
    #back-to-top {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #34d4a8;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #34d4a8;
    color: #050d1a;
}
