/* ========== CATEGORY SECTION ========== */
.category-section {
    width: 100%;
    overflow: hidden;
    /* margin: 10 0; */
    /* padding: 20px 0; */
    padding: 0px 0px 20px;
    position: relative;
}

.category-section::before,
.category-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.category-section::before {
    left: 0;
    background: linear-gradient(to right, #f5f7fb, transparent);
}

.category-section::after {
    right: 0;
    background: linear-gradient(to left, #f5f7fb, transparent);
}

.category-container {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scrollCategories 30s linear infinite;
    will-change: transform;
}

/* Pause animation on hover */
.category-container:hover {
    animation-play-state: paused;
}

@keyframes scrollCategories {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Category Item */
.category-item {
    flex-shrink: 0;
    padding: 40px 0;
}

.category-card {
    width: 160px;
    height: 160px;
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    background: #bb6604; /* bg-blue-950 */
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: scale(1.05);
    /* box-shadow: 0 20px 30px rgba(10, 25, 41, 0.3); */
}

/* Category Title */
.category-title {
    font-weight: 500;
    color: white;
    text-align: center;
    padding-top: 8px;
    position: relative;
    z-index: 2;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* Image Container */
.category-image-container {
    width: 160px;
    height: 160px;
    position: absolute;
    top: 36px;
    left: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.category-card:hover .category-image-container {
    top: 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image {
    transform: scale(1.15);
}

/* Optional: Add a subtle overlay on hover */
.category-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 41, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.category-card:hover .category-image-container::after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-section {
        margin: 40px 0;
    }
    
    .category-card {
        width: 140px;
        height: 140px;
    }
    
    .category-image-container {
        width: 140px;
        height: 140px;
        top: 30px;
    }
    
    .category-title {
        font-size: 16px;
        padding-top: 6px;
    }
    
    .category-container {
        gap: 30px;
        animation-duration: 25s;
    }
    
    .category-section::before,
    .category-section::after {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .category-section {
        margin: 30px 0;
    }
    
    .category-card {
        width: 120px;
        height: 120px;
    }
    
    .category-image-container {
        width: 120px;
        height: 120px;
        top: 25px;
        border-width: 3px;
    }
    
    .category-title {
        font-size: 14px;
        padding-top: 5px;
    }
    
    .category-container {
        gap: 25px;
        animation-duration: 20s;
    }
    
    .category-section::before,
    .category-section::after {
        width: 40px;
    }
}

@media (max-width: 360px) {
    .category-card {
        width: 100px;
        height: 100px;
    }
    
    .category-image-container {
        width: 100px;
        height: 100px;
        top: 20px;
    }
    
    .category-title {
        font-size: 12px;
    }
    
    .category-container {
        gap: 20px;
    }
}

/* Optional: Dark mode support */
@media (prefers-color-scheme: dark) {
    .category-section::before {
        background: linear-gradient(to right, #1a1a1a, transparent);
    }
    
    .category-section::after {
        background: linear-gradient(to left, #1a1a1a, transparent);
    }
}