@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');



html{
    box-sizing: border-box;
    --black-color: black;
    --light-color: white;
    --box-color: rgba(227, 227, 227, 0.548);
    --small-screen-menubar-color: rgb(205 205 205);
    
    
}

@media(prefers-color-scheme: dark){
    html{
        --black-color: white;
        --light-color: #3b3b3b;
        --box-color: rgba(227, 227, 227, 0.548);
        --small-screen-menubar-color: rgb(32 32 32);
        
        
    }
}

*, *::before, *::after{
    box-sizing: inherit;
    padding:0;
    margin: 0;
    scroll-behavior: smooth;
}
body{
    font-family: 'Space Grotesk', sans-serif;
    height: 2000px;
    align-items: center;
    overflow-x: hidden;
    background-color: var(--light-color);
    color: var(--black-color);
    
}
/* .container1{
    transform: translateX(50%);
    opacity: 0;
    transition: 1.2s;
} */
/* .container2{
    transform: translateX(-50%);
    opacity: 0;
    transition: 1.2s;
} */
.container-show{
    transform: translateX(0%);
    opacity: 1;
}
a{
    text-decoration: none;
    color: var(--black-color);
}
.section-header{
    text-align: center;
    padding-bottom: 2rem;
}

.menu{
    text-align: center;
}

.menu a:hover{
    transition: 0.8s;
    color: #00c885;
}

.logo img{
    width: 15rem;
    height: 3rem;
}
.logo{
    text-align: center;
}
.textLogo{
    color: #4cf6bd;
}


.menu-wraper{
    z-index: 10;
    position: fixed;
    bottom:-13rem;
    left: 0;
    transition: 0.8s;
    background-color: var(--small-screen-menubar-color);
}
.menu-icon{
    position: absolute;
    top: 0.6rem;
    right: 2rem;
}
.close-menu{
    display: none;
}

@media screen and (min-width: 768px){
    .menu-wraper{
        position: static;
        padding-block:0.6rem;
        border-radius: 0px;
        background-color: transparent;
    }
    .menu{
        text-align: end;
    }

}


/* hero section */

.social-list{
    height: 10rem;
    margin-block: auto;

}
.social-list i{
    font-size: 1.7rem;
    transition: color 1.8s;
}
.social-list i:hover{
    color: #00c885;
}


.hi-btn{
    width: 10rem;
}

.profile-pic {
    text-align: end;
    max-width: 100%;
    
}
.profile-pic img{
    max-width: 300px;
    max-height: 300px;
    min-width: 240px;
    min-height: 240px;
    /* border: 10px solid var(--black-color); */
    animation-name: profile-animation;
    animation-duration: 8s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-delay: 1s;

}
@keyframes profile-animation {
    0%{
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }
    50%{
        border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
    }
    100%{
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }
}

@media screen and (max-width: 767px){
    .social-list{
        height: 1rem;
        width: 13rem;
        margin-inline: auto;
    
    }
    .intro{
        order: 3;
    }
    .profile-pic {
        padding-top: 2rem;
        text-align: center;

    }
    .profile-pic img{
        order: 2;
    
    }


}

/* about section */

.about-profile{
    /* overflow: hidden; */
    position: relative;
    text-align: center;
    /* margin-bottom: 2rem; */
    min-height: 20rem;
    /* padding-inline: 1rem; */
    /* padding-block: 4rem; */
    background-image: url(logos/peralax.jpg);
    background-position: bottom;
    background-size: cover;
    background-repeat: no-repeat;
    
}
.about-header{
    /* margin-top: 1rem; */
    position: sticky;
    width: 100%;
    color: #ffffff;
    top: 4%;
}
.mask-img{
    position: absolute;
    inset: 0;
    /* background-color: rgba(198, 30, 30, 0.607); */
    -webkit-mask: url(logos/peralax-mask.png);
    -webkit-mask-position: bottom;
    -webkit-mask-size: cover;
    mask: url(logos/peralax-mask.png);
    mask-position: bottom;
    mask-size: cover;

}
/* .about-profile img{
    max-width: 300px;
    max-height: 300px;
    width: 220px;
    height: 220px;
    border-radius: 5%;
    position: static;
    z-index: 1;
}

.p-icon{
    position: absolute;
    font-size: 3rem;
    z-index: 2;
}
.p-icon1{
    top: 10%;
    left: 20%;
}

.p-icon2{
    top: 44%;
    left: 10%;
}
.p-icon3{
    top: 12%;
    left: 70%;
}
.p-icon4{
    top: 82%;
    left: 72%;
}

.p-icon5{
    top: 55%;
    left: 81%;
}
.p-icon6{
    top: 78%;
    left: 20%;
} */


.ftbtn {
    padding: 0.5rem;
    margin-right: 0.5rem;
    border: 1px solid var(--black-color);
    border-radius: 5px;
    transition: 0.8s;
}
/* .colo{
    background-color: var(--black-color);
} */

.about-info{
    position: relative;
}
.about-card-wraper {
    max-width: 100%;
    height: auto;
    z-index: 1;
    /* display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%; */
    overflow: hidden;
    display: flex;
    
    
}

.about-card{
    max-width: 100%;
    flex: 1 0 100%;

    /* display: inline; */
    /* background-color: var(--light-color); */

}

/* .about-card{
    max-height: 100%;

    
}
.child2, .child3{
    display: none;
}
.about-card p{
    padding-bottom: 0.6rem;
}
*/

#button1:checked ~ .about-card-wraper .child1{
    margin-left: -0%;
}
#button1:checked ~ .for-btn .ftbtn0{
    background-color: var(--black-color);
    color: var(--light-color);
}


#button2:checked ~ .about-card-wraper .child1{
    margin-left: -100%;

}
#button2:checked ~ .for-btn .ftbtn1{
    background-color: var(--black-color);
    color: var(--light-color);
}


#button3:checked ~ .about-card-wraper .child1{
    margin-left: -200%;

}
#button3:checked ~ .for-btn .ftbtn2{
    background-color: var(--black-color);
    color: var(--light-color);
}



@media screen and (min-width: 768px){
    /* .about-profile{
        margin-bottom: 0;
    }
    .about-profile img{
        position: absolute;
        top: 27%;
        left: 6%;
    } */

    .about-profile{
        background-image: url(logos/peralax4.jpg);
        background-position: bottom;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .mask-img{
        -webkit-mask: url(logos/peralax4-mask.png);
        -webkit-mask-position: bottom;
        -webkit-mask-size: cover;
        mask: url(logos/peralax4-mask.png);
        mask-position: bottom;
        mask-size: cover;
    }

}

/* @media screen and (min-width: 992px){

    .about-profile img{
        left: 17%;
    }

}
@media screen and (min-width: 1200px){

    .about-profile img{
        left: 21%;
    }

}

@media screen and (min-width: 1400px){

    .about-profile img{
        left: 27%;
    }

} */





/* skill section */

.skill-info{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 41%;
    column-gap: 1rem;
    overflow-x: scroll;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
}
.skill-info::-webkit-scrollbar{
    display: none;
}

.single-skill{
    background-color: var(--box-color);
    text-align: center;
    border-radius: 10px;
    scroll-snap-align: center;
}
.single-skill i{
    font-size: 4rem;
    padding-bottom: 1rem;
}
.single-skill:hover{
    background-color: var(--black-color);
    color: var(--light-color);
    transition: 0.8s;
}

@media screen and (min-width: 576px){
    .skill-info{
        grid-auto-columns: 29%;
    }


}

@media screen and (min-width: 768px){
    .skill-info{
        grid-auto-columns: 26%;
    }


}

/* service section */
.service-info{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
}
.single-service{
    padding-top: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    background-color: var(--box-color);
    border-radius: 5px;
}
.single-service i{
    font-size: 4rem;
    padding-bottom: 1rem;
}
.single-service p i{
    font-size: 15px;
    padding: none;
}

.single-service p:hover i{
    transition: 0.8s;
    color: rgb(0, 164, 139);
}


.detailed{
    width: 90%;
    /* min-width: 300px; */
    border-radius: 10px;
    position: fixed;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    display: none;
    background-color: rgb(227, 227, 227);
    color: black;
}
.show-detailed{
    display: block;
}
.detailed h5{
    padding-bottom: 1rem;
    text-align: center;
}
.detailed p{
    padding-bottom: 1rem;
    text-align: center;
}
.detailed i{
    display: block;
    text-align: end;
    font-size: 1.5rem;
    padding-bottom: 1rem;
}
.detailed ul li{
    padding-bottom: 1rem;
}

@media screen and (min-width: 576px){
    .detailed{
        width: 80%;
    }

}
@media screen and (min-width: 768px){
    .service-info{
        grid-template-columns: 1fr 1fr 1fr;
    }
    .single-service{
        padding-top: 5rem;
    }
    .detailed{
        width: 50%;
        max-width: 700px;
    }

}

/* project section */
.projects-info{
    width: 100%;
    aspect-ratio: 4/2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.single-project{
    flex: 0 0 4%;
    /* border-radius: 50px; */
    max-width: 100%;
    max-height: 100%;
    position: relative;
    display: block;
    transition: 0.8s;
}
.full-project{
    flex: 0 0 100%;
}
.to-right{
    display: none;
}
.project-open-btn {
    margin: 0.5rem;
    background-color: #ff000075;
    padding: 0.5rem;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    align-items: center;
}
.project-open-btn i{
    font-size: 1rem;
    color: #ffffff;
}
.pro-img{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    z-index: -1;
    filter: grayscale(100%);
}
.color-pro-img{
    filter: grayscale(0%);
}

.visit-site{
    display: none;
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.658);
    color: #ffffff;
    transition: 0.8s;
}
.visit-site:hover{
    background-color: rgb(0, 0, 0);
    color: #ffffff;
}
.show-visit-site-btn{
    display: block;

}
@media screen and (min-width: 768px){
    .to-bottom{
        display: none;
    }
    .to-right{
        display: block;
    }
    .projects-info{
        width: 100%;
        aspect-ratio: 4/2;
        overflow-x: scroll;
    }
    .projects-info::-webkit-scrollbar{
        display: none;
    }
    .projects-info{
        flex-direction: row;
    }
    .full-project{
        flex: 0 0 90%;
    }
}

/* footer section */
.single-footer-contact{
    text-align: center;
    background-color: var(--box-color);
    padding-block: 1rem;
    border-radius: 10px;
}
.project-form{
    background-color: var(--box-color);
    border-radius: 10px;
}
.project-form div{
    max-width: 90%;
    margin: auto;

}
.pro-label{
    font-size: 19px;

}
.project-form div textarea{
    border-radius: 5px;
    border: none;
    padding: 1rem 0.5rem;
}
.project-info-submit-btn{
    padding-block: 1rem;
    margin: auto;
    max-width: 40%;
    transition: 0.8;

}


@media screen and (min-width: 576px){
    .project-form div{
        max-width: 70%;
    }
    .pro-label{
        font-size: 20px;
    
    }
    .project-info-submit-btn{
        max-width: 35%;
    }

}




.totop{
    display: inline;
    position: fixed;
    top: 50%;
    right: 20px;
    z-index: 15;
    background-color: #535353;
    /* visibility: hidden; */
}
.totop i{
    font-size: 1.5rem;
    padding: 3px;
}





