/* Custom utility styles that complement Tailwind */

/* Smooth focus outlines for accessibility */
*:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #A7F3D0;
    color: #064E3B;
}

/* Subtle gradient background for hero section */
#hero {
    background: linear-gradient(135deg, #FDFBF7 0%, #FAF5EC 50%, #F5EDE0 100%);
}

/* Smooth image loading */
img {
    image-rendering: auto;
    loading: lazy;
}

/* Prevent layout shift on images */
img {
    object-fit: cover;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
    background: #A7F3D0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6EE7B7;
}

/* Service card hover effect */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Subtle pattern overlay for visual interest */
#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(5, 150, 105, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

#services {
    position: relative;
}

/* Project card image transition */
.group:hover img {
    transform: scale(1.05);
}

/* Mobile menu animation */
.mobile-menu {
    animation: none;
}

.mobile-menu:not(.hidden) {
    animation: menuSlideIn 0.3s ease forwards;
}

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

/* Button hover lift effect */
a:hover {
    transition: all 0.2s ease;
}

/* Reduce motion for accessibility */
@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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    #contact-form,
    .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
}
