/*--------------------------------------------------------------
# Configurações Globais e Variáveis
--------------------------------------------------------------*/
:root {
  --bg-dark: #000000;
  --bg-panel: rgba(0, 20, 0, 0.7);
  --border-green: rgba(0, 255, 70, 0.2);
  --glow-green: rgba(0, 255, 70, 1);
  --text-light: #e0e0e0;
  --text-gray: #a0a0a0;
  --font-primary: 'Poppins', sans-serif;
  --font-mono: 'Fira Code', monospace;
  --transition: all 0.3s ease-in-out;
  --header-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

.body-no-scroll {
    overflow: hidden;
}

main {
  /* --- CORREÇÃO DO BUG DE RENDERIZAÇÃO NO MOBILE --- */
  position: relative; /* Necessário para o contexto de empilhamento */
  z-index: 1; /* Garante que o conteúdo principal fique acima do fundo */
  -webkit-transform: translateZ(0); /* Força a aceleração de hardware */
  transform: translateZ(0);
}


.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/*--------------------------------------------------------------
# Fundo de Partículas
--------------------------------------------------------------*/
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/*--------------------------------------------------------------
# Cabeçalho
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-green);
  z-index: 1000;
  transition: top 0.4s ease-in-out, background-color 0.3s ease-in-out;
}

#header.scrolled {
  background: rgba(0, 0, 0, 0.8);
}

#header.header-hidden {
  top: -100px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  z-index: 1001;
  display: flex;
  align-items: center;
}

.logo-img {
    height: 40px; 
    width: auto;
}

.main-nav {
  display: flex;
  align-items: baseline;
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}

.main-nav a:hover {
  color: var(--glow-green);
}

.mobile-nav-toggle {
    display: none;
}

/*--------------------------------------------------------------
# Botão e Seções
--------------------------------------------------------------*/
.btn-neon { position: relative; display: inline-block; padding: 0.8rem 1.8rem; color: var(--glow-green); background: transparent; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; font-weight: 600; text-decoration: none; overflow: hidden; border: 1px solid var(--border-green); border-radius: 5px; transition: var(--transition); }
.btn-neon:hover { color: var(--glow-green); background: rgba(0, 255, 70, 0.1); font-weight: 700; }
.hero { display: flex; align-items: center; justify-content: center; text-align: center; height: 100vh; min-height: 700px; }
.hero-title { font-family: var(--font-mono); font-size: 2.8rem; font-weight: 500; color: var(--text-light); text-transform: uppercase; margin-bottom: 1.5rem; line-height: 1.4; }
.hero-title .type-effect { color: var(--glow-green); display: inline-block; text-align: center; }
.typed-cursor{ opacity: 1; animation: typedjsBlink 0.7s infinite; }
@keyframes typedjsBlink{ 0% { opacity: 1; } 50% { opacity: 0.0; } 100% { opacity: 1; } }
.hero-subtitle { max-width: 600px; margin: 0 auto 2.5rem auto; color: var(--text-gray); font-size: 1.1rem; }
.tagline-section { padding: 3rem 0; background-color: var(--bg-panel); border-top: 1px solid var(--border-green); border-bottom: 1px solid var(--border-green); }
.tagline-text { font-family: var(--font-mono); font-size: 1.25rem; color: var(--text-gray); text-align: center; margin: 0; font-style: italic; }
section { padding: 2rem 0; scroll-margin-top: var(--header-height); }
.section-title { font-family: var(--font-mono); font-size: 2rem; color: var(--glow-green); text-align: center; margin-bottom: 4rem; }
.services-split { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.service-category { background: var(--bg-panel); border: 1px solid var(--border-green); border-radius: 8px; padding: 2.5rem; scroll-margin-top: calc(var(--header-height) + 20px); flex-grow: 1; flex-basis: 400px; max-width: 500px; }
.service-category h3 { font-family: var(--font-mono); color: var(--glow-green); margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-green); }
.service-category ul { list-style: none; padding: 0; }
.service-category li { position: relative; padding-left: 25px; margin-bottom: 1.5rem; color: var(--text-gray); font-weight: 300; }
.service-category li:last-child { margin-bottom: 0; }
.service-category li::before { content: '>'; position: absolute; left: 0; top: 0; color: var(--glow-green); font-family: var(--font-mono); font-weight: 600; }
.service-category li strong { display: block; color: var(--text-light); margin-bottom: 0.3rem; font-weight: 600; }
.corp-feature { background-color: rgba(0, 15, 5, 0.5); border-top: 1px solid var(--border-green); border-bottom: 1px solid var(--border-green); }
.corp-feature-content { display: flex; align-items: center; gap: 3rem; }
.corp-feature-icon { font-size: 8rem; color: var(--glow-green); }
.corp-feature-text p { color: var(--text-gray); margin-bottom: 1rem; }
#sobre { background-color: var(--bg-dark); }
.about-content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.about-text h3 { font-family: var(--font-mono); font-size: 1.8rem; color: var(--text-light); margin-bottom: 1.5rem; }
.about-text p { color: var(--text-gray); margin-bottom: 1rem; }
.about-skills { background: var(--bg-panel); border: 1px solid var(--border-green); border-radius: 8px; padding: 2rem; }
.about-skills h4 { font-family: var(--font-mono); color: var(--glow-green); margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-green); }
.about-skills ul { list-style: none; padding: 0; }
.about-skills li { position: relative; padding-left: 25px; margin-bottom: 1rem; color: var(--text-gray); font-size: 0.9rem; }
.about-skills li:last-child { margin-bottom: 0; }
.about-skills li::before { content: '»'; position: absolute; left: 0; top: 0; color: var(--glow-green); font-family: var(--font-mono); font-weight: 600; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card-hud { background: var(--bg-panel); border: 1px solid var(--border-green); border-radius: 8px; padding: 2.5rem 2rem; text-align: center; transition: var(--transition); position: relative; }
.card-hud-corner { position: absolute; width: 20px; height: 20px; border: 2px solid var(--glow-green); transition: transform 0.3s ease-in-out; }
.card-hud:hover .card-hud-corner { transform: scale(1.2); }
.card-hud-corner:nth-of-type(1) { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.card-hud-corner:nth-of-type(2) { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.card-hud-corner:nth-of-type(3) { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.card-hud-corner:nth-of-type(4) { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.card-hud:hover { transform: translateY(-5px); background: rgba(0, 30, 10, 0.8); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.card-hud-icon { font-size: 3rem; color: var(--glow-green); margin-bottom: 1.5rem; transition: var(--transition); }
.card-hud:hover .card-hud-icon { transform: scale(1.1); }
.card-hud-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-light); }
.card-hud-text { color: var(--text-gray); font-size: 0.95rem; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { 
  background: transparent; 
  border: 1px solid var(--border-green); 
  border-radius: 8px; 
  padding: 2.5rem 2rem; 
  position: relative; 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
}
.testimonial-quote { position: absolute; top: 1.5rem; left: 2rem; font-size: 2.5rem; color: var(--border-green); }
.testimonial-text { 
  margin-top: 2rem; 
  margin-bottom: 2rem; 
  font-style: italic; 
  color: var(--text-gray); 
  flex-grow: 1; 
}
.testimonial-author { 
  text-align: right; 
  min-height: 40px; 
  display: flex; 
  flex-direction: column;
  justify-content: flex-end; 
}
.testimonial-author .author-name { display: block; color: var(--text-light); font-weight: 600; line-height: 1.2; }
.testimonial-author .author-company { font-size: 0.9rem; color: var(--glow-green); font-family: var(--font-mono); line-height: 1.2; }
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-panel); border: 1px solid var(--border-green); border-radius: 5px; margin-bottom: 1rem; overflow: hidden; }
.faq-question { padding: 1.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; transition: var(--transition); }
.faq-question:hover { color: var(--glow-green); }
.faq-question i { color: var(--glow-green); transition: transform 0.3s ease; }
.faq-question.active i { transform: rotate(90deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-answer p { padding: 0 1.5rem 1.5rem 1.5rem; border-top: 1px solid var(--border-green); margin-top: -1rem; padding-top: 1.5rem; color: var(--text-gray); }
.cta { text-align: center; }

footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-green);
  background: var(--bg-dark);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.footer-copy p {
  margin: 0.25rem 0;
  color: var(--text-gray);
  font-size: 0.9rem;
}
.footer-copy a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.footer-copy a:hover {
  color: var(--glow-green);
  text-decoration: underline;
}

.visitor-counter p {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--glow-green);
  border: 1px solid var(--border-green);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  background-color: var(--bg-panel);
  margin: 0;
}

.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--glow-green); color: var(--bg-dark); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; z-index: 99; opacity: 0; visibility: hidden; transition: var(--transition); border: none; text-decoration: none; }
.back-to-top.active { opacity: 1; visibility: visible; }

/*--------------------------------------------------------------
# Responsividade
--------------------------------------------------------------*/
@media (max-width: 991px) {
  .services-split {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
  .mobile-nav-toggle { display: block; background: transparent; border: none; color: var(--glow-green); font-size: 2rem; cursor: pointer; z-index: 1001; }
  .main-nav { display: flex; position: fixed; top: 0; right: -100%; width: 70%; max-width: 300px; height: 100vh; padding: 6rem 2rem 2rem; background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-left: 1px solid var(--border-green); flex-direction: column; align-items: flex-start; transition: right 0.4s ease-in-out; }
  .main-nav.active { right: 0; }
  .main-nav a { margin: 0 0 1.5rem 0; font-size: 1.2rem; }
  .corp-feature-content { flex-direction: column; text-align: center; }
  .corp-feature-icon { font-size: 6rem; margin-bottom: 2rem; }
  .corp-feature-text .section-title { text-align: center !important; }
  .about-content-grid { grid-template-columns: 1fr; }
  footer .container { flex-direction: column; gap: 1rem; }
}