/* Fontes e cores */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1d1d1d;
    color: #fff;
}
/* Container do menu */
.menu-container {
    position: fixed;
    top: 0;
    z-index: 10;
}

/* Botão de toggle do menu */
.menu-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
}

/* Esconde o botão e o menu por padrão (para telas maiores) */
.menu-toggle, .menu-container {
    display: none;
}

.menu-toggle:hover {
    background-color:  #5A189A;
}

/* Estilos do menu lateral */
.sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100%;
    background-color: #222;
    padding-top: 60px;
    transition: left 0.3s ease;
    z-index: 12;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 15px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
    padding-inline: 10px;
    border-radius: 5px;
}

.sidebar ul li a:hover {
    background-color:  #5A189A;
}

/* Fundo preto transparente para o menu em telas menores */
/* Por padrão ficará oculto */
.menu-backdrop {
    /* Estilos do fundo */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;

    /* Estilos para ocultar o fundo */
    z-index: -1;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    opacity: 0;
}

/* Exibe o botão apenas em telas menores que 768px */
@media (max-width: 768px) {

    .menu-toggle, .menu-container {
        display: block;
    }

    .sidebar {
        display: block;
        position: absolute;
        top: 0;
        left: -100%;
        width: 200px;
        height: 100%;
        background-color: #333;
        padding-top: 20px;
        transition: left 0.3s ease;
    }

    /* Classe para exibir o menu */
    .menu-container.active .sidebar {
        left: 0;
    }

    /* Classe para exibir o fundo do menu */
    .menu-container.active .menu-backdrop {
        opacity: 1;
        z-index: 11;
        pointer-events: auto;
        user-select: auto;
        -webkit-user-select: auto;
        -moz-user-select: auto;
        -ms-user-select: auto;
    }
}

/* Esconde os links do cabeçalho em telas menores */
@media (max-width: 768px) {
    .cabecalho .menu {
        display: none; /* Esconde a lista de links */
    }

    /* Exibe o menu lateral no canto superior direito */

    /* 
    .sidebar {
        top: 0;
        right: 0;
        left: auto;
        width: 250px;
        display: none;
    } */
    
    /* Ajusta o botão de menu lateral */
    .menu-mobile {
        display: block;
        position: absolute;
        top: 10px;
        left: 10px; /* Coloca no canto superior direito */
        font-size: 30px;
        cursor: pointer;
        color: #fff;
    }

    .menu-container {
        display: block; /* Exibe o menu container para telas menores */
    }
 
}

.cabecalho {
    /* (Opcional) */
    /* Manter o cabeçalho fixo no topo da tela, independente do scroll */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 8;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

.cabecalho .logo h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    color: #fff;
}

.cabecalho .menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.cabecalho .menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.cabecalho .menu li a:hover {
    color: #5A189A;
}

.menu-mobile {
    display: none;
}
.home {
    display: flex;
    flex-direction: column; /* Empilhar os elementos verticalmente */
    align-items: center; /* Centralizar horizontalmente */
    text-align: center;
    justify-content: center;
    height: 100vh; /* Ocupa a altura toda da tela */
    padding: 20px;
}
/* Estiliza o botão "X" para fechar o menu */
.close-menu {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 34px;
    cursor: pointer;
}

.close-menu:hover {
    color: #5A189A;
}


.home .informacoes {
    max-width: 50%;
}

.home .informacoes h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.home .informacoes p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.redes-sociais {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.redes-sociais a {
    font-size: 30px;
    color: #444;
    transition: color 0.3s ease;
}

.redes-sociais a:hover {
    color: #5A189A;
}


.container-foto img {
    width: 250px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.sobre {
    padding: 50px 20px;
    background-color: #2c2c2c;
}

.sobre p {
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.6;
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
}

.sobre .titulo {
    font-family: 'Raleway', sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 30px;
    margin-top: 30px;
}


.titulo {
    font-family: 'Raleway', sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #ffffff; /* Cor azul para o título */
    text-align: center;
    text-transform: uppercase; /* Deixa o texto em letras maiúsculas */
    letter-spacing: 2px; /* Espaçamento entre as letras */
    margin-bottom: 40px; /* Espaço abaixo do título */
    margin-top: 90px;
    position: relative;
}
/* Adicionando um efeito de sublinhado animado */
.titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 4px;
    background-color: #ffffff; /* Cor do sublinhado */
    animation: underline 1s ease-out infinite;
}

@keyframes underline {
    0% {
        width: 0;
    }
    50% {
        width: 50%;
    }
    100% {
        width: 0;
    }
}


.container-habilidades {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.habilidade {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 100px;
    text-align: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.habilidade i {
    font-size: 60px;
    color: #fff; /* Cor do ícone */
    background-color: #333; /* Fundo do ícone */
    border-radius: 50%; /* Deixa o ícone redondo */
    padding: 20px; /* Adiciona espaçamento ao redor do ícone */
    transition: all 0.3s ease;
}

.habilidade p {
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    color: #fff; /* Cor do texto */
    font-weight: 600;
}


.container-habilidades a {
    text-decoration: none;
    color: inherit;
}

.container-habilidades a i {
    font-size: 48px;
    color: white;
    border: 1px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.projetos {
    padding: 50px 20px;
    background-color: #2c2c2c;
    margin-top: 50px; /* Adiciona uma margem superior para separar as seções */
}

.container-projetos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
}

.projeto {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.projeto a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.projeto-img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.projeto-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.projeto-img:hover img {
    transform: scale(1.05);
}

.descricao {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.projeto-img:hover .descricao {
    transform: translateY(0);
}

.tecnologias {
    margin-top: 10px;
    font-size: 14px;
    color: #fff;
}

.tecnologias p {
    margin: 0;
    font-style: italic;
}

/* Adicionando margens no título das seções */
.titulo {
    font-family: 'Raleway', sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 90px;
}

/* Ajuste para garantir que a seção de habilidades não sobreponha os projetos */
.habilidades {
    margin-bottom: 50px; /* Adiciona margem inferior para separar da seção de projetos */
}

.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Estiliza a logo */
.logo {
    font-size: 24px;
    color: white;
    text-decoration: none;
}

/* Estilos do menu lateral */
.sidebar {
    position: fixed;
    left: -250px;
    width: 250px;
    height: 100vh;
    background: #333;
    transition: left 0.3s ease;
    padding-top: 20px;
}

/* Oculta o botão do menu em telas grandes */
.menu-mobile {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

@media (max-width: 768px) {
    /* Ajuste do cabeçalho no responsivo */
    .cabecalho {
        display: none;
    }

    /* Esconde a logo "ME" no mobile */
    .logo {
        display: none;
    }

    /* Mostra as três barrinhas no mobile */
    .menu-mobile {
        display: block;
        font-size: 30px;
        cursor: pointer;
    }

    /* Esconde os links âncora no mobile */
    .menu ul {
        display: none;
    }

    @media (max-width: 768px) {
        .container-projetos {
            grid-template-columns: 1fr; /* Muda para 1 coluna em telas menores */
        }
    
        .projeto {
            width: 100%; /* Garante que os projetos ocupem toda a largura */
            margin-bottom: 20px; /* Adiciona espaço entre os projetos */
        }
    }

    @media (max-width: 345px) {
        .container-projetos {
            grid-template-columns: 1fr;
            padding: 10px; /* Adiciona padding ao container */
        }
    
        .projeto {
            width: 100%;
            margin-bottom: 10px; /* Reduz a margem entre os projetos */
        }
    
        .projeto-img img {
            width: 100%; /* Garante que a imagem do projeto ocupe toda a largura */
        }
    }
}

.container-foto img {
    width: 250px; /* Ajuste conforme necessário */
    height: 250px; /* Deve ser igual à largura */
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 468px) {
    .container-foto img {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        object-fit: cover;
    }
}
@media (max-width: 345px) {
    .container-foto img {
        width: 120px;
        height: 120px;
    }
}
