/* =================================================================== */
/* ÍNDICE:
/* 1. ESTILOS GERAIS E VARIÁVEIS (:root, body, etc.)
/* 2. CLASSES UTILITÁRIAS (container, grid, etc.)
/* 3. CABEÇALHO (HEADER) E NAVEGAÇÃO
/* 4. SEÇÃO INÍCIO (HERO)
/* 5. SEÇÃO SOBRE MIM
/* 6. SEÇÃO SERVIÇOS
/* 7. SEÇÃO PORTFÓLIO (SLIDER)
/* 8. SEÇÃO CONTATO (FORMULÁRIO, BOTÕES E FAQ)
/* 9. ELEMENTOS INTERATIVOS (Botão Voltar ao Topo, GLightbox)
/* 10. MEDIA QUERIES (Responsividade e Menu Mobile)
/* =================================================================== */


/* --- 1. ESTILOS GERAIS E VARIÁVEIS --- */
/* ------------------------------------------------------------------- */
:root {
  --bg-color: #0f0f0f;
  --text-color: #f9f9f9;
  --accent-color: #fbbf24;
  --accent-color-rgb: 251, 191, 36;
  --neutral-color: #1f1f1f;
  --font-main: 'Poppins', sans-serif;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --neon-green: #39ff14;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden; /* Impede a rolagem horizontal indesejada */
}


/* --- 2. CLASSES UTILITÁRIAS --- */
/* ------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

section {
  padding-top: 7rem;
  padding-bottom: 7rem;
  overflow: hidden; /* Garante que conteúdos animados (AOS) não quebrem o layout */
}

h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  color: var(--accent-color);
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: -0.5rem auto 3rem;
  color: #ccc;
}

.grid {
  display: grid;
  gap: 2.5rem;
}


/* --- 3. CABEÇALHO (HEADER) E NAVEGAÇÃO --- */
/* ------------------------------------------------------------------- */
header {
  background-color: black;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 0.4s ease-in-out;
}

header.header-hidden {
  transform: translateY(-100%);
}

header nav.container {
  display: flex;
  justify-content: space-between; 
  align-items: center; 
  height: 70px; 
}

/* Logo */
.logo-link {
  display: inline-block;
  text-decoration: none;
  z-index: 10000; /* Garante que a logo fique na frente do menu mobile */
}

.logo-img {
  height: 100px;
  width: auto;
  vertical-align: middle; 
}

/* Menu Desktop */
header nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

header nav ul a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

header nav ul a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px; 
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

header nav ul a:hover::after,
header nav ul a:focus::after {
  transform: scaleX(1);
}

header nav ul a.active {
  color: var(--accent-color);
}

/* Esconde os "frufrus" (rodapé do menu) no desktop */
.menu-drawer-footer {
  display: none;
}


/* --- 4. SEÇÃO INÍCIO (HERO) --- */
/* ------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.video-destaque {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: blur(8px) brightness(0.5);
  transform: scale(1.1); 
}

.hero-text {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem 3rem;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  max-width: 800px;
}

/* Logos de clientes na Hero */
.client-logos {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}

.logos-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ccc;
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.logo-images img {
  height: 35px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  /* Filtro para deixar logos brancas (se forem coloridas) */
  filter: brightness(0) invert(1) grayscale(1);
}

.logo-images img:hover {
  opacity: 1;
}


/* --- 5. SEÇÃO SOBRE MIM --- */
/* ------------------------------------------------------------------- */
.sobre-mim-layout {
  display: grid;
  grid-template-columns: 1fr 2fr; 
  align-items: center; 
  gap: 3rem; 
}

.sobre-mim-foto img {
  width: 100%;
  height: auto;
  border-radius: 16px; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sobre-mim-texto h3 {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.sobre-mim-texto p {
  color: #ccc;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: #000;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #facc15;
  transform: scale(1.05);
}

/* Subseção "Processo de Trabalho" */
.processo-container {
  margin-top: 6rem;
}

.subtitulo-secao {
  text-align: center;
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 3rem;
}

.processo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.processo-item {
  text-align: center;
  background-color: var(--neutral-color);
  padding: 2rem;
  border-radius: 12px;
}

.processo-icone {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.processo-item h4 {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}


/* --- 6. SEÇÃO SERVIÇOS --- */
/* ------------------------------------------------------------------- */
.servicos-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.servico-card {
  background-color: var(--neutral-color);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.servico-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
}

.servico-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.equipamentos {
  text-align: center;
  margin-top: 5rem;
  padding: 2rem;
  background-color: var(--neutral-color);
  border-radius: 16px;
}


/* --- 7. SEÇÃO PORTFÓLIO (SLIDER) --- */
/* ------------------------------------------------------------------- */
.portfolio-slider {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

/* Link que envolve o card (para GLightbox) */
.swiper-slide a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Estilo do slide (largura) */
.swiper-slide {
  width: 60%;
  transition: all 0.5s ease;
}

/* Slide vertical (largura e proporção) */
.swiper-slide.slide-vertical {
  width: 35%;
  max-width: 380px;
}

.slide-vertical .card-video-container {
  padding-top: 177.77%; /* Proporção 9:16 */
}

/* Animação dos slides inativos */
.swiper-slide .portfolio-card {
  transform: scale(0.8);
  filter: blur(4px);
  opacity: 0.5;
  transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
}

/* Animação do slide ativo (centro) */
.swiper-slide-active .portfolio-card {
  transform: scale(1);
  filter: blur(0px);
  opacity: 1;
}

/* Setas de navegação do Swiper */
.swiper-button-next,
.swiper-button-prev {
  color: var(--accent-color);
}

/* Estrutura do Card */
.portfolio-card {
  background-color: var(--neutral-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.card-video-container {
  position: relative;
  padding-top: 56.25%; /* Proporção 16:9 */
  height: 0;
  overflow: hidden; /* Garante que o ícone de play não vaze */
}

/* Ícone de "Play" sobre a thumbnail */
.card-video-container::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.swiper-slide a:hover .card-video-container::after {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: rgba(var(--accent-color-rgb), 0.8);
}

/* Imagem de thumbnail */
.card-video-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Conteúdo de texto do card */
.card-content {
  padding: 1.5rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background-color: rgba(var(--accent-color-rgb), 0.1);
  color: var(--accent-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}


/* --- 8. SEÇÃO CONTATO (FORMULÁRIO, BOTÕES E FAQ) --- */
/* ------------------------------------------------------------------- */

section#contato {
  display: block; /* Garante que não seja flex ou grid */
}

/* Botão Principal (WhatsApp) */
.contato-principal {
  text-align: center;
  width: 100%;
  margin-bottom: 2.5rem;
}

.btn-whatsapp-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--neon-green);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  font-family: var(--font-main);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  
  /* Brilho Sutil */
  box-shadow: 0 0 12px 2px rgba(57, 255, 20, 0.4);
  
  transition: all 0.3s ease-in-out;
  animation: pulse-glow 2s infinite alternate;
}

.btn-whatsapp-glow .whatsapp-icon {
  width: 22px;
  height: 22px;
  fill: #fff;
}

/* Efeito hover (também sutil) */
.btn-whatsapp-glow:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px 4px rgba(57, 255, 20, 0.5);
}

/* Animação de pulsação sutil */
@keyframes pulse-glow {
  from {
    box-shadow: 0 0 12px 2px rgba(57, 255, 20, 0.4);
  }
  to {
    box-shadow: 0 0 18px 4px rgba(57, 255, 20, 0.5);
  }
}

/* Botões Secundários (Email, Formulário) */
.contato-secundario {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; 
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 3rem;
}

/* Botão de E-mail (Ghost Button) */
.contato-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contato-link .contato-svg-icon {
  width: 20px;
  height: 20px;
  fill: var(--accent-color);
  transition: fill 0.3s ease;
}

.contato-link:hover {
  background-color: var(--accent-color);
  color: #000;
}

.contato-link:hover .contato-svg-icon {
  fill: #000;
}

/* Texto "ou" */
.contato-ou {
  color: #888;
  font-weight: 500;
}

/* Link "Preencha o formulário" */
.contato-link-form {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.contato-link-form::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.contato-link-form:hover::after {
  transform: scaleX(1);
}

/* Formulário de Contato */
#form-contato {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  clear: both;
}

/* FAQ (Perguntas Frequentes) */
.faq-container {
  max-width: 700px;
  margin: 4rem auto 0;
}

.faq-item details {
  background: var(--neutral-color);
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #333;
}

.faq-item summary {
  padding: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq-item summary::after {
  content: '▼';
  position: absolute;
  right: 1.2rem;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.faq-item details[open] summary::after {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 1.2rem 1.2rem;
  color: #ccc;
  border-top: 1px solid #333;
  margin-top: 0.5rem;
}


/* --- 8. RODAPÉ (FOOTER) --- */
/* ------------------------------------------------------------------- */
footer {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: var(--neutral-color);
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #aaa;
}


/* --- 9. ELEMENTOS INTERATIVOS --- */
/* ------------------------------------------------------------------- */

/* Botão de Voltar ao Topo */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--accent-color);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Estilos da Galeria GLightbox (Tema Escuro) */
.gslide-description {
  background-color: var(--neutral-color) !important;
}
.gslide-description .gslide-title {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}
.gslide-description .gslide-desc {
  color: var(--text-color);
}
.gnext,
.gprev {
  background-color: rgba(0, 0, 0, 0.4) !important;
}
.gnext svg,
.gprev svg {
  color: var(--accent-color) !important;
  transition: transform 0.3s ease;
}
.gnext:hover svg,
.gprev:hover svg {
  transform: scale(1.2);
}

/* GLightbox para Vídeos VerticaIS (Desktop) */
.g-modal.vertical-mode .gslide-media {
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}
.g-modal.vertical-mode .gslide-video {
  padding-bottom: 177.77% !important;
}


/* =================================================================== */
/* 10. ESTILOS DO MENU MOBILE (VERSÃO GAVETA LATERAL) */
/* =================================================================== */

/* Botão Hambúrguer (Escondido no Desktop) */
.menu-hamburger {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10000; 
  display: none; 
  flex-direction: column;
  gap: 6px;
  position: relative;
  width: 28px;
  height: 21px;
  transition: all 0.3s ease-in-out;
}

.menu-hamburger .linha {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* Animação do "X" */
.menu-hamburger.is-active {
  position: fixed;
  right: 1.5rem;
  top: 25px;
}

.menu-hamburger.is-active .linha:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-hamburger.is-active .linha:nth-child(2) {
  opacity: 0;
}
.menu-hamburger.is-active .linha:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* =================================================================== */
/* 11. MEDIA QUERY (REGRAS SÓ PARA TELAS PEQUENAS) */
/* =================================================================== */
@media (max-width: 768px) {
  
  /* 1. Mostra o botão hambúrguer */
  .menu-hamburger {
    display: flex;
  }

  /* 2. Esconde o menu desktop e define a GAVETA */
  header nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    
    /* Posição e Tamanho */
    position: fixed;
    top: 0;
    right: 0;
    width: 70vw;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(31, 31, 31, 0.75); 
    backdrop-filter: blur(15px); 
    border-left: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    padding: 6rem 2rem 2rem;
    z-index: 9998;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
  }

  
  header nav ul.is-active {
    transform: translateX(0);
  }

  header nav ul a {
    font-size: 1.3rem; 
    color: var(--text-color);
    transition: color 0.3s ease;
    position: static; 
    padding: 0;
  }
  
  /* Remove o efeito de sublinhado no mobile */
  header nav ul a::after {
    display: none;
  }

  /* 5. Destaque do link */
  header nav ul a:hover,
  header nav ul a.active {
    color: var(--accent-color);
  }
   
  @keyframes fadeIn {
    to { opacity: 1; }
  }
  
  .menu-drawer-footer {
    display: block; 
    width: 80%;
    margin-top: auto; 
    padding-bottom: 2rem;
    text-align: center;
  }

  .menu-divider {
    border: none;
    height: 1px;
    background-color: var(--neutral-color); 
    margin: 0 auto 1.5rem auto;
    width: 100%;
  }

  .social-icons-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
  }

  .social-icons-menu a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .social-icons-menu a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
  }

  .social-icons-menu a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  .copyright-menu {
    font-size: 0.8rem;
    color: #888;
  }

  /* --- Outras regras responsivas (não relacionadas ao menu) --- */
  
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .sobre-mim-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .swiper-slide {
    width: 80%;
  }

  .swiper-slide.slide-vertical {
    width: 60%;
  }

  .servicos-grid {
    grid-template-columns: 1fr;
  }
  
  .g-modal.vertical-mode .gslide-media {
    height: 80vh;
    max-width: none;
    width: 90vw;
  } 
  .g-modal.vertical-mode .gslide-video {
    padding-bottom: 0 !important;
    height: 100%;
  }

  /* --- ESTILOS DO RODAPÉ DO MENU GAVETA --- */

.menu-drawer-footer {
    width: 80%; /* Ocupa 80% da largura da gaveta */
    margin-top: auto; /* ESTA É A MÁGICA: empurra o rodapé para baixo */
    padding-bottom: 2rem; /* Espaço na parte inferior */
    text-align: center;
}

.menu-divider {
    border: none;
    height: 1px;
    /* Cor sutil da linha, baseada no seu fundo */
    background-color: var(--neutral-color); 
    margin: 0 auto 1.5rem auto;
    width: 100%;
}

.social-icons-menu {
    display: flex;
    justify-content: center;
    gap: 2rem; /* Espaço entre os ícones */
    margin-bottom: 1.5rem;
}

.social-icons-menu a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons-menu a:hover {
    color: var(--accent-color); /* Destaque amarelo */
    transform: scale(1.1);
}

/* Estilo para os ícones SVG */
.social-icons-menu a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.copyright-menu {
    font-size: 0.8rem;
    color: #888; /* Cor cinza sutil */
}

}
