@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
*{
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #222;
    overflow-y: hidden;
}

.container{
    height: 470px;
    width: 350px;
    border: 2px solid;
    border-left-color: #0cf;
    border-right-color: #0cf;
    border-top-color: #ec45f2;
    border-bottom-color: #ec45f2;
    border-radius: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.container .image-section{
    height: 100%;
    width: 100%;
    background: linear-gradient(#0cf, #ec45f2,#0cf, #ec45f2);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .6s ease;
    overflow: hidden;
}

.container:hover .image-section{
    top: 5%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
}

img{
    width: 250px;
    border-radius: 50%;
    background: #DF5C78;
}

.text-content{
    text-align: center;
    color: #fff;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 40%;
    opacity: 0;
    transition: .5s;
}

#changing-role {
    transition: opacity 0.5s ease-in-out;
}


.container:hover .text-content{
    opacity: 1;
    transition-delay: .5s;
}


.text-content span:nth-child(1){
    letter-spacing: 1px;
    font-size: 32px;

}

.container:hover span:nth-child(1){
    animation: TopSlide 1s ease forwards;
    opacity: 0;

}

@keyframes TopSlide{
    0%{
        transform: translateY(200px);
        opacity: 0;
        filter: blur(5px);
    }
    100%{
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

.text-content span:nth-child(2){
    letter-spacing: 1px;
    font-size: 18px;
    margin-bottom: 5px;

}

.container:hover span:nth-child(2){
    animation: TopSlide 1s ease forwards;
    opacity: 0;
    animation-delay: .2s;
}

.text-content p{
    font-size: 15px;
    max-width: 300px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.container:hover p{
    animation: TopSlide 1s ease forwards;
    opacity: 0;
    animation-delay: .4s;
}

.btn{
    text-align: center;
    display: flex;
    justify-content: center;
    height: 40px;
    width: 100px;
    font-size: 15px;
    font-weight: 500;
    background: #222;
    color: #0cf;
    border: 2px solid #0cf;
    cursor: pointer;
    margin-bottom: 20px;
    align-items: center;
    border-radius: 5px;
    transition: .5s;

}

.container:hover .btn{
    animation: TopSlide 1s ease forwards;
    opacity: 0;
    animation-delay: .6s;
}

.btn:hover{
    background: #0cf;
    color: #222;
    box-shadow: 0 0 10px #0cf;
} 

.social-media{
    display: flex;
}

.social-media a{
    text-decoration: none;
}

.social-media i{
    cursor: pointer;
    height: 40px;
    width: 40px;
    border: 2px solid #0cf;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #0cf;
    margin-left: 20px;
    transition: .5s;

}

.container:hover .social-media i{
    animation: TopSlide 1s ease forwards;
    opacity: 0;
    animation-delay: .8s;
}

.social-media i:hover{
    background: #0cf;
    color: #222;
    box-shadow: 0 0 10px #0cf;
}