/* -------------------------------------------------------------------
   RESET e configurações básicas
------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #0c0c0d;
  color: #eff1f2;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: opacity 0.3s ease-out;
  scrollbar-face-color: #ff6a45; /* IE e Edge antigo */
  scrollbar-track-color: #0c0c0d; /* IE e Edge antigo */
  scrollbar-arrow-color: #ff6a45; /* IE e Edge antigo */
}

/* -------------------------------------------------------------------
   Loader com animação personalizada
------------------------------------------------------------------- */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0c0c0d;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-ring {
  width: 160px;
  height: 160px;
  border: 4px solid transparent;
  border-top: 4px solid #f56b3e;
  border-radius: 50%;
  animation: spinRing 1s linear infinite;
}
@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 109px;
  height: 144.8971px;
}
.logo-svg {
  width: 100%;
  height: 100%;
}
.logo-svg path {
  stroke: #f56b3e;
  stroke-width: 4px;
  fill: none;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw 2s ease-in-out infinite;
}
@keyframes draw {
  0% {
    stroke-dashoffset: 2000;
    transform: scale(1);
  }
  50% {
    stroke-dashoffset: 0;
    transform: scale(0.9);
  }
  100% {
    stroke-dashoffset: 2000;
    transform: scale(1);
  }
}

/* -------------------------------------------------------------------
   #main-content – Contêiner relativo para posicionar as seções
------------------------------------------------------------------- */
#main-content {
  position: relative;
  height: 100vh;
}

/* -------------------------------------------------------------------
   .container – Centraliza e controla a largura e inclui o efeito de reflexo
------------------------------------------------------------------- */
.container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
.container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease, background-position 0.3s ease;
  mix-blend-mode: screen;
  z-index: 999;
}
.container.reflect-active::after {
  opacity: 1;
}

/* -------------------------------------------------------------------
   Cabeçalho fixo (menu)
------------------------------------------------------------------- */
header#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(0,0,0,0.45);
  backdrop-filter: blur(6.5px);
  -webkit-backdrop-filter: blur(6.5px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  z-index: 100;
}
.menu {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
}
.menu .logo img {
  height: 40px;
  cursor: pointer;
}
#menu-list {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu ul li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #f56b3e;
  border-radius: 16px;
  background-color: transparent;
  color: #eff1f2;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.menu ul li a:hover,
.menu ul li a.active {
  background-color: #f56b3e;
  color: #000;
}

/* Ajuste para o toggle do menu mobile */
.menu-toggle {
  position: absolute;
  right: 1rem;
  display: none;
}

/* Ajuste para o menu mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 102;
  }
  #menu-list {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    flex-direction: column;
    background-color: rgba(0,0,0,0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 2rem;
    margin: 0;
    z-index: 101;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
  }
  #menu-list.active {
    display: flex;
    transform: translateX(0);
  }
  #menu-list li {
    width: 100%;
    margin-bottom: 1rem;
  }
  #menu-list li a {
    width: 100%;
    text-align: left;
    padding: 1rem;
    border: 1px solid #f56b3e;
    border-radius: 8px;
    background-color: transparent;
    color: #eff1f2;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  #menu-list li a:hover,
  #menu-list li a.active {
    background-color: #f56b3e;
    color: #000;
  }
}

/* -------------------------------------------------------------------
   Seção Hero e Vídeo de Fundo
------------------------------------------------------------------- */
.section-hero {
  position: relative;
  width: 100%;
  height: 672px;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
}
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* -------------------------------------------------------------------
   Botões padrão
------------------------------------------------------------------- */
.btn-contact,
.btn-primary,
.btn-submit,
.btn-return {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background-color: #f56b3e;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  color: #000;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-contact:hover,
.btn-primary:hover,
.btn-submit:hover,
.btn-return:hover {
  background-color: #e05a2d;
  transform: scale(1.05);
}
.btn-more {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.6rem;
  background-color: #f56b3e;
  color: #000;
  border: none;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-more:hover {
  background-color: #e05a2d;
  transform: scale(1.05);
}

/* -------------------------------------------------------------------
   Técnica de sobreposição para contornos com degradê
------------------------------------------------------------------- */
.gradient-border {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 1px;
  background: linear-gradient(90deg, #ec5935, #0c0c0d);
}
.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    circle at var(--glowX, 50%) var(--glowY, 50%),
    #ff6a45 0%,
    #ff6a45 30%,
    transparent 80%
  );
  filter: blur(12px);
  opacity: var(--glowOpacity, 0);
  transition: opacity 0.4s ease, background-position 0.4s ease;
}
.content-box {
  position: relative;
  background: #19191e;
  border-radius: 15px;
  padding: 2rem;
  z-index: 3;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  text-align: left;
}

/* -------------------------------------------------------------------
   Seções genéricas
------------------------------------------------------------------- */
section {
  padding: 3rem 0;
}
#inicio, #about {
  padding-top: 0;
  margin-top: 0;
}

/* -------------------------------------------------------------------
   Seção Diferencial (Início)
------------------------------------------------------------------- */
.section-diferencial h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f56b3e;
}
.section-diferencial p {
  font-size: 1.2rem;
}

/* -------------------------------------------------------------------
   Seção Clientes (Início)
------------------------------------------------------------------- */
.section-clientes h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f56b3e;
}
.clientes-container {
  overflow: hidden;
  width: 100%;
}
.clientes-scroll {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  animation: scrollLeft 20s linear infinite;
}
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-300%); }
}
.cliente-item {
  flex: 0 0 25%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.cliente-item:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.7);
}
.cliente-item img {
  width: 100%;
  border-radius: 16px;
}

/* -------------------------------------------------------------------
   Seção Contato (Início)
------------------------------------------------------------------- */
.section-contact h2 {
  margin-bottom: 2rem;
  color: #f56b3e;
}
.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
}
.contact-item h3 {
  margin-bottom: 0.5rem;
  color: #f56b3e;
  font-size: 1.1rem;
}
.contact-item p,
.contact-item a {
  font-size: 1rem;
  color: #eff1f2;
}
.contact-item i {
  margin-right: 0.5rem;
  color: #f56b3e;
}

/* -------------------------------------------------------------------
   Seção Serviços
------------------------------------------------------------------- */
.section-services-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #f56b3e;
}
.section-services-intro p {
  font-size: 1.2rem;
}
.service-card {
  background-color: #111;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: scale(1.03);
  background-color: #1b1b1f;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.service-card h2 {
  font-size: 1.8rem;
  color: #f56b3e;
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 1rem;
}
.button-card {
  text-align: center;
}

/* -------------------------------------------------------------------
   Seção Portfólio
------------------------------------------------------------------- */
.section-portfolio h1 {
  font-size: 2.5rem;
  color: #f56b3e !important;
  margin-bottom: 0.5rem;
}
.section-portfolio p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  width: 110%; /* Aumento de 10% no tamanho horizontal */
  margin: 0 auto;
}

/* Itens do Portfólio */
.portfolio-item {
  position: relative;
  width: 100%;
  height: 459.17px;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.portfolio-item:hover {
  transform: scale(1.12);
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0,0,0,0.8);
}
.portfolio-content {
  width: 100%;
  height: 100%;
}
.portfolio-content img,
.portfolio-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.portfolio-item:hover .portfolio-content img {
  transform: scale(1.1);
}
.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  transition: background 0.3s ease, height 0.3s ease;
}
.portfolio-overlay h3 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  margin: 0;
}
.portfolio-item:hover .portfolio-overlay {
  background: rgba(255,255,255,0.8);
  height: 15%;
}
.portfolio-item:hover .portfolio-overlay h3 {
  opacity: 1;
  transform: translateY(0);
  color: #19191e;
}

/* Botão "Solicite um Orçamento" com margem superior */
.portfolio-button {
  margin-top: 40px; /* Margem superior de 40px */
  text-align: center;
}

/* -------------------------------------------------------------------
   Seção Sobre
------------------------------------------------------------------- */
.section-about h2 {
  font-size: 2rem;
  color: #f56b3e;
  margin-bottom: 1rem;
}
.section-about p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 1rem;
}
.section-about p:not(:last-child)::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #f56b3e;
  margin-top: 1rem;
}

/* -------------------------------------------------------------------
   Seção Orçamento
------------------------------------------------------------------- */
.section-budget {
  background-color: #0c0c0d;
  min-height: 100vh;
  padding-top: 0;
}
.budget-title {
  font-size: 2.5rem;
  color: #f56b3e;
  text-align: center;
  margin-bottom: 1rem;
}
.budget-subtitle {
  font-size: 1rem;
  color: #ccc;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  line-height: 1.4;
}
.budget-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}
.form-group label {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  background-color: #111;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 0.8rem;
  font-size: 1rem;
  color: #fff;
  outline: none;
  transition: border-color 0.3s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #f56b3e;
}
.btn-submit {
  align-self: center;
  width: 150px;
  padding: 0.8rem 0;
  background-color: #f56b3e;
  color: #000;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-submit:hover {
  background-color: #e05a2d;
  transform: scale(1.05);
}

/* -------------------------------------------------------------------
   Animação de surgimento sequencial dos campos do formulário
------------------------------------------------------------------- */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.animated-field {
  opacity: 0;
  animation: fadeInUp 0.6s forwards ease;
}
.animated-field:nth-child(1) { animation-delay: 0.2s; }
.animated-field:nth-child(2) { animation-delay: 0.4s; }
.animated-field:nth-child(3) { animation-delay: 0.6s; }
.animated-field:nth-child(4) { animation-delay: 0.8s; }
.animated-field:nth-child(5) { animation-delay: 1s; }
.animated-field:nth-child(6) { animation-delay: 1.2s; }

/* -------------------------------------------------------------------
   Overrides para espaçamento em páginas sem capa
------------------------------------------------------------------- */
#about .section-about.section-offset {
  margin-top: 50px;
}
#services .section-services-intro.section-offset,
#portfolio .section-portfolio.section-offset,
#budget .section-budget.section-offset {
  margin-top: 100px;
}

/* -------------------------------------------------------------------
   Rodapé
------------------------------------------------------------------- */
.footer {
  background-color: #19191e;
  text-align: center;
  padding: 1rem 0;
}

/* -------------------------------------------------------------------
   Estilos do Modal (aba flutuante)
------------------------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}
.modal-content {
  position: relative;
  background: #19191e;
  margin: 5% auto;
  padding: 30px;
  border-radius: 16px;
  width: auto;
  max-width: 90%;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.modal-body {
  display: flex;
  flex-direction: row;
  gap: 30px;
  flex-wrap: wrap;
}
.modal-media {
  flex: 1;
  max-height: calc(100vh - 120px);
}
.modal-media img,
.modal-media video {
  width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}
.modal-text {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-text-container {
  width: 282.1738px;
  height: 459.1739px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal-text-container h2,
.modal-text-container p {
  text-align: justify;
  text-align-last: left;
}
#modal-title {
  color: #e36b42;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
#modal-description {
  color: #eaeced;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
}
#modal-prev {
  left: 10px;
}
#modal-next {
  right: 10px;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* -------------------------------------------------------------------
   Estilos para dispositivos tablets
------------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Nos tablets a capa (vídeo) deve ocupar 35% da altura */
  #inicio .section-hero,
  #about .section-hero {
    height: 35vh;
  }
  /* Galeria: grid com 3 colunas para exibir 6 itens (2 linhas de 3 itens) */
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------------------------------------------------------------------
   Estilos para dispositivos móveis
------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Modal ajustes já existentes */
  .modal-body {
    flex-direction: column;
    align-items: center;
  }
  .modal-text {
    padding: 1rem 0;
    text-align: center;
  }
  
  /* Redução da altura das seções com capa */
  #inicio .section-hero,
  #about .section-hero {
    height: 40vh;
  }
  
  /* Ajuste da grid do Portfólio */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    width: 100%; /* Ajuste para mobile */
  }
  .portfolio-item {
    width: 100%;
    height: auto;
  }
  .portfolio-item img,
  .portfolio-item video {
    height: auto;
  }
  
  /* Diminuição do espaçamento das seções */
  section {
    padding: 1.5rem 0;
  }
  
  /* Ajuste do container principal */
  #main-content {
    height: auto;
  }
}

/* -------------------------------------------------------------------
   Estilos para a página thank-you.html
------------------------------------------------------------------- */
.thank-you-container {
  max-width: 600px;
  margin: 100px auto;
  padding: 2rem;
  background-color: #19191e;
  border-radius: 15px;
  border: 1px solid #444;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  text-align: center;
}
.thank-you-container h1 {
  font-size: 2.5rem;
  color: #f56b3e;
  margin-bottom: 1rem;
}
.thank-you-container p {
  font-size: 1rem;
  color: #eff1f2;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .thank-you-container {
    margin: 50px 1rem;
    padding: 1rem;
  }
  .thank-you-container h1 {
    font-size: 2rem;
  }
  .thank-you-container p {
    font-size: 0.9rem;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .thank-you-container {
    margin: 70px auto;
    padding: 1.5rem;
  }
}

/* -------------------------------------------------------------------
   NOVA REGRA – Ajuste na galeria da página Portfolio para desktop
   (apenas na versão PC: telas com min-width: 1025px)
------------------------------------------------------------------- */
@media (min-width: 1025px) {
  .portfolio-grid {
    width: calc(100% - 80px); /* 40px de margem em cada lado */
    margin: 0 auto;
  }
}

/* -------------------------------------------------------------------
   Personalização da barra de rolamento
------------------------------------------------------------------- */
/* Para WebKit (Chrome, Edge, Opera) */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0c0c0d;
}
::-webkit-scrollbar-thumb {
  background: #ff6a45;
}
::-webkit-scrollbar-thumb:hover {
  background: #e05a2d;
}
::-webkit-scrollbar-button {
  background: #ff6a45;
}

/* Para Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #ff6a45 #0c0c0d;
}

/* Personalização da barra de rolamento para desktop */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0c0c0d;
}
::-webkit-scrollbar-thumb {
  background: #ff6a45;
}
::-webkit-scrollbar-thumb:hover {
  background: #e05a2d;
}
::-webkit-scrollbar-button {
  background: #ff6a45;
}

/* Personalização da barra de rolamento para mobile */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 4px;
  }
  ::-webkit-scrollbar-track {
    background: #0c0c0d;
  }
  ::-webkit-scrollbar-thumb {
    background: #ff6a45;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #e05a2d;
  }
  ::-webkit-scrollbar-button {
    background: #ff6a45;
  }
}

/* Suporte para Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #ff6a45 #0c0c0d;
}
