/* GENERAL */
html{
    scroll-behavior: smooth;
}

body{
    background-color: gray;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: whitesmoke;
    color: black;
    text-align: center;
} 

* {
    box-sizing: border-box;
}
/* HEADER */
.sidebar{
    position: fixed;
    right: -250px;
    width: 200px;
    height: 100vh;
    background-color: #0f1c15;
    box-shadow: -5px 0 8px rgba(0, 0, 0, 0.2);
    padding: 2em 1.5em;
    display: flex;
    flex-flow: column;
    gap: 1em;
    transition: right 0.3s ease;
    z-index: 1000;
    align-items: center;
    top: 0;
}

.sidebar h3{
    margin: 0;
}

.sidebar a{
    text-decoration: none;
    color: #c4d7c4;
    width: 100%;
}

.sidebar h3{
    text-align: left;
    width: auto;
}

.sidebar a:hover{
    color: #a3d4a3;
}

.sidebar.show{
    right: 0;
}

.overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 999;
}

.overlay.show{
    display: block;
}

nav{
    display: flex;
    flex-flow: wrap row;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    background-color: #0f1c15;
    color: #c4d7c4;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 998;
    box-shadow:#000000 0px 1px 5px 0px;
}

nav h1,
nav h2,
nav h3 {
    margin: 8px 0;
    padding: 0;
    text-align: left;
}

nav button{
    display: none;
}

nav a{
    text-decoration: none;
    color: #c4d7c4;
}

nav a:hover{
    color: #a3d4a3;
}

.name-img{
    display: flex;
    flex-flow: wrap row;
    align-items: center;
}

.self-img{
    width: 5em;
    border-radius: 20px;
    margin: 1em 1.5em 1em 1em;
}

.menu-navbar{
    display: flex;
    gap:10px;
    margin-right: 2em;
}

@media (max-width: 800px){

    nav{
        width: 100%;
    }

    .name-img{
        margin-right: 0;
    }

    .menu-navbar{
        margin-left: 10px;
    }

    .menu-navbar{
        display: none;
    }

    nav button {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
        position: relative;
        margin-right: 1em;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #c4d7c4;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
    }

    
    nav button:hover .bar {
        background-color: #a3d4a3;
    }
}

@media (max-width: 550px){
    nav{
        font-size: 10px;
    }

    .name-img{
        margin: 0em 0.5em 0em 0em;
    }
    
}

/* MAIN */

main, .main-page {
    width: 100%;
    box-sizing: border-box;
}

main{
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    width: auto;
    min-height: calc(100vh - 112px);
    margin-top: 115px;
    gap: 10px;
    color: black;
    
}

.main-page{
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 20px;
    width: auto;
}

.main-page > h1{
    flex-basis: 100%;
    width: 100%;
    text-align: center;
}

.card-apresentacao{
    display: flex;
    flex-flow: column wrap;
    background: #dff7e8;
    padding: 0.5em 0.5em;
    border-radius: 16px;
    max-width: 95%;
    color: #222;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sobre-mim{
    background-color: white;
    padding: 0.5em;
    border-radius: 20px;
    max-width: 100%;
    width:100%;
    margin: 0em 0em 0.5em 0em;
}

.container-contatos{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.container-contatos a{
    color: black;
}

.container-contatos a:hover{
    color: black;
    transform: translateY(-5px);
    transition: transform 0.2s ease, box-shadow 0.2s ease-in-out;
}

.container-contatos a:active{
    color: black !important;
}

.column-apresentacao{
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
}

.btn-curriculo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.9rem; 
  transition: all 0.3s ease;
}

.btn-curriculo:hover {
  background: linear-gradient(135deg, #00c6ff, #007bff);
  transform: translateY(-2px);
}

.btn-curriculo i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.btn-curriculo:hover i {
  transform: translateY(2px);
}

.card-formacoes{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background: #dff7e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 0.5em;
    width:95%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-formacoes h4{
    margin: 0em 0em 0.2em 0em;
    font-size: large;
}

.card-formacoes p{
    margin: 0em 0em 1em;
}

.linguagens{
    background-color: white;
    align-items: start;
    justify-content: center;
    text-align: left;
    padding: 0em 0.5em;
    width: 25%;
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.formacoes{
    background-color: whitesmoke;
    padding: 0em 0.5em;
    text-align: left;
    width: 75%;
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-tecnologias{
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    background: #dff7e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    width: 95%;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-wrapper{
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
}

.tech-categorias{
    background-color: rgb(247, 247, 247);
    border-radius: 20px;
    width: 48.8%;
    margin: 0.5em 0em;
    padding: 1em 0em;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tech-categorias h3{
    margin: 0em 0em 0.5em 0em;
    padding: 0em;
}

.card-tecnologias img{
    width: 20%;
    margin: 0.5em;
    padding: 1em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 20px;
}


.card-tecnologias img:hover{
    transform: translateY(-5px);
    transition: transform 0.5s ease;
}

.side{
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
}

.projects-main{
    display: flex;
    flex-flow: row wrap;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    gap: 1.5em;
    margin-bottom: 1em;
}

.project{
    display: flex;
    flex: 1 1 30%;
    flex-direction: column;
    background: #dff7e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 1em;
    min-height: auto;
    min-width: 40em;
    max-width: 40em;
    transition: transform 0.4s ease, box-shadow 0.2s ease;
}

.project h2{
    margin: 0em 0em 0.5em 0em

}

.project:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-img{
    min-height: 18em;
    max-height: 20em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.project-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-description{
    text-align: left;
    line-height: 1.2em;
    padding: 0.5em;
    font-size: 17px;
    background: white;
    margin: 1em 0em;
    border-radius: 10px;
}

.project-menu{
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 1em;
}

.project button{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.project button:hover {
  background: linear-gradient(135deg, #00c6ff, #007bff);
  transform: translateY(-2px);
}

.project button i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.project button:hover i {
  transform: translateX(4px);
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #24292e;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 18px;
    transition: all 0.3s ease;
}

.github-link:hover {
  background: #000;
  transform: translateY(-2px);
}

.github-link i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.github-link:hover i {
  transform: rotate(-10deg) scale(1.1);
}

.img-certificado{
    border: 1px solid black;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    width: 50%;
    height: 12em;
    align-self: center;
}

.card-certificado{
    display: flex;
    flex-flow: row;
    gap: 10px;
    justify-content: space-evenly;
    align-items: stretch;
    background: #dff7e8;
    padding: 25px;
    border-radius: 16px;
    min-height: fit-content;
    color: #222;
    flex: 1 1 500px;
    margin: 0em 0.5em; 
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-certificado p{
    text-align: left;
    background: white;
    width:auto;
    border-radius: 10px;
    margin: 0;
}

.container-certificado{
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 20px;
    height: fit-content;
}


@media (max-width:1340px) {
    
    main{
        margin: 7em 0.5em 0em 0.5em;
        flex-flow: column;
        justify-content: space-evenly;
    }
     
    .card-formacoes{
        min-width: auto;
        max-width: 95%;
        width: 95%;
    }
    
    .card-tecnologias{
        min-width: auto;
        max-width: 95%;
        width: 95%;
        flex-flow: column wrap;
    }

    .card-tecnologias img{
        margin: 0.5em;
    }

    .tech-categorias{
        width: 98%;
    }

    .project {
        width: 95%;
        max-width: 95%;
    }
    
    .container-certificado{
        gap: 10px;
    }
    .card-certificado{
        min-width: 40%;
        margin: 0;
    }
}

@media(max-width:800px){
    
    main{
        margin: 7em 0.5em 0em 0.7em;
        flex-flow: column;
        justify-content: space-evenly;
    }

    main h1{
        font-size: 25px;
    }

    .main-page{
        display: flex;
        flex-wrap: wrap;
        gap:20px;
    }

    .projects-main{
        justify-content: center;
        gap: 20px;
        margin-bottom: 1em;
    }

    .card-formacoes{
        padding: 0.5em;
        min-width: auto;
        max-width: 95%;
        width: 95%;
    }

    .card-tecnologias{
        min-width: auto;
        max-width: 95%;
        width: 95%;
        gap: 0px;
    }

    .tech-categorias{
        width: 95%;
    }

    .card-tecnologias img{
        width: 20%;
        margin: 0.2em;
    }

    .project {
        min-width: auto;
        max-width: 95%;
        width: 95%;
    }
    .card-certificado {
        width: 95%;
    }
}

@media (max-width: 650px) {
    .card-formacoes h2, p{
        font-size: 15px;
    }

    .card-formacoes h4{
        font-size: 15px;
    }

    .card-certificado {
        font-size: 13px;
    }
    
}

@media(max-width: 556px){

    .card-formacoes{
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }

    .card-formacoes h2, p{
        font-size: 13px;
    }

    .card-formacoes h4{
        font-size: 13px;
    }

    .linguagens{
        width: 40%
    }

    .card-tecnologias{
        min-width: auto;
        max-width: 100%;
        width: 100%;
        height: fit-content;
    }

    .card-tecnologias img{
        width: 25%;
        margin: 0.2em;
    }

    .projects-main{
        gap: 20px;
        width: 100%;
        padding: 0;
        margin-bottom: 1em;
    }

    .project {
        width: 100%;
        max-width: 100%;
    }

    .project-description p {
        font-size: 16px;
    }

    .project-img{
        min-height: 10em;
    }

    .card-certificado p{
        font-size: 14px;
        margin: 15px 0px;
    }
    
    .card-certificado{
        flex-direction: column;
    }

    .img-certificado{
        width: 100%;
        height: 20em;
    }

    .experiencia {
        width: 100% !important; 
        max-width: 100% !important;
    }
}

/* FOOTER */
footer{
    background-color: #0f1c15;
    color: #c4d7c4;
    padding: 1em;
}

/* EXPERIENCIAS */
.experiencia {
  width: 95%; 
  max-width: 95%;
  padding: 10px 15px;
  background: #dff7e8;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.experiencia h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #007bff;
}

.xp-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.xp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
}

.xp-card h3 {
  font-size: 1.3rem;
  color: #222;
  margin-bottom: 6px;
}

.xp-card .empresa {
  font-weight: 600;
  color: #555;
  margin-bottom: 12px;
}

.xp-card ul {
  list-style: none;
  padding-left: 0;
}

.xp-card ul li {
  margin-bottom: 8px;
  color: #444;
  position: relative;
  padding-left: 20px;
}

.xp-card ul li::before {
  content: "▹";
  color: #007bff;
  position: absolute;
  left: 0;
}


/* ANIMAÇÕES */

