/* 
 * SERVICES SECTION - Agência Precisão
 * Estilos para a seção de serviços
 */

.services {
  position: relative;
  padding: var(--espacamento-secao);
  background: var(--cor-fundo-escuro);
  min-height: 80vh;
  overflow: hidden;
  padding-left: 10vw;
  padding-right: 10vw;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(0, 209, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(249, 178, 51, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 4rem;
  position: relative;
  z-index: 2;
}

/* Service Card Styling */
.service-card {
  position: relative;
  padding: 40px 30px;
  border-radius: var(--border-radius-padrao);
  background: rgba(13, 35, 54, 0.5);
  backdrop-filter: blur(10px);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  transform-style: preserve-3d;
  perspective: 1000px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.service-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(225deg, rgba(0, 209, 255, 0.05) 0%, transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-card:hover .service-backdrop {
  opacity: 1;
  transform: scale(1.1);
}

.neon-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.neon-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cor-primaria), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.neon-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30%;
  height: 2px;
  background: var(--cor-primaria);
  opacity: 0;
  box-shadow: 0 0 10px 1px rgba(0, 209, 255, 0.7);
  transition: all 0.4s ease;
}

.service-card:hover .neon-border::before {
  opacity: 1;
}

.service-card:hover .neon-border::after {
  opacity: 1;
  width: 100%;
}

.service-icon {
  font-size: 3rem;
  color: var(--cor-secundaria);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(249, 178, 51, 0.4));
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) translateY(-5px);
  color: var(--cor-primaria);
  filter: drop-shadow(0 0 15px rgba(0, 209, 255, 0.7));
}

.service-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.service-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--cor-texto-principal);
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.service-content h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--cor-secundaria);
  transition: width 0.4s ease-out;
}

.service-card:hover .service-content h3::after {
  width: 100%;
  background: var(--cor-primaria);
}

.service-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--cor-texto-terciario);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-card:hover .service-content p {
  color: var(--cor-texto-secundario);
}

/* Service Card Animation */
@keyframes neon-pulse {
  0% {
    box-shadow: 0 0 5px rgba(0, 209, 255, 0.3),
                inset 0 0 5px rgba(0, 209, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.6),
                inset 0 0 10px rgba(0, 209, 255, 0.2);
  }
  100% {
    box-shadow: 0 0 5px rgba(0, 209, 255, 0.3),
                inset 0 0 5px rgba(0, 209, 255, 0.1);
  }
}

.service-card:hover {
  animation: neon-pulse 2s infinite;
}

/* Responsividade Services Section */
@media screen and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    min-height: 340px;
  }
}

@media screen and (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-card {
    padding: 30px 25px;
    min-height: auto;
  }

  .service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
  }

  .service-content h3 {
    font-size: 1.4rem;
  }

  .service-content p {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .service-card {
    padding: 25px 20px;
  }

  .service-icon {
    font-size: 2.2rem;
  }

  .service-content h3 {
    font-size: 1.3rem;
  }

  .service-content p {
    font-size: 0.9rem;
  }
}

/* Acessibilidade Services Section */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card:hover,
  .service-icon,
  .service-backdrop,
  .neon-border::before,
  .neon-border::after,
  .service-content h3::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
