* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

p, li {
    font-family: 'Open Sans', sans-serif;
}

section {
    height: 100vh;
    overflow-y: hidden;
}

body {
    background-color: #141414;
    height: 100dvh;

}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Certifique-se de usar um valor alto */

}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1% 3% 1%  3%;
}
nav #ham-menu {
    display: none;
}
#nav-bar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

#nav-bar li {
    list-style: none;
    list-style-type: none;
}

nav > #logo {
    color: #6578f3;
    font-size: 1.5rem;
    text-decoration: none;
    cursor: pointer;
}

#nav-bar li > a {
    text-decoration: none;
    font-size: 1.5rem;
    color: #EEEEEE;
} 

#nav-bar li > a:hover {
    color: #6578f3;
}

#home {
    background-image: url(../assets/images/background.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    height: 100vh;
}

#home .intro {
    position: relative;
    top: 67.5%;
    padding-left: 3%;
    height: 80vh;
}

#home .intro h4 {
    color:  #6578f3;
    font-size: 1.9rem;
    letter-spacing: 3px;
}

#home .intro h4 > span {
    color:  #EEEEEE;
    text-transform: capitalize;
}

#home .intro h2 {
    color: #EEEEEE;
    font-size: 4rem;
}

#home .intro button, #about .content  .cta-about {
    margin-top: 25px;
    border: none;
    padding: 5px;
    border-radius: 15px;
    height: 45px;
    width: 170px;
    background-color: #6578f3;
    color: #EEEEEE;
    font-size: 1.2rem;
    font-weight: 800;
}

#home .intro .right {
    margin-left: 15px;
}
#about {
    display: grid;
    height: 100vh;
}

#about * {
    overflow: hidden;
} 
#about > .main {
    display: grid;
    place-self: center ;
    grid-template-columns: 2fr 3fr;
    width: 80%;
    height: 60vh;
}

#about > .main .photo {
    background-image: url(../assets/images/about.jpg);
    background-position: top;
    background-repeat: no-repeat;
    background-size: 75% auto;
    border-radius: 10px;
}

#about > .main .content {
    padding-left: 1%;
}

#about > .main .content h2 {
    
    color: #6578f3;
    letter-spacing: 2px;
}

#about > .main .content p {

    color: #EEEEEE;
    line-height: 1.5;
    margin-top: 10px;
    text-align: justify;
}

#about > .main .content table{
    border-collapse: collapse;
    margin-bottom: 20px;
}

#about > .main .content .left-info {
    width: 65%;
    color: #6578f3;
}

#about > .main .content .plus-info {
    color: #EEEEEE;
    width: 100%;
    height: 6rem;
    margin-top: 30px;
}



#about > .main .content .plus-info tr {
    padding: 3px;
}

#about > .main .content .cta-about {
    position: relative;
    top: 11.5%;
}


.skills-title {
    margin-top: 20px;
    color: #6578f3;
    letter-spacing: 1px;
}

.skills-list {
    margin-top: 18px;
    width: 84%;
}


#about > .main .content .skills-list > ul {
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
    color: #EEEEEE;
    list-style: none;
    list-style-type: none;
}

#about > .main .content .skills-list > ul li {
    line-height: 1.2;
}

.skills-list >.second {
    margin-bottom: 20px;
}

#about > .main .content .skills-list > ul i {
    color: #6578f3;
}


.image {
    display: none;
}


/* Services section*/


#services > .services-intro, #portfolio > .portfolio-intro {
    position: relative;
    top: 15%;
    color: #6578f3;
    text-align: center;
}

#services > .services-intro h2, #portfolio > .portfolio-intro h2 {
    line-height: 1.5;
    letter-spacing: 2px;
}

#services > .services-intro h5, #portfolio > .portfolio-intro h5 {
    letter-spacing: 2px;
    color: #EEEEEE;
}

.services-div, .portfolio-div {

    position: relative;
    top: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.services-card, .portfolio-card {
    display: grid;
    grid-template-rows: 3fr 3fr;
    grid-template-columns:2fr 2fr 2fr ;
    width: 80%;
    height: 50vh;
    gap: 30px;
    row-gap: 40px;
}

.services-card > .service, .portfolio-card > .portfolio{
    background-color: #383535;
    border-radius: 15px;
    border-bottom: 3px solid #6578f3;
    padding: 15px;
}


.services-card .service {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.services-card h3 {
    color: #6578f3;
    font-size: 1.5rem;
}

.services-card i {
    font-size: 3.2rem;
    color: #6578f3;
    padding-bottom: 10px;
}

.services-card p {

    margin-top: 10px;
    color: #EEEEEE;
    text-align: center;
}

.portfolio * {
    overflow: hidden;
}
.portfolio > .c-logo {
    height: fit-content;
    width: 5rem;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

.portfolio > .c-logo i {
    font-size: 3.5rem;
    color: #b5b6be;
}


.portfolio h4 {
    margin-top: 3px;
    color: #6578f3;
}

.portfolio > h6 {
    color: antiquewhite;
    color: #b9a9a9;
}

.portfolio .par-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio p {
    width: 85%;
    text-align: justify;
    color: #EEEEEE;
}

.portfolio .to-project {
    align-self: flex-end;

}

.portfolio button {
    background-color: transparent;
    height: fit-content;
    width: fit-content;
    box-shadow: none;
    border: none;
    cursor: pointer;

}

.portfolio button i {

    color: #0724e4;
    font-size: 2rem;
}

  /*----contact & testimonials------------*/

  #contact{
    /*background-color: red;*/
    height:90vh;
    display: grid;
  }
  #contact .headings {
    margin-left: 0;
    position: relative;
    top: 70%;
    text-align: center;
    color: #0724e4;
  }

  #contact h5 {
    color: #EEEEEE;
  }
  #contact > *{
    margin-left: 3%;
  }


  #contact #testimonials{
    display: grid;
    place-self: center;
    grid-template-rows: 3fr;
    grid-template-columns: 3fr 3fr 3fr;
    width: 86%;
    height: 100%;
  }

  #testimonials > * {
    background-color: #383535;
    height: 23vh;
    width: 95%;
    border-radius: 10px;
    border-bottom: 3px solid #6578f3;
}

#testimonials .headline{
    display: flex;
    align-items: center; 
}

#testimonials .headline > .headline-text {
    text-align: justify;
}
#testimonials > .test .photo {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    margin: 20px;
    background-color: #20206d;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}

#testimonials > .test .cli-1{
    background-image: url(https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MjB8fHBvcnRyYWl0fGVufDB8fDB8fHwy);
}

#testimonials > .test .cli-2{
    background-image: url(https://images.unsplash.com/photo-1672863601285-253fc82db868?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8OHx8cG9ydHJhaXQlMjBtYWxlfGVufDB8fDB8fHwy);
}

#testimonials > .test .cli-3{
    background-image: url(https://images.unsplash.com/photo-1654110455429-cf322b40a906?q=80&w=2080&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
}

#testimonials h4 {
    color: #0724e4;
}

#testimonials h6 {
    color: #b9a9a9
}

#testimonials p {
    text-align: justify;
    padding: 10px;
    font-size: .85rem;
    width: 90;
    color: #EEEEEE;
}

  footer {
    height: 7vh;
    position: relative;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 1.75%;
    }

    footer > .items {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 86%;
        height: 100%;
        background-color: #383535;
        border-bottom: 2px solid #0724e4;
        border-radius: 10px;
        padding: 0 10px 0 10px;
    }

    footer  .social-icons {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        height: 3rem;
        width: fit-content;
        color: #b5b6be;
        font-size: 1.5rem;
        padding: 5px;
    }

    footer  .social-icons i:hover {
        scale: 1.2;
        transition: .3s;
        color: #0724e4;
        cursor: pointer;
    }

    footer  .to-gmail {

        display: flex;
        height: fit-content;
        width: fit-content;
        justify-content: center;
        align-items: center;
        gap: .9rem;
        color: #b5b6be;
        

    }

    footer  h6 {
        color: #b5b6be;
        display: none;
    }

    footer  .to-gmail i {
        font-size: 1.3rem;
        color: #0724e4;
    }

    footer  .to-gmail h3 {
        font-size: 1.3rem;
        color: #b5b6be;
    }
    footer  .to-gmail h3:hover {
        color: #0724e4;
        transition: .3s;
        cursor: pointer;
    }

    footer  .to-gmail i:hover{
        scale: 1.1;
    }
  

@media only screen and (max-width: 575px) {

    html::-webkit-scrollbar { 
        display: none;  /* Safari and Chrome */
    }
    html {
        font-size: 0.875rem; /* Reduces the base font size for all text */
        overflow: -moz-hidden-unscrollable;
    }

    h1 {
        font-size: 1.5rem; /* 24px */
    }

    h2 {
        font-size: 1.25rem; /* 20px */
    }

    h3 {
        font-size: 1.125rem; /* 18px */
    }

    h4 {
        font-size: 1rem; /* 16px */
    }

    h5 {
        font-size: 0.875rem; /* 14px */
    }

    h6 {
        font-size: 0.75rem; /* 12px */
    }

    nav #ham-menu {
        display: block;
        color: #EEEEEE;
        position: fixed;
        right: 5%;
        font-weight: bolder;
        font-size: 1.6rem;
    }
    header {
        padding: 2%;
    }
/*
    #nav-bar {
        position: fixed;
        left: -100vw;
        align-items: center;
        justify-content: space-around;
        top: 5.7%;
        width: 100vw;
        height: 100vh;
        z-index: 1000;
        transition: 1s;
        gap: 0;
        background-color: #89CFF3;

    }

    #navbar.nav-active {
        left: 0 !important;
        transition: 1s !important;
    }
*/

#nav-bar {
    position: fixed;
    left: -100vw;
    top: 5.7%;
    width: 100vw;
    height: 100dvh;
    background-color: #202020;
    transition: 1s;
    flex-direction: column;
    justify-content: space-evenly;
}

#nav-bar.nav-active {
    left: 0 !important;
}

    



    #home {
        background-image: url(/assets/images/about.jpg);
        background-position: top;
        background-repeat: no-repeat;
        height: 100dvh;
    }

    #home .intro {
        position: relative;
        top: 75%;
        height: auto;
        left: 3%;
    }

    #home .intro h4 {
        color:  #6578f3;
        font-size: 1.25rem;
        line-height: normal;
        letter-spacing: 1.4px;
    }

    #home .intro h2 {
        color: #EEEEEE;
        font-size: 1.75rem;
        margin: 2px 0px 2px 0px ;
    }

    #home .intro  button, #about .main > .content .cta-about{

        height: 2rem;
        width: 7rem;
        font-size: 1rem;
        border-radius: 5px;
        padding: 2px;
    }

    #home .intro > .right {
        margin-left: 2%;
    }


    /* About Section Adjustments */
    #about .main {
        display: block;
        position: relative;
        top: 10%;
        left: 3%;
        width: 100vw;
        height: 100dvh;
        padding: 0;
        margin: 0;
    }

    #about .main .photo {
        display: none;
    }

    #about .main > .content {
        width: 100%;
        margin-left: 0;
        height: 100%;
    }

    #about > .main .content > .about-desk{
        display: none;
    }
    #about .main > .content h2 {

        margin-top: 5px;
        font-size: 1.75rem;
    }


    #about .main > .content .image{

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        justify-content: space-between;
        width: 90%;
    }
     #about .main > .content img {
        width: 200px;
        border-radius: 25%;
        margin-bottom: 5%;
    }



    #about .main > .content > p {
        width: 90%;
    }

    #about .main > .content .skills-list {
        display: flex;
        flex-direction: column;
        margin-top: 8px;
    }

    #about .main > .content .skills-list ul {
        flex-direction: column;
        margin-top: 0;  
    }




    #about .main > .content .skills-list ul > li {
        font-size: 1rem;
        margin-top: 10px;
        margin-bottom: 0;
    }

    #about .main > .content .skills-list .shorten {
        display: none;
    }


    #about .main > .content .cta-about {
        position: relative;
        top: .9%;
        border-radius: 10px;
    }

    /* Hide the table in the about section */
    #about .main > .content table {
        display: none;
    }

    /*services section*/

    #services, #portfolio {
        height: fit-content;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    #services .services-intro, #portfolio > .portfolio-intro {
        position: relative;
        top: 120px;
        text-align: center;
        margin-left: 3%;
    }

    #services > .services-div > .services-card, #portfolio > .portfolio-div > .portfolio-card{
        margin-top: 40%;
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        height: 100%;
        width: 90%;
        margin-bottom: 30%;
    }

    #services .services-card > .service, #portfolio  .portfolio-card > .portfolio{
        height: fit-content;
  
    }

    .portfolio-card p {
        width: 80%;
        text-align: justify;
    }

    .portfolio-card .par-button {
        display: flex;
        justify-content: space-between;
    }

    /*----contact & testimonials------------*/

    #contact .headings{

        top: 50%;
    }
    #contact #testimonials {
        grid-template-columns: 1fr; /* Cada cartão ocupa 100% da largura */
        grid-template-rows: auto; /* Altura ajusta automaticamente */
         /* Espaçamento vertical entre os cartões */
    }

    #testimonials > * {
        width: 100%; /* Ajusta o cartão para ocupar toda a largura do container */
        height: 12.5rem; /* Altura dinâmica */
        box-sizing: border-box;
        overflow: hidden;
        
    }

    #testimonials > .test .photo {
        height: 50px;
        width: 50px;
    }

    /*---footer---*/

    footer{
        height: 10%;
        padding: 5px 0 5px 0;
        margin: 0;
        border-top-right-radius: 15px;
        border-top-left-radius: 15px;
    }

    footer i {
        font-size: 1rem;
    }
    footer .social-icons{

        margin-left: 0;

    }

    footer .to-gmail {
        margin-right: 0;
    }

    footer h6{
        display: none;
    }

    footer .items {
        width: 100%;
        border-radius: 0;
    }

    /*---Interactivity with Javascript---*/
}

.cta {
    font-family: "Pacifico", sans-serif;
    cursor: pointer;
}

.cta:hover{
    scale: 1.09;
    transition: .4s;
}