/* ============================================
   MOBILE.CSS - Estilos Responsivos para Mobile
   Breakpoint: até 767px
   ============================================ */

@media screen and (max-width: 600px) {
    
    /* Reset de altura de seções */
    section {
        height: auto;
        padding-top: 10%;
        padding-bottom: 10%;
    }
    
    /* Navegação */
    nav {
        height: auto;
        padding: 10px 0;
        text-align: center;
    }
    
    nav a #sobre {
        visibility: hidden;
    }
    
    nav a:last-child {
        border-bottom: none;
    }
    
    /* Header */
    header {
        height: 30vh;
        padding-top: 60px;
    }
    
    header img {
        object-position: center;
    }
    
    /* Títulos */
    .titulo {
        font-size: 28px;
        padding: 10px 15px;
    }
    
    .barra {
        width: 15%;
        border-bottom: 2px solid #f52bce;
    }
    
    .subtitulo {
        font-size: 16px;
        margin-top: 3%;
        padding: 0 15px;
    }
    
    /* Seção Sobre */
    #sobre {
        padding-top: 15%;
    }
    
    #sobre article {
        width: 95%;
        margin: 8% auto 0 auto;
        padding: 15px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .imgsobre {
        width: 200px;
        height: 200px;
        margin-bottom: 15px;
    }
    
    .conteudo-texto {
        text-align: center;
    }
    
    .nome {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .cargo {
        font-size: 14px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .paragrafo {
        font-size: 16px;
        line-height: 1.6;
        text-align: justify;
    }
    
    /* Seção Habilidades */
    #habilidades {
        height: auto;
        padding-top: 15%;
        padding-bottom: 15%;
    }
    
    .habilidades-container {
        width: 95%;
        margin: 30px auto;
        flex-direction: column;
        gap: 25px;
    }
    
    .habilidade-grupo {
        flex-basis: 100%;
        width: 100%;
    }
    
    .habilidade-grupo h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .habilidade-item p {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .barra-externa {
        height: 8px;
        margin-bottom: 12px;
    }
    
    /* Seção Portfólio */
    #portfolio {
        height: auto;
        min-height: auto;
        padding-top: 15%;
        padding-bottom: 15%;
    }
    
    .portifolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 95%;
        margin: 30px auto;
    }
    
    .projeto-card {
        border-radius: 6px;
    }
    
    .projeto-card img {
        height: 250px;
    }
    
    .projeto-titulo {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .projeto-categoria {
        font-size: 14px;
        padding: 4px 8px;
    }
    
    .overlay {
        padding: 15px;
    }
    
    /* Footer */
    footer {
        padding-top: 20px;
    }
    
    .footer-conteudo {
        flex-direction: column;
        padding: 40px 5%;
        text-align: center;
        align-items: center;
    }
    
    .footer-coluna {
        width: 100%;
        min-width: auto;
        margin-bottom: 25px;
    }
    
    .footer-coluna h3,
    .footer-coluna h4 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .footer-coluna p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .footer-coluna a {
        font-size: 14px;
        margin-bottom: 10px;
        display: inline-block;
    }
    
    .footer-copyright {
        padding: 15px 5%;
        font-size: 12px;
    }
    
    /* Separadores Decorativos */
    .separador-decorativo-dinamico {
        height: 200px;
    }
    
    .forma-principal {
        width: 80px;
        height: 80px;
    }
    
    .forma-secundaria {
        width: 30px;
        height: 30px;
        top: 15%;
        left: 10%;
    }
    
    .separador-2 {
        height: 200px;
    }
    
    .forma-um-2 {
        width: 100px;
        height: 100px;
        left: 70%;
    }
    
    .forma-dois-2 {
        width: 50px;
        height: 50px;
        top: 25%;
        left: 25%;
    }
    
    .forma-tres-2 {
        width: 20px;
        height: 20px;
        bottom: 15%;
        right: 8%;
    }
    
    /* Ajustes para animações em mobile */
    @keyframes movimentoRapido {
        0% { transform: translate(0, 0); }
        100% { transform: translate(50px, 50px); }
    }
    
    @keyframes movimentoRapidoFundo {
        0% { transform: translate(0, 0); }
        100% { transform: translate(-50px, 25px); }
    }
    .projeto-card .overlay {
    opacity: 1 !important; /* sempre visível */
    background-color: rgba(245, 43, 206, 0.55); /* mantém o mesmo estilo */
  }

  .projeto-card img {
    opacity: 0.4; /* dá um contraste bonito com o texto */
  }

  .projeto-card:hover .overlay {
    opacity: 1; /* evita conflito com o hover */
  }
}
