/* ========================================
   MODERN INDEX SERVICES SECTION STYLES
   Aligning index.html services with service.html modern design
======================================== */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Override only the services section on index page */
.service_section {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background: 
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.03"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>') !important;
  position: relative;
  overflow: hidden;
  padding: 80px 0 !important;
}

.service_section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 187, 240, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(118, 75, 162, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Enhanced heading container */
.service_section .heading_container {
  position: relative;
  z-index: 2;
  margin-bottom: 60px !important;
}

.service_section .heading_container h2 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  color: #1a202c !important;
  margin-bottom: 24px !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.service_section .heading_container h2 span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  position: relative;
}

.service_section .heading_container p {
  font-size: 1.25rem !important;
  color: #4a5568 !important;
  max-width: 700px !important;
  margin: 0 auto !important;
  line-height: 1.7 !important;
  font-weight: 400 !important;
}

/* Modern Services Grid */
.services_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
  margin-bottom: 60px;
}

/* Service Cards - Modern Design */
.service-card {
  background: 
    linear-gradient(145deg, #ffffff 0%, #f8fafc 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="card-texture" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="rgba(102,126,234,0.03)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23card-texture)"/></svg>');
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(102, 126, 234, 0.12);
  transform: translateY(0);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #00bbf0 100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 32px rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:nth-child(1) {
  animation: slideInUp 0.6s ease-out 0.1s both;
}

.service-card:nth-child(2) {
  animation: slideInUp 0.6s ease-out 0.3s both;
}

.service-card:nth-child(3) {
  animation: slideInUp 0.6s ease-out 0.5s both;
}

/* Service Icon Styling */
.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-icon::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 18px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon::before {
  background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
}

.service-icon img {
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1;
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(244deg) brightness(91%) contrast(97%);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(109deg) brightness(107%) contrast(107%);
  transform: scale(1.1);
}

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

.service-content h5 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: #1a202c !important;
  margin-bottom: 16px !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  line-height: 1.3 !important;
}

.service-content p {
  font-size: 1rem !important;
  color: #4a5568 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  font-weight: 400 !important;
}

/* Modern Button Container */
.button-container {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: 40px;
}

.more-button {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  padding: 16px 32px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 50px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 
    0 8px 24px rgba(102, 126, 234, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.1) !important;
  position: relative;
  overflow: hidden;
  border: none !important;
}

.more-button::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.5s ease;
}

.more-button:hover::before {
  left: 100%;
}

.more-button:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 
    0 12px 32px rgba(102, 126, 234, 0.4),
    0 6px 16px rgba(0, 0, 0, 0.15) !important;
  color: white !important;
}

.more-button::after {
  content: '→';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.more-button:hover::after {
  transform: translateX(4px);
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .service_section {
    padding: 60px 0 !important;
  }
  
  .service_section .heading_container h2 {
    font-size: 2.5rem !important;
  }
  
  .service_section .heading_container p {
    font-size: 1.1rem !important;
  }
  
  .services_grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
  }
  
  .service-card {
    padding: 30px 20px;
    min-height: 250px;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }
  
  .service-icon img {
    width: 35px;
    height: 35px;
  }
  
  .service-content h5 {
    font-size: 1.3rem !important;
  }
  
  .more-button {
    padding: 14px 28px !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  .service_section .heading_container h2 {
    font-size: 2rem !important;
  }
  
  .service_section .heading_container p {
    font-size: 1rem !important;
  }
  
  .service-card {
    padding: 25px 15px;
    min-height: 220px;
  }
  
  .service-content h5 {
    font-size: 1.2rem !important;
  }
  
  .service-content p {
    font-size: 0.9rem !important;
  }
}

/* Override any conflicting styles */
.service_section .box {
  display: none !important;
}

.service_section .btn-box {
  display: none !important;
}
