/* Custom CSS for Living Water Exteriors */

:root {
    --accent-blue: #1e83a4;
    --accent-blue-hover: #1a6d8a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Loading Screen */
#loading-screen {
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide.active img:last-child {
    animation: fadeInAfter 4s ease-in-out 2s forwards;
}


@keyframes fadeInAfter {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Fade-in animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Service Section Premium Styling */
.service-category .bg-\[\#111\]\/50 {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.service-category:hover .bg-\[\#111\]\/50 {
    box-shadow: 0 12px 48px rgba(30, 131, 164, 0.15);
}



.service-item a {
    z-index: 1;
}

@media (max-width: 1024px) {
    .service-category .bg-\[\#111\]\/50 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    .service-category .flex.items-center.mb-8 {
        flex-direction: column;
        text-align: center;
    }
    
    .service-category .w-20.h-20 {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}

/* Service gradient overlay */
.service-category .bg-gradient-to-br {
    z-index: 0;
}
/* CTA Button Pulse Effect */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease-out;
}

.cta-button:hover::after {
    transform: scale(1);
}

/* Testimonial Slider */
.testimonial-slider {
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 1rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue-hover);
}

/* Mobile menu animation */
.mobile-menu-enter {
    transform: translateX(-100%);
}

.mobile-menu-enter-active {
    transform: translateX(0);
    transition: transform 0.3s ease-out;
}

/* Form input focus effects */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 2px rgba(30, 131, 164, 0.2);
}
/* Gallery Masonry Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-tile {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
}

.gallery-tile img {
    transition: transform 0.3s ease;
}

/* Responsive Gallery Grid */
@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.gallery-tile {
    width: 100%;
    height: 250px; /* 👈 SET THE HEIGHT OF EVERY TILE */
    overflow: hidden;
    border-radius: 12px;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 👈 Makes all images uniform */
    border-radius: 12px;
}

/* Disable dragging globally */
* {
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none; /* also stops text selection */
}

@media (min-width: 1536px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
/* Lightbox Styling */
#lightbox {
    transition: opacity 0.3s ease;
    z-index: 100;
}

#lightbox-img {
    animation: lightboxZoom 0.3s ease;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}
.profile-letter {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: #1e83a4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    color: white;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 101;
}

#lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 0 2rem;
}
