
.boxes-section {
    padding: 40px 20px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.boxes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(2, 119, 189, 0.05) 0%, transparent 70%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.boxes-section:hover::before {
    opacity: 0.8;
}

.boxes-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    max-width: 1296px;
    margin: 0 auto;
}

.box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #1a252f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: var(--animation-delay);
}

.box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(2, 119, 189, 0.3);
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(2, 119, 189, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.box:hover::before {
    opacity: 1;
}

.box-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.box-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.box:hover .box-image {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.box h3 {
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0;
    color: #1a252f;
    transition: color 0.3s ease;
}

.box:hover h3 {
    color: #0277BD;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .boxes-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .boxes-container {
        grid-template-columns: repeat(2, 1fr); /* دوتایی کنار هم */
        gap: 12px; /* کاهش فاصله برای جا شدن بهتر */
    }

    .box {
        padding: 20px; /* کاهش padding برای تناسب */
    }

    .box-image {
        width: 70px;
        height: 70px;
    }

    .box h3 {
        font-size: 0.84rem;
    }
}

@media (max-width: 480px) {
    .boxes-section {
        padding: 20px 10px; /* کاهش padding برای فضای بیشتر */
    }

    .boxes-container {
        grid-template-columns: repeat(2, 1fr); /* دوتایی کنار هم */
        gap: 10px; /* کاهش فاصله برای تناسب */
    }

    .box {
        padding: 15px; /* کاهش padding برای تناسب */
    }

    .box-image {
        width: 60px;
        height: 60px;
    }

    .box h3 {
        font-size: 0.8rem;
    }
}
