/* ==========================================================================
   Bento Box Services Section (Light Premium Layout)
   ========================================================================== */

.services-bento-section {
  background: #f8fafc;
  color: #0f172a;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.services-bento-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.services-bento-section .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1rem;
  margin-top: 2rem;
}

.bento-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  z-index: 1;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 20px rgba(56, 189, 248, 0.15);
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
}

.bento-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bento-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  transition: transform 0.7s ease, opacity 0.4s ease;
}

.bento-card:hover .bento-bg img {
  transform: scale(1.08);
  opacity: 0.25;
}

.bento-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0) 100%);
}

.bento-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
}

.bento-icon {
  width: 44px;
  height: 44px;
  background: rgba(56, 189, 248, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  margin-bottom: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: all 0.4s ease;
}

.bento-card:hover .bento-icon {
  background: #0ea5e9;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.bento-icon svg {
  width: 24px;
  height: 24px;
}

.bento-card h3 {
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.bento-card:hover h3 {
  color: #0284c7;
}

.bento-card p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.bento-link {
  display: inline-flex;
  align-items: center;
  color: #334155;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-top: auto;
}

.bento-link .arrow {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.bento-card:hover .bento-link {
  color: #0284c7;
}

.bento-card:hover .arrow {
  transform: translateX(5px);
}

/* Bento Grid Spans */
.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-large .bento-content {
  justify-content: space-between;
}

.bento-large .bento-icon {
  width: 64px;
  height: 64px;
}

.bento-large .bento-icon svg {
  width: 32px;
  height: 32px;
}

.bento-large h3 {
  font-size: 1.8rem;
}

.bento-large p {
  font-size: 1.1rem;
  max-width: 80%;
}

.bento-wide {
  grid-column: span 2;
}

/* Responsive */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-large, .bento-wide {
    grid-column: span 2;
  }
  .bento-large {
    grid-row: span 1;
  }
  .bento-large p {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-large, .bento-wide {
    grid-column: span 1;
  }
  .bento-content {
    padding: 1.5rem;
  }
}
