/* Modern Services Section Styles */
.services-section-modern {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.services-section-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: radial-gradient(circle at 50% 0%, rgba(198, 24, 79, 0.05), transparent);
  pointer-events: none;
}

.modern-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
  padding: 0 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.modern-service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-service-card.fade-up {
  opacity: 1;
  transform: translateY(0);
}

.modern-service-card[data-delay="100"] { transition-delay: 0.1s; }
.modern-service-card[data-delay="200"] { transition-delay: 0.2s; }
.modern-service-card[data-delay="300"] { transition-delay: 0.3s; }

.service-card-inner {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modern-service-card:hover .service-card-inner {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(198, 24, 79, 0.15);
}

.service-image-container {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modern-service-card:hover .service-overlay {
  opacity: 1;
}

.service-icon-badge {
  position: absolute;
  top: 180px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #A11440, #C6184F);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(198, 24, 79, 0.3);
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 5px solid white;
}

.modern-service-card:hover .service-icon-badge {
  transform: translateX(-50%) scale(1.1) rotate(360deg);
  background: linear-gradient(135deg, #F3724A, #C6184F);
}

.service-icon-badge i {
  font-size: 32px;
  color: white;
}

.service-card-content {
  padding: 50px 25px 30px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-size: 24px;
  font-weight: 800;
  color: #A11440;
  margin: 0 0 20px;
  line-height: 1.3;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
  flex: 1;
}

.service-features li {
  padding: 10px 0;
  color: #1f2a37;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.service-features li:last-child {
  border-bottom: none;
}

.modern-service-card:hover .service-features li {
  padding-left: 5px;
}

.service-features li i {
  color: #F3724A;
  font-size: 14px;
  flex-shrink: 0;
}

.modern-service-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: linear-gradient(135deg, #A11440, #C6184F);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(198, 24, 79, 0.2);
  position: relative;
  overflow: hidden;
}

.modern-service-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.modern-service-btn:hover::before {
  left: 100%;
}

.modern-service-btn:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 25px rgba(198, 24, 79, 0.4);
  background: linear-gradient(135deg, #F3724A, #C6184F);
}

.modern-service-btn i {
  transition: transform 0.3s ease;
}

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

/* Modern Title and Subtitle Styles */
.services-section-modern .section-title h2 {
  background: linear-gradient(135deg, #A11440 0%, #3778e9 50%, #C6184F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(55, 120, 233, 0.3);
  animation: titleGlow 3s ease-in-out infinite alternate;
  position: relative;
}

.services-section-modern .section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #A11440, #3778e9, #C6184F);
  border-radius: 2px;
  animation: lineGrow 2s ease-out;
}

.services-section-modern .section-title p {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(31, 42, 55, 0.9);
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 4px 20px rgba(55, 120, 233, 0.3);
  }
  100% {
    text-shadow: 0 4px 30px rgba(55, 120, 233, 0.5), 0 0 40px rgba(198, 24, 79, 0.2);
  }
}

@keyframes lineGrow {
  0% {
    width: 0;
  }
  100% {
    width: 80px;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .services-section-modern {
    padding: 60px 0;
  }
  
  .modern-services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }
  
  .service-image-container {
    height: 200px;
  }
  
  .service-icon-badge {
    width: 70px;
    height: 70px;
    top: 165px;
  }
  
  .service-icon-badge i {
    font-size: 28px;
  }
  
  .service-card-title {
    font-size: 20px;
  }
  
  .service-features li {
    font-size: 14px;
    padding: 8px 0;
  }
  
  .modern-service-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .services-section-modern .section-title h2 {
    font-size: 32px;
    letter-spacing: 2px;
  }

  .services-section-modern .section-title p {
    font-size: 18px;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .services-section-modern .section-title h2 {
    font-size: 28px;
    letter-spacing: 1px;
  }
  
  .services-section-modern .section-title p {
    font-size: 16px;
    padding: 12px 15px;
  }
}

/* Animation trigger on scroll */
@media (prefers-reduced-motion: no-preference) {
  .modern-service-card {
    animation: fadeInUp 0.6s ease forwards;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
