@font-face {
  font-family: raleway;
  src: url(../fontes/Raleway/Raleway-Italic-VariableFont_wght.ttf) format('truetype');
  font-weight: normal;
}

@font-face {
  font-family: lovelo;
  src: url(../fontes/lovelo/lovelo_black.otf) format('opentype');
  font-weight: normal;
}

/* ========================================= */
/* ESTILOS GLOBAIS (FUNCIONAM EM TUDO)       */
/* ========================================= */
:root {
  --corescura-1: #111111ff;
  --corescura-2: #071554ff;
  --corescura-3: #212bc0ff;
  --corescura-4: #4ecaceff;
  --corescura-5: #a0dadeff;

  --branco: #ffffff;
  --preto: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: lovelo, sans-serif;
  /* CORREÇÃO: Fundo preto aplicado globalmente */
  background-color: var(--corescura-1); 
  color: var(--branco);
}

::placeholder {
  color: var(--branco);
}

/* ================================================== */
/* ESTILOS ESPECÍFICOS PARA DESKTOP (> 900px)        */
/* ================================================== */
@media (min-width: 900px) {

  /* HEADER */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--corescura-1);
    padding: 20px 35px; 
    color: var(--branco);
    position: relative;
    font-family: raleway, sans-serif;
  }

  .logo-img {
    width: 40%;
    height: 40%;
    margin-right: 10px;
    display: flex;
    align-items: center;
  }

  .search-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
  }
  
  .btn-tema img {
    width: 32px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
  }
  
  .btn-tema img:hover {
    transform: scale(1.1);
  }

  .menu-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .search {
    display: flex;
    align-items: center;
    position: relative;
  }

  .search input {
    padding: 10px 60px;
    border-radius: 20px;
    border: none;
    outline: none;
    font-size: 14px;
    background: linear-gradient(to right, #00d9c0, #1d4ed8);
    color: var(--branco);
  }

  .search img {
    position: absolute;
    left: 25px;
    height: 45px;
    width: 45px;
    pointer-events: none;
    z-index: 2;
  }

  .menu-toggle {
    position: relative;
    z-index: 100;
    display: block;
  }

  .hamburguer {
    font-size: 40px;
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    color: var(--branco);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: 0.3s ease;
  }

  .hamburguer:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .menu-lista {
    list-style: none;
    padding: 10px 0;
    margin: 0 0 0 20px;
    display: none;
    flex-direction: column;
    background-color: var(--corescura-1);
    border-radius: 8px;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
  }

  .menu-lista.active {
    display: flex;
  }

  .menu-item {
    margin: 10px 0;
    padding: 0 20px;
  }

  .menu-item a {
    color: var(--branco);
    text-decoration: none;
    font-family: lovelo, sans-serif;
    font-size: 16px;
    display: block;
    padding: 8px 0;
    transition: background-color 0.2s ease;
  }

  .menu-item a:hover {
    background-color: var(--corescura-5);
    border-radius: 4px;
    padding: 8px;
  }
}

/* ==================================== */
/* ESTILOS DE LAYOUT (GRID, CARDS, ETC) */
/* ==================================== */

.titulo-page {
  text-align: center;
  padding: 40px 20px;
}

.titulo-page h1 {
  font-family: lovelo;
  font-size: 4em;
  color: var(--branco);
  margin-bottom: 10px;
}

.titulo-page p {
  font-family: raleway;
  color: var(--corescura-4);
  font-size: 1.2em;
}

.barra-separacao {
  width: 100%;
  height: 10px;
  background: linear-gradient(to right, var(--preto), var(--corescura-3), var(--corescura-4));
  margin-bottom: 40px;
}

/* GRID PRINCIPAL */
.grid-projetos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  padding: 0 40px 60px 40px;
  max-width: 1600px;
  margin: 0 auto;
}

/* CARD DO PROJETO */
.card-projeto {
  background-color: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, border-color 0.3s;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
}

.card-projeto:hover {
  transform: translateY(-10px);
  border-color: var(--corescura-4);
}

.img-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-projeto:hover .img-container img {
  transform: scale(1.05);
}

.content-projeto {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.content-projeto h2 {
  font-family: lovelo;
  color: var(--corescura-4);
  font-size: 1.5em;
  margin-bottom: 10px;
}

.content-projeto p {
  font-family: raleway;
  color: #ccc;
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: justify;
}

/* TAGS DE TECNOLOGIA */
.tech-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.tech-tags span {
  background-color: var(--corescura-2);
  color: var(--branco);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-family: lovelo;
  border: 1px solid var(--corescura-3);
}

/* BOTÕES */
.links-projeto {
  display: flex;
  gap: 15px;
  margin-top: auto; /* Empurra para o fundo do card */
}

.btn-yt, .btn-git, .btn-construct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-family: lovelo;
  font-size: 0.9em;
  flex: 1;
  transition: background 0.3s;
}

.btn-yt {
  background-color: #cc0000;
  color: white;
}
.btn-yt:hover { background-color: #ff0000; }

.btn-git {
  background-color: #333;
  color: white;
  border: 1px solid #555;
}
.btn-git:hover { background-color: #555; }

.btn-construct {
  background-color: #444;
  color: white;
  border: 1px solid #666;
}
.btn-construct:hover { background-color: #666; }

.full-width {
  width: 100%;
}

.icon-small {
  width: 20px;
  height: 20px;
}

/* ============================= */
/* FOOTER                        */
/* ============================= */
footer {
  color: var(--branco);
  background-color: var(--corescura-1);
  font-family: "lovelo";
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  padding: 40px 20px;
  align-items: flex-start;
}

.logo-footer img {
  width: 150px;
  height: auto;
}

.informacoes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: lovelo;
}

.informacoes h3 {
  margin-bottom: 4px;
  font-size: 1rem;
  text-transform: uppercase;
}

.icons-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.icons-social img {
  width: 32px;
  height: 32px;
}

.local {
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 220px;
  display: flex;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--branco);
  font-family: raleway;
}

.lista ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lista a, .contato {
  font-size: 1.1rem;
  color: var(--branco);
  text-decoration: none;
  transition: color 0.2s;
}

.lista a:hover, .contato:hover {
  text-decoration: underline;
  color: var(--corescura-4);
}

.creditos {
  width: 100%;
  background: linear-gradient(to right, #4556e7ff, #111111ff);
  text-align: center;
  font-size: 0.89rem;
  padding: 10px 0;
  font-family: raleway;
}