/*GOOGLE FONTS*/
@import url('https://fonts.googleapis.com/css2?family=PT+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');

/*VARIABLES CSS*/
:root {
    --header-height: 3rem;
    --font-semi: 300;
    --font-full: 600;
}

/*COLORS*/
:root {
    --first-color: rgba(255, 195, 205, 0.808);
    --second-color: rgb(32, 32, 32); 
}

/*FONTS*/
:root {
    --body-font: 'Poppins', sans-serif;
    --big-font-size: 2rem;
    --h2-font-size: 1.25rem;
    --normal-font-size: 1rem;
}

@media screen and (min-width:768px){
    :root{
        --big-font-size: 3.5rem;
        --h2-font-size: 2rem;
        --normal-font-size: 1.2rem;
    }
}

/*MARGINES*/
:root{
    --mb-1: 0.5rem;
    --mb-2: 1rem;
    --mb-3: 1.5rem;
    --mb-4: 2rem;
    --mb-5: 2.5rem;
    --mb-6: 3rem;
}

/*z-INDEX*/
:root{
   --z-back: -10;
   --z-normal: 1;
   --z-tooltip: 10;
   --z-fixed: 100; 
}


/*BASE*/
*,::before,::after{
    box-sizing: border-box; 
}
html{
    scroll-behavior: smooth;
}
body{
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--second-color);
}
h1,h2,p{
    margin: 0;
    
}
ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
a{
    text-decoration: none;
    font-weight: lighter;
}
img{
    max-width: 100%;
    height: auto;
    display: block;
}

/*CLASS CSS*/

.section-title{
    position:relative;
    font-size: var(--h2-font-size);
    color: var(--first-color);
    margin-top: var(--mb-2);
    margin-bottom: var(--mb-4);
    text-align: center;
}
.section-title::after{
    position: absolute;
    content: "";
    width: 64px;
    height: 0.18rem;
    left: 0;
    right: 0;
    margin: auto;
    top: 2rem;
    background-color: var(--first-color);
}
.section{
   padding-top: 3rem;
   padding-bottom: 2rem;
}

/*LAYOUT*/
.bd-grid{
    max-width: 1024px;
    display: grid;
    grid-template-columns: 100%;
    grid-column-gap: 2rem;
    width: calc(100% - 2rem);
    margin-left: var(--mb-2);
    margin-right: var(--mb-2);
}
.l-header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color:var(--second-color);
    box-shadow: 0 1px 4px rgba(146, 161, 176, .15);
}

/*NAV*/
.nav{
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: var(--font-semi);
}
@media screen and (max-width: 768px){
    .nav__menu{
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: 100%;
        padding: 2rem;
        background-color: var(--second-color);
        transition: .5s;
    }
    .nav__lang{
        color: white;
        font-size: 0.8rem;
        font-weight: var(--font-full);
        cursor: pointer;
        padding-left: 300px;
    }

    .nav__resume{
        color: white;
        size: 50rem;
        cursor: pointer;
    }
}
.nav__item{
    margin-bottom: var(--mb-4);
}

.nav__link{
    position: relative;
    color: white;
}
.nav__link:hover{
    position: relative;
}
.nav__link:hover::after{
    position: absolute;
    content: "";
    width: 100%;
    height: 0.18rem;
    left: 0;
    top: 2rem;
    background-color: var(--first-color);
}
.nav__logo{
    color:white;
    font-size: 1rem;
    font-weight: var(--font-full);
    cursor: pointer;
}
.nav__lang{
    color: white;
    font-size: 1rem;
    font-weight: var(--font-full);
    cursor: pointer;
}

.nav__resume{
    color: white;
    size: 50rem;
    padding-left: 50px;
    cursor: pointer;
}
.nav__lang:hover{
    color: var(--first-color);
}

.nav__resume:hover{
    color: var(--first-color);
}
.menu__icon{
    color: white;
    padding-top: 7px;
    cursor: pointer;
}
.menu__icon:hover{
    color: var(--first-color);
}

/*ACTIVE MENU*/
.active::after{
    position: absolute;
    content: "";
    width: 100%;
    height: 0.18rem;
    left: 0;
    top: 2rem;
    background-color: var(--first-color);
}

/*SHOW MENU*/
.show{
    right: 0;
}


/*HOME*/
.animated-text{
    position: relative;
    height: 70px;
    overflow: hidden;
}
.animated-text h2{
    color: var(--first-color);
    font-size: 3em;
    font-weight: 700;
    line-height: 70px;
    letter-spacing: 1px;
}

.animated-text h2:nth-child(1){
    animation: text-move 15s infinite;
}
@keyframes text-move{
    0%{
        margin-top: 0;
    }
    25%{
        margin-top: -70px;
    }
    50%{
        margin-top: -140px;
    }
    75%{
        margin-top: -70px;
    }
    100%{
        margin-top: 0;
    }
}

.home{
    height: calc(100vh - 3rem);
    row-gap: 0.5rem;  
}
.home__data{
    align-self: center;

}
.home__title{
    font-size: var(--big-font-size);
    margin-bottom: var(--mb-1);
    text-shadow: 0 4px 4px rgba(14,36,49,.20);
}
.home__title-color{
    color: var(--second-color);
}
.home__social{
    display: flex;
    flex-direction: column;
}
.home__social-icon{
    width: max-content;
    font-size: 2rem;
    color: var(--second-color);
    padding-right: 1em;
}
.home__social-icon:hover{
    color: var(--first-color);
}
.home__img{
    position: absolute;
    width: 350px;
    padding-top: 250px;
    padding-left: 60px;
    right: 15%;
}

@media screen and (max-width: 420px){
    .home__img{
        position: absolute;
        width: 350px;
        padding-top: 300px;
        right: 5%;
    }
    .nav__lang{
        padding-left: 200px;
    }
}

/*BUTTONS*/
.button{
    display: inline-block;
    background-color: var(--first-color);
    color: white;
    padding: .50rem 1.5rem;
    font-weight: var(--font-semi);
    border-radius: .5rem;
}
.button:hover{
   box-shadow: 0 10px 36px rgba(0,0,0,.15); 
}

/*ABOUT*/
.about__container{
    row-gap: 2rem;
    text-align: center;
}
.about__subtitle{
    margin-bottom: var(--mb-2);
    color: var(--second-color);
    padding-left: 20px;
    padding-right: 20px;
}
.about__text{
  font-weight: var(--font-semi);
  margin-bottom: var(--mb-2);
  padding-left: 20px;
  padding-right: 20px;
}
.about__img{
    justify-self: center;
}
.about__img img{
    width: 500px;
    border-radius: .5rem;
}

/*SKILLS*/
.skills__container{
    row-gap: 2rem;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}
.skills__subtitle{
    margin-bottom: var(--mb-2);
}
.skills__text{
    margin-bottom: var(--mb-4);
}
.skills__data{
    display:flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    font-weight: var(--font-full);
    padding: .5rem 1rem;
    margin-bottom: var(--mb-4);
    border-radius: .5rem;
    transition: 0.5s;
    box-shadow: 0 4px 25px rgba(14,36,49,.15);
}

.skills__data:hover{
    transform: scale(1.08);
}
.skills__icon{
    font-size: 2rem;
    margin-right: var(--mb-2);
    color: var(--first-color);
}
.skills__names{
    display: flex;
    align-items: center;
}
.skills__bar{
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: var(--first-color);
    height: .25rem;
    border-radius: .5rem;
    z-index: var(--z-back);
}
.skills__html{
    width: 70%;
}
.skills__css{
    width: 70%
}
.skills__py{
    width: 85%
}
.skills__js{
    width: 40%
}
.skills__java{
    width: 85%
}
.skills__react{
    width: 35%
}
.skills__ms{
    width: 90%
}
.skills__cplusplus{
    width: 50%
}

/*PROJECTS*/
.projects-container{
    text-align: center;
    padding-left: 30px;
    padding-right: 30px;
}
.blog-card{
    position: relative;
    height: 960px;
    margin: auto;
    background: white;
    border-radius: 0.5rem;
    transition: 0.5s;
    box-shadow: 0 4px 25px rgba(14,36,49,.15);
}

.blog-card .inner-part{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
    height: 100%;
    position: absolute;
    padding-bottom: 70px;
}
.inner-part .img{
    height: 360px;
    width: 360px;
    overflow: hidden;
    flex-shrink: 0;
}
.img img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    opacity: 0;
    transition: .6s;
}
#tap-0:checked ~ .inner-part .img-0,
#tap-1:checked ~ .inner-part .img-1,
#tap-2:checked ~ .inner-part .img-2,
#tap-3:checked ~ .inner-part .img-3,
#tap-4:checked ~ .inner-part .img-4{
    opacity: 1;
    z-index: 100;
    transition-delay: .2s;
}
.project-content{
    padding-left: 10px;
    padding-right: 20px;
    width: 100%;
    text-align: left;
    opacity: 0;
    transition: .6s;
    display: block;
}
#tap-0:checked ~ .inner-part .content-0,
#tap-1:checked ~ .inner-part .content-1,
#tap-2:checked ~ .inner-part .content-2,
#tap-3:checked ~ .inner-part .content-3,
#tap-4:checked ~ .inner-part .content-4{
    opacity: 1; 
    z-index: 1;
    transition-delay: .3s;
}
.project-content span{
    display: block;
    color: var(--first-color);
    margin-bottom: 10px;
    font-weight: var(--font-full);
}
.project-content .title{
    font-size: var(--h2-font-size);
    font-weight: var(--font-full);
    margin-bottom: 10px;
}
.project-content .text{
    font-size: smaller;
    margin-bottom: 20px;
    line-height: 1.5em;
    text-align: justify;
}

.project-content a {
    display: inline-flex;
    padding: 10px 15px;
    border: none;
    font-size: small;
    border-radius: 1.5rem;
    background: var(--first-color);
    font-family: var(--body-font);
    box-shadow: 0 4px 25px rgba(14,36,49,.07);
    color: var(--second-color);
}
.project-content a:hover{
    background: var(--second-color);
    color: white;
}

.sliders {
    position: relative;
    top: 93%;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
}
.sliders .tap{
    position: relative;
    height: 10px;
    width: 10px;
    background: rgba(128, 128, 128, 0.11);
    border-radius: 1rem;
    display: inline-flex;
    margin: 0 3px;
    cursor: pointer;
}
.sliders .tap:before{
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    height: 100%;
    width: -100%;
    background: var(--first-color);
    border-radius: 1rem;
    transform: scaleX(0);
    transition: transform .6s;
}
.sliders .tap:hover:before{
    transform: scaleX(1);
    width: 100%;
}
#tap-0:checked ~ .sliders .tap-0:before,
#tap-1:checked ~ .sliders .tap-1:before,
#tap-2:checked ~ .sliders .tap-2:before,
#tap-3:checked ~ .sliders .tap-3:before,
#tap-4:checked ~ .sliders .tap-4:before{
    transform: scaleX(1);
    width: 100%;
}
input{
    display: none;
}

@media screen and (max-width: 450px){
    .inner-part .img{
        height: 260px;
        width: 260px;
    }
}

/*INVOLVEMENT*/
.involve-icon{
    padding: 30px;
    align-self: center;
    transition: transform 0.5s ease;
}

.card:hover .involve-icon{
    transform: translateY(-10px);
}


/*AWARD*/
.awards .content{
    display:flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    margin-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
}
.card{
    background: white;
    width:340px;
    margin:10px;
    padding: 25px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 0.5rem;
    box-shadow: 0 4px 25px rgba(14,36,49,.15);
}

.awards-icon{
    color: var(--first-color);
    font-size: 5rem;
    text-align: center;
    transition: transform 0.5s ease;
}

.card:hover .awards-icon{
    transform: translateY(-10px);
}

.info{
    text-align: center;
}

.info h3{
    color: var(--second-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 10px; 
}
.info p{
    font-size: medium;
}

.cert {
    display: inline-flex;
    padding: 10px 15px;
    border: none;
    font-size: small;
    border-radius: 1.5rem;
    background: var(--first-color);
    font-family: var(--body-font);
    box-shadow: 0 4px 25px rgba(14,36,49,.07);
    color: var(--second-color);
}

.cert:hover{
    background: var(--second-color);
    color: white;
}
/*FOOTER*/

.footer{
    background-color: var(--second-color);
    color: white;
    text-align: center;
    font-weight: var(--font-full);
    padding: 2rem 0;
}
.footer__title{
    font-size: 2rem;
    margin-bottom: var(--mb-4);
}
.footer__social{
    margin-bottom: var(--mb-4);
}
.footer__social p {
    color: white;
}
.footer__social p a{
    color: var(--first-color);
}
.footer__icon{
    font-size: 1.5rem;
    color: white;
    margin: 0 var(--mb-2);
}
.footer__icon:hover{
    color: var(--first-color);
}
.col-sm-8{
    font-weight: var(--font-semi);
}

/*MEDIA QUERIES*/
@media screen and (min-width: 768px){
    body{
        margin: 0;
    }
    .section{
        padding-top: 4rem;
        padding-bottom: 3rem;
    }
    .section-title{
        margin-bottom: var(--mb-6);
    }
    .section-title::after{
        width: 80px;
        top: 3rem;
    }
    .nav{
        height: calc(var(--header-height) + 1rem);
    }
    .nav__list{
        display: flex;
        padding-top: 0;
    }
    .nav__logo{
        padding-right: 150px;
    }
    .nav__item{
        margin-left: var(--mb-6);
        margin-bottom: 0;
    }
    .nav__toggle{
        display: none;
    }
    .nav__link{
        color:white;
        font-size: 1rem;
    }
    .nav__lang{
        color: white;
        font-size: 1rem;
        font-weight: var(--font-full);
        cursor: pointer;
    }
    .nav__lang:hover{
        color: var(--first-color);
    }
    .home{
        height: 100vh;
    }
    .home__data{
        align-self: flex-end;
    }
    .home__social{
        padding-top: 0;
        flex-direction: row;
        align-self: flex-end;
    }
    .home__social-icon{
        margin-bottom: 0;
        margin-right: var(--mb-4);
    }
    .home__img{
        width: 400px;
        right: 10%;
        bottom: 15%;
    }
    .about__container {
        grid-template-columns: repeat(2,1fr);
        align-items: center;
        text-align: initial;
    }
    .about__img img{
        width: 400px;
    }
    .blog-card{
        height: 860px;
    }
    .project-content{
        padding-left: 20px;
        padding-right: 20px;
    }
    .inner-part .img{
        height: 360px;
        width: 360px;
    }
    .sliders .tap{
        height: 15px;
        width: 15px;
    }
    .sliders{
        left: 50%;
        top: 93%;
    }
}

@media  screen and  (min-width: 1024px){
    .bd-grid{
        margin-left: auto;
        margin-right: auto;
    }
    .home__img{
        width: 500px;
        right: 10%;
    }
    .blog-card{
        height: 560px;
        width: 1000px;
    }
    .blog-card .inner-part{
        flex-wrap: nowrap;
        padding-left: 40px;
    }
    .inner-part .img{
        height: 360px;
        width: 360px;
    }
    .sliders .tap{
        height: 15px;
        width: 15px;
    }
    .sliders{
        left: 50%;
        top: 90%;
    }
    .project-content{
        padding-left: 40px;
    }
}