/* ============================================
   MODERN BENTO GRID SERVICES SECTION
   ============================================ */

.bento-services-section {
    padding: 4rem 2rem;
    background: #ffffff;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 1400px;
    margin: 2rem auto 0;
}

/* Bento Item */
.bento-item {
    position: relative;
    padding: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    min-height: 200px;
}

.bento-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Column Span */
.bento-col-2 {
    grid-column: span 2;
}

/* Persistent Hover State */
.bento-persistent-hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Background Pattern */
.bento-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-item:hover .bento-bg-pattern,
.bento-persistent-hover .bento-bg-pattern {
    opacity: 1;
}

/* Gradient Border */
.bento-gradient-border {
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bento-item:hover .bento-gradient-border,
.bento-persistent-hover .bento-gradient-border {
    opacity: 1;
}

/* Content */
.bento-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

/* Header */
.bento-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bento-icon-wrapper {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
}

.bento-item:hover .bento-icon-wrapper {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
}

.bento-icon-wrapper i {
    font-size: 1rem;
    color: #3b82f6;
}

.bento-status {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    color: #6b7280;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
}

.bento-item:hover .bento-status {
    background: rgba(0, 0, 0, 0.1);
}

/* Body */
.bento-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bento-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1f2937;
    letter-spacing: -0.01em;
    margin: 0;
}

.bento-meta {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 400;
}

.bento-description {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
    font-weight: 425;
}

/* Footer */
.bento-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.bento-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bento-tag {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    background: rgba(0, 0, 0, 0.05);
    color: #6b7280;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
}

.bento-tag:hover {
    background: rgba(0, 0, 0, 0.1);
}

.bento-cta {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: #9ca3af;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.bento-item:hover .bento-cta {
    opacity: 0;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-col-2 {
        grid-column: span 2;
    }
}

@media screen and (max-width: 768px) {
    .bento-services-section {
        padding: 3rem 1.5rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bento-col-2 {
        grid-column: span 1;
    }

    .bento-item {
        min-height: 200px;
        padding: 1.5rem;
    }

    .bento-tags {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .bento-tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .bento-services-section {
        padding: 2.5rem 1rem;
    }
    
    .bento-item {
        min-height: 180px;
        padding: 1.25rem;
    }
    
    .bento-title {
        font-size: 0.9375rem;
    }

    .bento-description {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .bento-icon {
        width: 45px;
        height: 45px;
    }
    
    .bento-icon i {
        font-size: 1.25rem;
    }
}

    .bento-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .bento-cta {
        opacity: 1;
    }
}
