:root {
    --background: #2c2c2c;
}

/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

/* body {
    background-color: var(--background);
    display: grid;
    height: 100vh;
    margin: 0px;
    font-size: 16px;
    font-family: 'Red Hat Display', sans-serif;
} */

.profile-container {
    margin: auto;
    font-family: 'Red Hat Display', sans-serif;
}

.profile-wrapper {
    width: 200px;
    height: 200px;
    position: relative;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 200px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: .25s;
}

.profile .profile-image {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: var(--background);
    transition: .25s;
}

.profile-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.profile:hover img {
    opacity: .4;
    transition: .25s;
}

.profile:hover .profile-image {
    transform: translateY(-104px);
    transition: all .5s;
}

.profile:hover .profile-bio {
    opacity: .9;
}

.social-icons {
    margin: 20px 200px 20px 160px;
    position: absolute;
    display: flex;
    gap: 10px;
    z-index: 3;
    bottom: 164px;
}

.social-icons li {
    list-style: none;
}

.social-icons li a {
    position: relative;
    display: block;
    display: grid;
    place-items: center;
    background: #fff;
    font-size: 23px;
    font-weight: bold;
    width: 28px;
    height: 28px;
    border: 1px solid #CDCDCD;
    border-radius: 8px;
    transition: .2s;
    transform: translateY(72px);
    opacity: 0;
}

.social-icons li a:hover {
    background: var(--background);
    transition: .2s;
}

.social-icons li a svg {
    color: var(--background);
    transition: .2s;
}

.social-icons li a:hover svg {
    color: white;
    transition: .8s;
    transform: rotateY(360deg);
}

.profile:hover .social-icons li a {
    opacity: 1;
}

.profile:hover li:nth-child(1) a {
    transition-delay: .1s;
}

.profile:hover li:nth-child(2) a {
    transition-delay: .2s;
}

.profile:hover li:nth-child(3) a {
    transition-delay: .3s;
}

.profile:hover li:nth-child(4) a {
    transition-delay: .4s;
}

.profile-name {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 4;
    width: 100%;
    height: 126px;
    padding: 0 auto;
    z-index: 1;
    color: #333;
    background-color: #fff;
    text-align: center;
    font-size: 15px;
}

.profile:hover .profile-name {
    background-color: #fff;
}

.profile-name h2 {
    margin-top: 24px;
    margin-bottom: 4px;
}