@font-face {
  font-family: "Satoshi";
  src: url("https://drive.google.com/uc?export=view&id=1bdkQMhGCzbjaTBwXFsqbenBLSisAktgV")
    format("woff2");
  font-weight: 100 900; /* Specify the supported weight range */
  font-style: normal; /* Set default style to normal. Variable fonts typically support italics through 'font-style' property */
  font-variation-settings: "wght" 100, "ital" 1; /* Variable font settings*/
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Satoshi", sans-serif;
  color: #1d171d;
  font-size: 16px;
  background: #f5f5f5;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

li {
  list-style-type: none;
}

/* All images should maintain its aspect ratio */
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Main styles */

main {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.main {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s ease-out;
}

.main.visible {
  /* display: block; */
  opacity: 1;
  transform: translateY(0);
}

/* Header styles */
header ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5rem;
}

/* Section styles */
section {
  display: flex;
  gap: 2.5rem;
}

/* Wrapper-bio styles */
.wrapper-bio {
  width: 320px;
  min-width: 320px;
  position: sticky;
  top: 1.25rem;
  align-self: baseline;
}

.wrapper-bio p {
  line-height: 160%;
}

.tag {
  border: 1px solid #e5dede;
  padding: calc(0.75rem / 2) 0.75rem;
  border-radius: 1.5rem;
  color: #433f43;
  font-size: 0.85rem;
}

.tag-one {
  background-color: #e9eeeb;
}

.tag-two {
  background-color: #e9edee;
}

.tag-three {
  background-color: #eeebeb;
}

.tag-four {
  background-color: #eeede9;
}

.tag-five {
  background-color: #ebeee9;
}

.tag-six {
  background-color: #e9e9ee;
}

.heading-tag {
  font-size: 1rem;
  color: #800080;
}

.user-img {
  width: 4rem;
  height: 4rem;
  background-color: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
}

h1,
h3 {
  font-size: 4rem;
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 500;
  margin: 1.5rem 0 0.25rem;
}

.user-name {
  color: #800080;
  font-weight: 500;
}

.wrapper-social,
.wrapper-social ul,
.wrapper-tags,
.card-project ul {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.wrapper-social {
  gap: 1rem;
  margin: 1.5rem 0 5rem;
}

.wrapper-tags {
  flex-wrap: wrap;
}

.img-social {
  width: 2rem;
  height: 2rem;
}

/* Wrapper-project styles */
.wrapper-projects {
  flex-grow: 1;
}

h3 {
  font-size: 2rem;
  margin: 0;
}

.wrapper-options {
  margin: 2rem 0 3rem;
}

.option {
  border: 1px solid #e5dede;
  padding: calc(0.75rem / 2) 0.75rem;
  border-radius: 1.5rem;
  color: #433f43;
  font-size: 0.85rem;
}

.option:hover,
.primary:hover {
  background-color: #241f24;
  color: #f5f4f5;
  font-weight: 500;
  border: none;
  transition: background-color ease 0.3s;
}

.primary:hover {
  background-color: #800080;
}

.active {
  background-color: #241f24;
  color: #f5f4f5;
  font-weight: 500;
  border: none;
}

.wrapper-project-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  gap: 3rem 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid #e5dede;
  padding: 2rem 1.5rem;
}

.card-img {
  height: 15rem;
  background-color: #ededed;
  border-radius: 0.5rem;
  overflow: hidden;
}

.card-img img {
  object-position: top left;
}

.img-status {
  background-color: whitesmoke;
  padding: 2px 4px;
  margin-top: 1rem;
  margin-left: 0.5rem;
  border-radius: 0.2rem;
  font-size: 0.75rem;
  color: red;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.project-info .tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.35rem;
  color: #4d484d;
}

.project-info img {
  width: 28px;
}

.project-info {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
}

.project-info ul {
  flex-wrap: wrap;
}

.github-link {
  display: inline;
}

.button {
  align-self: flex-start;
  border: none;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  background-color: #fff;
  border-radius: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #800080;
  transition: background-color ease 0.3s;
  margin-top: 1rem;
}

.button:hover {
  background-color: #241f24;
  color: #f5f4f5;
  font-weight: 500;
  border: none;
}

/* Footer styles */
footer {
  border: 1px solid brown;
  text-align: center;
  margin-top: 2.5rem;
  flex-direction: column;
  border-radius: 2.5rem;
  background-color: #eeebeb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
}

footer h1 {
  max-width: 560px;
  margin-bottom: 1rem;
}

/* loading screen styles */

.loading {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background-color: #fff;
  transition: 0.5s cubic-bezier(0.93, 0.08, 0.99, 0.97);
}

.loading .container {
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.loading-percent {
  margin-top: 0;
  margin-bottom: 2rem;
}

/* Tablet CSS */
@media screen and (max-width: 991px) {
  .container {
    max-width: none;
    padding: 0 32px;
  }

  section {
    display: flex;
    gap: 2rem;
  }

  .wrapper-bio {
    width: 256px;
  }

  h1 {
    font-size: 3rem;
  }

  .wrapper-project-card {
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    column-gap: 1rem;
    padding: 1.5rem 1rem;
  }
}

/* Mobile - Landcape CSS */
@media screen and (max-width: 767px) {
  .container {
    padding: 0 24px;
  }

  section {
    flex-direction: column;
    gap: 5rem;
  }

  .wrapper-bio {
    width: auto;
    position: static;
  }

  .wrapper-social {
    margin-bottom: 3.5rem;
  }
}

/* Mobile - Portrait CSS */
@media screen and (max-width: 479px) {
  .container {
    padding: 0 20px;
  }
}
