@import url("https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Montserrat:wght@100..900&display=swap");

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

body {
  height: 100vh;
  background-color: #d3d3d3;
  background-image: url("./assets/textur.jpg");
  background-size: cover;
  display: flex;
  flex-direction: column;
}

p {
  line-height: 24px;
  font-size: 1.1em;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

h1,
h2,
h3 {
  font-family: "Architects Daughter", cursive;
  font-weight: 400;
  font-style: normal;
}

li {
  list-style: none;
}

/* INDEX */
.main-index {
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero {
  width: 75%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3em;
  border-radius: 1em;
  background-color: rgb(255, 255, 255, 0.5);
}

.hero-text {
  margin-left: 2.5em;
}

.hero-text h2 {
  font-size: 1.5em;
  padding-bottom: 0.1em;
}

.hero-text h1 {
  font-size: 1.5em;
  padding-bottom: 0.6em;
}

.hero-text h1 span {
  font-size: 1.2em;
  color: #2191fb;
  padding-bottom: 0.6em;
}

.hero-text p {
  line-height: 1.8;
}

#hero-avatar {
  height: 15em;
  border: 4px solid #fff;
  border-radius: 50%;
}

.project-link {
  text-decoration: none;
  font-weight: 600;
  color: #000;
  cursor: pointer;
}

.project-link:hover {
  color: #7c7d7d;
}

/* RESPONSIVE */
@media screen and (max-width: 1160px) {
  .hero {
    width: 80%;
    padding: 2em;
  }
  #hero-avatar {
    height: 13em;
  }
}

@media screen and (max-width: 780px) {
  .hero {
    margin-top: 0.8em;
    margin-bottom: 0.8em;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
  }

  .hero-text {
    margin-left: 0;
  }

  .hero-text h1 {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .hero-text h2 {
    font-size: clamp(1rem, 4vw, 1.4rem);
  }

  .hero-text p {
    font-size: 1em;
  }

  #hero-avatar {
    height: 10em;
    margin-bottom: 0.5em;
  }
}

@media screen and (max-width: 480px) {
  .hero-text h1 {
    font-size: 1rem;
  }

  .hero-text h2 {
    font-size: 0.9rem;
  }

  .hero-text p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  #hero-avatar {
    height: 7.5rem;
  }
}
