@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@100..900&display=swap');

:root {
  --cor-principal: #D71536;
  --cor-fundo: #F7F5ED;
  --cor-texto: #3F3F3F;
  --cor-sombra: rgba(63, 63, 63, 0.2);
  color-scheme: light;
}

/* Remove margens padrão do body e html */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url('img/cur/c_cursor.svg'), auto; /* Para arquivos .cur */
  height: 100%;
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
}

a, button, h2.toggle-section {
  cursor: url('img/cur/c_pointer.svg'), pointer; /* Para arquivos .cur */
}

p, h1, h2, h3, h4, h5, h6, span, li {
  cursor: url('img/cur/c_text.svg') 16 16, text;
}

@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance: none) {
    @media screen and (min-width: 1px) {
      html, body, a, button, p, h1, h2, h3, h4, h5, h6, span, li {
        cursor: auto !important;
      }

      a, button, h2.toggle-section {
        cursor: pointer !important;
      }

      p, h1, h2, h3, h4, h5, h6, span, li {
        cursor: text !important;
      }
    }
  }
}



.header{
  justify-content: center;
  padding: 0% 50%;
  background-color: var(--cor-fundo);

}

/* Para garantir que tudo seja calculado corretamente com box-sizing */
*, *::before, *::after {
  box-sizing: inherit;
}

nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  background-color: var(--cor-fundo);
  border-bottom: 3px solid var(--cor-principal);
  gap: 20px;
  box-shadow: 0 4px 8px var(--cor-sombra);
  transition: transform 0.3s ease;
}

/* Classe que será adicionada para esconder o nav */
.nav-hidden {
  transform: translateY(-100%); /* Move o nav para fora da tela */
}


.logo {
  width: 10px;
  height: 100px;
  margin-left: 20px;


  margin-right: auto;
  transition: transform 0.2s ease-in-out;
}

.svg-element {
  width: 190px;  /* Ajuste o tamanho conforme necessário */
  height: auto;
  margin-left: -22px;
}





.nav-right {
  padding-right: 30px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.nav-group {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--cor-texto);
}

.idioma {
  margin-bottom: 2px;
  margin-right: -11px;
  display: flex;
  gap: 0.5em;
}



.idioma .lang-link {
  font-weight: 800;
  text-decoration: none;
  color: var(--cor-texto);
  font-size: 200%;
  
  transition: color 0.3s ease;
}

.idioma .lang-link:hover {
  color: var(--cor-principal);
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline;
  margin-right: 10px;
}

.nav-button {
  text-decoration: none;
  font-weight: 300;
  color: var(--cor-texto);
  font-size: 22px;
  text-align: center;
  display: inline-block;
  width: max-content;
}

.menu {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.menu.visivel {
  opacity: 1;
  transform: translateX(0);
}

.menu-toggle {
  
  display: none; /* Garante que o botão seja exibido como um flex container */
  flex-direction: column;
  justify-content: space-around;
  width: 50px;
  height: 27px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;

  
}

.menu-toggle .bar {
  width: 25px;
  height: 4px;
  background-color: var(--cor-principal); /* Cor das barras */
  margin: 5px 0;
  display: block;
  border-radius: 3px; /* Adiciona cantos arredondados às barras */
  transition: all 0.3s ease; /* Suaviza as transições */
}


.nav-menu {
display: flex;
align-items: top;
background-color: var(--cor-fundo);
}

@media (max-width: 700px) {
  nav {
    flex-direction: column;
    align-items: center;
    padding: 20px 5%;
  }
  
  .nav-menu {
    width: 100%;
    display: none;
  }
  
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    align-items:normal;

  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 52px;
    right: 1vh; /* Posiciona o botão de fechar no canto superior direito */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    
    box-sizing: border-box;
  }


.menu-toggle .bar {
  display: block;
}
.nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--cor-fundo);
    height: 100vh;
    transition: ease-in (0.2s);
    justify-content: flex-start;
    
}

.nav-menu.active {
  justify-content: flex-start;
  padding-top: 40px; /* ajuste conforme desejar */
  display: flex;
  opacity: 1;
  visibility: visible;
  padding-left: 30px;
}


.nav-menu {
  opacity: 0;
  visibility: hidden;
  flex-direction: column;
  width: 100%;
  background-color: var(--cor-fundo);
  height: 100vh;
  transition: opacity 0.2s ease-in;
}





.nav-right, .idioma {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
}
.nav-group, .idioma li {
    margin: 10px 0;
}





/* Estilos para o estado ativo (menu aberto) */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Estilos para o menu */
.nav-menu {
  display: none;
  /* Outros estilos do menu */
}




.idioma {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    padding-right: 33px;
    margin-right: 0.01em;
}

.idioma li {
    display: inline-block;

}


.nav-menu {
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100vh;
  justify-content: flex-start;
  padding-top: 50px; /* Espaçamento para evitar corte */
}

.logo {
width: 100%;
  text-align: center; /* Centraliza o conteúdo */
  margin-left: 0;
  padding-bottom: 20px; /* Espaçamento entre o logo e o menu */
}

.svg-element {

  height: 125%;
  width: 60%;
  margin-left: none;
}

  .nav {
  flex-direction: column;
}

}

.nav-group {
  position: relative;
  display: inline-block;
  padding: 10px 5px;
  padding-bottom: 5px;
  font-size: 16px;

}

.nav-group::after {
  content: "";
  border-radius: 2px;
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--cor-principal);
  bottom: 0;
  left: 0;
  transition: width 0.35s ease;
}

.nav-group:hover::after {
  width: 100%;
}

.nav-button.active {
  font-weight: 800;

  color: var(--cor-texto);
  transition: none;
}


.social-links {
  display: flex;
  justify-content: left;
  gap: 15px;
}

.social-icon {
  font-size: 24px;
  color: var(--cor-texto);
  transition: color 0.5s ease;
}


.portifolio {
  z-index: 3;
  text-align: center;
  margin: 5vh 5% 0 5%; /* Margem padrão para desktop usando vh */
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  border-radius: 20px;
  position: relative;
  background-color: var(--cor-fundo);
  box-shadow: 10px 10px 30px var(--cor-sombra), -10px -10px 30px rgba(247, 245, 237, 0.8);
}


@media (max-width: 1024px) {
  .portifolio {
    margin: -100px 5% 0 5%; /* Margem negativa apenas para mobile */
  }
}

@media (max-width: 700px) {
  .portifolio {
    margin: -150px 5% 0 5%; /* Margem negativa apenas para mobile */
  }



}

/* Título superior */
.texto-superior {
  display: flex;
  align-items: center;
  width: 100%;
  padding-left: 10px;
}

.texto-superior h2 {
  font-size: 28px;
  margin-right: 10px;
}

/* Media Query */
@media (max-width: 700px) {
  .texto-superior {
    padding-left: 0;
  }
}

/* Quadrados */
.quadrado {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.linha {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Responsivo para linha */
@media (max-width: 600px) {
  .linha {
    flex-direction: column;
  }
}

/* Projetos individuais */
.project {
  border-radius: 20px;
  margin: 20px auto;
  max-width: 1200px;
  transition: box-shadow 0.3s ease;
}

/* Cada caixa de projeto */
.caixa {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  flex: 1 1 calc(50% - 20px);
  max-width: calc(50% - 20px);
  aspect-ratio: 7 / 4;
  background-color: var(--cor-fundo);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagens dentro da caixa */
.caixa img {
  width: 100%;
  height: 100%;
  object-fit:cover;
  object-position: center;
  transition: transform 0.3s ease;
}

/* Responsividade para mobile */
@media (max-width: 700px) {
  .portifolio {
    flex-direction: column;
    align-items: center;

  }
  .caixa {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

/* Overlay (texto em cima da imagem) */
.caixa .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(63, 63, 63, 0.75); /* Opcional: adiciona fundo escuro suave */
  color: var(--cor-fundo);
}

.caixa:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  margin: 0 0 5px 0;
  font-size: 3vh;
  color: var(--cor-fundo);
}

.overlay p {
  margin: 0;
  color: var(--cor-fundo);
}

/* Responsivo para overlay */
@media (max-width: 500px) {
  .overlay h3 {
    font-size: 30px;
  }
  .overlay p {
    font-size: 15px;
  }
}

/* Content */
.content {
  width: 80%;
  margin: 0 auto;
  padding: 0;
}

@media (min-width: 700px) {
  .content {
    text-align: left;
  }
}






.project {
  min-height: 30em;
  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

}



.image-peixe {
  width: 100%;
  aspect-ratio: 16 / 9; /* Define uma proporção (exemplo: 16:9) */


  background-image: url('./img/anzol/peixe_original.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 1em;

}

.image-peixe:hover {
  background-image: url('./img/anzol/peixe_anzol.png');
}


.project img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0;
}



.video {
  width: 100%;
  max-width: 700px;
  height: auto;
  clip-path: inset(0 0 5px 0); /* Ajuste o valor para cortar a parte inferior */
}
 


/* Estilos Gerais */
.main {
  margin: 2%;
  display: flex;
  gap: 2%;
}



.project {
  min-height: 30em;
  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
}

/* Media Query para telas menores */
@media (max-width: 768px) {
  .main {
    flex-direction: column;
  }

  .sumario {
    width: 100%;
    height: auto;
  }

  .project {
    width: 100%;
  }
}

/* Botão de Voltar ao Topo */
#back-to-top {
  padding-bottom: 10px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  border: none;
  border-radius: 30%;
  width: 40px;  
  height: 40px;
  text-align: center;
  line-height: 40px;
  font-size: 16px;
  cursor: pointer;
  z-index: 99; 
  cursor: url('img/cur/c_pointer.svg') 10 10, pointer; /* Para arquivos .cur */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra adicionada */
}

#back-to-top:hover {
  background-color: var(--cor-principal);
  color: var(--cor-fundo);
}

.project img {
  width: 100%;
  height: auto;
  object-fit: contain; /* Ajusta a imagem dentro do contêiner sem cortá-la */
}







.project {
  padding: 0 15%; /* Valor padrão para telas maiores */
  overflow: hidden;
}


.texto {
  padding: 0 10%;
}




@media (max-width: 700px) {
  .project {
    padding: 0 30px
  }




}






.video-container {
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto; /* Centraliza o contêiner, se desejado */
  width: 100%;
  height: auto;
  clip-path: inset(0 100px 2px 100px); /* Ajuste conforme necessário */
}






.line {
  position:static; 
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;

}



.final {
  font-style: italic;
  color: var(--cor-texto);
  text-align: left;
  font-weight: 200;
}





footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  border-top: 4px solid #747474;
  background-color: var(--cor-fundo);
  text-align: center;
  z-index: 1;
  width: 100%; /* Para ocupar toda a largura da tela */
  top: 100;
  left: 100;
  box-shadow: 0 -4px 8px var(--cor-sombra);

  padding-left: 10%;
}



.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: none;
}

.page {
  flex: 1;
}





.project {

  border-radius: 20px; /* Bordas arredondadas */
  padding-top: 60px;
padding-bottom: 80px;
  margin: 20px auto; /* Centralizar e dar espaçamento */
  max-width: 95%; /* Largura máxima */
  margin-top: 100px;
  transition: box-shadow 0.3s ease; /* Animação suave ao hover */
}


.project p, h1, h3{
  text-align: left;
}





.platypi {
  font-family: "polymath", "Geologica", sans-serif;
  font-weight: 400;
  font-feature-settings: "ss01", "cv09";
  font-variation-settings: 'opsz' 8; 
}



p {
  color: var(--cor-texto);
  padding: none;
  font-family: "polymath-text", "Geologica", sans-serif;
  font-feature-settings: "ss01", "ss06";
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
  max-width: 700px;
  hyphens: auto;
  font-style: normal;
} 

.caixa p {
  text-align: center;
  line-height: 1.35;
}

.content h1{
  font-size: 400%;
  text-align: left;
  line-height: 1;
  max-width: 500px;
}
.content p {
  margin-block: none;
  max-width: 500px;
}

.content img {
  float: right; /* Faz a imagem flutuar à direita */
  margin-left: 30px; /* Dá um espaçamento entre o texto e a imagem */
  max-width: 40vw;
}

/* Media query para telas menores */
@media (max-width: 700px) {
  .content img {
    max-width: 100%;
    float: none;
    margin-left: 0;
  }

}

.legenda {
  font-size: small;
  font-weight: 200;
  margin-top: 0px;
}

.project img, .image-peixe {
  background-color: var(--cor-fundo);
  display: block;
  margin: 10px auto;
  border-radius: 10px; /* Bordas arredondadas para mídia */

}



@media (max-width: 700px) {

  .project img {
    margin: 5px 0px;
  }
  .project {
    padding: 10px;
  }

}


.toggle-content {
  border-radius: 15px;
  padding: 3%;
  box-shadow: 0 -4px 8px rgba(63, 63, 63, 0.2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.4s ease;
  opacity: 0;
}

.toggle-content.open {
  border-radius: 15px;
  padding: 3%;
  box-shadow: 0 -4px 8px rgba(63, 63, 63, 0.2);

  max-height: 6000px; /* Ajuste esse valor conforme o conteúdo */
  opacity: 1;
}
.toggle-section {
  text-decoration: underline;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-section .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 1em;
  margin-left: 10px;
}
/* Quando o conteúdo estiver aberto, rotaciona a seta */
.toggle-section.open .arrow {
  transform: rotate(90deg); /* Seta aponta para baixo */
}







.project h3 {
  margin-top: 80px;
}

.project video {
  display: block;
  width: 100%;
  margin: 10px auto;
  border-radius: 10px; /* Bordas arredondadas para mídia */

}



.divide {
  width: 100%;
  height: 4em;
  border-bottom: solid 2px #B0A58E;
  padding-bottom: 3em;
}




body {
  overflow-x: hidden;
}

.portifolio {
  position: relative;
  transform: translateY(0);
  transition: transform 0.3s ease;
}




/* Estilização do contêiner principal */
.stamp-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  mix-blend-mode: normal;
  background-color: var(--cor-fundo);
  background: none;
}

/* Container que agrupa os SVGs */
.logo-container {
  padding-top: 150px;
  position: relative;
  width: 800px; /* Tamanho inicial */
  max-width: 80vw; /* Responsivo */
}

/* O logo do portfólio */
#portfolioLogo, .stamp {
  width: 100%;
  height: auto;
}

/* O selo com efeito de mix-blend-mode */
.stamp {
  position: absolute;
  top: -10%; /* Levanta a estampa um pouco */
  left: 0;
  mix-blend-mode: normal;
  z-index: 2;
  transition: transform 0.3s, scale 0.3s;
  scale: 0.6; /* Reduz o tamanho da estampa */
  max-width: 80%; /* Limita o tamanho máximo da estampa */
}

.idioma .lang-link {
  font-weight: 800; }


  .no-scroll {
    overflow: hidden;
    height: 100vh;
  }








  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(243, 235, 233, 0.842);
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    max-width: 90vw;
    max-height: 80vh;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
  }

    /* Garante que a mídia dentro da modal se ajuste ao container */
.modal-content > * {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}
  
  
  /* Estado ativado */
  .modal.show .modal-content {
    transform: scale(1.0);
    opacity: 1;
    box-shadow: 10px 10px 30px rgba(235, 233, 233, 0.25), -10px -10px 30px rgba(247, 245, 237, 0.8);
  }
  
  
  
  .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #D71536;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
  }
  








  .svg-hover-grid {
    display: grid;
    grid-template-columns: 2fr 2fr;

    justify-items: center;
  }
  
  .svg-item {
    width: 100%;
    max-width: 400px;
    height: 250px; /* altura fixa para evitar movimentações */
    overflow: hidden; /* impede a imagem de invadir o espaço de outros */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    background-color: inherit;
  }
  


  .svg-item img {


    object-fit: contain; /* mantém proporção sem distorcer */
    background-color: #e6e3db;
  }
  

  @media (max-width: 700px) {
    .svg-hover-grid {
      grid-template-columns: 1fr;
    }
  }
  

  .svg-item {
    max-width: 400px;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    background-color: inherit;
  }
  
  .svg-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .svg-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #e6e3db;
  }
  
  .svg-label {
    position: absolute;
    top: 10px; /* distância do topo */
    left: 10px; /* distância da esquerda */

    background-color: rgba(255, 255, 255, 0.7); /* fundo semitransparente */
    padding: 0.3rem 0.6rem;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.9rem;
    pointer-events: none; /* impede de interferir com o hover */
  }
  

/* Ajuste para SVGs */
.zoomable {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.zoomable:hover {
    transform: scale(1.008);
}

/* Gradiente circular de fundo para as páginas index */
.index-gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 120vw;
  height: 120vh;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 40% 100%, #D71536 0%, rgba(215,21,54,0.12) 60%, rgba(215,21,54,0) 100%);
  opacity: 0.6;
}

