/* Background Animation */
.category-circles-container {
    position: relative;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Animate background texture diagonally */
@keyframes diagonal-move {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Add this class to your Elementor section */
.diagonal-bg-animation {
    background-repeat: repeat !important;
    background-size: 300px !important;
    animation: diagonal-move 30s linear infinite;
}

/* Category Grid Layout */
.circle-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

/* Category Circle with Simple Fade In */
.category-circle {
    position: relative;
    width: calc(20% - 1.6rem); /* 5 items per row */
    min-width: 200px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: calc(var(--circle-index, 0) * 0.1s);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Circle Image Container */
.mandala-mask {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Category Image */
.mandala-mask img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    z-index: 1;
}

/* Mandala Overlay */
.mandala-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/mandala-mask.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    z-index: 2;
}

/* Category Title */
.category-circle h3 {
    text-align: center;
    margin: 1rem 0 0;
    padding: 0 0.5rem;
    font-size: 2rem !important;
    color: #333;
    transition: color 0.3s ease;
    width: 100%;
    font-weight: 600;
}

/* Hover Effects */
.category-circle:hover .mandala-mask {
    transform: translateY(-5px);
}

.category-circle:hover .mandala-mask img {
    transform: scale(1.1);
}

.category-circle:hover .mandala-overlay {
    transform: rotate(10deg);
}

.category-circle:hover h3 {
    color: #000;
}

/* Tablet Layout */
@media (max-width: 1024px) {
    .category-circles-container {
        padding: 3rem 1.5rem;
    }

    .circle-row {
        gap: 1.5rem;
    }

    .category-circle {
        width: calc(33.333% - 1.34rem); /* 3 items per row */
        min-width: 180px;
    }

    .category-circle h3 {
        font-size: 1.1rem;
    }
}

/* Mobile Layout */
@media (max-width: 768px) {
    .category-circles-container {
        padding: 2rem 1rem;
    }

    .circle-row {
        gap: 1rem;
    }

    .category-circle {
        width: calc(50% - 1rem); /* 2 items per row */
        min-width: 150px;
    }

    .category-circle h3 {
        font-size: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .category-circles-container {
        padding: 1.5rem 0.8rem;
    }

    .circle-row {
        gap: 0.8rem;
    }

    .category-circle {
        min-width: 120px;
    }

    .category-circle h3 {
        font-size: 0.9rem;
    }
}