/* Services Section Styles */
.services-section {
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
  background: #1a1a2e;
  color: white;
  position: relative;
}

.section-header {
  position: relative;
  z-index: 2;
}

.section-title-services {
  font-size: 2.5rem;
  font-weight: 700;
  color: white !important;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #1c2e4a, #8b5cf6);
  border-radius: 2px;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.service-card {
  background: rgba(30, 30, 60, 0.7);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 12px;
  padding: 30px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #1c2e4a, #8b5cf6);
  transition: all 0.4s ease;
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.15);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  overflow: hidden; /* prevent image overflow */
}

.service-card:hover .service-icon {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.service-icon img {
  width: 50%;
  height: 50%;
  object-fit: contain;
  transition: all 0.4s ease;
  filter: brightness(0) saturate(100%) invert(39%) sepia(98%) saturate(749%) hue-rotate(228deg) brightness(98%) contrast(94%);
  /* Dark blue tone */
}

/* On hover of the service card, change icon to white */
.service-card:hover .service-icon img {
  filter: brightness(0) invert(1);
}


.service-card:hover .service-icon i {
  color: #fff;
  transform: rotate(15deg);
}

.service-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: white;
  transition: all 0.4s ease;
}

.service-card:hover .service-title {
  color: #fff;
}

.service-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.service-card:hover .service-description {
  color: rgba(255, 255, 255, 0.9);
}

.service-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  color: #8b5cf6;
  transition: color 0.3s ease;
}

.service-link:hover {
  color: #8b5cf6; /* Optional hover color */
}

.arrow-icon {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  transition: transform 0.3s ease;
  filter: brightness(0) saturate(100%) invert(12%) sepia(12%) saturate(1927%)
    hue-rotate(174deg) brightness(95%) contrast(91%);
  /* Simulates dark icon color */
}

.service-link:hover .arrow-icon {
  transform: translateX(4px);
}

.service-card:hover .service-link {
  color: #fff;
}

.service-card:hover .service-link i {
  transform: translateX(5px);
}

/* Ripple Effect */
.ripple-effect {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: ripple 1s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  0% {
    width: 20px;
    height: 20px;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }

  .service-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .service-icon {
    width: 70px;
    height: 70px;
  }

  .service-title {
    font-size: 1.3rem;
  }
}
