/* SEÇÃO SERVIÇOS */
.section-servicos {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  padding: 40px 0 20px;
  width: 100%;
  scroll-margin-top: -110px;
}

.section-servicos::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, rgba(0, 229, 255, 0.05) 70%);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.8;
  animation: float 8s ease-in-out infinite;
}

.section-servicos::after {
  content: '';
  position: absolute;
  bottom: 50px;
  left: -30px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(124, 255, 196, 0.12) 0%, rgba(124, 255, 196, 0.03) 70%);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.8;
  animation: float 6s ease-in-out infinite reverse;
}

.section-servicos .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* CABEÇALHO DA SEÇÃO */
.section-head {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-head h2 {
  margin: 0 0 20px;
  font-size: 32px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CARDS DE SERVIÇOS */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

.card {
  background: linear-gradient(180deg, var(--card), var(--bg));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: auto;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: var(--shadow);
}

.card:hover::before {
  opacity: 1;
}

/* Efeito de brilho nos cards */
.card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    transparent, 
    rgba(0, 229, 255, 0.1), 
    transparent);
  border-radius: 18px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.card:hover::after {
  opacity: 1;
}

/* CONTAINER DO ÍCONE */
.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(124, 255, 196, 0.05));
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ÍCONES DE IMAGEM */
.card-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(70%) sepia(100%) saturate(500%) hue-rotate(160deg);
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(124, 255, 196, 0.1));
  border-color: rgba(0, 229, 255, 0.5);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.card:hover .card-icon::before {
  opacity: 1;
}

.card:hover .card-icon-img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg);
  transform: scale(1.1);
}

.card h3 {
  font-size: 20px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 12px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* MEDIA QUERIES */
@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .card {
    padding: 28px;
  }
}

@media (min-width: 1024px) {
  .section-servicos {
    padding: 80px 0 60px;
  }
  
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  
  .card {
    padding: 32px;
  }
}

/* RESPONSIVE - DESKTOP GRANDE */
@media (min-width: 1200px) {
  .section-servicos {
    padding: 100px 0 80px;
  }
  
  .cards {
    gap: 32px;
  }
  
  .card {
    padding: 36px;
  }
  
  .section-head h2 {
    font-size: 42px;
  }
  
  .card-icon {
    width: 70px;
    height: 70px;
  }
  
  .card-icon-img {
    width: 36px;
    height: 36px;
  }
}

/* AJUSTE DO SCROLL PARA MOBILE */
@media (max-width: 768px) {
  .section-servicos {
    scroll-margin-top: 80px;
    padding: 60px 0 40px;
  }
  
  .section-head h2 {
    font-size: 28px;
  }
  
  .section-head p {
    font-size: 16px;
  }
  
  /* Ajuste das bolas no mobile */
  .section-servicos::before {
    width: 120px;
    height: 120px;
    top: -20px;
    right: -20px;
  }
  
  .section-servicos::after {
    width: 100px;
    height: 100px;
    bottom: 30px;
    left: -15px;
  }
}

@media (max-width: 480px) {
  .section-servicos {
    padding: 50px 0 30px;
  }
  
  .section-head h2 {
    font-size: 24px;
  }
  
  .cards {
    gap: 16px;
  }
  
  .card {
    padding: 20px;
  }
  
  .card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
  }
  
  .card-icon-img {
    width: 28px;
    height: 28px;
  }
  
  .card h3 {
    font-size: 18px;
  }
  
  .card p {
    font-size: 14px;
  }
  
  /* Ajuste adicional das bolas no mobile pequeno */
  .section-servicos::before {
    width: 100px;
    height: 100px;
    top: -10px;
    right: -10px;
  }
  
  .section-servicos::after {
    width: 80px;
    height: 80px;
    bottom: 20px;
    left: -10px;
  }
}

/* ANIMAÇÃO FLUTUANTE */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ACESSIBILIDADE - REDUÇÃO DE MOVIMENTO */
@media (prefers-reduced-motion: reduce) {
  .section-servicos::before,
  .section-servicos::after {
    animation: none;
  }
  
  .card,
  .card-icon,
  .card-icon-img {
    transition: none;
  }
  
  .card:hover,
  .card:hover .card-icon,
  .card:hover .card-icon-img {
    transform: none;
  }
  
  .card:hover::before,
  .card:hover::after,
  .card:hover .card-icon::before {
    opacity: 0;
  }
}