*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: #0F1115;
  color: #f0f4ff;
  font-family: 'Raleway', sans-serif;
  
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #0F1115;
}

::-webkit-scrollbar-thumb {
  background: #007ACC;
  border-radius: 2px;
}

/* ── HEADER ── */
.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pin-container {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.next-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1a103c 0%, #0F1115 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  opacity: 0; 
}

.next-section h2 {
  font-size: 2rem;
  background: linear-gradient(90deg, #fff, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.hero-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4; 

  
}


.bg {
  background: url('../images/hero-desktop-new.webp');
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;  
  height: 100%;
  z-index: -1;
}


 .bg video {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;  
  height: 100%; 
  object-fit: cover;
  object-position: center;
}

.bg::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #26252552; 
  z-index: 3; 
  pointer-events: none;
}


.bg video {
  z-index: 2;
}

.hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
  line-height: 1.1;
  width: 100%;
}

.crie-seu, .universo {
  font-size: clamp(50px, 6vw, 6vw);
  font-weight: 800;
  margin: 0;
}

.crie-seu {
  color: #ffffff;
}

.universo {
  color: #2DAAF8; 
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.normal-scroll {
  height: 30vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0F1115;
}

@media (max-width: 1033px) {
  .bg {
    background: url('../images/hero-mobile-new.webp');
    background-size: cover;
    background-repeat: no-repeat;
  }
}

/* ── SECTION 2 — SERVICES ── */
.services {
  position: absolute; 
  inset: 0; /* Faz ocupar a tela toda em cima do Hero */
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 0 40px;
  box-sizing: border-box;
}

#three-slot {
  position: relative; /* Removido o absolute para obedecer o Flexbox! */
  width: 45%;
  max-width: 1200px;
  height: 500px;
  flex-shrink: 0; /* Impede que o 3D seja esmagado */
  background-color: #0f1115;
  padding: 40px;
  border-radius: 40px;
}

#three-slot canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.services-cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 45%;
  max-width: 500px;
  flex-shrink: 0; 
  position: relative;
  z-index: 999;
}

.scard {
  width: 500px;
  /* Aumentamos as cores do gradiente para criar uma transição suave ao animar */
  background: linear-gradient(-45deg, #2DAAF8, #12336b, #1a5c88, #2a2f3a25);
  background-size: 400% 400%; /* O background precisa ser maior que o card para se mover */
  border-radius: 12px;
  padding: 26px 30px;
  position: relative;
  overflow: hidden;
  transform: translateX(60px);
  transition: border-color .3s;
  
  /* Chama a animação: nome, duração, curva de aceleração e loop infinito */
  animation: pulseGradient 18s ease infinite;
}

/* Define os passos da animação */
@keyframes pulseGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 1335px) {

  #card-mobile {
    display: none;
  }

  .services-cards {
  width: 90%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  }


  .scard {
    width: 100%;
  }


  #three-slot {
    display: none;
  }
}
/* ── SECTION 3 — PROJECTS ── */
#projects-section {
  width: 100vw;
  position: relative;
  height: 600vh;
  z-index: 10;
}

.bg-projects {
  position: absolute;
  z-index: -20;
  width: 100%;
  height: 100%;
  background: url('../images/section-bg.webp');
  background-repeat: no-repeat;
  background-size: cover;

}


.bg-projects::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #0F1115, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

#projects-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.proj-intro-title {
  font-size: clamp(28px, 4vw, 58px);
  text-align: center;
  letter-spacing: 4px;
  margin-bottom: 40px;
  margin-top: 40px;
}

.proj-intro-title span {
  color: #00BFFF;
}

.proj-thumbs {
  display: flex;
  gap: 36px;
  align-items: center;
  position: relative;
}

.pthumb {
  width: 300px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transform: translateY(130vh);
  opacity: 0;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .65);
  flex-shrink: 0;
}

.pthumb .poverlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 13px;
  width: 500px;
}

.pthumb .poverlay span {
  font-size: 10px;
  letter-spacing: 1px;
}

.diag-cover {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(8, 1fr);
  pointer-events: none;
}

.dtile {
  background: #00BFFF;
  transform: scaleX(0);
  transform-origin: left center;
}

#proj-slides {
  position: absolute;
  inset: 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
}

.pslide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 0px 40px;
  opacity: 0;
}

.pslide-number {
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(0, 191, 255, .5);
  text-transform: uppercase;
}

.pslide-title {
  font-size: clamp(40px, 6vw, 82px);
  letter-spacing: 5px;
  text-align: center;
}

.pslide-img {
  width: min(950px, 90vw);
  height: min(550px, 50vh);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 30px rgba(0, 0, 0, 0.205);
}

.pslide-img svg,
.pslide-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pslide-tag {
  font-size: 11px;
  letter-spacing: 2px;
  color: #7a8aaa;
  text-transform: uppercase;
}

#proj-nav {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 210;
  opacity: 0;
}

.pndot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  transition: background .3s, transform .3s;
}

.pndot.active {
  background: #00BFFF;
  transform: scale(1.4);
}

@media (max-width: 796px) {

  .bg-projects {
    background: url('../images/section-bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }

  .pthumb {
    width: 200px;
    height: 200px;
  }
}

/* ── SECTION 4 — CTA ── */
.section-cta {
  min-height: 100vh;
  z-index: 30;
  display: flex;
  justify-content: center;
}

.content {
  max-width: 1600px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 120px;
  text-align: center;
}

.reveal-text {
  /* Fonte responsiva mais equilibrada */
  font-size: clamp(2.5rem, 6vw, 7rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 40px;
  text-transform: uppercase;
  
  /* Corrige a quebra de palavras */
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: keep-all; /* Evita quebrar palavras no meio */
  
  /* Garante que o texto flua naturalmente sem conflito com os caracteres */
  white-space: normal; 
}

.reveal-text .char {
  opacity: 0;
  display: inline-block;
  /* Garante que os caracteres não sejam tratados como espaços */
  white-space: pre; 
}

.external-link {
  /* Melhor responsividade para o botão */
  width: auto;
  min-width: 300px;
  max-width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; 
  transform: translateY(30px);
  padding: 24px 48px;
  background-color: #2DAAF8;
  text-align: center;
  color: #0F1115;
  text-decoration: none;
  font-size: 2.5rem;
  font-weight: bold;
  border-radius: 16px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.external-link:hover {
  background-color: #185a83;
}

@media (max-width: 1339px) {

  .section-cta {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .external-link {
    font-size: clamp(1.8rem, 4vw, 3rem);
    padding: 16px 32px;
  }

  .content {
    padding: 0 24px;
    margin-top: 60px; /* Ajuste para telas menores */
  }
}

/* ── FOOTER ── */
footer {
  color: white;
  position: relative;
  overflow: hidden;
  padding: 120px 80px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}



.bg-footer {
  background: url('../images/hero-desktop-new.webp');
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  inset: 0;
}

.bg-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Degradê: começa escuro em cima e vai para 100% transparente embaixo */
  background: linear-gradient(to bottom, #0F1115, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.footer-fig {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 360px;
  opacity: .3;
}

.footer-fig svg {
  width: 100%;
  display: block;
}

.footer-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  max-width: 360px;

  p {
    color: #E6ECF0;
    line-height: 1;
    font-weight: 600;
    text-align: center;
    font-size: clamp(2.3rem, 3vw, 1.7rem);
  }
}

.flogo-hex {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #00BFFF, #007ACC);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}



.flogo-hex span {
  position: relative;
  z-index: 1;
  font-size: 20px;
}


.footer-cta {
  display: inline-block;
  border: 1px solid #00BFFF;
  color: #00BFFF;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 4px;
  text-decoration: none;
  transition: background .3s, color .3s;
}

.footer-cta:hover {
  background: #00BFFF;
  color: #080c14;
}

.footer-mid {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 56px 0 36px;
}

.footer-nav,
.footer-soc {
  display: flex;
  gap: 32px;
}

.footer-nav a,
.footer-soc a {
  font-size: 10px;
  letter-spacing: 2px;
  color: #E6ECF0;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .3s;
}

.footer-nav a:hover,
.footer-soc a:hover {
  color: #00BFFF;
}

.fdivider {
  width: 180px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 191, 255, .28), transparent);
  margin: 4px 0;
}

.footer-brand {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: auto;

   a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
    text-align: center;
   }
}

.footer-brand-name {
  font-size: clamp(44px, 7.5vw, 92px);
  letter-spacing: 18px;
  font-weight: 600;
  line-height: 1;
  background-color: #E6ECF0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

@media (max-width: 1355px) {

  .bg-footer {
    background: url('../images/hero-mobile-new.webp');
    background-repeat: no-repeat;
    background-size: cover;
  }

  .footer-brand-name {
  font-size: clamp(44px, 7.5vw, 92px);
  letter-spacing: 9px;
  font-weight: 600;
  line-height: 1;
  background-color: #E6ECF0;
}

.footer-brand {
  a {
    font-size: 1rem;
  }
}
}


/* noise */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
}




.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001; /* Garante que fique acima de tudo, menos do noise/menu mobile */
  padding: 30px 40px;
  pointer-events: none; /* Permite clicar nos espaços vazios através do header */
}

.header-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto; /* Reativa o clique apenas nos itens do header */
}

.header-logo {
  height: 45px;
  width: auto;
  display: block;
}

/* Menu Pílula - Desktop */
.desktop-nav {
  display: flex;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 32px;
  border-radius: 50px;
  background: rgba(15, 17, 21, 0.4); /* Fundo escuro levemente transparente */
  backdrop-filter: blur(8px); /* Efeito de vidro opcional */
  -webkit-backdrop-filter: blur(8px);
}

.desktop-nav a {
  color: #f0f4ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.desktop-nav a:hover {
  color: #00BFFF;
}

/* Botão Hambúrguer - Oculto no Desktop */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  width: 35px;
  height: 24px;
  justify-content: center;
  align-items: center;
  z-index: 10001; /* Fica acima do menu mobile para virar o X */
}

.hamburger .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #f0f4ff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animação do Hambúrguer para X */
.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0; /* Esconde a barra do meio */
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Menu Lateral - Mobile */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; 
  width: 100vw;
  height: 100vh;
  
  /* MUDANÇA AQUI: Preto com 70% de opacidade */
  background: rgba(15, 17, 21, 0.7); 
  
  /* O efeito de vidro (fumê) */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); 
  
  overscroll-behavior: contain; 
  touch-action: none;
}

.mobile-menu.active {
  right: 0; /* Traz o menu para a tela */
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
}

.mobile-nav a {
  color: #f0f4ff;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: #00BFFF;
}

/* ── RESPONSIVO ── */
@media (max-width: 768px) {
  .main-header {
    padding: 20px;
  }
  
  .desktop-nav {
    display: none; /* Esconde a pílula no mobile */
  }
  
  .hamburger {
    display: flex; /* Mostra o hambúrguer no mobile */
    pointer-events: auto;
  }
}