/* Custom styles for Fluid-Pro Valves website */

/* Hero slider styles */
.hero-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.hero-slide.active {
    display: block;
    opacity: 1;
}

/* Sliding animations */
.hero-slide.sliding-in-next {
    animation: slideInFromRight 0.3s forwards;
}
.hero-slide.sliding-out-next {
    animation: slideOutToLeft 0.3s forwards;
}
.hero-slide.sliding-in-prev {
    animation: slideInFromLeft 0.3s forwards;
}
.hero-slide.sliding-out-prev {
    animation: slideOutToRight 0.3s forwards;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Navigation buttons */
.slider-btn {
    cursor: pointer;
    user-select: none;
}

/* Dots */
.slider-dots button {
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slider {
        min-height: 300px !important;
    }
    .hero-slide .hero-overlay {
        padding: 3rem 1rem !important;
    }
    .hero-slide h1 {
        font-size: 1.5rem !important;
    }
    .hero-slide p {
        font-size: 1rem !important;
    }
}

/* Counter animation */
.counter {
    transition: all 0.3s ease;
}

/* Custom blue color variations */
.bg-blue-950 {
    background-color: #1E3A8A;
}
.text-blue-950 {
    color: #1E3A8A;
}
.border-blue-950 {
    border-color: #1E3A8A;
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease;
}

/* Filter button active state */
.filter-btn.active {
    background-color: #1E40AF;
    color: white;
}

/* Product Card Styles */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    border-bottom: 4px solid #1e40af;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(30, 64, 175, 0.3);
    border-bottom-color: #3b82f6;
}

/* Product Image Container */
.product-image-container {
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}
.product-image {
    transition: transform 0.5s ease;
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 1.5rem;
}
.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Product Content */
.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* View Details Button */
.view-details-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.product-card:hover .view-details-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Product Button Section */
.product-btn {
    opacity: 1;
    margin-top: auto;
    padding-top: 1rem;
    transition: all 0.3s ease;
}

/* View More Button */
.view-more-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.view-more-btn:hover {
    padding-right: 3rem;
    padding-left: 1.5rem;
}
.view-more-btn span {
    transition: all 0.3s ease;
}
.view-more-btn:hover span {
    transform: translateX(-0.5rem);
}
.view-more-btn i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}
.view-more-btn:hover i {
    opacity: 1;
    right: 1.5rem;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1e40af;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

/* Section Title */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}
.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #1e40af;
}

/* Hero section background */
.hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px; /* ensures full visibility */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay with reduced opacity */
.hero-overlay {
    width: 100%;
    height: 100%;
    padding: 5rem 0; /* controls vertical spacing */
    background-color: rgba(0, 0, 0, 0.4); /* less dark, adjust 0.4–0.6 */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

 .about-image-container {
            position: relative;
            border: 4px solid #1e40af;
            border-radius: 0.5rem;
            overflow: hidden;
            box-shadow: 0 10px 15px -3px rgba(30, 64, 175, 0.2);
        }
        .about-image-container:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 6px;
            background: linear-gradient(90deg, #1e40af, #3b82f6, #1e40af);
        }
        .about-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
        }
        .about-image-container:hover .about-image {
            transform: scale(1.03);
        }
        .about-content {
            position: relative;
            padding-left: 2rem;
        }
        /* .about-content:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background: linear-gradient(to bottom, #1e40af, #3b82f6, #1e40af);
            border-radius: 2px;
        } */
        .read-more-btn {
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        .read-more-btn:hover {
            padding-right: 3rem;
        }
        .read-more-btn span {
            transition: all 0.3s ease;
        }
        .read-more-btn:hover span {
            transform: translateX(-0.5rem);
        }
        .read-more-btn i {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0;
            transition: all 0.3s ease;
        }
        .read-more-btn:hover i {
            opacity: 1;
            right: 1.5rem;
        }
        @media (max-width: 768px) {
            .about-content {
                padding-left: 1rem;
            }
            /* .about-content:before {
                width: 3px;
            } */
        }