/* =========================================
   RESET E BASES
   ========================================= */
html,
body {
  width: 100%;
  min-height: 100%; /* Importante: min-height para permitir scroll */
  margin: 0px;
  padding: 0px;
}

/* =========================================
   ESTRUTURA DE ANIMAÇÃO (STICKY)
   ========================================= */

/* A "pista" de scroll. Define a duração da animação */
.sticky-wrapper {
  height: 300vh; /* 3x a altura da tela */
  position: relative;
  background-color: #3ebfff;
}

header {
  /* O header fica travado no topo enquanto rolamos a sticky-wrapper */
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh; /* Ocupa a tela inteira */
  overflow: hidden;
}

.header-animation-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.logo-title-h1 {
  display: flex;
  width: 28vw;
  height: auto;
  align-items: center;
  margin: 3rem;
}

/* =========================================
   CAMADAS (LAYERS) E Z-INDEX
   ========================================= */

/* CAMADA 5 (Topo): Navegação e Logo */
.navigation {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 7;
  padding: 1vw 0; /* Dá uma área de respiro para o hover */
  background-color: transparent; /* Começa invisível */
  transition: height 0.8s ease 0s;
  height: 6rem;
}

/* O efeito de Hover */
.navigation:hover {
  background: #de7010;
  background: linear-gradient(
    154deg,
    rgba(222, 112, 16, 1) 0%,
    rgba(42, 40, 199, 1) 53%
  ); /* O azul #3ebfff com um pouco de transparência */
  backdrop-filter: blur(10px);
  height: 8rem; /* Opcional: dá um efeito de vidro fosco chique */
}

/* CAMADA 3: Imagem Original (Capa) */
.layer-full-image {
  position: absolute;
  left: 0;
  object-fit: cover;
  display: block;
  z-index: 3;
  bottom: -11%;
  justify-self: anchor-center;
  width: 40%;
  top: 25%;
  right: 0;
}

/* Substitua .layer-orange-cutout por isso */
.layer-earth-sequence {
  position: absolute;
  left: 50%;
  /* Ajuste a posição vertical conforme necessário. 
     Se quiser ela saindo de baixo como a laranja: */
  bottom: -10%;
  transform: translateX(-50%); /* Centraliza no eixo X */
  width: 40%; /* Ajuste o tamanho da Terra aqui */
  height: auto;
  z-index: 1;
  /* Importante: evitar 'piscadas' na troca de imagem */
  backface-visibility: hidden;
  top: 25%;
}
/* CAMADA 1.5: Título Principal */
.main-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Axiforma";
  font-weight: 1000;
  color: #f4f4f4;
  letter-spacing: 0.11em;
  text-align: center; /* Centralizado */
  font-size: 3vw;
  max-width: max-content;
  z-index: 3;
  opacity: 0; /* Começa invisível, JS vai mostrar */
}

.main-title span {
  font-family: "Rocksalt";
  color: #ff8b1a;
}

/* CAMADA 1: Fundo Sólido Azul */
.layer-bg-solid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #010068; /* Cor do céu */
  z-index: 0;
  background: linear-gradient(
    177deg,
    rgba(1, 0, 104, 1) 0%,
    rgba(42, 40, 199, 1) 63%
  );
}

/* =========================================
   NAVEGAÇÃO (STYLES ORIGINAIS)
   ========================================= */
.navigation-container-desktop {
  position: absolute;
  right: 5vw; /* Substituir margin-left por right facilita o alinhamento */
  display: flex;
  align-items: center; /* Alinha os links e o botão verticalmente */
  top: 50%;
  transform: translateY(-50%);
}

.navigation-logo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 2vw;
}

.nav-contact {
  background-color: white;
  font-family: "Axiforma-Bolditalic";
  font-weight: 700;
  color: black;
  letter-spacing: 0.03em;
  font-size: 1vw;
  margin-left: 2vw;
  border-radius: 20vw;
  border: 0;
  padding: 1vw 2vw;
  margin-top: -0.6vw;
  text-decoration: none;
}

.nav-contact:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.navigation-links {
  font-family: "Axiforma";
  font-weight: 400;
  color: white;
  letter-spacing: 0.03em;
  font-size: 1.5vw;
  margin-left: 2vw;
  cursor: pointer;
  text-decoration: none;
}

.icon-arrow-responsive {
  width: 3vw;
  height: auto;
}

.logo-responsive-header {
  width: 4vw;
  height: auto;
}

/* =========================================
   GRID E CONTEÚDO (MAIN)
   ========================================= */
.images-desktop {
  width: 100%;
  height: 100%;
  display: block;
}

.titles {
  font-family: "Axiforma";
  font-weight: 900;
  color: #ea6601;
  letter-spacing: 0.03em;
  text-align: left;
  font-size: 3rem;
}

.textes {
  font-family: "Axiforma";
  font-weight: 600;
  color: #292423;
  letter-spacing: 0.03em;
  text-align: left;
  font-size: 1.1rem;
  line-height: 2vw;
}

.link-learn-more-red {
  font-family: "Axiforma-Bolditalic";
  font-weight: 1000;
  letter-spacing: 0.1vw;
  text-align: left;
  font-size: 1.1rem;
  color: #0a0a6e;
  text-decoration-line: underline;
  text-decoration-color: hsl(7, 99%, 70%);
  text-decoration-thickness: 0.5vw;
}

.link-learn-more-yellow {
  font-family: "Axiforma-Bolditalic";
  font-weight: 900;
  letter-spacing: 0.1vw;
  text-align: left;
  font-size: 2rem;
  color: #0a0a6e;
  text-decoration-line: underline;
  text-decoration-color: #ea6601;
  text-decoration-thickness: 0.5vw;
  margin-top: 2rem;
}

.titles-on-grid-right {
  font-family: "Rocksalt";
  font-weight: 900;
  color: #ea6601;
  text-align: center;
  font-size: 2rem;
  white-space: nowrap;
}

.titles-on-grid-left {
  font-family: "Rocksalt";
  font-weight: 1000;
  color: #ea6601;
  letter-spacing: 0.03em;
  text-align: center;
  font-size: 3rem;
}

.textes-on-grid {
  font-family: "Axiforma";
  font-weight: 600;
  color: #fff1d7;
  letter-spacing: 0.03em;
  text-align: center;
  font-size: 1.25vw;
  line-height: 2vw;
}

.grid {
  background-color: #f4f4f4;
}

/* =========================================
   FOOTER E REVIEWS
   ========================================= */
footer {
  background-color: #130fbb;
}

.footer {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 5vw 0;
}

.logo-responsive-footer {
  width: 10vw;
  height: auto;
}

.logo {
  color: hsl(167, 40%, 24%);
  margin-bottom: 2vw;
}

.services {
  font-family: "Maxiforma";
  font-weight: 600;
  color: #fff1d7;
  letter-spacing: 0.03em;
  text-align: center;
  font-size: 1.5vw;
  margin-bottom: 6vw;
  display: flex;
  justify-content: space-evenly;
  margin-inline: 35vw;
}

.footer-link {
  font-family: "Axiforma";
  font-weight: 400;
  text-decoration: none;
  color: #f4f4f4;
}

.footer-link:hover {
  text-decoration: none;
  color: white;
}

.contact {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.icon-footer-container {
  padding: 1vw;
}

.icon-footer {
  width: 2vw;
  height: auto;
  fill: #f4f4f4;
}

/* Container do link para posicionamento */
.whatsapp-fixed-button {
  position: fixed;
  bottom: 20px; /* Distância do fundo */
  right: 20px;  /* Distância da direita */
  z-index: 9999; /* Garante que fique acima de tudo */
  text-decoration: none;
}

/* Seu estilo de botão ajustado */
.whatsapp-fixed-button button {
  color: #ffffff;
  background-color: #2ecc71;
  border: none;
  border-radius: 50px; /* Deixei mais arredondado para estilo mobile */
  padding: 12px 20px;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-fixed-button button:hover {
  background-color: #27ae60;
  transform: scale(1.05); /* Pequeno efeito de aumentar ao passar o mouse */
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-fixed-button button i {
  font-size: 24px;
  margin-right: 8px;
}

/* Ajuste para mobile para não cobrir conteúdo importante */
@media only screen and (max-width: 768px) {
  .whatsapp-fixed-button {
    bottom: 10px;
    right: 10px;
  }
  .whatsapp-fixed-button button {
    padding: 10px 15px;
    font-size: 16px;
  }
}

.icon-footer:hover {
  fill: white;
}

.div-team {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 6vw 15vw;
}

.testimonials {
  margin-bottom: 6vw;
  font-family: "Axiforma";
  font-weight: 900;
  color: #0a0a6e;
  letter-spacing: 0.4em;
  text-align: center;
  font-size: 1.5vw;
}

.team {
  display: flex;
  justify-content: space-evenly;
  align-items: baseline;
}

.team-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.team_profile {
  width: 72px;
  border-radius: 50%;
  margin-bottom: 3vw;
}

.review-name {
  font-family: "Rocksalt";
  font-weight: 800;
  color: #ea6601;
  letter-spacing: 0.03em;
  text-align: center;
  font-size: 1vw;
  margin-bottom: 1vw;
}

.review-profession {
  font-family: "Barlow";
  font-weight: 600;
  color: hsl(210, 4%, 67%);
  letter-spacing: 0.03em;
  text-align: center;
  font-size: 1vw;
}

.div6 {
  background-color: #130fbb;
}
.images-design {
  width: 50%;
  height: 50%;
  place-self: center;
  display: block;
  margin-top: 50px;
}

.images-webdev {
  width: 50%;
  height: 50%;
  place-self: center;
  display: block;
}
@font-face {
  font-family: "Axiforma"; /* O nome que você vai usar no código */
  src: url("./fonts/AXIFORMA/Axiforma-Regular.ttf") format("truetype"); /* O caminho do arquivo */
  font-weight: 400; /* Peso normal */
  font-style: normal;
}

@font-face {
  font-family: "Axiforma-Bolditalic"; /* O nome que você vai usar no código */
  src: url("./fonts/AXIFORMA/Axiforma-BoldItalic.ttf") format("truetype"); /* O caminho do arquivo */
  font-weight: 800; /* Peso normal */
  font-style: normal;
}

@font-face {
  font-family: "RockSalt"; /* O nome que você vai usar no código */
  src: url("./fonts/ROCK SALT/RockSalt-Regular.ttf") format("truetype"); /* O caminho do arquivo */
  font-weight: 400; /* Peso normal */
  font-style: normal;
}

/* =========================================
   MEDIA QUERIES (DESKTOP)
   ========================================= */
@media only screen and (min-width: 768px) {
  .navigation-mobile-container,
  .menu-on-mobile,
  .image-header-mobile,
  .images-mobile {
    display: none;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  .div1 {
    grid-area: 1 / 1 / 2 / 2;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-inline: 10%;
  }
  .div2 {
    grid-area: 1 / 2 / 2 / 3;
  }
  .div3 {
    grid-area: 2 / 1 / 3 / 2;
  }
  .div4 {
    grid-area: 2 / 2 / 3 / 3;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-inline: 20%;
  }
  .div5 {
    background-color: #130fbb;
    grid-area: 3 / 1 / 4 / 2;
    position: relative;
    display: inline-block;
  }
  .div6 {
    grid-area: 3 / 2 / 4 / 3;
    position: relative;
    display: inline-block;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
  }
  .gallery1 {
    grid-area: 1 / 1 / 2 / 2;
  }
  .gallery2 {
    grid-area: 1 / 2 / 2 / 3;
  }
  .gallery3 {
    grid-area: 1 / 3 / 2 / 4;
  }
  .gallery4 {
    grid-area: 1 / 4 / 2 / 5;
  }

  .texts-on-grid {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* =========================================
   MEDIA QUERIES (MOBILE)
   ========================================= */
@media only screen and (max-width: 768px) {
  /* Desativa a altura extra no mobile para scroll normal */
  .sticky-wrapper {
    height: auto;
  }

  header {
    position: relative; /* Remove sticky no mobile */
    height: auto;
  }

  /* Esconde a animação complexa no mobile */
  .header-animation-wrapper {
    position: relative; /* Volta ao fluxo normal */
  }

  /* Garante que o H1 apareça no mobile */
  .main-title {
    z-index: 10;
    opacity: 1 !important; /* Força visibilidade */
  }

  /* Esconde camadas de animação Desktop no mobile */
  .layer-bg-solid,
  .layer-orange-cutout,
  .layer-full-image {
    display: none;
  }

  /* Exibe imagem mobile */
  .image-header-mobile {
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
  }
  .titles-on-grid-left{
    font-size: 2.3rem;
  }

  .images-desktop {
    display: none;
  }
  .images-mobile {
    width: 50%;
    height: 50%;
    display: block;
    justify-self: center;
  }
  .header-animation-wrapper{
    display: none; /* Esconde toda a animação no mobile */
  }
  .navigation-container-desktop {
    display: none;
  }

  .navigation-mobile-container {
    position: absolute;
    margin-top: 4vw;
    margin-left: 85vw;
    display: block;
    cursor: pointer;
  }

  .logo-responsive-header {
    width: 30vw;
  }
  .navigation-logo {
    margin-top: 1vw;
    margin-left: 1vw;
  }

  .menu-on-mobile {
    position: absolute;
    background-color: white;
    margin-left: 5.5vw;
    margin-top: 15vw;
    font-family: "Barlow";
    color: hsl(232, 10%, 55%);
    font-size: 6vw;
    padding: 10vw 0;
    width: 89vw;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5vw;
    z-index: 200;
  }

  .div-hided {
    display: none;
  }

  .triangle {
    position: absolute;
    right: 0;
    top: -5vw;
    width: 0;
    height: 0;
    border-bottom: 5vw solid white;
    border-left: 5vw solid transparent;
  }

  .nav-contact-mobile {
    background-color: yellow;
    font-family: "Fraunces";
    font-weight: 700;
    color: black;
    font-size: 5vw;
    border-radius: 20vw;
    padding: 4vw 7vw;
    text-decoration: none;
  }

  /* Grid Mobile */
  .grid {
    display: flex;
    flex-direction: column;
  }
  .div1,
  .div4 {
    padding: 15vw 10%;
    text-align: center;
  }

  .titles {
    font-size: 8vw;
    text-align: center;
  }
  .textes {
    font-size: 4vw;
    text-align: center;
    line-height: 7.5vw;
  }

  .link-learn-more-red,
  .link-learn-more-yellow {
    font-size: 4vw;
    display: block;
    margin-top: 5vw;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews {
    flex-direction: column;
    gap: 10vw;
  }

  .main-title {
    font-size: 10vw;
    top: 50%;
  }

  .icon-arrow {
    top: 70%;
  }

  .icon-arrow-responsive {
    width: 8vw;
  }

  .logo-responsive-footer {
    width: 40vw;
  }
  .icon-footer {
    width: 5vw;
  }
  .services {
    font-size: 5vw;
  }
  .footer {
    padding: 10vw 0;
  }

  .images-design{
    display: none;
  }

  .images-webdev{
    display: none;
  }
  .titles-on-grid-right{
    font-size: 1rem;
  }

  .div-team{
    margin: 10px;
  }
  .team{
    justify-content: unset;
  }
}

/* Animação do Menu Mobile */
@keyframes animation {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
