:root {
  --font-color-menu: #f0e9cd;
  --font-color-titulo-inicio: #e6e0d3;
  --bg-color-menu: #010c1b;
  --font-rodape: #212d3d;
  --highlight-color: #d4af37;
}

/* ====== RESET E BASE ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to top right, #0a0b0f 50%, #030b18 85%, #0b213f 100%);
  color: var(--font-color-titulo-inicio);
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
}

header {
  padding: 20px 0;
}

.container-header {
  max-width: 100%;
  margin-left: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.logo {
  width: 250px;
  filter: drop-shadow(0 0 0.1px #fff);
}

.nav-area {
  display: flex;
  align-items: center;
  margin-right: 110px;
}


header nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin-top: 1px;
  font-size: 14px;
  align-items: center;
  font-family: 'Poppins', sans-serif;
}

header nav a {
  color: var(--font-color-titulo-inicio);
  text-decoration: none;
  font-weight: bold;
  position: relative;
  display: flex;
  cursor: pointer;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #d4af37;
  filter: drop-shadow(0 0 7px #fff);
}

ul {
  margin: 0;
  padding: 0;
}

nav hr {
  height: 35px;
  border: none;
  border-left: 1px solid #d4af37;
}

.seta-menu {
  font-size: 0.6rem;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.menu-item:hover > a .seta-menu {
  transform: rotate(180deg);
}

.menu-item {
  position: relative;
  display: inline-block; 
}

.menu-item > a {
  display: inline-block; 
  position: relative; 
  padding: 10px 5px; 
}

.submenu {
  position: absolute;
  top: 100%;
  justify-content: center; 
  background-color: #111827;
  border: 1px solid #d4af37;
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  display: block; 
}

.menu-item:hover .submenu,
.menu-item .submenu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.submenu li {
  list-style: none;
  padding: 8px 15px;
}

.submenu li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 6px 10px;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

.submenu li a:hover {
  background-color: #d4af37;
  color: #111827;
  padding-left: 25px;
  cursor: pointer;
}

.container-intro img {
  max-width: 410px; /* Limite da imagem */
  height: auto; /* Garante que a altura se ajuste com a largura */
}

.container-intro {
  max-width: 1200px; /* Ok para desktop */
  margin: 0 80px; /* Margens laterais */
  display: flex;
  flex-wrap: wrap; /* ESSENCIAL para quebrar em múltiplas linhas em telas menores */
  align-items: center;
  justify-content: space-between;
  padding: 0px 5px;
}

.intro {
  color: var(--font-color-titulo-inicio);
}

.intro-texto {
    display: flex; /* Garante que os filhos possam ser ordenados */
    flex-direction: column; /* Empilha os itens por padrão */
    height: 475px;
    flex: 1;
    max-width: 650px;
}

.intro-texto h2 {
    order: 1; /* Primeira coisa a aparecer */
}

.intro-texto p {
    order: 2; /* Segunda coisa a aparecer */
}

.intro-texto .link-grad { /* Quem sou eu? */
    order: 4; /* Último a aparecer (abaixo do botão) */
}

.intro-texto h1{
  font-weight: bold;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.4s;
  padding-top: 55px;
  font-size: 2.7rem;
  color: #d4af37;
  display: flex;
  justify-content: center;
}

.intro-texto p{
  display: inline-block;
  animation: fadeUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.4s;
  font-size: 1.8rem;
  padding-right: 130px;
}

.btn-intro {
    /* Centralize o botão horizontalmente no desktop */
    margin: 20px auto 0; /* 20px de margem superior, auto para centralizar, 0 para margem inferior */
    /* Defina um tamanho de fonte fixo para desktop */
    font-size: 1.1rem; /* Ou 16px, 18px, o que achar melhor */
    /* Defina um padding para o botão */
    padding: 12px 25px; 
    /* Limite a largura máxima para que ele não estique demais */
    max-width: 300px; /* Ajuste este valor conforme o desejado, por exemplo, 250px, 300px, etc. */
    /* Outros estilos do seu botão, se houver: */
    text-align: center;
    text-decoration: none;
    background-color: #e7ddbf; /* Exemplo, se você tiver uma variável de cor */
    color: black; /* Exemplo */
    border-radius: 30px;
    border: solid 1px #e6e0d3;
    opacity: 0;
    transform: translateY(40px);
    transition: background-color 0.3s ease;
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.4s;
}

.btn-intro:hover {
    background-color: #0a0b0f; /* Ou uma cor ligeiramente diferente */
    border: solid 1px #e6e0d3;
    color: #e6e0d3;
}

.intro-texto h2 { order: 1; }
.intro-texto p { order: 2; }
.intro-texto .btn-intro { order: 3; }
.intro-texto .link-grad { order: 4; }

.intro-imagem {
  height: 510px;
  mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

.container-intro img {
  max-width: 410px;
  opacity: 0;
  filter:drop-shadow(0 0 1px #454545);
  transform: translateY(40px);
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.4s;
}

h2 {
  font-size: 3.4rem;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.4s;
}

span {
  font-size: 35px;
}

.linha-do-tempo-pessoal {
  padding: 20px 20px ;
  color: #f9f9f9;
  position: relative;
}

.link-grad {
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  background: linear-gradient(to right, #ffd700, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.link-grad:hover {
  opacity: 0.2;
}

.titulo-linha {
  text-align: center;
  font-size: 3.8rem;
  margin-bottom: 100px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(to right, #ffd700, #ffffff);
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.linha-do-tempo-container {
  display: flex;
  flex-direction: column;
  gap: 150px;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.bloco-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
}

.bloco-linha:nth-child(even) {
  flex-direction: row-reverse;
}

.texto-linha {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  padding: 40px 45px;
  border-left: 6px solid #d4af37;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
  font-size: 1.2rem;
  line-height: 2.1;
  font-weight: 290;
}

.texto-linha h3 {
  font-size: 2.3rem;
  margin-bottom: 15px;
  color: #ffd700;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
}

.frase-linha h2{
  font-size: 1.8rem;
  font-weight: 750;
  transform: translateX(200px);
  text-align: center;
  justify-content: center;
  color: #d4af37;
}

.imagem-linha img {
  width: 320px;
  height: auto;
  border-radius: 25px;
  border: 2px solid #d4af37;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
  transition: transform 0.3s ease;
}

.imagem-linha img:hover {
  transform: scale(1.03);
}

.ponto-linha {
  position: relative;
  width: 100px;
  height: 100px;
  min-width: 100px;
}

.bolinha {
  width: 18px;
  height: 18px;
  background-color: #d4af37;
  border-radius: 50%;
  position: absolute;
  top: 41px;
  left: 41px;
  z-index: 2;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.linha-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  z-index: 1;
}

.linha-svg path {
  stroke: #d4af37;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
}

/* ====== SOBRE ====== */
.sobre-emerson {
  padding: 30px 20px 0px;
}

.titulo-sobre {
  text-align: center;
  margin-bottom: 60px;
}

.titulo-sobre h2 {
  font-size: 4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(to right, #d4af37, #ffffff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 15px;
}

.subtitulo-sobre {
  font-size: 1.2rem;
  color: #c6c6c6;
  font-style: italic;
  font-weight: 400;
}

.sobre-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto 60px;

}

.sobre-row.reverse {
  flex-direction: row-reverse;
}

.foto-lateral {
  width: 340px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.foto-lateral img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.foto-lateral img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
}

.texto-quadrado {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px 25px;
  border-radius: 20px 0 20px 0;
  color: var(--font-color-titulo-inicio);
  flex: 0 0 360px;
  max-width: 360px;
  text-align: center;
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(199, 161, 38, 0.836);
  border-left: 5px solid var(--highlight-color);
  transform: translateY(-55px);
}

.bloco-extra {
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  color: var(--highlight-color);
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-style: italic;
  box-shadow: 0 0 12px rgb(255, 217, 0);
  font-size: 1.4rem;
  transform: translateY(-55px);
}

.bloco-extra i {
  font-size: 5rem;
  margin-bottom: 16px;
  color: var(--highlight-color);
}

.legenda {
  margin-top: 10px;
  font-size: 28px;
  color: gold;
  font-style: italic;
}

.mini-cargo {
  font-size: 15px;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.impacto-servicos {
  padding: 30px 20px 80px;
}

/* LINHA CENTRAL DE IMPACTO */
.impacto-linha-central {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.impacto-item {
  width: 400px;
  max-width: 90vw;
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--highlight-color);
  border-radius: 18px;
  padding: 30px 25px;
  text-align: center;
  color: white;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
  backdrop-filter: blur(4px);
}

.impacto-item i {
  font-size: 50px;
  color: var(--highlight-color);
  margin-bottom: 12px;
}

.impacto-item strong {
  font-size: 1.9rem;
  color: var(--highlight-color);
}

.titulo-servicos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 80px auto 50px;
  padding: 0 20px;
  animation: fadeInUp 0.8s ease-out forwards;
  max-width: 100%;
  text-align: center;
}

.titulo-servicos h2 {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(to right, #d4af37, #fff5c2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  margin-bottom: 20px;
}

.linha-dourada h2::after{
  content: "";
  display: flex;
  width: 75vw;
  height: 4px;
  margin: 12px auto 0;
  background: linear-gradient(to right, #d4af37, #fff5c2);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.titulo-servicos h2::after {
  content: "";
  display: flex;
  width: 90px;
  height: 4px;
  margin: 12px auto 0;
  background: linear-gradient(to right, #d4af37, #fff5c2);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
  animation: pulseBar 4s ease-in-out infinite;
}

/* CARROSSEL INFINITO */
.carrossel-servicos {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}

.carrossel-animacao {
  display: flex;
  gap: 20px;
  animation: scrollCarrossel 30s linear infinite;
  width: max-content;
}

.carrossel-animacao:hover{
  animation-play-state: paused;
}

.service-card {
  min-width: 260px;
  background: rgba(23, 26, 43, 0.9);
  border-left: 4px solid var(--highlight-color);
  border-radius: 15px;
  padding: 20px;
  color: white;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
  flex-shrink: 0;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.service-card i {
  font-size: 36px;
  color: var(--highlight-color);
  margin-bottom: 8px;
}

.service-card h4 {
  font-size: 1.1rem;
  color: var(--highlight-color);
  margin: 10px 0 6px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.4;
}

footer {
  text-align: center;
}

.rodape {
  background: var(--font-rodape);
  color: white;
  padding: 20px 20px;
}

.rodape .redes a {
  margin: 0 10px;
  color: #fff;
  font-size: 1.5rem;
}

.rodape p {
  margin-bottom: 15px;
}

.rodape .redes a:hover {
  filter: drop-shadow(0 0 8px #fff);
}

.whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  font-size: 35px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

.whatsapp:hover {
  background-color: #ffffff;
  color: #25d366;
}

 .btn-topo{
  position: fixed;
  bottom: 120px;
  right: 30px;
  background-color: grey;
  color: white;
  font-size: 35px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1000;
}

.btn-topo:hover{
  background-color: #fff;
  color: #010c1b;
}


@keyframes scrollCarrossel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseBar {
  0%, 100% {
    transform: scaleX(1);
    opacity: 1;
  }
  50% {
    transform: scaleX(1.05);
    opacity: 0.85;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .bloco-linha {
    flex-direction: column !important;
    align-items: center;
    text-align: left;
  }

  .imagem-linha img {
    width: 100%;
    max-width: 320px;
  }

  .texto-linha {
    width: 100%;
    font-size: 1.2rem;
    padding: 30px;
  }

  .ponto-linha {
    display: none;
  }

  .titulo-servicos h2 {
    font-size: 2.2rem;
  }

  .titulo-servicos h2::after {
    width: 60px;
    height: 3px;
  }
}

@media (max-width: 600px) {
  .impacto-item {
    width: 90%;
  }

  .service-card {
    min-width: 220px;
  }
}

/* ==================== POP-UP FIXO ==================== */
.popup-container { 
  position: fixed;
  bottom: 20px; /* Posição na parte inferior */
  right: 20px; /* Posição na lateral direita */
  z-index: 1001; /* Garante que fique acima de outros elementos */
  transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
  transform: translateY(100%);
  opacity: 0;
}

.popup-container.visible {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.popup-content {
  background-color: rgba(1, 12, 27, 0.9);
  backdrop-filter: blur(8px);
  border: 2px solid var(--highlight-color);
  border-radius: 10px;
  padding: 25px 30px;
  text-align: center;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  position: relative;
  max-width: 350px;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.popup-close:hover {
  color: var(--highlight-color);
}

.popup-content h4 { 
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 5px;
}

.popup-content h3 {
  font-size: 1.5rem;
  color: var(--highlight-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.btn-popup {
  display: inline-block;
  background-color: var(--highlight-color);
  color: #111827;
  font-weight: bold;  
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-popup:hover {
  background-color: #fff;
  color: #111827;
}


