/* Services section styling with modern tech aesthetic */

.services-section {
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}

/* Add subtle tech background elements */
.services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(91, 152, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(56, 214, 174, 0.05) 0%, transparent 50%);
  z-index: -1;
}

/* Tech-inspired heading with gradient */
.services-section .section-title {
  background: linear-gradient(90deg, #5B98FF 0%, #38D6AE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

/* Service card styling */
.service-card {
  background-color: var(--bs-light-bg);
  border-radius: 12px;
  padding: 1.8rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-top: 3px solid transparent;
  background-image: linear-gradient(var(--bs-light-bg), var(--bs-light-bg)), 
                    linear-gradient(90deg, #5B98FF, #38D6AE);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Circuit background for cards */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  background-image: 
    linear-gradient(to right, transparent 49%, rgba(91, 152, 255, 0.3) 50%, transparent 51%),
    linear-gradient(to bottom, transparent 49%, rgba(91, 152, 255, 0.3) 50%, transparent 51%);
  background-size: 30px 30px;
  z-index: 0;
}

/* Service icon container */
.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(91, 152, 255, 0.1) 0%, rgba(56, 214, 174, 0.1) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Icon styling */
.service-icon i {
  font-size: 28px;
  background: linear-gradient(90deg, #5B98FF 0%, #38D6AE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 2;
}

/* Animated background for service icon */
.service-icon::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(91, 152, 255, 0),
    rgba(91, 152, 255, 0.1),
    rgba(56, 214, 174, 0),
    rgba(56, 214, 174, 0.1)
  );
  transform: rotate(45deg);
  animation: iconShimmer 3s linear infinite;
  z-index: 1;
}

@keyframes iconShimmer {
  0% {
    transform: rotate(45deg) translateY(-100%);
  }
  100% {
    transform: rotate(45deg) translateY(100%);
  }
}

/* Service card heading */
.service-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

/* Service description */
.service-card p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}

/* Feature list styling */
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.service-card li {
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
  position: relative;
  opacity: 0.9;
}

.service-card li:before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--bs-accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Service category tag */
.service-tag {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(91, 152, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Bottom action button (optional) */
.service-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--bs-accent);
  font-weight: 500;
  transition: transform 0.2s ease;
}

.service-action:hover {
  transform: translateX(3px);
}

/* CTA container */
.services-cta-container {
  margin-top: 3rem;
  text-align: center;
  padding: 2rem;
  background-color: var(--bs-light-bg);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.services-cta-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  background-image: 
    radial-gradient(circle at 20% 35%, rgba(91, 152, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 75%, rgba(56, 214, 174, 0.2) 0%, transparent 50%);
  z-index: 0;
}

.services-cta-container p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Responsive styles */
@media (max-width: 991px) {
  .services-section {
    padding: 3rem 1rem;
  }
  
  .service-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767px) {
  .services-section {
    padding: 2.5rem 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }
  
  .service-icon i {
    font-size: 24px;
  }
  
  .service-card h4 {
    font-size: 1.2rem;
  }
}