/* Services Section Animation Styles */
#services {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  z-index: 1;
}

/* Animated background elements */
#services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(227, 30, 36, 0.03) 0%, transparent 15%),
    radial-gradient(circle at 90% 80%, rgba(10, 31, 68, 0.03) 0%, transparent 15%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

/* Service Card Styles */
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
  animation-delay: calc(var(--animation-order) * 0.1s);
}

/* Animation for cards */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card hover effect */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e31e24, #ff6b6b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Service Icon Styles */
.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(227, 30, 36, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
  margin: 0 auto 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-icon i {
  font-size: 2rem;
  color: #e31e24;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

/* Shine effect on icon hover */
.service-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: all 0.6s ease;
  opacity: 0;
}
.service-card h3 {
  color: #1a1d23;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  background: linear-gradient(90deg, #1a1d23, #3a3f47);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.4s ease;
}

.service-card:hover h3 {
  background: linear-gradient(90deg, #e31e24, #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card p {
  color: #6c757d;
  margin-bottom: 1.75rem;
  transition: color 0.3s ease;
  line-height: 1.7;
  font-size: 1.05rem;
}

.service-card:hover p {
  color: #495057;
}

.service-card ul {
  margin-bottom: 2rem;
}

.service-card ul li {
  color: #6c757d;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 1.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.service-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-10px);
}

.service-card ul li:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.service-card ul li:hover {
  color: #1a1d23;
  transform: translateX(5px);
}

.service-card .btn-link {
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  color: #e31e24;
  position: relative;
  padding-right: 1.5rem;
  overflow: hidden;
}

.service-card .btn-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.service-card .btn-link:hover {
  color: #c5191f;
  padding-right: 2rem;
}

.service-card .btn-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.service-card .btn-link i {
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.service-card .btn-link:hover i {
  transform: translateX(5px);
}

/* Animation for service cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  animation-delay: calc(var(--animation-order) * 100ms);
}

/* Responsive adjustments */
/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
  }
  
  .service-card h3 {
    font-size: 1.35rem;
  }
  
  .service-card p {
    font-size: 1rem;
  }
}

/* Animation for section header */
#services .text-center {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards 0.2s;
}

/* Animation for the CTA button */
#services .btn-primary {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards 0.4s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#services .btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #e31e24, #ff6b6b);
  z-index: -1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scaleX(0);
  transform-origin: right;
}

#services .btn-primary:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

#services .btn-primary:hover {
  border-color: #e31e24;
  box-shadow: 0 10px 25px -5px rgba(227, 30, 36, 0.3);
}
