@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Uchen&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Uchen&display=swap");
/* VARIABLE */
:root {
  --pluto: #000;
  --mars: #696969;
  --saturn: #ccc;
  --venus: #fff;
}

*,
*::after,
*::before {
  margin: 0;
}

body {
  font-family: "Montserrat", sans-serif;
}

input,
textarea,
button {
  font-family: "Montserrat", sans-serif;
}

section:not(:first-child) {
  padding-top: 57px;
  padding-bottom: 100px;
}

section:not(:first-child) h1 {
  padding-bottom: 1px;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--saturn);
  width: fit-content;
}

ul {
  list-style: none;
  padding-left: 0;
}

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

/* NAVIGATION */
nav {
  border-bottom: 1px solid var(--saturn);
  position: fixed;
  width: 100%;
  background-color: var(--venus);
  box-shadow: 0px 1px 10px rgb(194, 194, 194);
}

.nav-wrap {
  max-width: 1140px;
  width: 95%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-wrap p {
  font-size: 1.3rem;
  font-weight: 600;
  /* font-family: "Uchen", serif; */
}

nav ul {
  display: flex;
}

nav ul li {
  color: var(--mars);
  font-size: 0.9rem;
}

nav ul li a {
  padding: 1rem 0;
  display: block;
  border-bottom: 4px solid transparent;
  font-weight: bold;
  transition: all 0.3s ease;
}

nav ul li:not(:last-child) {
  margin-right: 4.5rem;
}

nav ul li a.active,
nav ul li a:hover {
  border-bottom: 4px solid var(--pluto);
  color: var(--pluto);
}

.nav-toggle {
  display: none;
  z-index: 200;
  width: 25px;
  height: 25px;
  cursor: pointer;
  background: center/cover no-repeat url("./assets/icons/bars-solid.svg");
  transition: all 0.3s ease;
}

.nav-toggle.active {
  background: center/cover no-repeat url("./assets/icons/times-solid.svg");
}
/* PAGE CONTAINER */

.container {
  max-width: 1140px;
  width: 95%;
  margin: 0 auto;
}
/* HOME  */
#home {
  height: 100vh;
  display: flex;
  align-items: center;
}
.lading-content {
  flex: 1;
}

.landing-content img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}
.landing-content p {
  font-size: 2rem;
  font-weight: 500;
  margin: 0.5rem 0;
}
.landing-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.landing-content ul {
  display: flex;
}
#home ul li {
  color: var(--mars);
  transition: all 0.3s ease;
  cursor: pointer;
}

#home ul li:not(:last-child) {
  margin-right: 1.5rem;
}
#home ul li:hover {
  color: var(--pluto);
}
.landing-banner {
  width: 100%;
  margin-left: auto;
  max-width: 300px;
  border-radius: 50%;
}

/* WORK */
.work-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 2rem;
  justify-items: center;
}

.work-card {
  max-width: 300px;
  display: flex;
  flex-direction: column;
}
.work-card img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  flex: 1;
  border: 1px solid rgb(219, 219, 219);
  border-radius: 2%;
}

.work-details {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.work-details p {
  font-weight: 600;
  font-size: 0.9rem;
}

.work-details ul {
  display: flex;
}

.work-details ul li {
  color: var(--mars);
  transition: all 0.3s ease;
}
.work-details ul li:hover {
  color: var(--pluto);
}

.work-details ul li:first-child {
  margin-right: 1.7rem;
}

/* ABOUT ME */
.about-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 3rem;
}

.about-info {
  display: flex;
  align-items: center;
}

.about-info > div h4 {
  margin: 0.5rem 0 1rem 0;
}

.about-info > div p {
  font-weight: 500;
  color: var(--mars);
}

.about-info > div h2 {
  font-weight: 540;
  font-size: 1.9;
}

#about ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 3rem;
}

#about ul li {
  display: flex;
  align-items: center;
  margin: 2rem;
}

#about ul li img {
  width: 59px;
  margin-right: 0.5rem;
}

#about ul li span {
  font-weight: 600;
}

/* CONTACT */
#contact header {
  font-weight: 5rem;
}
.contact-border {
  background-color: var(--saturn);
  height: 1px;
}
.contact-info {
  text-align: center;
}
.contact-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: -2rem 0 0.5rem 0;
}
.contact-info__desc {
  font-weight: 500;
  color: var(--mars);
}

/* CONTACT FORM */
form {
  max-width: 768px;
  margin: 4rem auto 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column-reverse;
  margin-bottom: 1.5rem;
}

.form-group label {
  color: var(--mars);
  margin-bottom: 0.5rem;
}

form input,
form textarea {
  padding: 0.5rem;
  outline: none;
  border: 1px solid var(--saturn);
}

form input:focus,
form textarea:focus {
  border: 1px solid var(--pluto);
}

form input:focus + label,
form textarea:focus + label {
  color: var(--pluto);
}

form button {
  background-color: #000;
  color: #fff;
  padding: 0.5rem 1.5rem;
  display: block;
  margin: 0 auto;
  outline: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--saturn);
  text-align: center;
  padding: 1rem;
}

.footer-desc {
  margin-top: 0.3rem;
}

footer ul {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

footer ul li {
  color: var(--mars);
  transition: all 0.3s ease;
}

footer ul li:hover {
  color: var(--pluto);
}

footer ul li:not(:last-child) {
  margin-right: 3rem;
}

/* MEDIA QUERIES */
@media (max-width: 1023px) {
  section:not(:first-child) {
    padding-bottom: 50px;
  }
  /* Navigation */
  nav {
    padding: 1rem 0;
  }
  .nav-toggle {
    display: block;
    justify-content: end;
  }

  nav ul {
    width: 60%;
    position: fixed;
    right: -1rem;
    bottom: 0;
    top: 0;
    padding: 4rem 2rem 2rem 2rem;
    background: var(--venus);
    height: 100%;
    z-index: 100;
    box-shadow: 2px 0 10px black;
    flex-direction: column;
    transition: all 0.3s linear;
    transform: translateX(100%);
  }
  nav ul.active {
    transform: translateX(0);
  }
  nav ul li:not(:last-child) {
    margin-right: 0;
  }

  /* Landing Banner */
  .landing-banner {
    position: relative;
    width: 100%;
    max-width: 200px;
    display: flex;
  }

  /* Work */
  .work-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About  */
  .about-info {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-avatar {
    margin: 0 0 1rem 0;
  }

  #about ul li {
    margin: 0.5rem;
  }
}

@media (max-width: 500px) {
  /* Work */
  .work-cards {
    grid-template-columns: 1fr;
  }
  .landing-banner {
    position: absolute;
    z-index: -1;
    width: 50%;
    max-width: 150px;
    margin-top: 10cm;
    margin-left: 121px;
  }
}
