/* google fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?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&display=swap');

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

body {
 display: flex;
 align-items: center;
 justify-content: center;
 min-height: 100dvh;
 background-color: #f2f2f2;
}

/* css variables */
:root {
 /* colors */
 --c-primary: hsl(210, 100%, 50%);
 --c-secondary: hsl(210, 100%, 60%);
 --c-accent: hsl(0, 100%, 60%);
 /* fonts */
 --ff-ms: "Montserrat", sans-serif;
 --ff-pp: "Poppins", sans-serif;
 /* fonts sizing */
 --ff-heading: 2rem;
 --ff-subheading: 1.5rem;
 --ff-body: 1rem;
 --ff-small: 0.875rem;
}

/* particle background */
#particle-background {
 position: fixed;
 z-index: -1;
 inset: 0;
 width: 100%;
 height: 100%;
}

/* profile card */
.profile-card {
 width: 100%;
 max-width: 400px;
 height: auto;
 margin: 0 auto;
 background-color: rgba(255, 255, 255, 0.5);
 backdrop-filter: blur(8px);
 border-radius: 16px;
 box-shadow: 4px 4px 40px #999;
}

.card-banner {
 width: 100%;
}

.banner {
 width: 100%;
 height: 160px;
 background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)), url('banner.jpg') center / cover;
 border-top-left-radius: 16px;
 border-top-right-radius: 16px;
 position: relative;
}

.banner img {
 width: 120px;
 height: auto;
 object-fit: cover;
 border-radius: 50%;
 border: solid 4px #fff;
 position: absolute;
 bottom: -50px;
 left: 24px;
}

.banner .tagname {
 position: absolute;
 z-index: 1;
 bottom: 0;
 right: 0;
 margin: 16px 24px;
 text-decoration: none;
 color: whitesmoke;
 font-size: var(--ff-small);
 font-family: var(--ff-pp);
 font-weight: 500;
 letter-spacing: 1px;
}

.card-content {
 margin-top: 32px;
 padding: 24px 32px;
 display: flex;
 flex-direction: column;
 gap: 1.5rem;
}

.content-text h2 {
 font-family: var(--ff-ms);
 font-size: var(--ff-heading);
 font-weight: bold;
}

.content-text .bio {
 font-family: var(--ff-pp);
 font-size: var(--ff-small);
 font-weight: 400;
 color: #222;
}

.content-text .location {
 font-family: var(--ff-pp);
 font-size: var(--ff-small);
 font-weight: 400;
 color: #222;
}

.content-text .summary {
 font-family: var(--ff-pp);
 font-size: var(--ff-small);
 font-weight: 400;
 line-height: 1.5;
 margin: 8px 0;
 color: #222;
}

.text-contacts {
 display: flex;
 flex-direction: column;
 gap: 0.5rem;
}

.text-contacts p {
 font-family: var(--ff-pp);
 font-size: var(--ff-small);
 font-weight: 400;
 color: #222;
}

.content-links {
 display: flex;
 align-items: center;
 justify-content: space-between;
}

.content-links .joined {
 font-family: var(--ff-pp);
 font-size: var(--ff-small);
 font-weight: 400;
 color: #222;
}

.content-links .link {
 display: flex;
 align-items: center;
 gap: 0.5rem;
}

.content-links .link a {
 text-decoration: none;
}

.content-links .link i {
 color: #222;
 font-size: var(--ff-body);
}

/* for small devices view */
@media (max-width: 420px) {
 .profile-card {
  width: 90%;
 }
 
 .content-text h2 {
  font-size: var(--ff-subheading);
 }
 
 .card-content {
  padding: 24px 24px;
 }
}