@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,300&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Cormorant Garamond', serif;
}

:root{
    --bg-color: rgb(50, 1, 50);
    --second-bg-color: rgb(66, 2, 66);
    --text-color: #f5f5f5;
    --main-color: #00abf0; 
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

html::-webkit-scrollbar{
    width: 1.5rem;
}

html::-webkit-scrollbar-track{
    background: #444444;
}

html::-webkit-scrollbar-thumb{
    background: var(--main-color);
    border-radius: 10px;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: /* rgba(182, 50, 205, .8); */ rgb(66, 2, 66);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    transition: .3s;
}

.header.sticky{
    background: var(--bg-color);
}

.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 600;
}

.navbar a{
    text-decoration: none;
    font-size: 2rem;
    color:  var(--text-color);
    font-weight: 600;
    margin-left: 3.5rem;
    transition: .3s;
}

.navbar a:hover{
    color: var(--main-color);
}

#menu-icon{
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* HOME SECTION */
.home{
    display: flex;
    align-items: center;
    flex-direction: column;
    background: var(--second-bg-color);
    padding: 10% 9%;
}

.home-content{
    max-width: 100%;
}

.home-content h1{
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content h1 span{
    color: var(--text-color);
}

.home-content .text-animate{
    position: relative;
    width: 42.8rem;
}

.home-content .text-animate h3{
    font-size: 3.2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: .7px var(--main-color);
    background-image: linear-gradient(var(--main-color), var(--main-color));
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-position: 0 0;
    /* animation: homeBgText 6s linear infinite;
    animation-delay: 2s; */
}

.home-content .text-animate h3::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    /* border-right: 2px solid var(--main-color); */
    z-index: -1;
   /*  animation: homeCursorText 6s linear infinite;
    animation-delay: 2s; */
}

.home-content p{
    font-size: 2.3rem;
    margin: 2rem 0 4rem;
}

.btn-box{
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
}

.btn-box .btn{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    cursor: pointer;
    background: var(--main-color);
    font-size: 1.8rem;
    font-weight: 600;
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    letter-spacing: .1rem;
    color: var(--bg-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box .btn:hover{
    color: var(--main-color);
}

.btn-box .btn:nth-child(2){
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:nth-child(2):hover{
    color: var(--bg-color);
}

.btn-box .btn:nth-child(2)::before{
    background: var(--main-color);
}

.btn-box .btn::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.btn-box .btn:hover::before{
    width: 100%;
}

.home{
    margin-top: 5vh;
}

.home-sci{
    margin-top: 5rem;
    width: 160px;
    display: flex;
    gap: 20px;
}

.home-sci a{
    text-decoration: none;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.home-sci a:hover{
    color: var(--bg-color);
}

.home-sci a::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: .5s;
}

.home-sci a:hover::before{
    width: 100%;
}

.home-footer{
    width: 100%;
}

/* ABOUT SECTION */
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background: var(--second-bg-color);
    padding-bottom: 6rem;
    padding-top: 0;
    margin-top: 0;
}

.heading{
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.heading span{
    color: var(--main-color);
}

.about-img{
    position: relative;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img{
    width: 90%;
    border-radius: 50%;
    border: .2rem solid var(--main-color);
}

.about-img .circle-spin{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 110%;
    height: 110%;
    border-radius: 50%;
    border-top: .2rem solid var(--second-bg-color);
    border-bottom: .2rem solid var(--second-bg-color);
    border-left: .2rem solid var(--main-color);
    border-right: .2rem solid var(--main-color);
    animation: aboutSpinner 8s linear infinite;
}

.about-content{
    text-align: center;
}

.about-content h3{
    margin-top: 30px;
    font-size: 3rem;
}

.about-content p{
    font-size: 2.2rem;
    margin: 4rem;
}

.btn-box.btns{
    display: inline-block;
    width: 15rem;
}

.btn-box.btns a::before{
    background: var(--second-bg-color);
}

/* SERVICES */
.services {
    background: var(--bg-color);
    padding-bottom: 6rem;
}

.services .services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.service-card {
    background: var(--second-bg-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    width: 30rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 10px var(--main-color);
}

.service-card h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 2rem;
}

/* Projects Style */
.matrixContainer{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.matrix{
    position: relative;
    margin-top: 10vh;
    width: 300px;
    box-shadow: 3px 3px 6px black;
    padding: 5px;
    font-size: 2rem;
    
    @media(max-width: 800px){
        width: 60%;
    } 
}

.matrix img{
    transition: .3s ease-in;    
    width: 290px !important;
}

.matrix:hover img{
    transform: scale(1.05);
    border-radius: 10px;
}

.matrix::after{
    content: "Clique para visitar o site";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 94%;
    height: 20%;
    padding: 10px;
    font-weight: bolder;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .8);
    color: #fff;
    font-size: 25px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    pointer-events: none;
}

.matrix:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.matrix:nth-child(6) a img,
.matrix:nth-child(7) a img,
.matrix:nth-child(8) a img{
    width: 120px;
}

.matrix:hover{
    border: 1px solid whitesmoke;
    cursor: pointer;
    transition: 1s;
    animation: pulse 1s infinite;
}

.matrix a:hover{
    text-decoration: underline;
}

@keyframes pulse {
    0%{
        border-color: pink;
    }
    50%{
        border-color: palevioletred;
    }
    100%{
        border-color: purple;
    }

}  

footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10vh;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    @media(max-width: 600px){
        left: 45%;
        transform: translateX(-50%);
    }
}

footer .text-footer{
    position: relative;
    left: 6%;
}

footer ul{
    position: relative;
    display: flex;
}

footer ul li{
    position: relative;
    list-style: none;
    margin: 0 20px;
    cursor: pointer;
}

footer ul li a .icons{
    font-size: 1.5em;
    color: #222;
}

.instagram:hover{
    transition: 1s;
    background: linear-gradient(45deg, purple, #dc2743);
    border-radius: 30%;
    color: purple;
}

.whatsapp:hover{
    transition: 1s;
    background: linear-gradient(45deg, green, #25d366);
    border-radius: 50%;
    color: green;
}

.linkedin:hover{
    transition: 1s;
    background: linear-gradient(45deg, whitesmoke, white);
    border-radius: 20%;
    color: #1da1f2;
}

@media print{
    @page{
        size: portrait;
    }

    body{
        color: black;
    }

    img{
        width: 100vw;
    }
}

@media print{
    @page{
        size: landscape;
    }

    .firstContent{
        margin-bottom: -30px;
    }

    .firstTitle{
        margin-top: -30px;
    }
}

/* End of projects style */
.skills{
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--second-bg-color);
}

.skills .skills-row{
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.skills-row .skills-column{
    flex: 1 1 40rem;
}

.skills-column .title{
    font-size: 2.5rem;
    margin: 0 0 4rem;
}

.skills-box .skills-content{
    position: relative;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    padding: .5rem 1.5rem;
    z-index: 1;
    overflow: hidden;
}

.skills-box .skills-content::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.skills-box .skills-content:hover::before{
    width: 100%;
}

.skills-content .progress{
    padding: 1rem 0;
}

.skills-content .progress h3{
    font-size: 1.7rem;
    display: flex;
    justify-content: space-between;
}

.skills-content .progress .bar{
    height: 2.5rem;
    border-radius: .6rem;
    border: .2rem solid var(--main-color);
    padding: .5rem;
    margin: 1rem 0;
}

.skills-content .progress .bar span{
    display: block;
    height: 100%;
    border-radius: .3rem;
    background: var(--main-color);
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(1) .bar span{
    width: 80%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(2) .bar span{
    width: 75%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(3) .bar span{
    width: 90%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(4) .bar span{
    width: 60%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(1) .bar span{
    width: 90%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(2) .bar span{
    width: 75%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(3) .bar span{
    width: 90%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(4) .bar span{
    width: 80%;
}

.footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 15vh 10px 0;
}

.footer-text p{
    font-size: 1.8rem;
}

.footer-iconTop{
    margin: 10px 40px;
}

.footer-iconTop a{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    z-index: 1;
    overflow: hidden;
}

.footer-iconTop a::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.footer-iconTop a:hover::before{
    width: 100%;
}

.footer-iconTop a i{
    font-size: 2.4rem;
    color: var(--bg-color);
    transition: .5s;
}

.footer-iconTop a:hover i{
    color: var(--main-color);
}

/* BREAKPOINTS */
@media(max-width: 1200px){
    html{
        font-size: 55%;
    }
}

@media(max-width: 991px){
    .header{
        padding: 2rem 4%;
    }

    section{
        padding: 10rem 4% 2rem;
    }

    .home{
        padding: 10% 4%;
    }

    .footer{
        padding: 2rem 4%;
    }
}

@media(max-width: 768px){
    .header{
        background: var(--second-bg-color);
    }

    #menu-icon{
        display: block;
    }

    .navbar{
        position: absolute;
        top: 100%;
        right: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--bg-color);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        transition: .5s;
        transition-delay: .5s;
    }

    .navbar.active{
        right: 0;
        transition-delay: 0s;
    }

    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home{
        margin-top: 8vh;
        margin-bottom: -20vh;
    }

    .about-content p{
        margin-left: 0;
        width: 100%;
    }

    .service-card{
        width: 100%;
    }

    .service-card p{
        font-size: 2.5rem;
    }

    .matrix{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .matrix a{
        font-size: 2.5rem;
    }

    .matrix img{
        width: 100% !important;
        border-radius: 5px;
        box-shadow: 0 0 6px;
    }
}

@media(max-width: 520px){
    html{
        font-size: 50%;
    }

    .home-content h1{
        display: flex;
        flex-direction: column;
        margin-top: 25px;
    }
}

@media(max-width: 462px){
    .home-content h1{

        font-size: 5.2rem;
    }

    .footer{
        flex-direction: column-reverse;
    }

    .footer p{
        text-align: center;
    }
}

@media(max-width: 371px){
    .home{
        justify-content: center;
    }

    .home-content{
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .home-content h1{
        font-size: 5rem;
    }
}

/* KEYFRAMES ANIMATION */
/* @keyframes homeBgText{
    0%,
    10%,
    100%{
        background-position: -43rem 0;
    }

    65%,
    85%{
        background-position: 0 0;
    }
} */

/* @keyframes homeCursorText{
    0%,
    10%,
    100%{
        width: 0;
    }

    65%,
    78%,
    85%{
        width: 100%;
        opacity: 1;
    }

    75%,
    81%{
        opacity: 0;
    }
} */

@keyframes aboutSpinner{
    100%{
        transform: translate(-50%, -50%) rotate(360deg);
    }
}