@import url('https://fonts.googleapis.com/css2?family=Nova+Round&family=Quicksand:wght@300..700&family=Sen:wght@400..800&family=Varela+Round&display=swap');

:root{
    --bg-color:#171717;
    --bg-contacts:#0D3747a1;
    --bg-button:#494ba0;
    --bg-button-hover:#7576cf;

    --font-color:#fff;
    --font-family:"Sen", serif;
    --font-size-01:3.2rem;
    --font-size-02:1.5rem;
    --font-size-03:1.1rem; /*16px*/
    --font-size-04:1.05rem;
    --font-size-05:0.9rem;

    --status-bar:#171717;
    --status-fill:linear-gradient(to right, #595ac2 80%, #fff  100%);
}

/*cards ---------------------------- */
main{
    display:flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    margin:40px 16%;
    box-sizing:border-box;   
}
.item{
    display: flex;
}
.card{
    width:65px;
    height:430px;
    border-radius:25px;
    overflow:hidden;
    padding:10px;
    display:flex;
    align-items:end;
    margin:0px 10px;
    justify-content: space-between;
    transition:.8s cubic-bezier(.28, -0.03, 0, .99);
    border:3px rgba(255, 255, 255, 0.322) solid;
    box-shadow:0px 10px 20px -5px rgba(0, 0, 0, 0.8);
    background-clip: padding-box
}
.title-card{
    display: flex;
    flex-direction: column;
    margin-bottom:8px;
}
.title-card > span{
    display:flex;
    gap:5px;
    margin-bottom:30px;
    flex-direction: column;
    align-items: center;
    font-size:var(--font-size-03);
}
.card > .row{
    color:var(--font-color);
    flex-wrap:nowrap;
    display:flex;
    flex-direction: column;
    position: relative;
}
.desc{
    display:flex;
    display:none;
    width:100%;
    overflow:hidden;
    transition-delay:.5s;
    transition: all .5s ease-in-out;
    margin:5px;
    opacity: 0;
    flex-direction: column;
}
.desc h2{
    font-size: var(--font-size-02);
}
.desc p{
    font-size: var(--font-size-04);
    padding-right:5px;
}
.icon{
    background-color:var(--bg-button) ;
    border-radius: 50%;
    width:55px;
    height:55px; 
    display:flex;
    justify-content:center;
    align-items: center;
    transition-delay:.3s;
    padding:5px;
    transition: 0.4s ease-in-out;
    margin:0px 0px 5px 5px;
    box-sizing: border-box;
    cursor:pointer;
}
.icon .arrow{
    width:25px;
    height: 25px;
    transform:rotate(-44.7deg);
    transition: 0.4s ease-in-out;
    content:url('../img/icons/arrow-left.png');
}
.icon .tag-button{
    display:none;
    overflow:hidden;
    transition-delay:.9s;
    transition: all .3s ease;
    animation: tag-button 0.5s ease-out both;
}
.icon:hover{
    background-color:var(--bg-button-hover) ;
}


.item input{
    display:none;
}
.item input:checked + label{
    width:clamp(430px, 40vw, 700px);
}
.item input:checked + label .icon{
    border-radius: 50px;
    width:166px;
    height:50px; 
    display:flex;
    cursor: pointer;
    justify-content: space-between;
    padding:16px;
    .tag-button{
        display:block;
    }
    .arrow{
        transform:rotate(0deg);
    }
    .download{
        content:url('../img/icons/cv-download-01.png');
        width:25px;
        height:25px;
    }
    .github-link{
        content:url('../img/icons/github-icon.png');
        width:33px;
        height:33px;
    }
    .linkedin-link{
        content:url('../img/icons/linkedin-icon.png');
        width:22px;
        height:22px;
    }
}
.item input:checked + label .desc{
    opacity: 1;
    display:block;
}
.item input:checked + label .title-card{
    display:none;
}
/*Individual cards --------------------------------------*/
.desc p {
    margin:10px;
}
.photo-status{
    width:80px;
    height:80px;
    clip-path: circle(48%);
    background-image: url('../img/bgCards/LinkedIn-photo.jpg');
    background-position: center;
    background-size: cover;
    margin:5px;
}

.desc > h2, desc > p, .progress-bar-group{
    margin:5px;
}
.progress-bar{
    height:6px;
    background-color: var(--status-bar);
    width:80%;
    border-radius:10px;
    margin:10px 0px;
}
.progress-fill{
    height:6px;
    background: var(--status-fill);
    border-radius:10px;
}
.progress-fill > span{
    display:flex;
    width:5px;
    height:4px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, #fff 100%);
    justify-self: flex-end;
    align-content: center;
    border-radius:10px;
    padding:1px;
    box-shadow: 0px 0px 10px 1px #fff;
}


.desc > div > span{
    font-weight:600;
    font-size: var(--font-size-03);
}
.desc>ol{
    margin-right:10px;
    padding-inline-start:0px;
}
.desc>ol>li{
    width:100%;
    height:100%;
    background: var(--bg-button);
    margin:5px;
    border-radius:10px;
    padding:5px;
    box-sizing: border-box; 
    display:flex;
    flex-wrap: wrap;
    align-items: center;
    line-height: 20px;
}
.desc>ol>li:hover{
    background: var(--bg-button-hover);
}
li .status{
    background: var(--bg-contacts);
    font-size: var(--font-size-05);
    padding:1px 8px;
    border:2px solid #e9e9e9;
    border-radius:10px;
    margin-left:20px;
    color:var(--font-color);
}

.box-skills{
    display: flex;
    justify-content: center
}
.grid-skills{
    display:flex;
    justify-content: center;
    flex-wrap: wrap;
    margin:10px;
    gap:10px;
}
.grid-skills img{
    width:20px;
    height:20px;
}
.grid-skills span{
    width:130px;
    height:30px;
    display: flex;
    align-items: center;
    gap:5px;
    border: 0.5px solid #fff;
    background-color: #00000069;
    border-radius: 10px;
    padding:5px;
    box-sizing: border-box;
}



.see-projects{
    display: flex;
    flex-direction: row;
    justify-content: center;
    perspective: 1000px; 
    gap:10px;
    height:170px;
    margin:5px 0px;
}
.see-projects>div{
    width:clamp(100px, 12vw, 165px);
    height:130px;
    border:solid 1px #fff;
    border-radius: 10px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin:-10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.see-projects > div:first-child{
    transform:rotate(-15deg) translateY(30px);
    background: url('../img/projects/demo/cv-application.png') center/cover;
}
.see-projects > div:nth-child(2){
    z-index: 1 ;
    background: url('../img/projects/demo/mind-2.png') center/cover;
}
.see-projects > div:last-child{
    transform:rotate(15deg) translateY(30px);
    background: url('../img/projects/demo/tailwind.png') center/cover;
}
.see-projects > div:nth-child(1):hover {
    transform: rotate(-20deg) translateY(20px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.see-projects > div:nth-child(2):hover {
    transform: translateY(-20px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.see-projects > div:nth-child(3):hover {
    transform: rotate(20deg) translateY(20px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.deco{
    display:flex;
    justify-content:center;
    gap:16px;
    padding:10px;
    padding-right:20px;
    align-items: center;
}
.deco-top{
    width:50%;
    aspect-ratio: 1;
    box-shadow: 2px 2px 4px 1px #000000a9, -2px -2px 4px 1px #66666644,
               -2px -2px 20px -1px #6666666b inset, 2px 2px 20px 6px #000000 inset;
    border-radius: 10px;
    position: relative;
    display:flex;
    justify-content: center;
    align-items: center;
    background-color: #0f0f0f;
}
.deco-into{
    width:55%;
    height:55%;
    box-shadow: 2px 2px 2px 1px #000000a9, -2px -2px 4px 1px #66666644;
    border-radius: 10px;
    position: absolute;
    background-color: #0f0f0f;
    display:flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease-in-out;
    img{
        width:50%;
        height:50%;
        position: absolute;
    }
}
.deco-into:hover{
    animation: rotateSquare 1s;
}

/* Animations */

@keyframes tag-button {
    50%{
        transform: translateX(25px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes rotateSquare {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}