/* Custom styles supplementing Tailwind */

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: #2F855A;
    color: #FDFBF7;
}

/* Navbar transition refinement */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

/* Hero section parallax-like effect */
.hero-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }
}

/* Service card hover effect */
.service-card {
    border: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    border-color: rgba(56, 161, 105, 0.2);
    transform: translateY(-4px);
}

/* Form input focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(56, 161, 105, 0.2);
}

/* Gallery item overlay on hover */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item {
    position: relative;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .gallery-img {
        transition: none !important;
    }
    
    .service-icon {
        transition: none !important;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .animate-bounce {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
