html {
  scroll-behavior: smooth;
}

select {
  cursor: pointer;
}

:root {
  --primary: #0056b3;
  --dark: #1a1a1a;
  --light: #f8f9fa;
  --gray: #6c757d;
  --hover: #4b7fd2;
  --bottom: #003670;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

header {
  background: transparent;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: var(--light);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--hover);
}

.banner {
  display: flex;
  justify-content: flex-start;
  background-image:
    linear-gradient(
      to right,
      rgba(26, 26, 26, 0.85) 30%,
      rgba(26, 26, 26, 0.5) 100%
    ),
    url(../../files/img/banner.png);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding: 100px 8%;
}

.banner-content {
  padding: 100px 20px;
  text-align: start;
}

.banner-content h1 {
  font-size: 3rem;
  color: var(--light);
  margin-bottom: 10px;
}

.banner-content p {
  font-size: 1.2rem;
  color: var(--light);
  max-width: 800px;
  margin: 10px 0 20px;
}

.cta-button {
  background: var(--primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

.cta-button:hover {
  background: var(--hover);
}

.services {
  padding: 100px 8%;
  background-color: #f1f3f5;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 15px;
  position: relative;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
  margin: 10px auto 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.section-title p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  cursor: default;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 86, 179, 0.1);
  border-color: rgba(0, 86, 179, 0.2);
}

.card-icon {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 25px;
  display: inline-block;
}

.card h3 {
  color: var(--bottom);
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 15px;
}

.card p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.card a {
  color: var(--primary);
  text-decoration: none;
  transition:
    color 0.3s ease,
    padding-left 0.3s ease;
  display: inline-block;
}

.card a:hover {
  color: var(--hover);
  padding-left: 5px;
}

/* --- Seção de Tecnologias/Stack --- */

.tech-section {
  padding: 80px 0; /* Menos padding vertical porque o carrossel se move */
  background-color: #ffffff;
  overflow: hidden; /* Garante que nada escape das bordas da tela */
}

/* Container que esconde as logos que saem da tela */
.slider-container {
  background: #ffffff;
  height: 100px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* A esteira que vai mover todas as marcas juntas */
.slider-track {
  display: flex;
  width: calc(
    250px * 30
  ); /* 250px de largura por slide x 30 slides (15 originais + 15 cópias) */
  animation: scrollInfinite 40s linear infinite; /* 40 segundos para dar a volta completa, bem suave */
}

/* Efeito de pausa ao passar o mouse para o usuário ler as ferramentas com calma */
.slider-track:hover {
  animation-play-state: paused;
}

/* Cada bloco de tecnologia individual */
.slide {
  height: 100px;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estilização temporária para os textos enquanto não colocamos imagens */
.slide span {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.slide:hover span {
  color: var(--primary); /* Destaca a ferramenta em azul no hover */
}

/* Seus futuros logos em imagem ficarão alinhados aqui */
.slide img {
  width: 150px;
  height: auto;
  filter: grayscale(100%) opacity(60%); /* Deixa os logos cinzas e discretos, padrão corporativo */
  transition: all 0.3s ease;
}

.slide:hover img {
  filter: grayscale(0%) opacity(100%); /* Ganha cor original ao passar o mouse */
}

/* --- ANIMAÇÃO DO CARROSSEL --- */
@keyframes scrollInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Move exatamente metade da largura total da esteira (os 15 primeiros itens) */
    transform: translateX(calc(-250px * 15));
  }
}

/* --- Seção Sobre o Consultor --- */

.about-section {
  padding: 120px 8%;
  background-color: #f8f9fa; /* Contraste sutil com a seção de logos */
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px; /* Espaço confortável entre a foto e o texto */
  max-width: 1200px;
  margin: 0 auto;
}

/* Lado da Imagem */
.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.profile-frame {
  position: relative;
  width: 380px;
  height: 450px;
  background: #e9ecef; /* Fundo cinza enquanto você não coloca a foto */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Garante que a foto preencha o espaço sem distorcer */
  display: block;
}

/* Moldura decorativa atrás da foto (estilo corporativo moderno) */
.profile-frame::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary);
  border-radius: 16px;
  top: 15px;
  left: 15px;
  z-index: -1;
}

/* Lado do Texto */
.about-content {
  flex: 1.2; /* Dá um pouco mais de espaço para o texto do que para a imagem */
}

.about-content span {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}

.about-content h2 {
  font-size: 2.8rem;
  color: var(--dark);
  margin-top: 0;
  margin-bottom: 30px;
  line-height: 1.2;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-content strong {
  color: var(--dark);
}

/* Badges de Destaque */
.about-badges {
  display: flex;
  gap: 15px;
  margin-top: 35px;
  flex-wrap: wrap;
}

.badge {
  background: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge i {
  color: var(--primary); /* Ícones das badges em azul AlphaBlu */
}

.main-footer {
  background: var(--dark);
  color: #ecf0f1;
  padding: 70px 8% 20px;
  margin-top: 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto 50px; /* Margem inferior para afastar a linha de copyright */
}

.footer-col {
  flex: 1;
}

/* Ajuste de largura da coluna sobre a marca */
.footer-col.about-col {
  flex: 1.5;
}

.footer-col h3 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col h4 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 25px;
  position: relative;
}

/* Pequena linha abaixo dos títulos das colunas menores */
.footer-col h4::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
  margin-top: 8px;
}

.footer-col p {
  color: #b3b3b3;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Links da coluna de Navegação */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #b3b3b3;
  text-decoration: none;
  transition:
    color 0.3s ease,
    padding-left 0.3s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 5px; /* Sutil efeito de deslocamento no hover */
}

/* Informações de contato */
.footer-col.contact-col p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-col.contact-col i {
  color: var(--primary);
}

/* Botão do WhatsApp no Rodapé */
.footer-whatsapp {
  color: #25d366 !important; /* Cor oficial do WhatsApp */
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  transition: transform 0.3s ease;
}

.footer-whatsapp:hover {
  transform: scale(1.05);
}

.fa-whatsapp {
  color: #25d366 !important;
}

/* Barra de Direitos Autorais Inferior */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #888888;
  margin: 0;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50px; /* Deixa o botão perfeitamente redondo */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999; /* Garante que ele fique por cima de todas as seções */
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: var(--hover);
  transform: translateY(-5px); /* Sutil efeito de elevação no hover */
  box-shadow: 0 6px 20px rgba(0, 86, 179, 0.3);
}

/* ==========================================================================
   MÍDIA QUERY: RESPONSIVIDADE PARA SMARTPHONES (Telas até 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* --- Ajustes Globais --- */
  body {
    font-size: 15px;
  }

  /* --- Header & Navegação --- */
  header {
    position: absolute;
    flex-direction: column;
    gap: 15px;
    padding: 10px 5%;
    background-color: transparent;
  }

  .logo-img {
    height: 60px;
  }

  nav {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 15px;
  }

  nav a {
    margin-left: 0;
    font-size: 0.95rem;
  }

  /* --- Banner Principal --- */
  .banner {
    background-attachment: scroll;
    padding: 90px 0 20px 0;
    text-align: center;
    justify-content: center;
  }

  .banner-content {
    padding: 40px 20px;
    text-align: center;
  }

  .banner-content h1 {
    font-size: 2rem;
  }

  .banner-content p {
    font-size: 1rem;
  }

  /* --- Seção de Serviços (Grid) --- */
  .services {
    padding: 60px 5%;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .card {
    padding: 30px 20px;
  }

  /* --- Seção de Tecnologias (Carrossel) --- */
  .tech-section {
    padding: 50px 0;
  }

  .slide img {
    width: 120px;
  }

  /* --- Seção Sobre o Consultor --- */
  .about-section {
    padding: 60px 5%;
  }

  .about-container {
    flex-direction: column;
    gap: 40px;
  }

  .profile-frame {
    width: 280px;
    height: 330px;
  }

  .about-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
  }

  .about-content span {
    text-align: center;
  }

  .about-badges {
    justify-content: center;
    gap: 10px;
  }

  .badge {
    font-size: 0.85rem;
    padding: 8px 15px;
  }

  /* --- Rodapé (Footer) --- */
  .main-footer {
    padding: 50px 5% 20px;
  }

  .footer-container {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 30px;
    text-align: center;
  }

  .about-col .logo-img {
    display: block;
    margin: 0 auto 15px;
  }

  .footer-col h4::after {
    margin: 8px auto 0;
  }

  .footer-col.contact-col p {
    justify-content: center;
  }

  /* --- Botão Voltar ao Topo --- */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  /* --- Responsividade das Páginas de Serviços --- */
  .service-hero {
    padding: 60px 5%;
    text-align: center;
  }

  .service-hero-content h1 {
    font-size: 2rem;
  }

  .service-details {
    padding: 40px 5%;
  }

  .service-details-container {
    flex-direction: column; /* Força o texto e o escopo a ficarem em uma coluna única */
    gap: 40px;
  }

  .cta-box {
    padding: 40px 20px;
  }

  .cta-box h2 {
    font-size: 1.6rem;
  }

  /* --- Ajustes do Showcase de Serviços no Celular --- */
  .showcase-container {
    gap: 60px;
  }

  .showcase-row,
  .showcase-row.row-reverse {
    flex-direction: column-reverse !important; /* Transforma em uma única coluna vertical */
    gap: 30px;
    text-align: center;
  }

  /* Remove a inclinação 3D no celular para ler o print perfeitamente */
  .screen-perspective,
  .screen-perspective.perspective-left {
    transform: none !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    max-width: 100%;
  }

  .showcase-row:hover .screen-perspective,
  .showcase-row:hover .screen-perspective.perspective-left {
    transform: none !important;
  }
}

/* Serviços */

/* ==========================================================================
   PÁGINAS INTERNAS: SERVIÇOS
   ========================================================================== */

.internal-page {
  background-color: #ffffff;
}

/* Header Ajustado para Páginas Internas */
.internal-header {
  background-color: transparent;
  position: absolute;
}

/* Hero do Serviço */
.service-hero {
  background-color: var(--dark);
  background-image: radial-gradient(
    circle at top right,
    rgba(0, 86, 179, 0.15),
    transparent 60%
  );
  padding: 80px 8%;
  border-bottom: 4px solid var(--primary);
}

.service-process {
  display: flex;
  justify-content: flex-start;
  background-image:
    linear-gradient(
      to right,
      rgba(26, 26, 26, 0.85) 30%,
      rgba(26, 26, 26, 0.5) 100%
    ),
    url(../../files/img/service_process.jpg);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding: 100px 8%;
}

.service-monitoring {
  display: flex;
  justify-content: flex-start;
  background-image:
    linear-gradient(
      to right,
      rgba(26, 26, 26, 0.85) 30%,
      rgba(26, 26, 26, 0.5) 100%
    ),
    url(../../files/img/service_monitoring.jpg);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding: 100px 8%;
}

.service-security {
  display: flex;
  justify-content: flex-start;
  background-image:
    linear-gradient(
      to right,
      rgba(26, 26, 26, 0.85) 30%,
      rgba(26, 26, 26, 0.5) 100%
    ),
    url(../../files/img/service_security.jpg);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding: 100px 8%;
}

.service-password {
  display: flex;
  justify-content: flex-start;
  background-image:
    linear-gradient(
      to right,
      rgba(26, 26, 26, 0.85) 30%,
      rgba(26, 26, 26, 0.5) 100%
    ),
    url(../../files/img/service_password.jpg);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding: 100px 8%;
}

.service-hero-content {
  max-width: 800px;
  padding: 100px 20px;
}

.service-hero-content span {
  color: var(--hover);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}

.service-hero-content h1 {
  font-size: 2.8rem;
  color: #ffffff;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.service-hero-content p {
  font-size: 1.2rem;
  color: #b3b3b3;
  margin: 0;
  line-height: 1.6;
}

/* Layout de Detalhes (2 Colunas Flex/Grid) */
.service-showcase {
  padding: 100px 8%;
  background-color: #ffffff;
  overflow: hidden;
}

.showcase-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 120px; /* Espaço confortável entre as linhas */
}

.showcase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

/* Classe mágica que inverte a ordem das colunas */
.showcase-row.row-reverse {
  flex-direction: row-reverse;
}

/* Lado do Conteúdo de Texto */
.showcase-text {
  flex: 1;
}

.showcase-text span {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.showcase-text h2 {
  font-size: 2.4rem;
  color: var(--dark);
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.showcase-text p {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 15px;
}

.pain-list {
  margin-top: 20px;
}

.pain-list p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bottom);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pain-list i {
  color: var(--primary);
}

/* Lado da Imagem com Efeito 3D / Perspectiva */
.showcase-image {
  flex: 1.2; /* Dá um pouco mais de destaque para o print do sistema */
  display: flex;
  justify-content: center;
  perspective: 1000px; /* Cria o ambiente 3D para o navegador calcular o ângulo */
}

.screen-perspective {
  width: 100%;
  max-width: 550px;
  border-radius: 8px;
  box-shadow:
    0 30px 60px rgba(0, 54, 112, 0.12),
    0 12px 25px rgba(0, 0, 0, 0.08); /* Sombra suave simulando profundidade */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  background-color: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;

  /* Inclinação para a Direita (Usada nas linhas padrão) */
  transform: rotateY(-15deg) rotateX(8deg) rotateZ(2deg);
}

/* Inclinação invertida para a Esquerda (Usada nas linhas com row-reverse) */
.screen-perspective.perspective-left {
  transform: rotateY(15deg) rotateX(8deg) rotateZ(-2deg);
}

.screen-perspective img {
  width: 100%;
  height: auto;
  display: block;
}

/* Efeito sutil interativo: quando o cliente passa o mouse na seção, a tela "alinha" levemente */
.showcase-row:hover .screen-perspective {
  transform: rotateY(-5deg) rotateX(3deg) rotateZ(1deg);
}

.showcase-row:hover .screen-perspective.perspective-left {
  transform: rotateY(5deg) rotateX(3deg) rotateZ(-1deg);
}

/* Bloco de Chamada para Ação Final */
.service-cta {
  padding: 0 8% 80px;
  background-color: #ffffff;
}

.cta-box {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--dark) 0%, var(--bottom) 100%);
  padding: 60px 40px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 54, 112, 0.15);
}

.cta-box h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-top: 0;
  margin-bottom: 15px;
}

.cta-box p {
  color: #b3b3b3;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 35px;
  line-height: 1.6;
}
