@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Karla:ital,wght@0,200..800;1,200..800&family=Kumbh+Sans:wght@100..900&family=Lexend+Deca:wght@100..900&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&family=Overpass:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

*, 
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    /* Primary */

    --Dark-cyan: hsl(185, 75%, 39%);
    --Very-dark-desaturated-blue: hsl(229, 23%, 23%);
    --Dark-grayish-blue: hsl(227, 10%, 46%);

    /* Neutral */

    --Dark-gray: hsl(0, 0%, 59%);

}

html {
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    height: 100%;
    min-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--Dark-cyan);
    position: relative;
    color: var(--Dark-grayish-blue);
    overflow: hidden;
}

body::before,
body::after {
    content: "";
    height: 100%;
    width: 100%;
    min-width: 20rem;
    min-height: auto;
    position: absolute;
    z-index: -1;
}

body::before {
    background-image: url('./images/bg-pattern-top.svg');
    background-repeat: no-repeat;
    background-size: 50%;
    top: 0;
    left: 0;
    transform: translate(-5%, -50%);
    transform-origin: top left;
}

body::after {
    background-image: url('./images/bg-pattern-bottom.svg');
    background-repeat: no-repeat;
    background-size: 80%;
    bottom: 0;
    right: 0;
    transform: translate(45%, 50%);
    transform-origin: bottom right;
}

#avatar {
    width: clamp(350px, 80vw , 400px);
    height: 400px;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    justify-content: end;
    align-items: center;
    flex-direction: column;
    z-index: 1;
    position: relative;
}

.bg {
    position: absolute;
    top: 0;
    width: 400px;
    z-index: -1;
}

#human {margin: 30px 0}

#human figure {
    text-align: center;
}

#human img {
    border-radius: 50%;
    border: 5px solid white;
    margin: 10px;   
    transform: scale(1.1);
}

#info {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border-top: 1px solid var(--Dark-gray);
    width: 100%;
    padding: 20px 0;
    text-align: center;
}

#info h3,#human span {color: var(--Very-dark-desaturated-blue)}

#human span {font-weight: 700}
#human .name {font-size: 20px;margin:5px}
#info p{font-size: 14px;letter-spacing: 2px;}

@media screen and (width <= 960px) {
    body::before {
        transform: translate(0%, -30%);
    }
}

@media screen and (width <= 768px) {
    
    body::before, body::after{
        background-size: contain;
    }

    body::before {
        transform: translate(-50%, -13rem);
    }

    body::after {
        transform: translate(60%, 20rem);
    }
}