/* ========================= */
/* 1. Importações de CSS */
/* ========================= */
@import url(navbar.css);
@import url(subNav.css);
@import url(responsiveSection1div.css);
@import url(responsiveSection1.css);
@import url(responsiveSection2.css);
@import url(responsiveSection3.css);
@import url(portfolioName.css);
@import url(responsiveSection4.css);
@import url(containerFlip.css?v=8);
@import url(responsiveSection5.css);
@import url(responsiveSection6.css);
@import url(avaliacoes.css);
@import url(formulario-contato.css);
@import url(faqPage.css);
@import url(footer.css);

/* ========================= */
/* 2. Reset and General Settings */
/* ========================= */

*, *::before, *::after {
  box-sizing: border-box;
}

/* Basic reset */
html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
  scrollbar-gutter: stable; /* Keeps scrollbar space reserved to prevent layout shifts */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: url('../assets/background2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Keep background fixed while scrolling */
}

main {
  margin: 0; /* Reset margin for main */
}

/* ========================= */
/* 3. Typography */
/* ========================= */

h1 {
  font-size: 1.7rem !important;
  padding: 0 10px; /* Reduced to a single shorthand property */
  margin: 0;
}

@media (max-width: 999px) {
  h1 {
    font-size: 1.2rem !important;
  }
}

/* ========================= */
/* 4. Buttons */
/* ========================= */

/* General button styles */
.btn-container3 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.btn-wpp3 {
  display: inline-block;
  padding: 20px 30px;
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 40px;
  font-weight: bold;
  color: white;
  background-color: firebrick;
  transition: background-color 0.3s ease, transform 0.3s ease-in-out; /* Shorthand transition */
}

.btn-wpp3 i {
  font-size: 1.5rem;
  margin-left: 5px;
}

#cookie-banner {
    position: fixed;
    text-align: center;
    width: 30%;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 1);
    padding: 10px;
    border-radius: 10px;
    z-index: 1000;
    display: none; /* Inicialmente escondido */
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

@media(max-width: 999px){
  #cookie-banner {
    width: 90%;
  }
}

.btn-cookie {
    padding: 10px 18px; /* Tamanho do botão */
    border: none; /* Para remover a borda padrão */
    border-radius: 5px; /* Cantos arredondados */
    background-color: #B22222; /* Cor do fundo dos botões */
    color: #fff; /* Cor do texto */
    cursor: pointer; /* Mostrar que o botão é clicável */
}

/* Hover effect */
.btn-wpp3:hover {
  background-color: darkred;
  color: #fff;
  text-decoration: none; /* Remove underline on hover */
  transform: scale(1.1);
}

/* Button responsive */
@media (max-width: 999px) {
  .btn-wpp3 {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* ========================= */
/* 5. Images */
/* ========================= */

.flag-icon {
  max-width: 60px;
  height: auto;
}

/* ========================= */
/* 6. Responsiveness */
/* ========================= */

/* Prevents horizontal overflow on smaller screens */
@media (max-width: 999px) {
  body {
    overflow-x: hidden;
    background-attachment: scroll;
  }
}

/* ========================= */
/* 7. Floating Back to Top Button */
/* ========================= */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B22222, #8B0000);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(178, 34, 34, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.35s ease, background 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #cc2a2a, #a00000);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 25px rgba(178, 34, 34, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.96);
}

.back-to-top i {
  transition: transform 0.25s ease;
}

.back-to-top:hover i {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }
}

