/* Importação de fontes do Google Fonts (opcional, mas recomendado) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Reset básico para garantir consistência entre navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #333;
    color: #333;
    line-height: 1.6;
}

/* Estilos gerais para o cabeçalho */
header {
    background-color: #333;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Estilos para o botão "Voltar" */
.back-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #fcce00;
    transition: background-color 0.3s ease;
}

.back-button svg {
    margin-right: 5px;
}

.back-button i {
    margin-right: 5px; /* Espaçamento entre o ícone e o texto */
}


.container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #fcce00; 
}

/* Estilos para a seção de projetos */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 2rem;
}

.project {
    background-color: #e9e9e9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease; 
}

.project:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project a {
    display: block; 
    color: inherit;
    text-decoration: none; 
}

.project img {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
}

.project h3 {
    padding: 1rem;
    font-size: 1.2rem;
    color: #333;
}

.project p {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    color: #555;
}

/* Estilos para o rodapé */
footer {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

/* Estilos para o botão "Voltar ao topo" */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: none; 
    background: #3d3d3d;
    color: #fcce00;
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.back-to-top.show {
    display: block;
}

.back-to-top:hover {
    opacity: 0.8;
}

footer .container {
    color: #fcce00;
}

a {
    text-decoration: none;
    color: #333; 
    position: relative;
    overflow: hidden;

}

a::before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #fcce00; 
    bottom: 0;
    left: 0;
    transition: width 0.3s ease; 
}

a:hover::before {
    width: 100%;
}

.back-button:hover {
    transform: scale(1.25);  /* Aumenta um pouco o botão ao passar o mouse */
}



/* Responsividade */
@media screen and (max-width: 768px) {
    .projects {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}