/* ==========================================================================
   1. CONFIGURAÇÕES GLOBAIS, CORES E ANIMAÇÕES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
  --primary-color: #1a252f; /* Azul Grafite Industrial */
  --accent-color: #ff6b00; /* Laranja Industrial */
  --whatsapp-color: #25d366; /* Verde Oficial WhatsApp */
  --bg-light: #f8f9fa;
}

body {
  color: #333;
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animação Suave de Entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animação do Carrossel Contínuo */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-320px * 5));
  }
}

/* ==========================================================================
   2. CABEÇALHO / HERO SECTION
   ========================================================================== */
.hero {
  background:
    linear-gradient(rgba(26, 37, 47, 0.88), rgba(26, 37, 47, 0.88)),
    url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1200&q=80")
      center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 90px 20px 70px;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #e0e0e0;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.btn-whatsapp {
  display: inline-block;
  background-color: var(--whatsapp-color);
  color: white;
  padding: 18px 36px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-4px);
  background-color: #1eb954;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.tech-badge-hero {
  margin-top: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  color: #ddd;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   3. CONTAINER PRINCIPAL E TÍTULOS
   ========================================================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 45px;
  position: relative;
  font-weight: 700;
}

.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: var(--accent-color);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ==========================================================================
   4. SEÇÃO DE SERVIÇOS
   ========================================================================== */
.services-section {
  margin-bottom: 70px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  align-items: stretch;
}

.service-card {
  background: #ffffff;
  padding: 35px 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #eaeaea;
  animation: fadeInUp 0.8s ease-out forwards;
  display: flex;
  flex-direction: column;
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
  transition: height 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  border-color: transparent;
}

.service-card:hover::after {
  height: 6px;
}

.service-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 20px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.4s ease,
    background 0.4s ease;
  flex-shrink: 0;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--accent-color);
  transition: fill 0.4s ease;
}

.service-card:hover .service-icon {
  transform: rotateY(180deg) scale(1.1);
  background: var(--accent-color);
}

.service-card:hover .service-icon svg {
  fill: #ffffff;
}

.service-img-wrapper {
  width: 100%;
  height: 140px;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #eee;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.08);
}

.service-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.service-card p {
  font-size: 0.95rem;
  color: #666;
}

/* ==========================================================================
   5. GALERIA / CARROSSEL INFINITO
   ========================================================================== */
.gallery-section {
  margin-bottom: 70px;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.carousel-container:hover .carousel-track {
  animation-play-state: paused;
}

.carousel-item {
  width: 300px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  background-color: #ddd;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-item:hover img {
  transform: scale(1.08);
}

.carousel-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  padding: 15px 12px 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ==========================================================================
   6. SEÇÃO RESPONSÁVEL TÉCNICO
   ========================================================================== */
.tech-responsible-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 30px;
  border-left: 5px solid var(--accent-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  margin-top: 70px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.tech-info {
  flex: 1;
  min-width: 280px;
}

.tech-info h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.tech-info .badge-rt {
  display: inline-block;
  background: #e9ecef;
  color: #495057;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.tech-info p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.tech-details {
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px dashed #ccc;
}

.tech-details ul {
  list-style: none;
}

.tech-details li {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-details li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   7. RODAPÉ E BOTÃO FLUTUANTE
   ========================================================================== */
footer {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 50px 20px 30px;
  margin-top: 60px;
}

footer h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.footer-subtitle {
  margin: 15px 0 30px;
  color: #bbb;
}

.footer-copyright {
  margin-top: 45px;
  font-size: 0.85rem;
  color: #777;
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--whatsapp-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* ==========================================================================
   8. ADAPTABILIDADE MOBILE (RESPONSIVIDADE)
   ========================================================================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .tech-responsible-section {
    padding: 25px;
  }
  .carousel-item {
    width: 250px;
    height: 180px;
  }
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-270px * 5));
    }
  }
}

/* Container principal da lista */
.tech-details ul {
  list-style: none; /* Remove a bolinha padrão da lista */
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Espaçamento entre cada item */
}

/* Alinhamento de cada linha */
.tech-details li {
  display: grid;
  /* Coluna 1: Emoji (28px) | Coluna 2: Título (auto) | Coluna 3: Conteúdo restante (1fr) */
  grid-template-columns: 28px auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.4;
}

/* Garante que o ícone fique centralizado no seu espaço */
.tech-details li span.icon,
.tech-details li {
  text-align: left;
}
