@import url('color.css');
@import url('animation.css');
@import url('font.css');
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 16px;
}

header {
  z-index: 999;
  /* background-color: var(--white); */
  position: fixed;
  width: 100vw;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding:10px 20px;
  animation: upToBottom .5s ease-in;
  -webkit-animation: upToBottom .5s ease-in;
  /* box-shadow: 0 -10px 10px 10px var(--black); */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.title {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.title h1 {
  font-family: "Madimi One", sans-serif;
  color: var(--black);
  font-weight: 400;
  font-style: normal;
  font-size: 2rem;
}

.title p {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  text-decoration: none;
  transition: all .4s ease;
  -webkit-transition: all .4s ease;
  -moz-transition: all .4s ease;
  -ms-transition: all .4s ease;
  -o-transition: all .4s ease;
  color: var(--blue);
}

.title p:hover {
  text-decoration:underline;
  opacity: .6;
}

.title .round {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--green);
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

.round div {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--green);
  border: 2px solid var(--white);
  animation: toBig 5s infinite;
  -webkit-animation: toBig 5s infinite;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

header .navigasi {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.child-nav {
  padding: 0 30px;

}

.child-nav:hover {
  border-bottom: 1px solid var(--blue);
}

.child-nav a {
  text-decoration: none;
  color: var(--blue);
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
}

header .navigasi .line {
  width: 2px;
  height: 30px;
  background-color: var(--blue);
}

main {
  display: flex;
  flex-direction: column;
  width: 100vw;
}

main article {
  min-width: 100vw;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#project {
  background-color: var(--cream);
  padding-top: 5%;
  padding-bottom: 5%;
  animation: fadeIn 1s ease;
  -webkit-animation: fadeIn 1s ease;
}

#project:not(:target) {
  animation: none;
  -webkit-animation: none;
}

#personal {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: leftToRight 1s ease;
  -webkit-animation: leftToRight 1s ease;
  padding: 0 15%;
  border-bottom: 2px solid var(--blue);
  height: 100vh;

}

#personal:not(:target) {
  animation: none;
  -webkit-animation: none;
}

main #personal .personal-wrapper {
  width: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 5%;
  gap: 50px;
}

.profile-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 500px;
  height: 500px;
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
  overflow: hidden;
  animation: images 10s infinite;
  -webkit-animation: images 10s infinite;
}

.profile-photo img {
  margin-top: 20px;
  width: 100%;
  animation: leftToRight .5s ease;
  -webkit-animation: leftToRight .5s ease;
}

main #personal .profile-me {
  display: flex;
  flex-direction: column;
  gap: 30px
}

.profile-text{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-text p {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  opacity: 0;
  animation: rightToLeft .5s ease-in-out forwards;
  -webkit-animation: rightToLeft .5s ease-in-out forwards;
  animation-delay: 1s;
}

.profile-text h2 {
  font-family: "Madimi One", sans-serif;
  color: var(--black);
  font-weight: 400;
  font-style: normal;
  font-size: 3rem;
  animation: rightToLeft .5s ease-in-out forwards;
  -webkit-animation: rightToLeft .5s ease-in-out forwards;
}

.profile-text h3 {
  font-family: "Noto Sans", sans-serif;
  font-weight: 800;
  color: var(--blue);
  font-style: normal;
  font-size: 1.5rem;
  opacity: 0;
  animation: rightToLeft .5s ease-in-out forwards;
  -webkit-animation: rightToLeft .5s ease-in-out forwards;
  animation-delay: .5s;
}

main #personal .profile-me .personal-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.personal-nav a {
  text-decoration: none;
  color: var(--blue);
  font-family: "Madimi One", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

.personal-nav a:nth-child(1) {
  background-color: var(--ele1);
  border: 2px solid var(--ele10);
  opacity: 0;
  animation: rightToLeft .5s ease-in-out forwards;
  -webkit-animation: rightToLeft .5s ease-in-out forwards;
  animation-delay: 1.5s;
}

.personal-nav a:nth-child(2) {
  background-color: var(--ele2);
  border: 2px solid var(--ele20);
  opacity: 0;
  animation: rightToLeft .5s ease-in-out forwards;
  -webkit-animation: rightToLeft .5s ease-in-out forwards;
  animation-delay: 1.8s;
}

.personal-nav a:nth-child(3) {
  background-color: var(--ele3);
  border: 2px solid var(--ele30);
  opacity: 0;
  animation: rightToLeft .5s ease-in-out forwards;
  -webkit-animation: rightToLeft .5s ease-in-out forwards;
  animation-delay: 2.2s;
}

.project-wrapper {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 0 10%;
}

.project-wrapper h2 {
  font-family: "Madimi One", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2rem;
  color: var(--black);
  margin-bottom: 25px;
}

.project-bottom h2 {
  margin-top: 25px;
}

.card-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.card-project {
  background-color: var(--white-blue);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 300px;
  border-radius: 10px 10px 0px 0px;
  -webkit-border-radius: 10px 10px 0px 0px;
  -moz-border-radius: 10px 10px 0px 0px;
  -ms-border-radius: 10px 10px 0px 0px;
  -o-border-radius: 10px 10px 0px 0px;
}

.card-info {
  padding: 0 10px 20px;
}

.card-image {
  width: 100%;
  height: 150px;
  border-radius: 0 50px;
  -webkit-border-radius: 0 50px;
  -moz-border-radius: 0 50px;
  -ms-border-radius: 0 50px;
  -o-border-radius: 0 50px;
}

.card-project h3 {
  font-family: "Noto Sans", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 1rem;
  margin-top: 10px;
  
}

.card-project p {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: .8rem;
  background-color: var(--white);
  padding: 5px 15px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

.card-project .card-tag {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.card-image img {
  width: 100%;
  height: 100%;
  transition: .5s ease;
  -webkit-transition: .5s ease;
  -moz-transition: .5s ease;
  -ms-transition: .5s ease;
  -o-transition: .5s ease;
}

.card-image:hover img {
  filter: brightness(0.5);
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
  -webkit-filter: brightness(0.5);
}

.card-button {
  display: flex;
  flex-direction: row;
  justify-content:center;
  margin-top: 20px;
}

.card-button a {
  width: 100%;
  padding: 10px 20px;
  font-family: "Noto Sans", sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: 1rem;
  color: var(--blue);
  background-color: var(--ele3);
  border: 1px solid var(--ele30);
  cursor: pointer;
  transition: .5s ease;
  -webkit-transition: .5s ease;
  -moz-transition: .5s ease;
  -ms-transition: .5s ease;
  -o-transition: .5s ease;
  text-align: center;
  text-decoration: none;
}

.card-button a:hover {
  color: var(--white);
  background-color: var(--blue);
  border: 1px solid var(--blue);
}

.logos {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.logos * {
  width: 70px;
  height: 70px;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}

footer {
  width: 100%;
  border-top: 1px solid var(--gray);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  background-color: var(--white);
  animation: bottomToUp .5s ease-in;
  -webkit-animation: bottomToUp .5s ease-in;
}

footer h3 {
  font-family: "Madimi One", sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: 1.2rem;
  color: var(--blue);
}

footer p {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  color: var(--blue);
}

footer a {
  text-decoration: none;
  color: var(--blue);
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  transition: .5s ease;
  -webkit-transition: .5s ease;
  -moz-transition: .5s ease;
  -ms-transition: .5s ease;
  -o-transition: .5s ease;
}

footer a::before {
  content: "👉";
  opacity: 0;
  transition: opacity .5s ease;
  -webkit-transition: opacity .5s ease;
  -moz-transition: opacity .5s ease;
  -ms-transition: opacity .5s ease;
  -o-transition: opacity .5s ease;
}

footer a:hover::before {
  opacity: 1;
}

aside {
  position: fixed;
  right: 20px;
  bottom: 50px;
}

aside img {
  width: 60px;
  animation: shake 3s ease infinite ;
  -webkit-animation: shake 3s ease infinite ;
}

@media screen and (max-width: 1494px) {
  #personal {
    padding: 0 10%;
  }
}

@media screen and (max-width: 1308px) {
  #personal {
    padding: 0 5%;
  }
}

@media screen and (max-width: 1162px) {
  #personal {
    padding: 0 2%;
  }

  .profile-photo {
    width: 400px;
    height: 400px;
  }
}

@media screen and (max-width: 1090px) {
  .profile-photo {
    width: 450px;
    height: 450px;
  }

  main #personal .personal-wrapper {
    gap: 30px;
  }

  html {
    font-size: 14px;
  }
}

@media screen and (max-width: 966px) {
  html {
    font-size: 13px;
  }
  header {
    flex-direction: column;
  }

  .profile-photo {
    width: 400px;
    height: 400px;
  }
}

@media screen and (max-width: 880px) {
  html {
    font-size: 12px;
  }

  main #personal .profile-me .personal-nav {
    justify-content: space-around;
    gap: 0;
  }
  
  .personal-nav a {
    width: 80px;
    height: 80px;
  }

  main #personal .personal-wrapper {
    gap: 0;
    padding: 0 2%;
  }

  #personal {
    padding:0 2%;
  }

  .profile-photo {
    width: 300px;
    height: 300px;
  }

}

@media screen and (max-width: 660px) {
  html {
    font-size: 10px;
  }
  .personal-nav a {
    width: 70px;
    height: 70px;
  }
}

@media screen and (max-width: 608px) {
  main #personal .personal-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  aside {
    top: 100px;
  }
  main article {
    min-height: 720px;
  }
}

@media screen and (max-width: 510px) {
  footer {
    flex-wrap: wrap;
    padding: 4px 5%;
  }

  footer div:nth-child(4) p {
    background-color: var(--ele30);
    padding: 5px 10px;
  }

  header {
    padding: 10px 3%;
  }

  header h1 {
    font-size: 1rem;
  }

  .child-nav {
    padding: 0 15px;
  }

  header .title {
    gap: 5px;
  }

  .logos * {
    width: 50px;
    height: 50px;
  }
}