@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;
}

: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;
}

/* ================================================== */
/* ESTILOS MOBILE E TABLET (Max-width: 900px)        */
/* ================================================== */
@media (max-width: 900px) {
  
  /* HEADER */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--corescura-1);
    padding: 15px 20px;
    position: relative;
  }

  .logo-img {
    width: 100px;
    height: auto;
  }

  .menu-container {
    display: flex;
    align-items: center;
  }

  .search-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .btn-tema img {
    width: 28px; 
    height: auto;
    cursor: pointer;
  }

  .search {
    position: relative;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #007aff, #00bfff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    overflow: hidden;
  }

  .search img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    z-index: 2;
  }

  .search input {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding-left: 40px;
    color: white;
    opacity: 0;
    pointer-events: none;
  }

  .search.active {
    width: 160px;
    border-radius: 20px;
    justify-content: flex-start;
  }
  
  .search.active input {
    opacity: 1;
    pointer-events: all;
  }

  .hamburguer {
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 10px;
  }

  .menu-lista {
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-radius: 10px;
    list-style: none;
    padding: 15px;
    display: none;
    flex-direction: column;
    width: 200px;
    z-index: 1000;
    border: 1px solid var(--corescura-3);
  }
  
  .menu-lista.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
  }

  .menu-lista li {
    width: 100%;
    margin-bottom: 10px;
  }

  .menu-lista li a {
    display: block;
    color: #fff;
    font-family: lovelo;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 5px;
  }

  .menu-lista li a:hover {
    background-color: var(--corescura-3);
  }

  /* LAYOUT PROJETOS MOBILE */
  .titulo-page h1 {
    font-size: 2.2em;
  }
  
  .titulo-page p {
    font-size: 1em;
    padding: 0 10px;
  }

  .grid-projetos {
    grid-template-columns: 1fr; /* Coluna única no mobile */
    padding: 0 20px 40px 20px;
    gap: 30px;
  }

  .card-projeto {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  .img-container {
    height: 180px;
  }

  /* FOOTER MOBILE */
  footer {
      text-align: center;
  }

  footer nav {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-bottom: 20px;
  }
  
  .logo-footer {
    order: -1;
    margin-bottom: 10px;
  }
  
  .logo-footer img {
      width: 130px;
      height: auto;
  }

  .lista ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .lista a {
      font-size: 1.2rem;
      padding: 5px;
  }

  .informacoes h3 {
      font-size: 1.1rem;
      margin-bottom: 10px;
      color: var(--corescura-4);
  }

  .icons-social {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .icons-social img {
      height: 32px;
      width: 32px;
  }

  .maps {
      margin-top: 10px;
      padding: 0 20px;
  }
  
  .creditos {
    font-size: 0.8rem;
    padding: 15px 10px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}