@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --background-color: #2A2A40;
  --header-background-color: #404268;
  --hover-background-color: #2A2A40;
  --hover-border-color: white;
  --development-color: #de3939;
  --completed-color: #19802e;
  --text-color: white;
}

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

body {
  font-family: "Source Sans Pro", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}

header {
  max-height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: var(--header-background-color);
  backdrop-filter: blur(25px);
  padding-block: 4px;
  position: sticky;
  top: 0;
  animation: adjust-header linear both;
  animation-timeline: scroll();
  animation-range: 0 100px;
  z-index: 10;
}

@keyframes adjust-header {
  to {
    background: rgba(64, 66, 104, 0.5);
    border-radius: 0;
  }
}

#fcc-logo {
  width: 20%;
  min-width: 180px;
  height: 100%;
  padding-inline: 6px;
  padding-block: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  & svg {
    width: 90%;
    height: 50px;
  }
}

#fcc-logo:hover {
  background-color: var(--hover-background-color);
  border: 1px solid var(--hover-border-color);
}

#profile {
  display: block;
  width: auto;
  padding-right: 10px;
}

#profile-info {
  display: flex;
  align-items: center;
  height: 100%;
}

#profile-info img {
  width: 50px;
  height: auto;
}

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

#profile:hover {
  background-color: var(--hover-background-color);
  border: 1px solid var(--hover-border-color);
}

main {
  width: 80%;
  margin: auto;
  margin-bottom: 2rem;
  margin-top: 90px;
}

h1 {
  max-width: 800px;
  text-align: center;
  font-size: 3.625rem;
  margin: 2rem auto 0;
}

#intro {
  display: flex;
  gap: 2rem;
  align-items: center;
  width: 100%;
  padding-top: 50px;
  font-size: 1.5rem;
}



.title-course {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.card {
  width: 100%;
  height: 100%;
  background-color: var(--header-background-color);
  border-radius: 10px;
  z-index: 1;
}

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

.row {
  display: flex;
  margin-block: 6px;
}

.profile-name {
  width: 100%;
  padding-left: 16px;
}

.card:hover {
  transform: scale(1.02);
  cursor: pointer;
}

.card .preview-project {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  width: 100%;
  height: 55%;
}

.info-container {
  padding: 0.625rem;
  height: 25%;
}

.info-container * {
  margin-block: 6px;
}

.info-container h3 {
  font-size: 1.5rem;
  margin-top: 0;
}

.info-container .project-description {
  font-size: 1rem;
  text-align: justify;
  margin: 0;
  height: 60px;
  overflow: hidden;
}

.development {
  background-color: var(--development-color);
}

.completed {
  background-color: var(--completed-color);
}

.visual-status {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-inline: 6px;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 450px));
  grid-auto-rows: 400px;
  gap: 16px;
  justify-content: center;
}

.title-course {
  padding-left: 1rem;
  margin-block: 2rem;
}

.field {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 4px;
  min-width: 50%;
}

.field p {
  display: flex;
  align-items: center;
}

.bold-label {
  font-weight: bold;
  margin: 0;
}

.status-container {
  display: flex;
  justify-content: space-between;
  max-height: 74px;
}

.value {
  font-weight: normal;
  display: flex;
  align-items: center;
}

.bold-label,
.value {
  line-height: auto;
}

@media screen and (max-width: 768px) {

  html,
  body {
    width: 100%;
  }

  main {
    width: 100%;
    max-width: 100vw;
  }

  html {
    font-size: 12px;
  }

  h1 {
    width: 100vw;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 2rem;
  }

  #intro {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    width: 100%;
    overflow: hidden;
  }

  #intro p {
    width: 95%;
    align-self: center;
  }

  .title-course svg {
    width: 40px;
    height: 40px;
  }

  .info-container h3 {
    font-size: 1.7rem;
  }

  #projects {
    overflow: hidden;
  }

  .project-cards {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    padding-inline: 1rem;
  }

  .field {
    flex-direction: column;
    justify-content: start;
    gap: 0px;
    align-items: start;
  }

  .profile-name {
    padding-left: 4px;
  }
}