/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Estilos Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #000; /* Fundo preto */
    color: #fff; /* Texto branco */
}

.max-width {
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}

.max-width-home { /* Usado na seção home para alinhamento */
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
    display: flex;
    height: 100vh;
    align-items: center;
}

/* Estilos para todas as seções */
section {
    padding: 100px 0;
}

.title {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
}

.title::before {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 180px;
    height: 3px;
    background: #111; /* Cor da linha antes do título */
    transform: translateX(-50%);
}

.title::after {
    content: "o que eu faço"; /* Exemplo, ajuste conforme a seção */
    position: absolute;
    bottom: -8px;
    left: 50%;
    font-size: 20px;
    color: #18ce00; /* Cor amarela para o destaque */
    padding: 0 5px;
    background: #000;
    transform: translateX(-50%);
}

/* Navbar */
.navbar {
    position: fixed;
    background-color: #000;
    width: 100%;
    z-index: 999;
    padding: 30px 0;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.navbar.sticky {
    padding: 15px 0;
    background: #18ce00; /* Cor da navbar quando fixa */
}

.navbar .max-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo a {
    color: #fff;
    font-size: 35px;
    font-weight: 600;
}

.navbar.sticky .logo a {
    color: #111; /* Cor do logo quando navbar fixa */
}

.navbar .logo a span {
    color: #18ce00;
    transition: all 0.3s ease;
}

.navbar.sticky .logo a span {
    color: #fff; /* Cor do span do logo quando navbar fixa */
}

.navbar .menu li {
    list-style: none;
    display: inline-block;
}

.navbar .menu li a {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;
}

.navbar.sticky .menu li a {
    color: #111; /* Cor dos links quando navbar fixa */
}

.navbar .menu li a:hover {
    color: #18ce00; /* Cor do hover nos links */
}

.navbar.sticky .menu li a:hover {
    color: #fff; /* Cor do hover nos links quando navbar fixa */
}

/* Menu responsivo (hamburguer) */
.menu-btn {
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    display: none; /* Escondido por padrão em telas grandes */
}

.navbar.sticky .menu-btn {
    color: #111;
}

/* Home Section */
.home {
    display: flex;
    height: 100vh;
    color: #fff;
    min-height: 500px;
    /* Remova a imagem de background daqui se quiser uma cor sólida */
    background: #000; /* Ou a cor que você preferir para o fundo da Home */
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Poppins', sans-serif;
    align-items: center; /* Centraliza verticalmente o conteúdo */
}

.home .max-width-home { /* Usando a classe max-width-home */
    margin: auto 0 auto 40px; /* Ajuste para centralizar verticalmente e margem à esquerda */
}

.home .home-content { /* Ajustado para ser um flex container */
    display: flex;
    flex-wrap: wrap; /* Permite que as colunas quebrem em telas menores */
    align-items: center; /* Alinha itens no centro verticalmente */
    justify-content: space-between; /* Espaço entre as colunas */
    width: 100%;
}

.home .home-content .column {
    width: calc(50% - 20px); /* Ajuste para ter duas colunas com espaçamento */
}

.home .home-content .left {
    text-align: left;
}

.home .home-content .home-image {
    position: relative;
    width: 400px; /* Largura da imagem */
    height: 400px; /* Altura da imagem */
    border-radius: 50%; /* Para deixá-la circular, se a imagem for quadrada */
    overflow: hidden; /* Garante que o brilho não vaze do círculo */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* Centraliza a imagem na coluna */
    box-shadow: 0 0 0 10px rgba(30, 215, 0, 0.2), /* Primeiro anel de brilho (mais próximo) */
                0 0 0 20px rgba(30, 215, 0, 0.1), /* Segundo anel de brilho */
                0 0 0 30px rgba(30, 215, 0, 0.05); /* Terceiro anel de brilho (mais distante) */
}

.home .home-content .home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha o círculo sem distorcer */
    border-radius: 50%; /* A própria imagem também pode ter borda arredondada */
    display: block; /* Remove espaço extra abaixo da imagem */
}

.home .home-content .text-1 {
    font-size: 27px;
}

.home .home-content .text-2 {
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
}

.home .home-content .text-3 {
    font-size: 35px;
    margin: 5px 0;
}

.home .home-content .text-3 span {
    color: #18ce00;
    font-weight: 500;
}

.home .home-content a {
    display: inline-block;
    background: #18ce00;
    color: #fff;
    font-size: 25px;
    padding: 12px 36px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid #18ce00;
    transition: all 0.3s ease;
}

.home .home-content a:hover {
    color: #18ce00;
    background: none;
}

/* About Section */
.about .title::after {
    content: "quem sou eu";
}

.about .about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.about .about-content .column {
    width: calc(50% - 30px);
}

/* Modificação para a imagem na seção About */
.about .about-content .left {
    display: flex;
    justify-content: center; /* Centraliza a imagem horizontalmente */
    align-items: center; /* Centraliza a imagem verticalmente */
    position: relative;
    width: 400px; /* Mesma largura da Home para consistência */
    height: 400px; /* Mesma altura da Home */
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto; /* Centraliza a imagem na coluna */
    box-shadow: 0 0 0 10px rgba(30, 215, 0, 0.2),
                0 0 0 20px rgba(30, 215, 0, 0.1),
                0 0 0 30px rgba(30, 215, 0, 0.05);
}

.about .about-content .left img {
    height: 100%; /* A imagem preenche o contêiner */
    width: 100%; /* A imagem preenche o contêiner */
    object-fit: cover;
    border-radius: 50%; /* Para garantir que a imagem seja circular */
    display: block;
}

.about .about-content .right .text {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about .about-content .right .text span {
    color: #18ce00;
}

.about .about-content .right p {
    text-align: justify;
}

.about .about-content .right a {
    display: inline-block;
    background: #18ce00;
    color: #fff;
    font-size: 20px;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid #18ce00;
    transition: all 0.3s ease;
}

.about .about-content .right a:hover {
    color: #18ce00;
    background: none;
}
/* Education Section */
.education {
    background: #000;
}
.education .title::after {
    content: "onde estudei";
}
.education .education-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.education .card {
    width: calc(33% - 30px);
    background: #222;
    text-align: center;
    border-radius: 6px;
    padding: 25px 35px;
    cursor: default; /* Não precisa ser clicável, então cursor padrão */
    transition: all 0.3s ease;
}
.education .card:hover {
    background: #18ce00;
    transform: translateY(-5px);
}
.education .card .box {
    transition: all 0.3s ease;
}
.education .card:hover .box {
    color: #111;
}
.education .card i {
    font-size: 50px;
    color: #18ce00;
    transition: all 0.3s ease;
}
.education .card:hover i {
    color: #fff;
}
.education .card .text {
    font-size: 22px;
    font-weight: 600;
    margin: 10px 0 7px 0;
}
.education .card .institution {
    font-size: 16px;
    font-weight: 500;
    color: #ccc;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}
.education .card:hover .institution {
    color: #333;
}
.education .card .details {
    font-size: 14px;
    color: #aaa;
    transition: all 0.3s ease;
}
.education .card:hover .details {
    color: #333;
}
/* Skills Section */
.skills {
    background: #111; /* Fundo mais escuro */
}

.skills .title::after {
    content: "o que eu sei";
}

.skills .skills-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.skills .skills-content .column {
    width: calc(50% - 30px);
}

.skills .skills-content .left .text {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.skills .skills-content .left p {
    text-align: justify;
}

.skills .skills-content .left a {
    display: inline-block;
    background: #18ce00;
    color: #fff;
    font-size: 20px;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid #18ce00;
    transition: all 0.3s ease;
}

.skills .skills-content .left a:hover {
    color: #18ce00;
    background: none;
}

.skills .skills-content .right .bars {
    margin-bottom: 15px;
}

.skills .skills-content .right .info {
    display: flex;
    margin-bottom: 5px;
    align-items: center;
    justify-content: space-between;
}

.skills .skills-content .right span {
    font-weight: 500;
    font-size: 18px;
}

.skills .skills-content .right .line {
    height: 5px;
    width: 100%;
    background: #333;
    position: relative;
}

.skills .skills-content .right .line::before {
    content: "";
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background: #18ce00;
}

.skills-content .right .js::before {
    width: 90%;
}
.skills-content .right .linux::before {
    width: 80%;
}
.skills-content .right .html::before {
    width: 70%;
}
.skills-content .right .css::before {
    width: 65%;
}
.skills-content .right .node::before {
    width: 60%;
}
.skills-content .right .c::before {
    width: 60%;
}
.skills-content .right .react::before {
    width: 50%;
}
.skills-content .right .python::before {
    width: 50%;
}

/* Projects Section */
.projects {
    background: #000;
}
.projects .title::after {
    content: "meu trabalho";
}
.projects .projects-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Espaço entre os cards */
}

/* ESTILOS DO CARD ATUALIZADOS */
.projects .projects-content .card {
    width: calc(33% - 30px); /* 3 cards por linha em telas grandes */
    background: #222;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden; /* Importante para a imagem não vazar das bordas */
    display: flex;
    flex-direction: column; /* Organiza a imagem e o texto em coluna */
}

.projects .projects-content .card:hover {
    background: #18ce00;
    transform: translateY(-5px); /* Efeito de levantar o card no hover */
}

/* NOVOS ESTILOS PARA A IMAGEM */
.projects .projects-content .card .project-image {
    width: 100%;
    height: 200px; /* Altura fixa para a imagem, ajuste se precisar */
    overflow: hidden; /* Garante que o zoom da imagem não vaze */
}

.projects .projects-content .card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz a imagem cobrir o espaço sem distorcer */
    transition: transform 0.3s ease; /* Transição suave para o efeito de zoom */
}

/* EFEITO DE ZOOM NA IMAGEM AO PASSAR O MOUSE NO CARD */
.projects .projects-content .card:hover .project-image img {
    transform: scale(1.05); /* Aumenta um pouco o tamanho da imagem */
}

/* ESTILOS DA CAIXA DE TEXTO ATUALIZADOS */
.projects .projects-content .card .box {
    padding: 20px 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Faz a caixa de texto ocupar o espaço restante no card */
}

.projects .projects-content .card:hover .box {
    color: #111; /* Cor do texto quando o fundo do card fica amarelo */
}

.projects .projects-content .card .text {
    font-size: 25px;
    font-weight: 500;
    margin: 0 0 7px 0;
}

.projects .projects-content .card p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 15px;
    flex-grow: 1; /* Faz o parágrafo crescer e empurrar os botões para baixo */
}

.projects .projects-content .card:hover p {
    color: #333; /* Cor do parágrafo no hover */
}

.projects .projects-content .card .buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 15px; /* Adiciona um espaço acima dos botões */
}

.projects .projects-content .card .btn {
    display: inline-block;
    background: #18ce00;
    color: #fff;
    font-size: 15px;
    padding: 8px 15px;
    border-radius: 5px;
    border: 2px solid #18ce00;
    transition: all 0.3s ease;
}

.projects .projects-content .card .btn:hover {
    color: #18ce00;
    background: none;
    border-color: #18ce00;
}

.projects .projects-content .card:hover .btn {
    background: #111;
    color: #fff;
    border-color: #111;
}

.projects .projects-content .card:hover .btn:hover {
    background: none;
    color: #111;
}

/* Experience Section */
.experience {
    background: #111;
}

.experience .title::after {
    content: "minha jornada";
}

.experience .experience-content .timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* A linha vertical central da timeline */
.experience .experience-content .timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #333;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

/* O container de cada item da timeline */
.experience .timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* O ponto (círculo) na timeline */
.experience .timeline-item .timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #222;
    border: 4px solid #18ce00; /* Verde, nossa cor de destaque */
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

/* Posiciona os itens à ESQUERDA da linha */
.experience .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px; /* Espaço para o ponto central */
    text-align: right;
}

/* Posiciona os itens à DIREITA da linha */
.experience .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px; /* Espaço para o ponto central */
}

/* Ajusta a posição do ponto para os itens da DIREITA */
.experience .timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

/* O card de conteúdo de cada item */
.experience .timeline-item .timeline-content {
    padding: 20px 30px;
    background-color: #222;
    position: relative;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.experience .timeline-item .timeline-content:hover {
    box-shadow: 0 0 15px rgba(24, 206, 0, 0.5);
    transform: translateY(-3px);
}


/* A data de cada item */
.experience .timeline-item .timeline-date {
    font-size: 16px;
    font-weight: 500;
    color: #18ce00;
    margin-bottom: 10px;
}

/* O título do cargo */
.experience .timeline-item .timeline-content h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

/* O nome da empresa */
.experience .timeline-item .timeline-content .company {
    font-size: 16px;
    font-style: italic;
    color: #ccc;
    margin-bottom: 15px;
}

/* A lista de responsabilidades */
.experience .timeline-item .timeline-content ul {
    list-style-type: none;
    padding-left: 0;
}

.experience .timeline-item .timeline-content ul li {
    padding-bottom: 5px;
    color: #ddd;
}
.experience .timeline-item .timeline-content ul li::before {
    content: '›';
    margin-right: 8px;
    color: #18ce00;
    font-weight: bold;
}

/* Contact Section */
.contact {
    background: #111;
}

.contact .title::after {
    content: "fale comigo";
}

.contact .contact-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.contact .contact-content .column {
    width: calc(50% - 30px);
}

.contact .contact-content .text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact .contact-content .left p {
    text-align: justify;
}

.contact .contact-content .icons .row {
    display: flex;
    height: 65px;
    align-items: center;
}

.contact .contact-content .icons .row .info {
    margin-left: 30px;
}

.contact .contact-content .icons .row i {
    font-size: 25px;
    color: #18ce00;
}

.contact .contact-content .icons .row .info .head {
    font-weight: 500;
}

.contact .contact-content .icons .row .info .sub-head {
    color: #ddd;
}

.contact .contact-content .social-media {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.contact .contact-content .social-media a {
    color: #fff;
    font-size: 30px;
    transition: all 0.3s ease;
}

.contact .contact-content .social-media a:hover {
    color: #18ce00;
}

.contact .contact-content .right form .fields {
    display: flex;
}

.contact .contact-content .right form .field,
.contact .contact-content .right form .fields .field {
    height: 45px;
    width: 100%;
    margin-bottom: 15px;
}

.contact .contact-content .right form .field input,
.contact .contact-content .right form .textarea textarea {
    height: 100%;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    padding: 0 15px;
    font-size: 17px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #333; /* Fundo do input */
    color: #fff; /* Cor do texto do input */
}

.contact .contact-content .right form .field input:focus,
.contact .contact-content .right form .textarea textarea:focus {
    border-color: #18ce00;
}

.contact .contact-content .right form .fields .field.name {
    margin-right: 10px;
}

.contact .contact-content .right form .fields .field.email {
    margin-left: 10px;
}

.contact .contact-content .right form .textarea {
    height: 80px;
    width: 100%;
}

.contact .contact-content .right form .textarea textarea {
    padding-top: 10px;
    resize: none;
}

.contact .contact-content .right form .button {
    height: 47px;
    width: 170px;
}

.contact .contact-content .right form .button button {
    width: 100%;
    height: 100%;
    border: 2px solid #18ce00;
    background: #18ce00;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact .contact-content .right form .button button:hover {
    color: #18ce00;
    background: none;
}

/* Footer Section */
footer {
    background: #222;
    padding: 20px 23px;
    color: #fff;
    text-align: center;
}

footer span a {
    color: #18ce00;
    text-decoration: none;
}

footer span a:hover {
    text-decoration: underline;
}


/* Estilos Responsivos */
@media (max-width: 1104px) {
    .about .about-content .left img {
        height: 350px;
        width: 350px;
    }
}

@media (max-width: 991px) {
    .max-width {
        padding: 0 50px;
    }
}

@media (max-width: 947px) {
    .menu-btn {
        display: block;
        z-index: 999;
    }
    .menu-btn i.active:before {
        content: "\f00d"; /* Ícone X para fechar */
    }
    .navbar .menu {
        position: fixed;
        height: 100vh;
        width: 100%;
        left: -100%; /* Escondido para a esquerda */
        top: 0;
        background: #111;
        text-align: center;
        padding-top: 80px;
        transition: all 0.3s ease;
    }
    .navbar .menu.active {
        left: 0; /* Mostra o menu */
    }
    .navbar .menu li {
        display: block;
    }
    .navbar .menu li a {
        display: inline-block;
        margin: 20px 0;
        font-size: 25px;
    }
    .home {
        /* Para evitar que a imagem saia da tela, ajustamos o padding */
        padding-top: 80px; 
    }
    .home .home-content {
        flex-direction: column; /* Coloca imagem e texto um sobre o outro */
        text-align: center;
    }
    .home .home-content .column {
        width: 100%; /* Faz cada coluna ocupar a tela inteira */
    }
    .home .home-content .left {
        order: 2; /* Coloca o texto DEPOIS da imagem */
    }
    .home .home-content .right {
        order: 1; /* Coloca a imagem ANTES do texto */
        margin-bottom: 40px; /* Adiciona um espaço abaixo da imagem */
    }
    .home .home-content .home-image {
        /* Diminui o tamanho da imagem e do brilho em telas menores */
        width: 300px;
        height: 300px;
        margin: 0 auto; /* Centraliza a imagem */
        box-shadow: 0 0 0 8px rgba(30, 215, 0, 0.2),
                    0 0 0 16px rgba(30, 215, 0, 0.1),
                    0 0 0 24px rgba(30, 215, 0, 0.05);
    }
    .home .home-content .text-2 {
        font-size: 60px; /* Reduz um pouco a fonte principal */
    }
    .home .home-content .text-3 {
        font-size: 30px;
    }
    .about .about-content .column {
        width: 100%; /* Faz a coluna da imagem ocupar a tela inteira */
        margin-bottom: 40px;
    }
    .about .about-content .left {
        /* Diminui a imagem da seção "Sobre" também, para manter o padrão */
        width: 300px;
        height: 300px;
        margin: 0 auto; /* Centraliza a imagem */
        box-shadow: 0 0 0 8px rgba(30, 215, 0, 0.2),
                    0 0 0 16px rgba(30, 215, 0, 0.1),
                    0 0 0 24px rgba(30, 215, 0, 0.05);
    }
    .about .about-content .right {
        flex: 100%;
        text-align: center; /* Centraliza o texto da seção "Sobre" */
    }
    .about .about-content .right p {
        text-align: center; /* Centraliza o parágrafo também */
    }
    .about .about-content .right {
        flex: 100%;
    }
    .skills .skills-content .column,
    .contact .contact-content .column {
        width: 100%;
        margin-bottom: 35px;
    }
    .projects .projects-content .card,
    .education .card {
        width: calc(50% - 10px); /* 2 cards por linha em tablets */
        margin-bottom: 20px;
    }
    .experience .experience-content .timeline::after {
        left: 20px; /* Move a linha para a esquerda */
    }

    .experience .timeline-item {
        width: 100%;
        padding-left: 50px; /* Espaço para a linha e o ponto */
        padding-right: 15px;
    }

    .experience .timeline-item:nth-child(odd),
    .experience .timeline-item:nth-child(even) {
        left: 0;
        text-align: left; /* Alinha todo o texto à esquerda */
    }

    .experience .timeline-item .timeline-dot {
        left: 10px; /* Posiciona o ponto sobre a linha */
    }
}

@media (max-width: 690px) {
    .max-width {
        padding: 0 23px;
    }
    .home .home-content .text-2 {
        font-size: 60px;
    }
    .home .home-content .text-3 {
        font-size: 32px;
    }
    .projects .projects-content .card,
    .education .card {
        width: 100%; /* 1 card por linha em celulares */
    }
    .contact .contact-content .right form .fields {
        flex-direction: column;
    }
    .contact .contact-content .right form .fields .field.name,
    .contact .contact-content .right form .fields .field.email {
        margin: 0;
    }
}

@media (max-width: 500px) {
    .home .home-content .text-2 {
        font-size: 50px;
    }
    .home .home-content .text-3 {
        font-size: 27px;
    }
    .about .about-content .left img {
        height: 300px;
        width: 300px;
    }
}