body {
    background-color: #282c34;
    color: #e8e6e3;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

/* Seção Sobre Mim */
.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    background-color: #353941;
    margin-bottom: 20px;
}

.about-content {
    display: flex;
    max-width: 960px;
    width: 100%;
    gap: 40px;
}

.about-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.about-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 3px solid #61afef;
    max-width: 100%;
}

.about-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.about-info {
    flex: 1;
}

.about-info h2 {
    color: #61afef;
    margin-bottom: 20px;
}

.contact-details {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
}

.label {
    font-weight: bold;
    width: 80px;
    margin-right: 50px;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #61afef;
    color: #282c34;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 5px;
}

/* Estilo do botão ativo (projeto selecionado) */
.btn.active {
    background-color: #b1f32d; /* Cor amarela para o botão ativo */
    color: #282c34; /* Mantém o contraste do texto */
}

/* Efeito de hover */
.btn:hover {
    background-color: #b1f32d;
}

/* Seção de Projetos */
.projects {
    padding: 40px;
    background-color: #353941;
}

.projects h2 {
    text-align: center;
    color: #61afef;
    margin-bottom: 30px;
}

.project-menu {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

/* Detalhes dos Projetos (Cards) */
.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 30px;
}

/* Estilos do Card de Projetos */
.project-card {
    border: 1px solid #4b4f56;
    padding: 30px;
    background-color: #2f333b;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Container da Imagem */
.image-container {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Define o tamanho fixo da largura */
    height: 700px; /* Define a altura fixa */
    overflow: hidden;
    margin: 0 auto;
    border-radius: 8px;
    background-color: #353941; /* Cor de fundo para áreas vazias */
    display: flex;
    justify-content: center; /* Centraliza a imagem horizontalmente */
    align-items: center; /* Centraliza a imagem verticalmente */
}

/* Estilos da Imagem */
.project-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ajusta a imagem dentro do container sem cortes */
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 8px;
    background-color: #353941; /* Mesma cor do container para uniformidade */
}


/* Efeito de Hover apenas sobre a imagem */
.project-img:hover {
    filter: brightness(0.7); /* Escurece levemente no hover */
    cursor: pointer;
}

/* Overlay para aparecer apenas sobre a imagem */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 8px;
}

/* Exibe o Overlay apenas sobre a imagem */
.image-container:hover .overlay {
    opacity: 1;
}

/* Conteúdo do Overlay */
.overlay-content {
    text-align: center;
    padding: 20px;
}

.overlay h3 {
    margin-bottom: 10px;
    color: #61afef;
}

.overlay p {
    font-size: 14px;
}

/* Botões de controle de projetos */
.project-controls {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Iframe */
.iframe-container {
    border: solid;
    border-color: transparent;
    width: 100%;
    height: 600px;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .project-menu {
        flex-direction: column;
    }

    .project-details {
        grid-template-columns: 1fr;
    }

    .iframe-container {
        height: 400px;
    }

    .project-card {
        padding: 30px;
        width: 100%;
    }

    /* Imagem responsiva em dispositivos menores */
    .image-container {
        max-width: 100%;
    }

    .project-img {
        max-height: 200px;
    }
}
