:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --accent-green: #10b981;
  --accent-green-bright: #22c55e;
  --accent-purple: #8b5cf6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-main: system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================
   CABEÇALHO & LOGO
   ========================================== */
.cabecalho {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #334155;
  padding: 1rem 0;
}

.container-navegacao {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cabecalho-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-texto {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo-texto span {
  color: var(--accent-green);
  margin-left: 4px;
}

.logo-icone {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.menu-navegacao {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.menu-navegacao a {
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.3s;
}

.menu-navegacao a:hover {
  color: var(--accent-green);
}

.menu-botao {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==========================================
   BOTÕES
   ========================================== */
.botao-primario,
.botao-primario-pequeno {
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: #ffffff !important;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.botao-primario-pequeno {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.botao-whatsapp {
  background: linear-gradient(135deg, var(--accent-green-bright), #16a34a);
}

.botao-secundario {
  border: 1px solid var(--accent-purple);
  color: var(--text-main);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: 0.3s;
}

.botao-primario:hover,
.botao-primario-pequeno:hover {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.botao-secundario:hover {
  background: var(--accent-purple);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.secao-hero {
  padding: 5rem 0;
  text-align: center;
  background: radial-gradient(circle at top, #1e1b4b, var(--bg-dark));
}

.badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green-bright);
  border: 1px solid var(--accent-green);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
}

.secao-hero h1 {
  font-size: 2.8rem;
  margin: 1.5rem 0;
}

.secao-hero h1 span {
  color: var(--accent-green-bright);
}

.secao-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-botoes {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ==========================================
   SEÇÃO SOBRE NÓS
   ========================================== */
.secao-sobre {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
}

.conteudo-sobre {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.imagem-sobre-nos {
  flex-shrink: 0;
}

.imagem-sobre-nos img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.texto-sobre {
  flex: 1;
  text-align: left;
}

.texto-sobre h2 {
  font-size: 1.8rem;
  margin: 1rem 0;
  color: var(--text-main);
}

.texto-sobre p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.caixa-destaque {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--accent-green);
  border-left: 4px solid var(--accent-green-bright);
  padding: 1rem 1.2rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  text-align: left;
}

.caixa-destaque p {
  color: var(--text-main);
  font-size: 0.9rem;
  margin-bottom: 0;
}
/* ==========================================
   SEÇÃO DE SERVIÇOS (Isolada e Organizada)
   ========================================== */
.secao-servicos {
  padding: 5rem 0;
}

.secao-servicos .titulo-secao {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

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

.grade-servicos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cartao-servico {
  background: var(--bg-card);
  padding: 2.2rem;
  border-radius: 14px;
  border: 1px solid #334155;
  transition: all 0.3s ease;
}

.cartao-servico:hover {
  border-color: var(--accent-green);
  transform: translateY(-4px);
}

.cartao-servico .icone {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.cartao-servico h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.cartao-servico p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================
   VITRINE DE PROJETOS - VR TECH (Refinado & Elegante com Vídeos Nativos)
   ========================================== */
.secao-vitrine {
  padding: 6rem 0;
  background-color: var(--bg-dark);
}

.secao-vitrine .titulo-secao {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
}

.secao-vitrine .subtitulo-secao {
  text-align: center;
  color: #cbd5e1;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 400;
}

.grade-portfolio,
.grid-projetos {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Card Moderno com Borda Superior Reforçada */
.cartao-projeto {
  flex: 1;
  max-width: 490px;
  background-color: #162032;
  border: 2px solid #00ff88;
  border-top: 4px solid #00ff88; /* Borda superior encorpada e destacada */
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 255, 136, 0.12);
}

.cartao-projeto:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 255, 136, 0.25);
  border-color: #22c55e;
  border-top-color: #22c55e;
}

/* ------------------------------------------
   AJUSTE CIRÚRGICO DA PRÉVIA DE VÍDEO NATIVO (16:9 PERFEITO)
   ------------------------------------------ */
.previa-video,
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Proporção correta de cinema/vídeo sem achatar */
  background: #000;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.previa-video iframe,
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-case {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Preenche com harmonia, sem deformar */
  display: block;
}

/* Informações Internas do Card de Projeto */
.projeto-info {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.projeto-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.tech-stack {
  font-size: 0.85rem;
  font-family: monospace;
  color: #00ff88;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.projeto-descricao {
  font-size: 0.95rem;
  color: #ffffff !important;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-acoes {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.status-projeto {
  font-size: 0.85rem;
  color: #00ff88;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================
   ESTILIZAÇÃO DO LINK HD DO YOUTUBE
   ========================================== */
.card-acoes-youtube {
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
}

.link-youtube-hd {
  font-size: 0.85rem;
  color: #00ff88;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.link-youtube-hd:hover {
  color: #22c55e;
  text-decoration: underline;
}

.link-youtube-hd:visited {
  color: #00ff88;
}
.dica-tela-cheia {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-style: italic;
  line-height: 1.3;
}

/* ==========================================
               RODAPÉ
   ========================================== */
.rodape {
  background: #090d16;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid #334155;
}

.rodape-conteudo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.rodape-inferior {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
}

.rodape-contato {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end !important;
  margin-left: auto;
}

.rodape-contato h3 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.frase-botao-footer {
  font-size: 1rem !important;
  line-height: 1.4;
  text-align: right !important;
  margin-bottom: 10px;
  display: flex;
  width: 100%;
}

.credito-desenvolvedor {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.credito-desenvolvedor strong {
  color: var(--accent-green-bright);
}

.rodape-info .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.rodape-info .logo span {
  color: var(--accent-green);
}

/* ==========================================
   CRÉDITOS DE ÁUDIO NO RODAPÉ
   ========================================== */
.rodape-creditos-audio {
  text-align: center;
  margin: 1.5rem 0 1rem 0;
  padding: 0 1rem;
}

.rodape-creditos-audio p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  font-family: var(--font-main);
}

.rodape-creditos-audio .destaque-audio {
  color: #cbd5e1;
  font-weight: 500;
}

/* ==========================================
   VINHETA DE ABERTURA - VR TECH (EFEITO VÓRTICE)
   ========================================== */
.vinheta-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #050505;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.vinheta-conteudo-central {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.redemoinho-codigos {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: vortexCondensacao 4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.redemoinho-codigos span {
  position: absolute;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  font-weight: bold;
  color: #00ff88;
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.9);
  transform-origin: 170px;
  transform: rotate(calc(var(--i) * 45deg));
  opacity: 0.9;
}

@keyframes vortexCondensacao {
  0% {
    transform: rotate(0deg) scale(1.5);
    opacity: 1;
    filter: blur(2px);
  }
  60% {
    transform: rotate(540deg) scale(0.8);
    opacity: 0.8;
    filter: blur(0px);
  }
  85% {
    transform: rotate(720deg) scale(0.2);
    opacity: 0.3;
  }
  100% {
    transform: rotate(810deg) scale(0);
    opacity: 0;
  }
}

.logo-revelacao {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.1);
  filter: blur(10px);
  animation: materializarLogo 3.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 1.2s; 
}

.vinheta-logo-robo {
  width: 150px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(0, 255, 136, 0.8));
}

.vinheta-titulo {
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: 15px;
  letter-spacing: 3px;
  font-family: 'Poppins', sans-serif;
}

.vr-branco {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

.tech-verde {
  color: #00ff88;
  text-shadow: 0 0 20px rgba(0, 255, 136, 1);
}

@keyframes materializarLogo {
  0% {
    opacity: 0;
    transform: scale(0.1);
    filter: blur(10px);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.7);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
}

.botao-vinheta-interativo {
  position: absolute;
  bottom: 16%;
  z-index: 20;
  background: rgba(5, 23, 15, 0.75);
  backdrop-filter: blur(8px);
  color: #00ff88;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0.7rem 1.8rem;
  border: 1px solid rgba(0, 255, 136, 0.5);
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
  opacity: 0;
  transform: translateY(15px);
  animation: revelarBotaoVinheta 1.2s ease forwards, pulsarBotaoVinheta 2.5s infinite ease-in-out;
  animation-delay: 0.5s;
  transition: all 0.3s ease;
}

.botao-vinheta-interativo:hover {
  background: rgba(0, 255, 136, 0.15);
  border-color: #00ff88;
  color: #ffffff;
  transform: scale(1.03) translateY(0);
  box-shadow: 0 0 22px rgba(0, 255, 136, 0.4);
}

@keyframes revelarBotaoVinheta {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulsarBotaoVinheta {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
  }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
  .redemoinho-codigos {
    width: 250px;
    height: 250px;
  }
  .redemoinho-codigos span {
    font-size: 0.9rem;
    transform-origin: 125px;
  }
  .vinheta-logo-robo {
    width: 110px;
  }
  .vinheta-titulo {
    font-size: 1.9rem;
  }
  .botao-vinheta-interativo {
    font-size: 0.95rem;
    padding: 0.7rem 1.6rem;
    bottom: 15%;
  }
}