/* Gallery Grid Section Styles */
.gallery-grid-section {
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover .gallery-image-wrapper img {
  transform: scale(1.08);
  filter: brightness(0.8);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding: 0 20px;
  animation: slideUp 0.4s ease-out 0.1s forwards;
  opacity: 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Testimonials Section Styles */
.gallery-testimonials-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(88, 128, 232, 0.05) 0%, rgba(232, 152, 87, 0.05) 100%);
}

.testimonial-card {
  background: white;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid #e8ecf1;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card:hover {
  border-color: var(--accent-secondary-color);
  box-shadow: 0 12px 32px rgba(88, 128, 232, 0.15);
  transform: translateY(-4px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
  border-radius: 50%;
  color: white;
  font-size: 1.8rem;
}

.testimonial-header h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.testimonial-header p {
  font-size: 0.85rem;
  margin: 0;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  font-size: 0.9rem;
}

.testimonial-stars i {
  color: #ffc107;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--body-color);
  margin: 0;
  flex-grow: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .gallery-grid-section {
    padding: 60px 0;
  }

  .gallery-testimonials-section {
    padding: 60px 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .gallery-item {
    aspect-ratio: 1.1 / 1;
  }

  .gallery-overlay h3 {
    font-size: 1.2rem;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-header {
    gap: 10px;
  }

  .testimonial-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .testimonial-header h5 {
    font-size: 0.95rem;
  }

  .testimonial-header p {
    font-size: 0.8rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-item {
    aspect-ratio: 1 / 1;
  }

  .gallery-overlay h3 {
    font-size: 1rem;
    padding: 0 15px;
  }

  .gallery-grid-section .section-header h2,
  .gallery-testimonials-section .section-header h2 {
    font-size: 1.8rem;
  }

  .section-sublead {
    font-size: 0.95rem;
  }

  .testimonial-card {
    padding: 16px;
    gap: 12px;
  }

  .testimonial-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .testimonial-header {
    gap: 8px;
  }

  .testimonial-header h5 {
    font-size: 0.9rem;
  }

  .testimonial-header p {
    font-size: 0.75rem;
  }

  .testimonial-stars {
    font-size: 0.8rem;
    gap: 2px;
  }

  .testimonial-text {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}

/* Section Header Styles (Shared) */
.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.section-sublead {
  font-size: 1rem;
  color: var(--body-color);
  line-height: 1.8;
}
