:root {
  --color-accent: rgb(255, 0, 76);
  --color-background: rgb(33, 33, 33);
  --color-font: rgb(12, 9, 10);
  --color-paper-background: rgb(255, 255, 255);

  --font-primary: Nunito Sans, sans-serif;
  --font-accent: Poppins, sans-serif;
}

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

html {
  background-color: var(--color-background);
}

body {
  margin: 0 auto;
  padding: 1.5em;
  font-family: var(--font-primary);
  color: var(--color-font);
  background-color: var(--color-paper-background);
}

h1, h2, h3 {
  font-family: var(--font-accent);
  font-weight: 600;
}

h1 {
  font-size: 1.875rem;
}

h2 {
  display: flex;
  align-items: center;
  position: relative;
  color: var(--color-accent);
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}

h2:after {
    content: "";
    background: var(--color-accent);
    height: 0.125rem;
    flex: 1;
    margin-left: 0.5rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0;
  line-height: 1.5rem;
}

a {
  display: inline-block;
  color: var(--color-font);
  line-height: 1.5rem;
  margin: 0.5rem 0;
}

ul {
  list-style: none;
}

header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0;
  
}

section {
  margin-bottom: 3rem;
}

footer {
  font-size: smaller;
  text-align: center;
}

.information {
  display: flex;
  flex-direction: column;
}

.profession {
  font-size: 1rem;
  font-family: var(--font-accent);
  font-weight: 600;
}

.personal-info {
  display: flex;
  flex-direction: column;
  margin-right: 0;
  margin-bottom: 3rem;
}

.profile-picture {
  width: 5.625rem;
  border-radius: 50%;
}

.xp-item {
  margin-bottom: 2rem;
}

.headline {
  display: flex;
  flex-direction: column;
  font-weight: 700;
}

.title {
  flex: 0.55;
}

.details {
  display: flex;
  flex: 0.45;
  justify-content: space-between;
  margin-bottom: 1rem;
  text-align: right;
  font-size: 0.875rem;
}

.description {
  margin-bottom: 1rem;
}

.technologies-used {
  display: flex;
  flex-wrap: wrap;
}

.skill {
  display: flex;
  line-height: 1.75;
}

.skill:not(:last-child)::after {
  content: "/";
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  display: inline-block;
  font-weight: 400;
  opacity: .25;
}

.skill-icon {
  width: 1rem;
  margin-right: 0.5rem
}

.tech-stack-subcategory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.5rem;
  row-gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.tech-item {
  display: flex;
}

.tech-icon {
  width: 3rem;
  margin-right: 1rem;
}

.tech-info {
  align-self: center;
}

.tech-xp {
  margin: 0;
  opacity: 0.8;
  font-weight: normal;
}

@media (max-width: 20em) {
  .tech-stack-subcategory {
    column-gap: .5rem;
    row-gap: .5rem;
  }

  .tech-item {
    transform: scale(0.8);
    transform-origin: left;
  }

  .skill {
    font-size: 0.8rem;
  }

  .position {
    font-size: 0.8rem;
  }
}

@media (max-width: 25.875em) {
  h1 {
    max-width: 12.5rem;
  }
}

@media (min-width: 48em) { 
  body {
    margin: 0 auto;
    padding: 2em 3em;
  }

  header {
    margin-bottom: 3rem;
  }

  .information {
    flex-direction: row;
  }

  .personal-info {
    margin-right: 3rem;
  }

  .profile-picture {
    width: 5rem;
  }
  
  .headline {
    flex-direction: row;
  }

  .technologies-used {
    flex-wrap: nowrap;
  }

  .tech-stack-subcategory {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 62em) { 
  body {
    max-width: 54.5rem;
    margin: 6rem auto;
    padding: 4em 6em;
  }
}
