:root {
  --bg-main: #020203;
  --bg-card: #0a0a0c;
  --bg-card-hover: #121216;
  --primary: #38bdf8;
  --secondary: #a855f7;
  --text-main: #ffffff;
  --text-muted: #94969f;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.03);
  --glow-gradient: radial-gradient(circle at center, rgba(56, 189, 248, 0.15), transparent 70%);
  --easing: cubic-bezier(0.23, 1, 0.32, 1);
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; width: 100%; overflow-x: hidden; }

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9000; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

.container { width: min(var(--container), 90%); margin-inline: auto; }
a { text-decoration: none; color: inherit; }
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header {
  position: fixed; top: 0; width: 100%; height: 80px; z-index: 100;
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  background: rgba(2, 2, 3, 0.7);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  z-index: 201;
}
.brand__logo {
  display: block;
  height: 40px; 
  width: auto;
  margin: 0;
  transition: opacity 0.3s;
}
.brand__logo:hover { opacity: 0.8; }
.logo-white { filter: brightness(0) invert(1); } 

.nav { display: flex; gap: 32px; align-items: center; }
.nav__link { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: 0.3s; }
.nav__link:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

.btn {
  padding: 12px 24px; border-radius: 8px; font-weight: 500; font-size: 0.9rem;
  transition: var(--easing) 0.4s; position: relative; overflow: hidden; display: inline-flex; justify-content: center;
}
.btn--primary { background: #fff; color: #000; }
.btn--glow:hover { box-shadow: 0 0 30px var(--primary); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

.hero { padding-top: 180px; padding-bottom: 100px; position: relative; }
.hero-bg-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px; background: var(--glow-gradient);
  filter: blur(100px); opacity: 0.4; z-index: -1;
}

.hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.03em; }
.lead { font-size: 1.1rem; color: var(--text-muted); max-width: 500px; margin-bottom: 32px; }
.hero__btns { display: flex; gap: 16px; margin-bottom: 40px; }
.badge {
  display: inline-block; padding: 6px 12px; border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.1);
  color: var(--primary); font-size: 0.75rem; margin-bottom: 20px; font-weight: 600;
}

.trust-bar { display: flex; align-items: center; gap: 16px; font-size: 0.85rem; color: var(--text-muted); }
.dot { width: 4px; height: 4px; background: var(--border); border-radius: 50%; }

.glass-panel {
  background: rgba(20, 20, 25, 0.6); border: 1px solid var(--border);
  backdrop-filter: blur(20px); border-radius: 16px; padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.visual-header { display: flex; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.dots span:nth-child(1) { background: #ff5f57; }
.dots span:nth-child(2) { background: #febc2e; }
.dots span:nth-child(3) { background: #28c840; }
.visual-title { font-family: monospace; font-size: 0.8rem; color: #28c840; }

.stat-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; margin-bottom: 12px; }
.bar { flex: 1; height: 6px; background: rgba(255,255,255,0.1); margin: 0 12px; border-radius: 4px; overflow: hidden; }
.fill { height: 100%; background: var(--primary); border-radius: 4px; }
.code-snippet { margin-top: 20px; font-family: monospace; font-size: 0.8rem; color: var(--text-muted); display: grid; gap: 4px; }
.success { color: #28c840; }

.section { padding: 100px 0; }
.section--darker { background: #000; }
.section__head { margin-bottom: 60px; max-width: 600px; }
.section__head h2 { font-size: 2.5rem; margin-bottom: 10px; }

.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.span-2 { grid-column: span 2; }

.tilt-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; position: relative; overflow: hidden;
  transform-style: preserve-3d; transition: transform 0.1s;
}
.tilt-card:hover { border-color: rgba(255,255,255,0.2); }

.bento-icon svg { width: 40px; height: 40px; margin-bottom: 20px; filter: drop-shadow(0 0 8px rgba(255,255,255,0.2)); }
.bento-item h3 { font-size: 1.4rem; margin-bottom: 10px; }
.bento-item p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { font-size: 0.75rem; padding: 4px 10px; background: rgba(255,255,255,0.05); border-radius: 4px; color: var(--text-muted); }

.glow-effect {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 50%);
  top: var(--y, 50%); left: var(--x, 50%);
  transform: translate(-50%, -50%); opacity: 0; pointer-events: none; transition: opacity 0.5s;
}
.tilt-card:hover .glow-effect { opacity: 1; }

.spin-slow .react-rings { animation: spin 10s linear infinite; transform-origin: 12px 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.project-card { display: block; height: 350px; display: flex; flex-direction: column; justify-content: flex-end; }
.project-thumb {
  position: absolute; inset: 0; z-index: -1; opacity: 0.4; transition: 0.5s;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}

.thumb-1 { 
  background-image: linear-gradient(0deg, #000 0%, transparent 80%), url('assets/case1.png'); 
}
.thumb-2 { 
  background-image: linear-gradient(0deg, #000 0%, transparent 80%), url('assets/case2.png'); 
}
.project-card:hover .project-thumb { opacity: 1; transform: scale(1.05); }
.project-info { position: relative; z-index: 2; }
.arrow { display: inline-block; margin-top: 10px; opacity: 0; transform: translateX(-10px); transition: 0.3s; color: var(--primary); }
.project-card:hover .arrow { opacity: 1; transform: translateX(0); }

#contato {
  padding-top: 200px; 
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

#canvas-container {
  width: 100%;
  height: 600px;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-box { width: 100%; max-width: 500px; text-align: left; margin: 0 auto; }
.contact-box p { margin-bottom: 50px; color: var(--text-muted); }

.input-group { 
  position: relative; 
  margin-bottom: 40px; 
  text-align: left; 
}

.input-group input, .input-group textarea {
  width: 100%; padding: 14px; background: transparent; border: 1px solid var(--border);
  border-radius: 8px; color: #fff; font-size: 1rem; outline: none; transition: 0.3s;
  font-family: 'Inter', sans-serif; resize: vertical;
}

.input-group label {
  position: absolute; left: 14px; top: 14px; 
  color: var(--text-muted); font-size: 1rem;
  pointer-events: none; transition: 0.3s; 
  background: transparent; 
  padding: 0 4px;
}

.input-group input:focus, .input-group input:not(:placeholder-shown),
.input-group textarea:focus, .input-group textarea:not(:placeholder-shown) { 
  border-color: var(--primary); 
}

.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label {
  top: -25px; left: 0; font-size: 0.85rem; color: var(--primary);
}

.form-feedback { margin-top: 16px; min-height: 20px; font-size: 0.9rem; }
.footer { padding: 40px 0; border-top: 1px solid var(--border); color: var(--text-muted); text-align: center; font-size: 0.85rem; }
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.nav-toggle { display: none; }

/* REGRA PARA TABLETS E CELULARES (Abaixo de 1024px) */
@media (max-width: 1024px) {
  /* Esconde completamente o container do 3D para economizar recursos e espaço */
  #canvas-container {
    display: none;
  }

  /* Ajusta o layout para uma coluna única */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  /* Reduz o espaçamento superior para não ficar um buraco vazio */
  #contato { 
    padding-top: 100px; 
  }
}

@media (max-width: 900px) {
  .container { width: 90%; }
  .hero__grid, .bento-grid, .projects-grid { grid-template-columns: 1fr; gap: 40px; }
  .span-2 { grid-column: auto; }
  
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 30px; height: 20px; background: transparent; border: none;
    cursor: pointer; z-index: 200;
  }
  .nav-toggle span {
    display: block; width: 100%; height: 2px; background: #fff;
    transition: all 0.3s ease;
  }

  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

  .nav {
    position: fixed; top: 0; right: 0; width: 80%; height: 100vh;
    background: rgba(2, 2, 3, 0.98); backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    flex-direction: column; justify-content: center; padding: 40px;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 199; box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  .nav.active { transform: translateX(0); }
  .nav__link { font-size: 1.2rem; margin-bottom: 24px; display: block; }

  .hero { padding-top: 120px; text-align: center; }
  .hero h1 { font-size: 2.5rem; }
  .hero__btns { justify-content: center; flex-direction: column; }
  .btn { width: 100%; }
  .trust-bar { justify-content: center; flex-wrap: wrap; }
  .hero__visual { margin-top: 40px; }
}

/* =========================================
   ADICIONAR AO FINAL DO STYLES.CSS
   ========================================= */

/* --- FAQ SECTION --- */
.faq-container { max-width: 800px; margin-inline: auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: 0.3s;
}

.faq-question:hover { color: var(--primary); }

.icon-plus {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s;
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.faq-answer p {
  padding-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Classe que será ativada pelo Javascript */
.faq-item.active .icon-plus { transform: rotate(45deg); color: var(--secondary); }
.faq-item.active .faq-answer { max-height: 300px; }


/* --- FOOTER PROFISSIONAL --- */
.footer {
  padding: 80px 0 20px;
  border-top: 1px solid var(--border);
  background: #010101; /* Um pouco mais escuro que o fundo normal */
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0; /* Remove margens extras se houver */
  
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer__logo { height: 40px; margin-bottom: 20px; margin-left: -120px;}
.brand-col p { margin-top: 16px; max-width: 300px; line-height: 1.6; }

.footer__col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 24px;
  font-weight: 600;
}

.footer__col a {
  display: block;
  margin-bottom: 12px;
  transition: 0.3s;
}
.footer__col a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Ajuste Mobile para o Footer */
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr; /* Tudo em uma coluna */
    gap: 40px;
    text-align: center;
  }
  .brand-col p { max-width: 100%; }
}