@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap');

*{

    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Nunito Sans', sans-serif;
}

body{
    background-color: #b3cccc;
}

.container{
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.card{
    position: relative;
    width: 400px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px 1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card:before{
    content: '';
    position: absolute;
    width: 100%;
    height: 270px;
    top: 0;
    left: 0;
}

.header{
    position: relative;
    height: 265px;
}

.mail{
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 1.5rem;
    color: #fff;
    opacity: .7;
    transition: .3s;
    z-index: 3;
    text-decoration: none;
}
.deg{
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
    color: #fff;
    opacity: .7;
    transition: .3s;
    z-index: 3;
    text-decoration: none;
}
.deg:hover{
    opacity:1;
}
.mail:hover{
    opacity: 1;
}
.main{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background:url('../assets/profile-pic.jpg') no-repeat center / cover;
    border-radius: 0 0 100px 0;

}

.main .image{
    position: relative;
    width: 110px;
    height: 110px;
    border: 4px solid #fff;
    margin-bottom: 2px;
    overflow: hidden;
}

.image:hover .hover{
    opacity: 1;
}

.hover.active{
    opacity: 1;
}

.name{
    font-size: 28px;
    color: #000;
    font-weight: 800;
    line-height: 36px;
}
.desc{
    font-size: 17.6px;
    font-weight: 300;
    margin-bottom: 15px;
}
.line{
    margin:15px 0;
    background: linear-gradient(to right, #c21f54 0%, #572664 140%);
    width: 40%;
    height: 3.5px;
    border-radius: 0 80px 80px 0;
    border: none;
}
.company{
    font-weight: 300;
    font-size: 20px;
    margin: 5px 0;
    font-style: italic;
}
.sub-name{
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.2rem;
    opacity: .8;
    color: #000;
    font-weight: 500;
    margin: 10px 0 5px 0;
}

.content{
    display: block;
    padding: 1.7rem 2.5rem 2.6rem 2.5rem;
}

.right{
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    text-align: right;
    align-items: flex-end;
    justify-content: space-between;
    margin-left: 2.1rem;
}

.number{
    font-size: 20px;
    font-weight: 200;
    color: #333;}
.number i {
    border-radius: 50%;
    background: linear-gradient(to right, #c21f54 0%, #572664 140%);
    color: #fff;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    vertical-align: middle;
    }
.number-title{
    font-size: px;
    color: #666;
    font-weight: 200;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.title{
    position: relative;
    color: #555;
    font-weight: 500;
    font-size: 1.4rem;
    padding: 0 0 3px 0;
    margin-bottom: .9rem;
    display: inline-block;
}
.title:after{
    content: '';
    position: absolute;
    height: 3px;
    width: 50%;
    background-color: #555;
    bottom: 0;
    left: 0;
}
.text{
    color: #666;
    font-weight: 300;
    line-height: 1.7;
}

.icons-container{
    padding: 1rem 0;
}

.icon{
    color: #c4c4c4;
    font-size: 1.3rem;
    text-decoration: none;
    margin-right: 8px;
    transition: .3s;
}

.icon:hover{
    color: #c21f54;
}

.buttons-wrap{
    display: flex;
    margin-top: 25px;
}

.follow-wrap, .share-wrap{
    flex: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .5s;
}
.follow{
    padding: 9.6px 0;
    width: 100%;
    background: linear-gradient(to right, #c21f54 0%, #572664 140%);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: .9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 18.1px;
    margin-right: 3px;
    }
.number{
    color: #666;
    font-weight: 500;
    line-height: 1.7;
    font-size: 16px;
    text-decoration: none;
}
.number i{
    margin: 12px 0px;
}

.number:hover{
    transition: 0.3s;
    color: #c21f54;

}
.share{
    padding: 7.6px 0;
    width: 100%;
    border: 2px solid tomato;
    color: #4facfe;
    text-decoration: none;
    text-align: center;
    font-size: .7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-left: 3px;
    border-radius: 18.1px;
}

.modal{
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: -1;
    opacity: 0;
    transition: .5s;
}

.modal img{
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.3);
    max-width: 100%;
    max-height: 100%;
    transition: .5s;
}

.modal.show{
    opacity: 1;
    z-index: 99;
}

.modal.show img{
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 576px){
    body{
        background:#fff;
    }
    .container{
        padding:0;
        top:0;
        margin: 0;
        min-height: 100%;
        min-width: 100%;
        border-radius: 0;
        width: 100%;
    }
    .card{
        box-shadow: 0 0 0 0;
        overflow:visible;
        width: 100%;
        height: 40%;
    }
    .about-container{
        margin-top:20px;
    }
    .icons-container{
        margin-top:5px;
    }
    .follow{
        margin-top:100px;
 }

    .follow-wrap{
        margin-top: -80px;
    }

}

@media (max-width: 370px){
    .header{
        height: 230px;
    }

    .card:before{
        clip-path: circle(400px at 50% -74.5%);
        height: 230px;
    }


    .mail{
        font-size: 1.1rem;
        top: .75rem;
        right: 1.5rem;
    }

    .main .image{
        width: 90px;
        height: 90px;
        border-width: 3px;
    }

    .name, .sub-name{

        font-size: 1rem;
    }

    .content{
        padding: 1.2rem 1.8rem 1.8rem 1.8rem;
    }

    .number{
        font-size: 1rem
    }

    .number-title{
        font-size: .4rem;
    }

    .right{
        padding-top: 1rem;
    }

    .title{
        font-size: .9rem;
        margin-bottom: .5rem;
    }

    .text{
        font-size: .8rem;
    }

    .icons-container{
        padding: .5rem 0;
    }

    .icon{
        font-size: 1.1rem;
    }

    .follow{
        padding: 7.6px 0;
        border-radius: 14.6px;
        font-size: .6rem;
    }

    .share{
        padding: 5.6px 0;
        border-radius: 14.6px;
        font-size: .6rem;
    }
}
