/* ========================================
   SEÇÃO DE SERVIÇOS - CSS INDEPENDENTE
   ======================================== */

/* ========================================
   1. CONTAINER E HEADER DA SEÇÃO
   ======================================== */
.services-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.services-section .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-section .section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #2e3d6a 0%, #3d4c7a 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(46, 61, 106, 0.2);
}

.services-section h2 {
  font-size: 2.5rem;
  color: #1f2937;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.services-section h2 .highlight {
  color: #2e3d6a;
  position: relative;
}

.services-section h2 .highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2e3d6a 0%, #3d4c7a 100%);
  border-radius: 2px;
}

.services-section .section-header p {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================
   2. GRID DE SERVIÇOS - CENTRALIZADO
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   3. CARDS DE SERVIÇOS - PADRÃO PROFISSIONAL FUTURISTA
   ======================================== */
.service-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(46, 61, 106, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2e3d6a, #3d4c7a, #fbbf24, #2e3d6a);
  background-size: 200% 100%;
  animation: gradient-flow 3s linear infinite;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 20px 50px rgba(46, 61, 106, 0.2);
  border-color: rgba(46, 61, 106, 0.3);
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotate(5deg);
}

/* ========================================
   4. ÍCONES PROFISSIONAIS COM CORES DIFERENTES
   ======================================== */
.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

/* Ícone 1 - Lupa (Azul) */
.service-card:nth-child(1) .service-icon {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Ícone 2 - Calculadora (Verde) */
.service-card:nth-child(2) .service-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Ícone 3 - Gráfico (Roxo) */
.service-card:nth-child(3) .service-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Ícone 4 - Aperto de mão (Laranja) */
.service-card:nth-child(4) .service-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Ícone 5 - Headset (Rosa) */
.service-card:nth-child(5) .service-icon {
  background: linear-gradient(135deg, #ec4899, #db2777);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

/* Ícone 6 - Folha (Verde Claro) */
.service-card:nth-child(6) .service-icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.service-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg);
  animation: shine-rotate 2s linear infinite;
}

.service-icon i {
  font-size: 1.8rem;
  color: white;
  z-index: 2;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   5. TÍTULO E DESCRIÇÃO - CENTRALIZADOS
   ======================================== */
.service-card h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.service-card p {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ========================================
   6. LISTA DE RECURSOS - CENTRALIZADA
   ======================================== */
.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: center;
}

.service-features li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.5;
}

.service-features i {
  color: #10b981;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ========================================
   7. BADGE DO SERVIÇO - CENTRALIZADO
   ======================================== */
.service-badge {
  display: block;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #2e3d6a;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 auto 1.5rem;
  border: 1px solid #d1d5db;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  max-width: fit-content;
}

/* ========================================
   8. BOTÃO CTA
   ======================================== */
.btn-service {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2e3d6a 0%, #3d4c7a 100%);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

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

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

.btn-service:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 61, 106, 0.3);
  background: linear-gradient(135deg, #1e2d5a 0%, #2e3d6a 100%);
}

.btn-service:active {
  transform: translateY(0);
}

/* ========================================
   9. CTA INTERMEDIÁRIO
   ======================================== */
.services-cta {
  text-align: center;
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 2px solid #e5e7eb;
}

.services-cta h3 {
  font-size: 1.75rem;
  color: #1f2937;
  margin-bottom: 1rem;
  font-weight: 600;
}

.services-cta p {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-services {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-services:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-services:active {
  transform: translateY(-1px);
}

/* ========================================
   10. RESPONSIVO
   ======================================== */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 2rem;
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 3rem 0;
  }
  
  .services-section h2 {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .service-icon i {
    font-size: 1.5rem;
  }
  
  .services-cta {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .services-section h2 {
    font-size: 1.75rem;
  }
  
  .service-card {
    padding: 1.25rem;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }
  
  .service-icon i {
    font-size: 1.25rem;
  }
  
  .btn-service {
    width: 100%;
    justify-content: center;
  }
  
  .btn-services {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   11. ANIMAÇÕES FUTURISTAS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes shine-rotate {
  0% { transform: rotate(45deg) translateX(-100%); }
  100% { transform: rotate(45deg) translateX(100%); }
}

.service-card {
  animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   12. ESTADOS ESPECIAIS
   ======================================== */
.service-card:focus-within {
  outline: 3px solid #2e3d6a;
  outline-offset: 2px;
}

.service-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.service-card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #2e3d6a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
