/* Google fonts */
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Quicksand:wght@300..700&display=swap");

:root {
  --fonte-textos: "Quicksand", sans-serif;
  --fonte-titulo: "Lexend", sans-serif;
  --fonte-subtitulo: "Nunito", sans-serif;
}

/* Definir cores tema Dark */
:root,
:root[data-theme="dark"] {
  --cor-fundo: #111217;
  --cor-fundo-secundario: #28292e;
  --cor-texto: #8f8f8f;

  --cor-titulo: #e9e9e9;
  --cor-icone: #8f8f8f;

  --cor-link: #f0f0f0;
  --cor-hover: #e9e9e9;

  --cor-borda: #28292e;

  --icone-menu-mobile: #e9e9e9;
}
/* Definir cores tema Light */
:root[data-theme="light"] {
  --cor-fundo: #f0f0f0;
  --cor-fundo-secundario: #e4e4e4;
  --cor-texto: #808080;
  --cor-titulo: #202020;

  --cor-icone: #8f8f8f;

  --cor-link: #0b0b0f;
  --cor-hover: #0b0b0f;

  --cor-borda: #d6d6d6;

  --icone-menu-mobile: #0b0b0f;
}

html[data-theme="light"] .logo {
  filter: invert(1);
}

html {
  scroll-behavior: smooth; /* Suaviza o scroll */
}

* {
  margin: 0; /* Regula a margin para ficar padrão */
  padding: 0; /* Regula o padding para ficar padrão */
  box-sizing: border-box;
  scrollbar-width: thin; /* Define a largura da barra de rolagem */
  scrollbar-color: var(--cor-fundo-secundario) transparent; /* Define a cor da barra de rolagem e do fundo */
}

body {
  background: var(--cor-fundo);
  color: var(--cor-texto);
  /* font-family: ; */
  transition: background 0.9s, color 0.9s;
}

a {
  text-decoration: none;
  color: var(--cor-link);
}

ul {
  list-style: none;
}

h1 {
  font-size: 2.5rem; /* tamanho fonte */
  font-weight: 200; /* peso da fonte */
  font-family: var(--fonte-titulo);
  text-rendering: optimizeLegibility;
}

h2 {
  font-size: 2rem; /* tamanho fonte */
  text-align: center;
  letter-spacing: 0.5rem; /* espaçamento entre letras */
  text-transform: uppercase;
  font-weight: 200; /* peso da fonte */
  font-family: var(--fonte-subtitulo);
  text-rendering: optimizeLegibility;
}

h3 {
  font-size: 2rem; /* tamanho fonte */
  text-align: left;
  font-weight: 200; /* peso da fonte */
  font-family: var(--fonte-textos);
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  text-rendering: optimizeLegibility;
  color: var(--cor-titulo);
}

p,
span,
li {
  font-size: 1rem; /* tamanho fonte */
  font-family: var(--fonte-textos);
}

strong {
  font-weight: 400; /* peso da fonte */
}

#header {
  display: flex;
  flex-wrap: row wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1rem;
  z-index: 100;
  position: fixed;
  border-bottom: 1px solid var(--cor-borda);
  background: var(--cor-fundo);
  transition: background 0.9s, color 0.9s, border-color 0.9s;
}

.menu-desktop {
  display: none;
}

.menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.menu-texto {
  color: var(--cor-texto);
  text-transform: uppercase;
  font-size: 0.85rem; /* tamanho fonte */
  font-weight: 600; /* peso da fonte */
  font-family: var(--fonte-textos);
  text-rendering: optimizeLegibility;
}

.menu-link.active .menu-texto,
.menu-link:hover .menu-texto {
  color: var(--cor-hover);
}

.social-icon {
  color: var(--cor-icone);
  font-size: 1.5rem; /* tamanho fonte */
}

.menu-link:hover .social-icon {
  color: var(--cor-hover);
  transition: all 0.3s ease-in-out;
}

.logo {
  width: 3.25rem;
  height: 1.89rem;
}

.header-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#menuMobile {
  margin-left: 1rem;
}

#toggleTheme {
  cursor: pointer;
  color: var(--cor-icone);
  font-size: 1.2rem; /* tamanho fonte */
  transition: all 0.3s ease-in-out;
}

.btn-menu-mobile {
  /* menu hamburguer, estilo e animação */
  background: transparent;
  color: var(--icone-menu-mobile);
  border: none;
  font-size: 1.8rem; /* tamanho fonte */
  padding: 0.5rem;
  margin-left: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* menu Mobile (estilo e animação) */
.menu-mobile {
  position: fixed;
  top: 0;
  right: 0;
  background: var(--cor-fundo-secundario);
  z-index: 50;
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  padding-top: 5rem;
  border-left: 1px solid var(--cor-borda);
  height: 100%;
  width: 75%;
  transition: transform 0.6s ease-in-out;
}

.menu-mobile.active {
  transform: translateX(0%);
}

.menu-mobile .menu-lista {
  width: 100%;
  text-align: center;
}

.menu-mobile .menu-link {
  display: inline-block;
  font-size: 1rem; /* tamanho fonte */
  font-weight: 600; /* peso da fonte */
  padding: 1rem 0;
}

/* Flexbox */
#home {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
}

.menu-social {
  gap: 1rem;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--cor-link);
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease-in-out;
  gap: 0.5rem;
}

.btn-primario {
  border: 1px solid var(--cor-link);
}

.btn:hover {
  transform: scale(1.1);
  transition: all 0.5s ease-in-out;
  background: var(--cor-hover);
}

.btn span,
.btn i {
  color: var(--cor-link);
}

.btn:hover span,
.btn:hover i {
  color: var(--cor-fundo);
  transition: all 0.5s ease-in-out;
}

/* centralização */
.main-content .video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.video {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video iframe {
  aspect-ratio: 16/9;
  width: 60%;
  border-radius: 1rem;
  width: 100%;
  height: 100%;
}

/* voltar e atualizar */

#home,
.projetos,
.sobre,
.contato {
  padding-top: 2.5rem 1rem; /* ajuste conforme a altura do seu header */
}

.conhecimento {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: var(--cor-fundo-secundario);
  padding: 6.25rem 1rem 2rem;
  margin-top: -5rem;
}

.conhecimento h2 {
  text-align: center;
  text-transform: none;
  letter-spacing: 0rem; /* espaçamento entre letras */
  font-size: 1.75rem; /* tamanho fonte */
  font-weight: 200; /* peso da fonte */
  font-family: var(--fonte-subtitulo);
  text-rendering: optimizeLegibility;
}

/* PROJETOS     PROJETOS    PROJETOS   PROJETOS   PROJETOS   PROJETOS   PROJETOS  PROJETOS   PROJETOS   PROJETOS   PROJETOS */

.projetos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  scroll-margin-top: 2.5rem; /* ajuste conforme a altura do seu header */
}

.projeto-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.projeto-card {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.card-cover {
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 15px;
}

.card-title {
  font-size: 1.5rem; /* tamanho fonte */
  font-weight: 00; /* peso da fonte */
  font-family: var(--fonte-textos);
  text-rendering: optimizeLegibility;
  color: var(--cor-titulo);
}

.card-description {
  font-size: 1.5rem; /* tamanho fonte */
  font-weight: 200; /* peso da fonte */
  font-family: var(--fonte-textos);
  text-rendering: optimizeLegibility;
  color: var(--cor-texto);
}

.card-lista {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card-lista :hover {
  color: var(--cor-hover);
  transition: all 0.3s ease-in-out;
}

.card-item i {
  font-size: 1.1rem; /* tamanho fonte */
}

.card-item {
  display: flex;
  gap: 0.5rem;
  text-rendering: optimizeLegibility;
}

.card-button {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

.projetos .btn-primario {
  margin: auto;
  width: auto;
}



@media (max-width: 768px) {
  #home {
    padding-top: 6rem;
  }
 
  .projetos,
  .sobre {
    padding: 2rem 1rem 2rem 1rem; /* ajuste para mobile */
    scroll-margin-top: 4rem; /* ajuste conforme a altura do seu header */

  }
  .video iframe {
    width: 100%;
    height: 100%;
  }


  
}


@media (min-width: 768px) {
  /* A partir de 768px ate o infinito */

  .menu-desktop {
    display: flex;
    min-width: 30%;
  }

  .header-toggle {
    min-width: 30%;
  }

  .btn-menu-mobile {
    display: none;
  }

  #home,
.projetos,
.sobre {
  padding: 8rem 6rem 4rem 6rem; /* ajuste para mobile */
}

  .main-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: 5rem; /* tamanho fonte */
  }
}

@media (min-width: 992px) {
  .projeto-card {
    flex-direction: row;
  }

  .card-cover {
    width: 55%;
  }

  .projeto-card.card-reverse {
    flex-direction: row-reverse;
  }
}

@media (min-width: 1200px) {
  /* A partir de 1024px ate o infinito */

  #home {
    padding: 6rem 6rem 2rem; /* ajuste para desktop */
  }

  h2 {
    font-size: 4rem; /* tamanho fonte */
  }
}

@media (min-width: 1400px) {
  h1 {
    font-size: 6.25rem; /* tamanho fonte */
  }

  h2 {
    font-size: 4.5rem; /* tamanho fonte */
  }
}
