/* ===============================================
   Modern Services Section Design - Compact & Beautiful
   Override default styles with !important
   =============================================== */

/* Services Section Container - Consistent with Site Theme */
.features_area {
  background: #ffffff !important;
  position: relative;
  overflow: hidden;
  padding: 80px 0 !important;
}

/* Subtle Background Pattern */
.features_area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

/* Main Title Styling - Consistent with Site */
.features_area .main_title {
  position: relative;
  z-index: 2;
  margin-bottom: 60px;
}

.features_area .main_title h2 {
  font-size: 2.8rem !important;
  font-weight: 700;
  color: #1f2937 !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.features_area .main_title h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
  border-radius: 2px;
}

.features_area .main_title p {
  color: #6b7280 !important;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 550px;
  margin: 0 auto;
}

/* Services Grid */
.feature_inner {
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
}

/* Add spacing between rows */
.features_area .row.feature_inner > [class*="col-"] {
  margin-bottom: 25px !important;
}

/* Service Card Design - Compact & Beautiful - Override defaults */
.features_area .feature_item {
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 18px 14px !important;
  text-align: center;
  position: relative;
  overflow: visible !important;
  transition: all 0.3s ease !important;
  border: 1px solid #f1f5f9 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
  margin-bottom: 35px !important;
  height: auto !important;
  min-height: 220px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  max-width: 100% !important;
  will-change: transform, box-shadow !important;
}

/* Service Icon Container */
.features_area .service-icon {
  margin-bottom: 14px !important;
  position: relative;
}

.features_area .service-icon img,
.features_area .feature_item img {
  width: 45px !important;
  height: 45px !important;
  object-fit: contain;
  transition: all 0.3s ease !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1)) !important;
  margin-bottom: 0 !important;
}

.features_area .feature_item:hover .service-icon img,
.features_area .feature_item:hover img {
  transform: scale(1.1) !important;
  filter: drop-shadow(0 4px 10px rgba(79, 70, 229, 0.2)) !important;
}

/* Service Content */
.features_area .service-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Service Title - Override defaults */
.features_area .service-content h4,
.features_area .feature_item h4 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin-bottom: 10px !important;
  text-transform: capitalize !important;
  position: relative;
  transition: all 0.3s ease !important;
  line-height: 1.3 !important;
}

.features_area .feature_item:hover .service-content h4,
.features_area .feature_item:hover h4 {
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  transform: translateY(-2px) !important;
}

/* Service Description - Override defaults */
.features_area .service-content p,
.features_area .feature_item p {
  color: #6b7280 !important;
  line-height: 1.4 !important;
  font-size: 0.8rem !important;
  margin-bottom: 0 !important;
  flex-grow: 1;
  transition: all 0.3s ease !important;
}

.features_area .feature_item:hover .service-content p,
.features_area .feature_item:hover p {
  color: #4b5563 !important;
}

/* Hover Effects - Override defaults */
.features_area .feature_item:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.15) !important;
  border-color: rgba(79, 70, 229, 0.25) !important;
  background: #ffffff !important;
  z-index: 10 !important;
}

/* Service Number Badge */
.features_area .feature_item::after {
  content: attr(data-number);
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.features_area .feature_item:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Service Category Color Coding - Subtle */
.features_area .service-category-mobile:hover {
  border-left: 3px solid #4f46e5 !important;
}

.features_area .service-category-web:hover {
  border-left: 3px solid #6366f1 !important;
}

.features_area .service-category-marketing:hover {
  border-left: 3px solid #4f46e5 !important;
}

.features_area .service-category-consulting:hover {
  border-left: 3px solid #6366f1 !important;
}

.features_area .service-category-content:hover {
  border-left: 3px solid #4f46e5 !important;
}

.features_area .service-category-support:hover {
  border-left: 3px solid #6366f1 !important;
}

/* Responsive Design - Enhanced for All Screen Sizes with !important */
@media (min-width: 1400px) {
  .features_area .feature_item {
    max-width: 280px !important;
    margin: 0 auto 18px !important;
  }
  
  .features_area .main_title h2 {
    font-size: 2.6rem !important;
  }
}

@media (max-width: 1399px) and (min-width: 1200px) {
  .features_area {
    padding: 70px 0 !important;
  }
  
  .features_area .main_title h2 {
    font-size: 2.4rem !important;
  }
  
  .features_area .feature_item {
    min-height: 210px !important;
    padding: 16px 12px !important;
    margin-bottom: 16px !important;
  }
  
  .features_area .service-icon img,
  .features_area .feature_item img {
    width: 42px !important;
    height: 42px !important;
  }
  
  .features_area .service-content h4,
  .features_area .feature_item h4 {
    font-size: 0.95rem !important;
  }
  
  .features_area .service-content p,
  .features_area .feature_item p {
    font-size: 0.78rem !important;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .features_area {
    padding: 60px 0 !important;
  }
  
  .features_area .main_title h2 {
    font-size: 2.2rem !important;
  }
  
  .features_area .feature_item {
    min-height: 200px !important;
    padding: 14px 10px !important;
    margin-bottom: 14px !important;
  }
  
  .features_area .service-icon {
    margin-bottom: 12px !important;
  }
  
  .features_area .service-icon img,
  .features_area .feature_item img {
    width: 40px !important;
    height: 40px !important;
  }
  
  .features_area .service-content h4,
  .features_area .feature_item h4 {
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
  }
  
  .features_area .service-content p,
  .features_area .feature_item p {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .features_area {
    padding: 50px 0 !important;
  }
  
  .features_area .main_title h2 {
    font-size: 2rem !important;
  }
  
  .features_area .feature_item {
    min-height: 190px !important;
    padding: 12px 8px !important;
    margin-bottom: 12px !important;
    max-width: 260px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .features_area .service-icon {
    margin-bottom: 10px !important;
  }
  
  .features_area .service-icon img,
  .features_area .feature_item img {
    width: 36px !important;
    height: 36px !important;
  }
  
  .features_area .service-content h4,
  .features_area .feature_item h4 {
    font-size: 0.85rem !important;
    margin-bottom: 6px !important;
  }
  
  .features_area .service-content p,
  .features_area .feature_item p {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 767px) and (min-width: 576px) {
  .features_area {
    padding: 40px 0 !important;
  }
  
  .features_area .main_title h2 {
    font-size: 1.8rem !important;
    letter-spacing: 1px !important;
  }
  
  .features_area .main_title p {
    font-size: 0.95rem !important;
  }
  
  .features_area .feature_item {
    padding: 14px 12px !important;
    min-height: 180px !important;
    margin-bottom: 12px !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .features_area .service-icon {
    margin-bottom: 10px !important;
  }
  
  .features_area .service-icon img,
  .features_area .feature_item img {
    width: 34px !important;
    height: 34px !important;
  }
  
  .features_area .service-content h4,
  .features_area .feature_item h4 {
    font-size: 0.8rem !important;
    margin-bottom: 6px !important;
  }
  
  .features_area .service-content p,
  .features_area .feature_item p {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 575px) {
  .features_area .main_title h2 {
    font-size: 1.6rem !important;
  }
  
  .features_area .feature_item {
    padding: 12px 10px !important;
    min-height: 170px !important;
    margin-bottom: 10px !important;
  }
  
  .features_area .service-icon {
    margin-bottom: 8px !important;
  }
  
  .features_area .service-icon img,
  .features_area .feature_item img {
    width: 30px !important;
    height: 30px !important;
  }
  
  .features_area .service-content h4,
  .features_area .feature_item h4 {
    font-size: 0.75rem !important;
    margin-bottom: 4px !important;
  }
  
  .features_area .service-content p,
  .features_area .feature_item p {
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
  }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Animation */
.feature_item:nth-child(1) { animation-delay: 0.1s; }
.feature_item:nth-child(2) { animation-delay: 0.2s; }
.feature_item:nth-child(3) { animation-delay: 0.3s; }
.feature_item:nth-child(4) { animation-delay: 0.4s; }
.feature_item:nth-child(5) { animation-delay: 0.5s; }
.feature_item:nth-child(6) { animation-delay: 0.6s; }

/* Service Categories */
.service-category-mobile .feature_item {
  border-left: 4px solid #3498db;
}

.service-category-web .feature_item {
  border-left: 4px solid #e74c3c;
}

.service-category-marketing .feature_item {
  border-left: 4px solid #f39c12;
}

.service-category-consulting .feature_item {
  border-left: 4px solid #9b59b6;
}

.service-category-content .feature_item {
  border-left: 4px solid #1abc9c;
}

.service-category-support .feature_item {
  border-left: 4px solid #34495e;
}

/* ===============================================
   Enhanced Professional Design Elements
   =============================================== */

/* Service Icon Enhanced Styling */
.service-icon img {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
}

.feature_item:hover .service-icon img {
  transform: scale(1.15);
  filter: drop-shadow(0 6px 20px rgba(79, 70, 229, 0.25));
}

/* Card Background Enhancement */
.feature_item {
  background: linear-gradient(145deg, #ffffff 0%, #fafbff 100%);
  border: 1px solid rgba(79, 70, 229, 0.08);
}

.feature_item:hover {
  background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
  border-color: rgba(79, 70, 229, 0.2);
}

/* Enhanced Shadow System */
.feature_item {
  box-shadow: 
    0 2px 15px rgba(0, 0, 0, 0.06),
    0 1px 6px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feature_item:hover {
  box-shadow: 
    0 15px 35px rgba(79, 70, 229, 0.12),
    0 5px 20px rgba(0, 0, 0, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Service Title Enhanced Styling */
.service-content h4 {
  position: relative;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Service Description Enhanced */
.service-content p {
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* Improved Responsive Grid - Fixed for Medium Screens */
@media (min-width: 1400px) {
  .feature_item {
    max-width: 350px;
    margin: 0 auto 25px;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .feature_item {
    min-height: 250px;
    max-width: none;
  }
  
  .service-icon::before {
    width: 70px;
    height: 70px;
  }
  
  .service-content h4::after {
    width: 35px;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .feature_item {
    min-height: 240px;
  }
  
  .service-icon::before {
    width: 65px;
    height: 65px;
  }
  
  .service-content h4::after {
    width: 30px;
  }
}

@media (max-width: 767px) and (min-width: 576px) {
  .feature_item {
    min-height: 230px;
    max-width: 400px;
    margin: 0 auto 20px;
  }
  
  .service-icon::before {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 575px) {
  .service-icon::before {
    width: 55px;
    height: 55px;
  }
}

/* Loading Animation Enhancement */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.feature_item.animate-on-scroll {
  animation: slideInUp 0.6s ease-out both;
}

/* Service Number Badge Enhancement */
.feature_item::after {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Smooth Transitions */
.feature_item,
.service-icon img,
.service-content h4,
.service-content p {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Focus Enhancement for Accessibility */
.feature_item:focus-within {
  outline: 2px solid #4f46e5;
  outline-offset: 4px;
  transform: translateY(-5px);
  box-shadow: 
    0 15px 35px rgba(79, 70, 229, 0.15),
    0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Enhanced Print Styles */
@media print {
  .features_area {
    background: white !important;
    padding: 20px 0 !important;
  }
  
  .feature_item {
    background: white !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    margin-bottom: 15px !important;
    padding: 15px !important;
    break-inside: avoid;
  }
  
  .service-content h4 {
    color: #000 !important;
    font-size: 14px !important;
  }
  
  .service-content p {
    color: #333 !important;
    font-size: 12px !important;
  }
  
  .service-icon img {
    width: 30px !important;
    height: 30px !important;
  }
}
/* Additional fixes for medium screens - Override with !important */
@media (max-width: 1199px) and (min-width: 768px) {
  .row.feature_inner {
    margin-left: -8px !important;
    margin-right: -8px !important;
  }
  
  .row.feature_inner > [class*="col-"] {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  
  .features_area .feature_item {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Ensure consistent spacing */
@media (max-width: 991px) and (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  
  .features_area .feature_item {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 85% !important;
  }
}

/* Fix for small tablets */
@media (max-width: 767px) and (min-width: 576px) {
  .col-sm-10 {
    flex: 0 0 83.333333% !important;
    max-width: 83.333333% !important;
  }
}

/* Service Number Badge - Responsive with !important */
.features_area .feature_item::after {
  width: 16px !important;
  height: 16px !important;
  font-size: 0.55rem !important;
  top: 8px !important;
  right: 8px !important;
}

@media (max-width: 1199px) and (min-width: 992px) {
  .features_area .feature_item::after {
    width: 14px !important;
    height: 14px !important;
    font-size: 0.5rem !important;
    top: 6px !important;
    right: 6px !important;
  }
}

@media (max-width: 991px) {
  .features_area .feature_item::after {
    width: 12px !important;
    height: 12px !important;
    font-size: 0.45rem !important;
    top: 5px !important;
    right: 5px !important;
  }
}