/* Services Section Styles */

.services-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.services-section .container {
  position: relative;
  z-index: 2;
}

/* Section Badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(235, 190, 0, 0.1);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.section-badge i {
  color: var(--secondary-color);
}

/* Service Cards */
.service-card {
  padding: 40px 30px;
  height: 100%;
  transition: all 0.4s ease;
  border: 1px solid rgba(2, 44, 130, 0.1);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(
    180deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: height 0.4s ease;
  z-index: 1;
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(2, 44, 130, 0.15);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(2, 44, 130, 0.2);
}

/* Service Number */
.service-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(2, 44, 130, 0.06);
  line-height: 1;
  z-index: 1;
}

/* Service Icon */
.service-icon-wrapper {
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    rgba(2, 44, 130, 0.1),
    rgba(2, 44, 130, 0.05)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
}

.service-icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 22px;
  border: 2px solid transparent;
  background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    )
    border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary-color), #0347b8);
  transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-icon::after {
  opacity: 1;
}

.service-icon i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon i {
  color: var(--secondary-color);
  transform: scale(1.1);
}

/* Service Content */
.service-card h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 1.4rem;
  position: relative;
  z-index: 2;
}

.service-card p {
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

/* Service Features List */
.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  position: relative;
  z-index: 2;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: 10px;
  padding-left: 5px;
}

.service-features li i {
  color: var(--secondary-color);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Service Link */
.service-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(2, 44, 130, 0.1);
}

.service-link:hover {
  color: var(--secondary-color);
  gap: 15px;
}

.service-link i {
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Floating Background Shapes */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.floating-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  will-change: transform;
}

.floating-shapes .shape-1 {
  width: 150px;
  height: 150px;
  background: var(--primary-color);
  top: 5%;
  right: 8%;
  animation: float 20s ease-in-out infinite;
}

.floating-shapes .shape-2 {
  width: 100px;
  height: 100px;
  background: var(--secondary-color);
  top: 40%;
  left: 5%;
  animation: float 18s ease-in-out infinite reverse;
  animation-delay: 1s;
}

.floating-shapes .shape-3 {
  width: 120px;
  height: 120px;
  background: var(--primary-color);
  bottom: 15%;
  right: 12%;
  animation: float 22s ease-in-out infinite;
  animation-delay: 2s;
}

.floating-shapes .shape-4 {
  width: 80px;
  height: 80px;
  background: var(--secondary-color);
  top: 60%;
  right: 20%;
  animation: float 16s ease-in-out infinite;
  animation-delay: 0.5s;
}

.floating-shapes .shape-5 {
  width: 110px;
  height: 110px;
  background: var(--primary-color);
  bottom: 25%;
  left: 10%;
  animation: float 24s ease-in-out infinite reverse;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -20px) rotate(90deg);
  }
  50% {
    transform: translate(-15px, 15px) rotate(180deg);
  }
  75% {
    transform: translate(15px, 20px) rotate(270deg);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .service-card {
    padding: 35px 25px;
  }

  .service-card h4 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .floating-shapes .shape {
    opacity: 0.04;
  }

  .floating-shapes .shape-1,
  .floating-shapes .shape-3,
  .floating-shapes .shape-5 {
    width: 90px;
    height: 90px;
  }

  .floating-shapes .shape-2,
  .floating-shapes .shape-4 {
    width: 60px;
    height: 60px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .service-icon {
    width: 70px;
    height: 70px;
  }

  .service-icon i {
    font-size: 1.7rem;
  }

  .service-card h4 {
    font-size: 1.25rem;
  }

  .service-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .service-card {
    padding: 25px 20px;
  }

  .service-icon {
    width: 65px;
    height: 65px;
  }

  .service-icon i {
    font-size: 1.5rem;
  }

  .service-card h4 {
    font-size: 1.2rem;
  }

  .service-features li {
    font-size: 0.85rem;
  }
}
