/* Custom styles beyond Tailwind */

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
    transition: all 0.3s ease;
}

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #134e4a, #115e59);
    transition: width 0.5s ease;
}

.service-card:hover::after {
    width: 100%;
}

/* Gallery item hover overlay */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(19, 78, 74, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

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

.gallery-item {
    position: relative;
}

/* Navbar scroll effect */
.nav-scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Fade-in animation for sections below fold */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reduced motion preference */
@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;
    }
}

/* Custom focus styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 1px #134e4a;
}

/* Mobile menu animation */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Image loading placeholder */
img {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

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

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

/* Print styles */
@media print {
    nav,
    #backToTop,
    .gallery-item::before {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
