/* Reset e estilos gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  /* ajusta a posição da âncora abaixo do header */
}


body {
  background-color: #0a0f1e;
  color: white;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}

body,
html {
  overflow-x: hidden;
}


/* ======================= HEADER ILHA DINÂMICA ======================= */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 50px;
  background-color: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);

  animation: slideDown 0.7s ease-in-out;
  transition: all 0.4s ease-in-out;
}

/* Efeito de encolher ao rolar */
header.shrink {
  padding: 10px 35px;
  border-radius: 40px;
  background-color: rgba(10, 15, 30, 0.9);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.25);
}

/* Mantém a animação original */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ---------------- LOGO ---------------- */
.logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: white;
}

.logo img {
  width: 40px;
  margin-right: 10px;
  border-radius: 100%;
  transition: transform 0.5s ease;
}

.logo img:hover {
  transform: rotate(10deg) scale(1.1);
}

/* ---------------- NAVEGAÇÃO ---------------- */
nav ul {
  list-style: none;
  display: flex;
  margin-right: 60px;
  gap: 50px;
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  position: relative;
  transition: all 0.3s ease;
  padding: 5px 0;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #1bffff);
  transition: width 0.3s ease;
  box-shadow: 0 0 5px #00d4ff, 0 0 10px #00d4ff;
}

nav ul li a:hover {
  color: #00d4ff;
  transform: scale(1.05);
}

nav ul li a:hover::after {
  width: 100%;
}

/* ---------------- MENU MOBILE ---------------- */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1101;
  position: absolute;
  top: 25px;
  right: 40px; /* dentro da ilha */
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s ease;
  transform-origin: center;
}

/* X no hambúrguer */
.menu-toggle:checked + .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}
.menu-toggle:checked + .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------------- RESPONSIVO ---------------- */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background-color: rgba(10, 15, 30, 0.95);
    position: absolute;
    align-items: center;
    top: 70px;
    right: 30px;
    height: auto;
    width: 150px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    gap: 20px;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }

  .menu-toggle:checked ~ nav ul {
    opacity: 1;
    pointer-events: auto;
    right: -40px;
  }

  nav ul li {
    text-align: right;
  }

  nav ul li a {
    font-size: 18px;
    transition: color 0.3s ease;
  }

  nav ul li a:hover {
    color: #00d4ff;
  }

  .hamburger {
    display: flex;
  }

  header {
    width: 95%;
    padding: 15px 25px;
  }

  .logo {
    font-size: 18px;
  }
}



/* -----------------  Seção Nosso Time -------------------- */





/* ============== Botão Voltar ao Topo ============== */

@media (max-width: 768px) {
  #btnTopo {
    position: fixed;
    bottom: 35px;
    left: 33px;
    /* canto inferior esquerdo */
    z-index: 999;
    background: rgba(0, 229, 255, 0.2);
    /* transparente com azul da paleta */
    border: 2px solid rgba(0, 229, 255, 0.5);
    outline: none;
    width: 57px;
    height: 57px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    /* dá um efeito mais moderno */
    box-shadow: 0 4px 10px rgba(0, 229, 255, 0.55);
  }

  #btnTopo svg {
    pointer-events: none;
  }

  #btnTopo:hover {
    background: rgba(0, 229, 255, 0.35);
    transform: scale(1.1);
  }

}


/* ================== Botão WhatsApp ==================*/

.whatsapp-wrapper {
  position: fixed;
  bottom: 34px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  text-decoration: none;
}

.whatsapp-text {
  background-color: #ffffff;
  color: #000000;
  padding: 14px 12px;
  border-radius: 25px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.whatsapp-icon {
  background-color: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.whatsapp-icon img {
  width: 30px;
  height: 30px;
}

.whatsapp-wrapper:hover .whatsapp-icon {
  transform: scale(1.1);
}

@media (max-width: 768px) {

  .whatsapp-icon {
    width: 60px;
    height: 60px;
  }

  .whatsapp-icon img {
    width: 30px !important;
    height: 30px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    display: block;
  }
}

/* Rodapé */
footer {
  margin-top: 80px;
  padding: 40px 20px;
  background: linear-gradient(to right, #0a0f1e, #10182c);
  text-align: center;
  color: #dcdcdc;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 5px 20px rgba(255, 255, 255, 0.02);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-container p {
  font-size: 1em;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  color: #dcdcdc;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.footer-line {
  width: 80%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}

.credit {
  font-size: 0.8em;
  color: #999;
  margin-top: 15px;
}



/* Efeito de troca de página (Solicitar Orçamento) */

/* Animação de saída */
body.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
}
