/* How We Can Help You - Services Section */

.services-showcase {
  padding: 100px 20px 40px;
  background: linear-gradient(180deg, #030D1A 0%, #0A1628 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  padding-top: 80px;
}

.services-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 40px;
}

.services-header {
  text-align: center;
  margin-bottom: 80px;
}

.services-header .section-label {
  font-size: 16px;
  font-weight: 700;
  color: #00D4FF;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  display: block;
}

.services-header h2 {
  font-size: 48px;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
}

.services-header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Services Grid - More specific selector to override sections-enhanced.css */
.services-showcase .services-grid,
.services-showcase > .services-container > .services-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 60px !important;
  margin-bottom: 60px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Force 3-column layout - override any auto-fit */
@media (min-width: 1024px) {
  .services-showcase .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 60px !important;
  }
}

/* Service Card - More horizontal/compact design */
.service-card {
  text-decoration: none;
  color: inherit;
  background: rgba(10, 30, 60, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 0;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 25px 70px rgba(0, 212, 255, 0.25);
  background: rgba(10, 30, 60, 0.7);
}

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

/* Service Icon */
.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.service-icon i {
  font-size: 24px;
  color: white !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: white !important;
  background-clip: initial !important;
}

/* Service Content */
.service-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-content p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 0;
}

/* Sub-Services Chips */
.sub-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.sub-service-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.sub-service-chip:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.5);
  color: #00D4FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* Learn More Button */
.learn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  color: #00D4FF;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: auto;
  flex-shrink: 0;
}

.learn-more-btn i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.learn-more-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.6);
  transform: translateX(4px);
}

.learn-more-btn:hover i {
  transform: translateX(4px);
}

/* Light Theme Styles */
body.light-theme .services-showcase {
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

body.light-theme .services-showcase::before {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

body.light-theme .services-header .section-label {
  color: #ff7b00;
}

body.light-theme .services-header h2 {
  color: #1a1f3a;
}

body.light-theme .services-header p {
  color: rgba(26, 31, 58, 0.7);
}

body.light-theme .service-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

body.light-theme .service-card::before {
  background: linear-gradient(135deg, rgba(255, 123, 0, 0.06) 0%, transparent 100%);
}

body.light-theme .service-card:hover {
  border-color: rgba(255, 123, 0, 0.4);
  box-shadow: 0 25px 70px rgba(255, 123, 0, 0.18);
  background: white;
}

body.light-theme .service-icon {
  background: linear-gradient(135deg, #ff7b00 0%, #e65c00 100%);
}

body.light-theme .service-icon i {
  color: white !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
}

body.light-theme .service-content h3 {
  color: #1a1f3a;
}

body.light-theme .service-content p {
  color: rgba(26, 31, 58, 0.7);
}

body.light-theme .sub-service-chip {
  background: rgba(255, 123, 0, 0.1);
  border: 1px solid rgba(255, 123, 0, 0.2);
  color: #1a1f3a;
}

body.light-theme .sub-service-chip:hover {
  background: rgba(255, 123, 0, 0.2);
  border-color: rgba(255, 123, 0, 0.5);
  color: #ff7b00;
  box-shadow: 0 4px 12px rgba(255, 123, 0, 0.2);
}

body.light-theme .learn-more-btn {
  border-color: rgba(255, 123, 0, 0.3);
  color: #ff7b00;
}

body.light-theme .learn-more-btn:hover {
  background: rgba(255, 123, 0, 0.1);
  border-color: rgba(255, 123, 0, 0.6);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .services-showcase .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .services-showcase .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
  
  .services-header h2 {
    font-size: 38px;
  }
  
  .service-card {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .services-showcase {
    padding: 60px 20px;
  }
  
  .services-header {
    margin-bottom: 40px;
  }
  
  .services-header h2 {
    font-size: 32px;
  }
  
  .services-showcase .services-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  .service-card {
    padding: 24px;
  }
  
  .service-content h3 {
    font-size: 20px;
  }
}
