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


:root {
  --font-body: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --color-bg: #DCFAFF;
  /* --color-bg: #000; */
  --color-text: #222;
  --color-accent: #82DEFF;
  --color-darken: #427081;

  --radius: 12px;
  --transition: 0.2s ease-in-out;
}


html {
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0;
}

p {
  font-family: var(--font-body);
  margin-bottom: 1em;
  max-width: 300px;
}

a {
  text-decoration: none;
  transition: color var(--transition);
  color: var(--color-text);
}

a:hover {
  color: var(--color-darken);
}

img {
  max-width: 100%;
  display: block;
}


body {
  background-image: url("../img/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
}


.content {
  padding: 1em 1.5em;
}


.row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  flex: 1;

  margin-bottom: 1.5em;
  justify-content: space-between;
  align-items: center;
}


.profile {
  flex: 1 1 400px; /* adj later for pc */
  max-width: 400px;
  
  background-color: var(--color-bg);
  padding: 1em;
  border-radius: var(--radius);
}

.banner {
  height: 150px;
  background: url("../img/banner.png") center/cover no-repeat;

  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}


.info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: em;
  position: relative;
}

.bio>h4 {
  margin-bottom: 0;
  font-size: small;
}

.bio>h2 {
  margin-bottom: 0;
  margin-top: 0.1em;
  font-weight: bold;
}

.pfp {
  width: auto;
  height: 100px;
  border-radius: 50%;
  border: 6px solid var(--color-bg);
  background-color: var(--color-bg);
  margin-top: -50px;
}


.highlight {
  color: var(--color-accent)
}

.block>h1 {
  font-weight: bolder;
  font-size: 3em;
  margin-bottom: 0;
}

.langs {
  display: flex;
  flex-direction: row;
  gap: 1em;
}

.langs>div {
  padding: 0.1em 1.5em;
  background-color: var(--color-accent);
  color: white;
  border-radius: var(--radius);
}


.icons {
  display: flex;
  flex: 1;
  flex-direction: row;
  justify-content: space-between;
  max-width: 400px;
}


.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  text-wrap: nowrap;
}


.icon>img {
  height: 4em;
  width: auto;
}


/* opzimizing for desktop */
@media screen and (min-width: 1024px) {
  .first-row {
    flex-direction: row-reverse;
  }
  .row {
    margin-bottom: 5em;
  }
  .content {
    max-width: 1400px;
    margin: 0 auto;
  }
}

@media screen and (min-width: 500px) {
  body {
    height: 100vh;
  }
}