:root{
    --main-color: #7F00FF;
    --text-color: #000000;
    --bg-color-01: #E6E8FA;
    --bg-color-02: #0000001a;
    --color-00: #0000001a;

    /*Extra*/
    --color-01: #999999;
    --color-02: #009539;
    --color-03: #7950f2;
    --color-04: #c00000;
    --color-05: #232323;
}

.logo:hover{
    color: #999999;
    cursor: pointer;
}

* {
    margin: 0;
    padding:0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

html{
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
}

body{
    background-color: var(--bg-color-01);
    color: var(--text-color);
}   

header{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    padding: 1.1rem;
    background: rgba(230, 232, 250, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid rgba(127, 0, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /*border: solid 1px var(--color-02);*/
}
header p{
    margin: 0 0 0 2.4rem;
    color: var(--color-01);
}
.logo{
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight:700;
    cursor: default;
    margin-left: 2rem;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.02em;
}
.nav-responsive{
    display: none;
    position: absolute;
    top:100%;
    left:0;
    width:100%;
    padding:1rem;
    background-color:var(--bg-color-01);
}
.nav a, .nav-responsive a{
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 0.5rem 1rem; /*bom pra pessoas com dificuldades de clicar na palavra*/
    transition: 0.4s;
    /*border: solid 1px var(--color-02);*/
}

.nav a:hover, .nav-responsive a:hover{
    color: var(--main-color);
}

section{
    min-height: 100vh;
    margin-top: 2rem;
    padding: 2rem 6rem 0 6rem;
}

span{
    color: var(--main-color);
}

.home, .about{
    display:flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.charging{
    width:30px;
    margin-left: 20px;
}

/*.home-img{
    border-right: solid 0.6rem;
    border-bottom: solid 0.6rem;
    border-image: linear-gradient(140deg, transparent 50%, var(--main-color)) 1;

}*/
/*.about-img{
    border-left: solid 0.6rem;
    border-bottom: solid 0.6rem;
    border-image: linear-gradient(220deg, transparent 50%, var(--main-color)) 1;
}*/

.home-img img, .about-img img{
    width: 100%;
    margin: 0;
    padding:0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 20px 60px rgba(127, 0, 255, 0.3);
    transition: all 0.5s ease;
    /*border: solid 1px green;*/
}

.home-img img:hover, .about-img img:hover{
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    box-shadow: 0 25px 70px rgba(127, 0, 255, 0.4);
    transform: translateY(-5px);
}

.home-content, .about-content{
    width:45%;
    margin: 0rem 2rem;
}

.home-content h3, .about-content h3{
    font-weight: 600;
    font-size: 2rem;
    font-family: "Space Grotesk", sans-serif;
}
  
.home-content h1, .about-content h1{
    font-weight: 800;
    line-height: 1.3;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.03em;
    /*font-size: 2.7rem;TESTE*/
}

.home-content p, .about-content p{
    margin-top: 1.3rem;
    text-align: justify;
    font-size: 1.4rem;
    opacity: 85%;
}

.services h2,
.portfolio h2,
.contact h2{
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.services-container{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}
.services-box{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 25rem;
    margin-bottom: 1rem;
}

.services-container .services-box{
    padding: 2rem 1rem 2.5rem;
    border-radius: 1.2rem;
    text-align: center;
    border: solid 0.15rem var(--bg-color-01);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(230, 232, 250, 0.95) 100%);
    transition: 0.5s ease;
}

.services-container .services-box:hover{
    background: linear-gradient(135deg, rgba(127, 0, 255, 0.05) 0%, rgba(230, 232, 250, 1) 100%);
    transform: scale(1.01);
    border: solid 0.15rem var(--main-color);
    box-shadow: 0 10px 30px rgba(127, 0, 255, 0.2);
}

.services-box i{
    font-size: 4.3rem;
    color: var(--main-color);
}

.services-box h3{
    font-size: 1.5rem;
}

.services-box p{
    margin: 0.5rem;
    letter-spacing: 0.1rem;
    /* n linhas .... */
    display: -webkit-box;
    -webkit-line-clamp:4;
    -webkit-box-orient:vertical;
    overflow:hidden;
    text-overflow: ellipsis;
}
.portfolio{
    background-color: var(--bg-color-02);
}

.portfolio-container{
    display: grid;
    gap: 1.2rem;
}

.portfolio-box{
    position: relative;
    border-radius: 0.6rem;
    box-shadow: 0 0 0.6rem var(--bg-color-01);
    overflow: hidden;
    display: flex;
}

.portfolio-box img{
    width: 100%;
    transition: 0.5s ease;
}

.portfolio-box img:hover{
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer{
    position: absolute;
    bottom:0;
    left:0;
    width:100%;
    height:100%;
    background: linear-gradient(135deg, rgba(127, 0, 255, 0.9) 0%, rgba(157, 78, 221, 0.95) 100%);
    display: flex;
    color: var(--bg-color-01);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.3rem;
    transform: translateY(30rem);
    transition: 0.5s ease;
}
.portfolio-box:hover .portfolio-layer{
    transform: translateY(0);
}

.portfolio-layer h4{
    font-size: 1.8rem;
}

.portfolio-layer a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: var(--bg-color-01);
    border-radius: 50%;
}

.portfolio-layer a i{
    font-size: 1.2rem;
    color: var(--text-color);
}

form{
    max-width:45rem;
    margin: 0 auto;
    text-align: center;

    /*border: solid 1px var(--color-03);*/
}
.contact{
    margin-top: 5rem;
}

form .input-box{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

    /*border: solid 1px var(--color-03);*/
}

form .input-box input, form textarea{
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--bg-color-02);
    border-radius: 0.5rem;
    margin: 0.4rem 0;
    /*border: solid 1px var(--color-04);*/
}

form textarea{
    resize: none;
}

footer{
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 1.2rem;
    background-color: var(--bg-color-01);
}

.social-media img{
    width: 3.5rem;
    cursor:pointer;
}
.or{
    color: var(--text-color);
}
.orA{
    color: var(--main-color);
    font-size: 1.3rem;
    
}
.orA:hover{
    border-bottom: solid 1px;
}
.social-media a{
    display: inline-flex;
    justify-content:center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, rgba(127, 0, 255, 0.1) 0%, transparent 100%);
    border: solid 0.15rem var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 1.8rem 0.5rem;
    transition: 0.5s ease;
}

.social-media a:hover{
    background: linear-gradient(135deg, var(--main-color) 0%, rgba(127, 0, 255, 0.8) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(127, 0, 255, 0.4);
}
/* Button */
.btn{
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: linear-gradient(135deg, #7F00FF 0%, #9D4EDD 100%);
    border-radius: 2rem;
    color: white;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: 0.3s ease;
    margin-top: 1.2rem;
    box-shadow: 0 4px 15px rgba(127, 0, 255, 0.3);
}

.showImagesButton{
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: linear-gradient(135deg, #7F00FF 0%, #9D4EDD 100%);
    border-radius: 2rem;
    color: white;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: 0.3s ease;
    margin-top: 1.2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(127, 0, 255, 0.3);
}

.contactbtn{
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: linear-gradient(135deg, #7F00FF 0%, #9D4EDD 100%);
    border-radius: 2rem;
    color: white;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: 0.3s ease;
    margin-top: 1.2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(127, 0, 255, 0.3);
}

.showImagesButton:hover{
    box-shadow: 0 6px 25px rgba(127, 0, 255, 0.5);
    background: linear-gradient(135deg, #9D4EDD 0%, #7F00FF 100%);
    color: white;
    cursor: pointer;
    transform: translateY(-2px);
}

.contactbtn:hover{
    box-shadow: 0 6px 25px rgba(127, 0, 255, 0.5);
    background: linear-gradient(135deg, #9D4EDD 0%, #7F00FF 100%);
    color: white;
    cursor: pointer;
    transform: translateY(-2px);
}

.btn:hover{
    box-shadow: 0 6px 25px rgba(127, 0, 255, 0.5);
    background: linear-gradient(135deg, #9D4EDD 0%, #7F00FF 100%);
    color: white;
    cursor: pointer;
    transform: translateY(-2px);
}

/* Menu hamburguer*/

.menu-hamburguer{
    display: none;
    cursor: pointer;
}

.bar1, .bar2, .bar3{
    width: 2rem;
    height: 0.3rem;
    background-color: var(--text-color);
    margin: 0.4rem 0;
    transition: 0.3s ease;
}

.change .bar1{
    transform: translate(0,0.65rem) rotate(-45deg);

}

.change .bar2{
    opacity: 0;
}

.change .bar3{
    transform: translate(0, -0.65rem) rotate(45deg);
}

/* media queries */

/*Extra Small (xs): Smartphone portrait*/
@media (min-width: 0px){
    .menu-hamburguer{
        display: block;
    }
    .nav{
        display:none;
    }
    .nav-responsive a{
        display: block;
        font-size: 1.2rem;     
        margin-left: 1rem; 
    }
    section{
        padding: 6rem 2.5rem;
    }
    .home, .about{
        flex-direction: column;
        gap: 1.2rem;
    }
    .home-img, .about-img{
        width: 40%;
        max-width:80%;
    }
    .home-content, .about-content{
        width: 100%;
    }
    .home-content div{
        text-align: center;
    }
    .about{
        text-align: center;
    }
    .home-content h1, .about-content h1{
        font-size: 2.2rem;
        font-weight: 700;
        line-height: 1.3;
    }
    .services-container{
        flex-direction: column;
        align-items:center;
    }
    .services-box{
        width: 100%;
    }
    .imagesContainer {
        display: flex;
        flex-wrap: wrap;
        padding: 10px 0px 10px 0px;
        gap: 10px;
        width:100%;
        align-items: center;
        justify-content: center;
    }
    .imagesContainer img {
        width: 20px;
        margin: 0px;
        transition: transform 0.2s;
    }
    #imagesContainer img, #imagesContainer2 img, #imagesContainer3 img {
        max-width: 60px;
    }
    .portfolio-layer{
        font-size: 0.85rem;
    }
    .about-content p, .home-content p{
        font-size: 0.9rem;
    }
    .orA{
        font-size: 0.9rem;
    }
    .about-content h1, .home-content h1{
        font-size: 1.2rem;
    }
    .about-content h3, .home-content h3{
        font-size: 1.3rem;
    }
}
/*Small (sm): Smartphone landscape*/
@media (min-width: 576px){
    .home-img, .about-img{
            width: 65%;
            max-width:65%
        }
        .services-box{
            width:70%;
        }
        .portfolio-container{
            grid-template-columns: auto;
        }
        #imagesContainer img, #imagesContainer2 img, #imagesContainer3 img {
            max-width: 100px;
        }
        .imagesContainer{
            flex-direction: column;
        }
}
/*Medium (m): Tablet*/
@media (min-width: 768px){
    .menu-hamburguer{
        display: none;
    }
    .nav{
        display:block;
    }
    .nav-responsive, .nav-responsive a{
        display: none;
    }
    .home, .about{
        flex-direction: row;
        justify-content: space-evenly;
    }
    .home-img, .about-img{
        max-width:35%;
    }
    .home-content, .about-content{
        width: 50%;
    }
    .services-box{
        width: 60%;
        margin-bottom: 2rem;
    }
    .portfolio-container{
        grid-template-columns: auto auto;
    }
    form .input-box input{
        width: 49%;
    }
    #imagesContainer img, #imagesContainer2 img, #imagesContainer3 img {
        max-width: 120px;
    }
    .imagesContainer{
        flex-direction: row;
    }
    .about-content p, .home-content p{
        font-size: 1.1rem;
    }

}
/*Large (lg): Notebook*/
@media (min-width: 992px){
    .home-img, .about-img{
        max-width:35%;
    }
    .services-container{
        flex-direction:row;
        gap: 1.2rem;
    }
    .nav{
        display:block;
    }
    #imagesContainer img, #imagesContainer2 img, #imagesContainer3 img {
        max-width: 140px;
    }
}
/*Extra Large (xl): Desktop*/
@media (min-width: 1200px){
    .home-img, .about-img{
        max-width:25%;
    }
    .home-content h1{
        font-size: 2.7rem;
    }
    .home-content h3{
        font-size: 2rem;
    }
    .portfolio-container{
        grid-template-columns: auto auto auto;
    }
    .nav{
        display:block;
    }
    #imagesContainer img, #imagesContainer2 img, #imagesContainer3 img {
        max-width: 150px;
    }
}

/* specials buttons */

#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: var(--color-06);
    color: var(--text-color);
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    z-index:1000;
}

#scrollToTopBtn:hover {
    background-color: var(--main-color);
    color: white;
    transform: translateY(-5px);
}

#scrollToTopBtn:active {
    transform: translateY(1px);
}

#contactMeBtn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--color-06);
    color: var(--text-color);
    border: none;
    padding: 20px 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    z-index: 1000;
}

#contactMeBtn i {
    font-size: 24px;
}

#contactMeBtn:hover {
    background-color: var(--main-color);
    transform: translateY(-5px);
    color: white;
}

#contactMeBtn:active {
    transform: translateY(1px);
}

/* tecnologias */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Initially hidden */
    backdrop-filter: blur(10px); /* Blur effect */
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    justify-content: center;
    align-items: center;
}

.imagesContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px; /* Space between images */
    max-width: 90%; /* Maximum width */
    max-height: 90%; /* Maximum height */
    overflow: auto; /* Scroll if necessary */
    padding: 10px;
}

.imagesContainer img {
    max-width: 200px;
    width: 100%;
    height: auto;
    cursor: pointer;
    margin:15px;
}

.imagesContainer img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

@keyframes blink {
    0%, 49%, 100% {
        opacity: 1;
        background-color:#009539;
        border-radius: 50%;
        color: var(--bg-color-01);
        border: solid 1px #009539;
    }
    50% {
        opacity: 0;
    }
}

.blink {
    animation: blink 0.9s infinite;
}