/* Products Section Styles */
.products-section {
    padding: 80px 0;
    background: radial-gradient(37.77% 37.77% at 30.14% 100.08%, rgba(63, 193, 237, 0.15) 0%, rgba(3, 139, 185, 0.05) 100%), 
                linear-gradient(135deg, rgba(240, 248, 255, 0.8) 0%, rgba(230, 245, 255, 0.6) 100%);
    position: relative;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.products-layout {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 80px;
    align-items: center;
    min-height: 500px;
}

/* Left Side Content */
.products-left {
    padding-right: 40px;
}

.products-badge {
    display: inline-block;
    margin-bottom: 24px;
}

.products-badge-text {
    display: inline-block;
    background: rgba(3, 139, 185, 0.09);
    color: #038BB9;
    padding: 15px 20px;
    border-radius: 10px;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 140%;
}

.products-main-title {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 100%;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0C4F7C;
    margin-bottom: 24px;
}

.products-description {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    max-width: 90%;
}

/* Right Side Carousel */
.products-right {
    position: relative;
    margin-right: -20px;
    padding-right: 0;
    overflow: visible; /* Ensure arrows are visible */
}

.products-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 32px;
}

.products-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.product-slide {
    min-width: 100%;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.product-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Horizontal Scroll for All Products */
.products-horizontal-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.products-horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.products-horizontal-scroll .product-card {
    min-width: 300px;
    flex-shrink: 0;
    max-width: 300px;
}

/* Carousel Navigation for All Products */
.product-slide[data-category="all"] {
    position: relative;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(3, 139, 185, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    z-index: 100;
}

.carousel-nav:hover {
    background: white;
    border-color: #038BB9;
    box-shadow: 0 4px 12px rgba(3, 139, 185, 0.2);
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
    fill: #038BB9;
}

.carousel-nav:hover svg {
    fill: #027a9e;
}

.carousel-nav.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-nav.disabled:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(3, 139, 185, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.products-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 32px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.product-image {
    height: 300px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-content {
    padding: 24px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.product-subtitle {
    font-size: 14px;
    color: #64748b;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

/* Filter Tabs Container */
.products-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 1px solid rgba(224, 224, 224, 0.3);
    position: relative;
    padding-bottom: 0;
}

.filter-tab {
    flex: 1;
    padding: 0 20px 15px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: normal;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    border-bottom: none;
    outline: none;
    line-height: 1.5em;
}

/* Tab indicator animation */
.filter-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: rgba(224, 224, 224, 0.5);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                background-color 0.3s ease;
}

/* Active tab styling */
.filter-tab.active {
    color: #038BB9;
    font-weight: 500;
}

.filter-tab.active::after {
    background-color: #038BB9;
    transform: scaleX(1);
}

/* Hover effects */
.filter-tab:hover {
    color: #038BB9;
}

.filter-tab:not(.active):hover::after {
    background-color: rgba(3, 139, 185, 0.6);
    transform: scaleX(0.3);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .products-left {
        padding-right: 0;
        order: 1;
    }
    
    .products-right {
        order: 2;
    }
    
    .products-main-title {
        font-size: 36px;
    }
    
    .products-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 60px 0;
    }
    
    .products-container {
        padding: 0 15px;
    }
    
    .products-layout {
        gap: 40px;
    }
    
    .products-main-title {
        font-size: 28px;
    }
    
    .products-badge-text {
        font-size: 20px;
        padding: 12px 16px;
    }
    
    .products-description {
        font-size: 14px;
    }
    
    .product-card {
        height: 350px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .products-filter-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 14px;
    }
}