/* Services Showcase Gallery for About Section */
.services-showcase {
  margin: 80px 0;
  position: relative;
}

.services-showcase-header {
  text-align: center;
  margin-bottom: 40px;
}

.services-showcase-header h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.services-showcase-header h2:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fad02c;
  box-shadow: 0 0 10px rgba(250, 208, 44, 0.5);
}

.services-showcase-header p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.services-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 25px;
  margin-top: 30px;
}

.service-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  height: 300px;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover .service-img {
  transform: scale(1.1);
}

.service-card:hover .service-overlay {
  opacity: 0.85;
}

.service-card:hover .service-content {
  transform: translateY(0);
  opacity: 1;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  transform-origin: center;
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 20%,
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0.7;
  transition: opacity 0.4s ease;
}

.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 25px;
  color: #fff;
  transform: translateY(20px);
  opacity: 0.9;
  transition: all 0.4s ease;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fad02c;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.service-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  background: rgba(250, 208, 44, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fad02c;
  font-size: 1.2rem;
  border: 2px solid rgba(250, 208, 44, 0.3);
  transition: all 0.3s ease;
  opacity: 0.9;
}

.service-card:hover .service-icon {
  transform: rotate(360deg);
  background: rgba(250, 208, 44, 0.4);
}

/* Section connector styling to create a smooth transition between sections */
.services-showcase::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 80px;
  background: linear-gradient(
    to bottom,
    rgba(250, 208, 44, 0.1),
    rgba(250, 208, 44, 0.5),
    rgba(250, 208, 44, 0.1)
  );
  border-radius: 2px;
}

/* Add glow effect on hover for service cards */
.service-card:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(250, 208, 44, 0.4);
  opacity: 0;
  animation: glow-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-pulse {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Animation for visible cards */
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Initial state for scroll animations */
.services-gallery .service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Decorative Elements */
.service-accent {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 4px solid rgba(250, 208, 44, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.accent-1 {
  top: -20px;
  left: -20px;
}

.accent-2 {
  bottom: -25px;
  right: -25px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .services-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services-gallery {
    grid-template-columns: 1fr;
  }

  .service-card {
    height: 280px;
  }
}
