/* Attractive Services Slider CSS */
.attractive-services-slider {
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px 0 20px; /* Add equal padding on both sides */
  overflow: visible;
}

.attractive-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  margin: 0; /* Reset any negative margins */
}

.attractive-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 15px; /* Reduced gap to make boxes appear smaller */
  padding: 10px 0;
  margin: 0; /* Ensure no negative margins */
  width: max-content; /* Make track as wide as its content */
}

.attractive-service-box {
  flex: 0 0 calc(25% - 11px); /* Always 4 boxes per row with reduced gap */
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  border: 2px solid #0088cc;
  border-radius: 15px;
  padding: 15px 12px; /* Reduced padding to make boxes smaller */
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.25);
  min-width: 0;
  position: relative;
  overflow: visible;
  margin: 0 0 0 0; /* Ensure no negative margins */
  box-sizing: border-box;
  min-height: 180px; /* Reduced minimum height */
}

.attractive-service-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 136, 204, 0.1) 0%, transparent 70%);
  transform: rotate(30deg);
  z-index: 0;
}

.attractive-service-box:hover {
  transform: translateY(-8px); /* Reduced transform */
  box-shadow: 0 12px 30px rgba(0, 136, 204, 0.4);
  border-color: #00aaff;
  z-index: 10;
}

.attractive-service-box:hover::before {
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(30deg); }
  to { transform: rotate(390deg); }
}

.service-icon {
  width: 55px; /* Reduced size */
  height: 55px; /* Reduced size */
  background: linear-gradient(135deg, #0088cc, #0066aa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px; /* Reduced margin */
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.attractive-service-box:hover .service-icon {
  transform: scale(1.05) rotate(5deg); /* Reduced transform */
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
}

.service-icon i {
  font-size: 22px; /* Reduced size */
  color: white;
}

.service-name {
  font-size: 15px; /* Reduced size */
  font-weight: 700;
  margin: 0 0 12px 0; /* Reduced margin */
  background: linear-gradient(to right, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  font-family: 'Open Sans', Arial, sans-serif;
}

.projects-done {
  font-size: 16px; /* Reduced size */
  font-weight: 800;
  margin: 0;
  background: linear-gradient(to right, #00d4ff, #0088cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  font-family: 'Open Sans', Arial, sans-serif;
}

.projects-label {
  font-size: 12px; /* Reduced size */
  color: #cccccc;
  margin: 4px 0 0 0; /* Reduced margin */
  position: relative;
  z-index: 1;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* Slider Navigation */
.attractive-slider-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding: 0 10px;
}

.attractive-slider-btn {
  background: linear-gradient(135deg, #0088cc, #0066aa);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
  position: relative;
  flex-shrink: 0;
}

.attractive-slider-btn::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00aaff, #0088cc);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.attractive-slider-btn:hover {
  background: linear-gradient(135deg, #00aaff, #0088cc);
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
}

.attractive-slider-btn:hover::before {
  opacity: 1;
}

.attractive-slider-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.2);
}

.attractive-slider-btn:disabled::before {
  opacity: 0;
}

.attractive-slider-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
  transition: transform 0.2s ease;
}

.attractive-slider-btn:hover:not(:disabled) svg {
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .attractive-service-box {
    flex: 0 0 calc(100% - 0px); /* Single box on mobile */
    margin: 0 5px;
    box-sizing: border-box;
  }
  
  .attractive-services-slider {
    padding: 0 15px;
  }
  
  .attractive-slider-container {
    padding: 15px 0;
  }
  
  .attractive-slider-track {
    gap: 15px;
    padding: 15px 0;
  }
  
  .attractive-slider-nav {
    margin-top: 25px;
    padding: 0 5px;
  }
  
  .attractive-slider-btn {
    width: 45px;
    height: 45px;
  }
  
  .attractive-slider-btn svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .service-icon {
    width: 55px;
    height: 55px;
  }
  
  .service-icon i {
    font-size: 22px;
  }
  
  .service-name {
    font-size: 15px;
  }
  
  .projects-done {
    font-size: 16px;
  }
  
  .attractive-slider-btn {
    width: 40px;
    height: 40px;
  }
  
  .attractive-slider-btn svg {
    width: 20px;
    height: 20px;
  }
}