/* Custom styles for C&S Remodeling */

/* Smooth focus outlines for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f0fdfa;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

/* Mobile menu animation */
#mobileMenu.open {
    transform: translateX(0);
}

#mobileMenu.closed {
    transform: translateX(100%);
}

/* Hamburger animation */
.menu-line.active-1 {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-line.active-2 {
    opacity: 0;
}
.menu-line.active-3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Service card hover glow */
.group:hover .group-hover\:bg-teal-500\/20 {
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.1);
}

/* Image lazy load fade */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        transition: none;
    }
    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
    #navbar {
        transition: none;
    }
}

/* Portfolio grid hover */
.group:hover .group-hover\:opacity-100 {
    opacity: 1 !important;
}
.group:hover .group-hover\:translate-y-0 {
    transform: translateY(0) !important;
}
