@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&family=Ubuntu:wght@400;500;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}
html{
    scroll-behavior: smooth;
}
.max-width{
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}
/*  navbar   inicio*/
.navbar{
    position: fixed;
    width: 100%;
    padding: 30px 0;
    font-family: 'Ubuntu', sans-serif;
    z-index: 999;
    transition: all 0.3s ease;
}
.navbar.sticky{
     background: #016064;
     padding: 15px 0;
}
.navbar .max-width{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo a{
    color: #fff;
    font-size: 35px;
    font-weight: 500;
}
.navbar .logo a span{
    color: #016064;
    transition: all 0.3s ease;
}
.navbar.sticky .logo a span{
    color: #fff;
}
.navbar .menu li{
    list-style: none;
    display: inline-block;
}
.navbar .menu li a{
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;
}
.navbar .menu li a:hover{
    color: #016064;
}
.navbar.sticky .menu li a:hover{
    color: #fff;
}
/*  Home   inicio  */
.home{
    display: flex;
    background: url(image/banner1.png) no-repeat;
    background-size: cover;
    height: 100vh;
    color: #fff;
    min-height: 500px;
    font-family: 'Ubuntu', sans-serif;
    position: relative;
}
#banner {
    display: flex;
    align-items: start;
    justify-content: end;
    width: 70%;
    z-index: 2;
}

#banner {
    height: 100%;
    width: fit-content;

}
#banner img {
    width: 39.5%;
    height: 99.5%;
    position: absolute;
    border-radius: 40% 31% .5% 20%;
    top: 0;
    right: 0;
}
.shape {
    background-color: #016064;
    width: 40%;
    height: 100%;
    position: absolute;
    border-radius: 40% 30% 0% 20%;
    top: 0;
    right: 0;
    z-index: 1;
}
.home .max-width{
    margin: auto 0 auto 40px;
}
.home .home-content .text-1{
    font-size: 27px;
}
.home .home-content .text-2{
    font-size: 75px;
    font-weight: 500;
    margin-left: -3px;
}
.home .home-content .text-3{
    font-size: 40px;
    margin: 5px 0;
}
.home .home-content .text-3 span{
    color:#016064;
    font-weight: 500;
}
.home .home-content a{
    display: inline-block;
    background: #016064;
    color: #fff;
    font-size: 25px;
    padding: 12px 36px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid #016064;
}
.home .home-content a:hover{
    color: #016064;
    background: none;
}

/*  Menu  Mobile  */
.menu-btn{
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    display: none;
}
.scroll-up-btn{
    position: fixed;
    width: 41px;
    height: 45px;
    right: 30px;
    bottom: 30px;
    text-align: center;
    line-height: 50px;
    color: #fff;
    background: #016064;
    border-radius: 6px;
    font-size: 30px;
    z-index: 9999;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.scroll-up-btn.show{
    bottom: 30px;
    opacity: 1;
    pointer-events:auto;
    
}

/*  todos os codigos similares  */
section{
    padding: 100px 0;
}
section .title{
    font-family: 'Ubuntu', sans-serif;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    position: relative;
}
section .title::before{
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 180px;
    height: 3px;
    background: #111;
    transform: translateX(-50%);
}
section .title::after{
    position: absolute;
    bottom:-12px;
    left: 50%;
    font-size: 20px;
    background: #fff;
    color: #016064;
    padding: 5px;
    transform: translateX(-50%);
}
.about, .education, .experience, .services, .skills, .testimony, .contact, footer{
    font-family: 'Roboto', sans-serif;
}
.about .about-content,
.services .serv-content,
.skills .skills-content,
.contact .contact-content{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/*  sessão sobre  */

.about .title::after{
    content: "Quem sou eu";
}
.about .about-content .left{
    width: 45%;
}
.about .about-content .right{
    width: 55%;
}
.about .about-content .right .text{
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 10px;
}
.about .about-content .right .text span{
    color: #016064;
}
.about .about-content .right p{
    text-align: justify;
}
.about .about-content .right a{
    display: inline-block;
    background: #016064;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid #016064;
    transition: all 0.3s ease;
}
.about .about-content .right a:hover{
    color: #016064;
    background: none;
}
.about .about-content .left img{
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 6px;
}

/*  sessão educação  */
.education .title::after{
    background: #111;
    content: "Meu Percurso";
}
/*
section.education {
    background-color: black;
    color: white;
}*/
.education .timeline {
    position: relative;
    margin: 50px 0;
    padding: 20px 0;
    list-style: none;
}

.education .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #016064;
    transform: translateX(-50%);
}

.education .timeline-item {
    position: relative;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;

}

.education .timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #016064;
    transform: translateX(-50%);
}

.education .timeline .timeline-item .timeline-content:hover{
    background: #016064;
    transform: scale(0.95);
}

.education .timeline .timeline-item .timeline-content {
    transition: all 0.3s ease;
}

.education .timeline-content {
    position: relative;
    width: 50%;
    padding: 20px;
    background: #222;
    border-radius: 6px;
}

.education .text{
    font-size: 25px;
    font-weight: 500;
    margin: 10px 0 7px 0;
}

.education .timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #016064;
}
.education .timeline-content:hover h3{
    color: #fff;
}

.education .timeline-content p {
    margin: 0;
}

.education .timeline-item:nth-child(odd) .timeline-content {
    left: 50%;
    text-align: left;
    transform: translateX(30px);
}

.education .timeline-item:nth-child(even) .timeline-content {
    left: 0;
    text-align: right;
    transform: translateX(-30px);
}

/* Animação para os itens */
.timeline-item {
    opacity: 0;
    transform: translateX(-100px); /* Animação da esquerda para a direita */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.show {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(even) {
    transform: translateX(100px); /* Animação da direita para a esquerda */
}

.timeline-item:nth-child(even).show {
    transform: translateX(0);
}


/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    background: #222;
}

/* Modal Content/Box */
.modal-content {
    font-family: 'Courier New', Courier, monospace;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #016064;
    border-radius: 6px;
    width: 80%; /* Could be more or less, depending on screen size */
    
}

/* The Close Button */
.close {
    color: #888;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/*  sessão experiência  */
.experience .title::after{
    background: #fff;
    content: "Meu Percurso";
}

.experience .timeline {
    position: relative;
    margin: 50px 0;
    padding: 20px 0;
    list-style: none;
}

.experience .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #016064;
    transform: translateX(-50%);
}

.experience .timeline-item {
    position: relative;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;

}

.experience .timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #016064;
    transform: translateX(-50%);
}

.experience .timeline .timeline-item .timeline-content:hover{
    background: #016064;
    transform: scale(0.95);
}

.experience .timeline .timeline-item .timeline-content {
    transition: all 0.3s ease;
}

.experience .timeline-content {
    position: relative;
    width: 50%;
    padding: 20px;
    background: #aaa;
    border-radius: 6px;
}

.experience .text{
    font-size: 25px;
    font-weight: 500;
    margin: 10px 0 7px 0;
}

.experience .timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #016064;
}
.experience .timeline-content:hover h3{
    color: #fff;
}

.experience .timeline-content p {
    margin: 0;
}

.experience .timeline-item:nth-child(odd) .timeline-content {
    left: 50%;
    text-align: left;
    transform: translateX(30px);
}

.experience .timeline-item:nth-child(even) .timeline-content {
    left: 0;
    text-align: right;
    transform: translateX(-30px);
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/*  sessão serviços */
.education, .services, .testimony{
    background: #111;
    color: #fff;
}
.education .title::before, .services .title::before,
.testimony .title::before{
    background: #fff;
}
.services .title::after,
.testimony .title::after{
    background: #111;
    content: "Projetos";
}
.services .serv-content .card{
    width: calc(33% - 20px);
    background: #222;
    text-align: center;
    border-radius: 6px;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.services .serv-content .card:hover{
    background: #016064;
}
.services .serv-content .card .box{
    transition: all 0.3s ease;
}
.services .serv-content .card:hover .box{
    transform: scale(1.05);
}
.services .serv-content .card ion-icon{
    font-size: 70px;
    color: #016064;
}
.services .serv-content .card:hover ion-icon {
    color: #fff !important;
}

.services .serv-content .card .text{
    font-size: 25px;
    font-weight: 500;
    margin: 10px 0 7px 0;
}
/*  sessão especialidades  */
.skills .title::after{
    content: "Que faço";
}
.skills .skills-content .column{
    width: calc(50% - 30px);
}
.skills .skills-content .left .text{
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 10px;
}
.skills .skills-content .left p{
    text-align: justify;
}
.skills .skills-content .left a{
    display: inline-block;
    background: #016064;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 16px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid #016064;
    transition: all 0.3s ease;
}
.skills .skills-content .left a:hover{
    color: #016064;
    background: none;
}
.skills .skills-content .right .bars{
    margin-bottom: 15px;
}
.skills .skills-content .right .info{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.skills .skills-content .right span{
    font-weight: 500;
    font-size: 18px;
}
.skills .skills-content .right .line{
    width: 100%;
    height: 5px;
    background: #ccc;
    position: relative;
}
.skills .skills-content .right .line::before{
    content: "";
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    background: #016064;
}
.skills .skills-content .right .html::before{
    width: 93%;
}
.skills .skills-content .right .css::before{
    width: 85%;
}
.skills .skills-content .right .js::before{
    width: 87%;
}
.skills .skills-content .right .php::before{
    width: 47%;
}
.skills .skills-content .right .mysql::before{
    width: 42%;
}
.skills .skills-content .right .python::before{
    width: 72%;
}
.skills .skills-content .right .flutter::before{
    width: 65%;
}
.skills .skills-content .right .kotlin::before{
    width: 58%;
}
/*  sessão testemunho  */
.testimony .title::after{
    content: "Comentários";
}
.testimony .carousel .card{
    background: #222;
    border-radius: 6px;
    padding: 25px 35px;
    text-align: center;
    transition: all 0.3s ease;
}
.testimony .carousel .card:hover{
    background: #016064;
}
.testimony .carousel .card img{
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #016064;
    transition: all 0.3s ease;
}
.testimony .carousel .card:hover img{
    border-color: #fff;
}
.testimony .carousel .card .box{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.testimony .carousel .card:hover .box{
    transform: scale(1.05);
}
.testimony .carousel .card .text{
    font-size: 25px;
    font-weight: 500;
    margin: 10px 0 7px 0;
}
.owl-dots{
    text-align: center;
    margin-top: 20px;
}
.owl-dot{
    width: 14px;
    height: 14px;
    outline: none!important;
    border-radius: 50%;
    border: 2px solid #016064!important;
    transition: all 0.3s ease;
}
.owl-dot.active{
    width: 35px;
    border-radius: 15px;
}
.owl-dot.active,
.owl-dot:hover{
    background: #016064!important;
}
/*  sessão Contato  */
.contact .title::after{
    content: "Fale conosco";
}
.contact .contact-content .column{
    width: calc(50% - 30px);
}
.contact .contact-content{
    align-items: flex-start;
}
.contact .contact-content .left p{
    text-align: justify;
}
.contact .contact-content .text{
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}
.contact .contact-content .left .icons{
    margin: 10px 0;
}
.contact .contact-content .row{
    display: flex;
    height: 65px;
    align-items: center;
}
.contact .contact-content .row .info{
    margin-left: 30px
}
.contact .contact-content .row .info .head{
    font-weight: 500;
}
.contact .contact-content .row .info .sub-title{
    color: #333;
}
.contact .contact-content .row ion-icon{
    font-size: 25px;
    color: #016064;
}
.contact .rigth form .fields{
    display: flex;
}
.contact .rigth form .field,
.contact .rigth form .fields .field{
    width: 100%;
    height: 45px;
    margin-bottom: 15px;
}
.contact .rigth form .field input,
.contact .rigth form .textarea textarea{
    width: 100%;
    height: 100%;
    border: 2px solid #016064;
    border-radius: 6px;
    outline: none;
    padding: 0 15px;
    font-size: 17px;
    font-family: 'Roboto',sans-serif;
}
.contact .rigth form .name{
    margin-right: 10px;
}
.contact .rigth form .email{
    margin-left: 10px;
}
.contact .rigth form .textarea{
    width: 100%;
    height: 80px;
}
.contact .rigth form .textarea textarea{
    padding-top: 10px;
    resize: none;
}
.contact .rigth form .button{
    width: 170px;
    height: 47px;
}
.contact .rigth form .button button{
    width: 100%;
    height: 100%;
    border: 2px solid #016064;
    background: #016064;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.contact .rigth form .button button:hover{
    color: #016064;
    background: none;
}

/*  sessão footer  */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
}

footer .social-icons {
    margin-top: 10px;
}

footer .social-icons a {
    color: #fff;
    margin: 0 10px;
    font-size: 24px;
    transition: color 0.3s;
}

footer .social-icons a:hover {
    color: #de0aa9; /* Cor ao passar o mouse sobre o ícone */
}

footer span a {
    color: #de0aa9;
    text-decoration: none;
}

/* Responsividade para diferentes tamanhos de tela */


/* Estilos para telas de até 1104px */
@media (max-width: 1104px){
    .about .about-content .left img{
        width: 350px;
        height: 350px;
    }
}

/* Estilos para telas de até 991px */
@media (max-width: 991px){
    .navbar .max-width{
        padding: 0 50px;
    }
}

/* Estilos para telas de até 947px */
@media (max-width: 947px){
    .max-width{
        max-width: 800px;
        padding: 0 50px;
    }
    .menu-btn{
        display: block;
        z-index: 999;
    }
    .navbar .menu{
        position: fixed;
        width: 100%;
        height: 100vh;
        left: -100%;
        top: 0;
        background: #111;
        padding-top: 80px;
        text-align: center;
        transition: all 0.3s ease;
    }
    .navbar .menu.active{
        left: 0;
    }
    .navbar .menu li{
        display: block;
    }
    .navbar .menu li a{
        display: inline-block;
        margin: 20px 0;
        font-size: 25px;
    }
    
    .home .home-content .text-2{
        font-size: 70px;
    }
    .home .home-content .text-3{
        font-size: 35px;
    }
    .home .home-content a{
        font-size: 23px;
        padding: 10px 30px;
    }
    .about .about-content .column{
        width: 50%;
    }
    .about .about-content .left{
        display: flex;
        justify-content: center;
        margin: 0 auto 60px;
    }
    .about .about-content .right{
        flex: 100%;
    }
    .services .serv-content .card {
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }
    .skills .skills-content .column,
    .contact .contact-content .column{
        width: 100%;
        margin-bottom: 35px;
    }
    footer{
        margin-top: 15px;
    }
}

/* Estilos para telas de até 690px */
@media (max-width: 690px){
    .home .home-content .text-2{
        font-size: 60px;
    }
    .home .home-content .text-3{
        font-size: 32px;
    }
    .home .home-content a{
        font-size: 20px;
    }
    .services .serv-content .card {
        width:100%;
    }
    .about .about-content .column{
        width: 100%;
    }
}

/* Estilos para telas de até 500px */
@media (max-width: 500px){
    .navbar .max-width{
        padding: 0 20px;
    }
    .home .home-content .text-2{
        font-size: 50px;
    }
    .home .home-content .text-3{
        font-size: 27px;
    }
    .home .home-content a{
        font-size: 18px;
        padding: 8px 20px;
    }
    .services .serv-content .card {
        width: 100%;
    }
    .about .about-content .left img{
        width: 250px;
        height: 250px;
    }
    .about .about-content .right p {
        font-size: 16px;
    }
    footer{
        margin-top: 10px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 415px) {
    /* Ajuste geral para todos os elementos */
    .max-width {
        padding: 0 20px;
    }

    /* Ajuste do layout da Home */
    .home .home-content .text-2 {
        font-size: 50px;
    }

    .home .home-content .text-3 {
        font-size: 30px;
    }

    .home .home-content a {
        font-size: 20px;
        padding: 10px 28px;
    }

    /* Ajustes específicos para Educação e Experiência */
    .education .timeline::before,
    .experience .timeline::before {
        left: 20px;
    }

    .education .timeline-item:nth-child(odd) .timeline-content,
    .education .timeline-item:nth-child(even) .timeline-content,
    .experience .timeline-item:nth-child(odd) .timeline-content,
    .experience .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 60px);
        text-align: left;
        left: 40px;
        transform: none;
    }

    .education .timeline-content,
    .experience .timeline-content {
        padding: 15px;
    }

    .education .timeline-item::before,
    .experience .timeline-item::before {
        left: 20px;
    }

    .modal-content {
        width: 90%;
    }
}

/* Para dispositivos com largura máxima de 375px */
@media (max-width: 375px) {
    .max-width {
        padding: 0 20px; /* Reduzir o padding lateral */
    }

    .navbar .logo a {
        font-size: 28px; /* Diminuir o tamanho da logo */
    }

    .navbar .menu li a {
        font-size: 16px; /* Ajustar o tamanho do texto dos links do menu */
        margin-left: 15px;
    }

    .home .home-content .text-1 {
        font-size: 22px; /* Ajustar tamanho do texto */
    }

    .home .home-content .text-2 {
        font-size: 50px; /* Ajustar tamanho do texto */
    }

    .home .home-content .text-3 {
        font-size: 30px; /* Ajustar tamanho do texto */
    }

    .home .home-content a {
        font-size: 18px; /* Ajustar tamanho do botão */
        padding: 10px 20px;
    }

    .about .about-content .left {
        width: 100%; /* Colocar a imagem e o texto em colunas diferentes */
        text-align: center;
    }

    .about .about-content .right {
        width: 100%;
        margin-top: 20px; /* Adicionar margem entre imagem e texto */
    }

    .services .serv-content .card {
        width: 100%; /* Ajustar o tamanho dos cartões de serviço */
        margin-bottom: 20px;
    }

    .education .timeline::before, .experience .timeline::before {
        left: 10px; /* Reposicionar a linha do tempo */
    }

    .education .timeline-item:nth-child(odd) .timeline-content, 
    .experience .timeline-item:nth-child(odd) .timeline-content {
        left: 30px;
        text-align: left;
        transform: none;
        width: calc(100% - 40px); /* Ajustar largura e posição dos itens da linha do tempo */
    }

    .education .timeline-item:nth-child(even) .timeline-content, 
    .experience .timeline-item:nth-child(even) .timeline-content {
        left: 30px;
        text-align: left;
        transform: none;
        width: calc(100% - 40px);
    }

    .contact .contact-content .column {
        width: 100%; /* Ajustar colunas da seção de contato */
        margin-bottom: 20px;
    }
}
