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

.close {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  justify-content: flex-end;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

nav {
  font-family: "Open Sans", sans-serif;
}

body::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: rgb(33, 42, 47);
  max-width: auto;
  gap: 5rem;
}
header.nav-container {
  background-color: transparent;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  align-content: center;
  max-width: auto;
  width: 100%;
  padding-block: 1rem;
  margin-inline: auto;
  z-index: 9999;
  overflow: hidden;
  position: fixed;
  height: 120px;
  transition: all 0.4s ease-in-out;
  backdrop-filter: blur(6.5px);
  background-color: rgba(33, 42, 47, 0.8);
}

header.nav-container .logo {
  width: 95px;
  transition: all0.4s ease-in-out;
  margin: 0 0 0 10px;
}

header.nav-container .logo a img {
  width: 100%;
  max-width: 95px;
  height: auto;
  cursor: pointer;
}

header.nav-container .nav-list-desktop ul {
  display: flex;
  flex-direction: row;
  gap: 1.8rem;
  justify-content: center;
  padding-left: 0;
}

header.nav-container .nav-list-desktop ul li {
  list-style-type: none;
  cursor: pointer;
}

header.nav-container .nav-list-desktop ul li a {
  text-decoration: none;
  color: white; ;
  padding: 0.5rem 0.25rem 0.2rem 0.25rem;
  border-radius: 5px;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

header.nav-container .nav-list-desktop ul li a:hover {
  transition: all 0.3s ease;
  color: rgb(151, 151, 151);
}

header.nav-container .nav-side-mobile {
  display: none;
}

main,
footer {
  font-family: "Source Sans 3", sans-serif;
}

footer {
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
  justify-content: center;
  justify-content: space-between;
  background-color: rgb(33, 42, 47);
  padding: 1rem;
  color: white;
  font-size: 1rem;
  font-weight: 300;
  gap: 1rem;
  font-family: "Open Sans", sans-serif;
}

.cc p a{
  text-decoration: none;
  color: white;
}

.creator p a {
  text-decoration: none;
  color: white;
}

article.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

article.top .banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("/Asset/images.jpeg");
  width: 100%;
  height: 400px;
  box-shadow: 0 0 30px 0 rgba(255, 255, 255, 0.2);
}

article.top .banner .img-round {
  border-radius: 50%;
  background-color: rgb(33, 42, 47);
  margin: 0 0 -20rem 0;
  display: flex;
  align-items: center;
  align-self: center;
}

article.top .banner .img-round .round {
  border-radius: 50%;
  padding: 17.5px;
  width: 200px;
  height: auto;
}

article.top .description {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  margin: 5rem 0 0 0;
}

article.top .description h3 {
  font-weight: 300;
  color: white;
}

.container-portofolio {
  min-height: 100hv;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgb(245, 210, 216);
  font-family: "Open Sans", sans-serif;
}

.container-portofolio h1 {
  position: absolute;
  font-size: 10rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 950px;
  padding: 20px 0 20px 0;
}

.card {
  width: 300px;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 15px;
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.card:hover {
  z-index: 2;
  transform: scale(1.1);
}

.card:hover .card-info {
  opacity: 1;
}

.card:hover img {
  filter: brightness(0.5) blur(2px);
}

.card:nth-child(6) {
  z-index: 2;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-info {
  display: flex;
  flex-direction: column;
  color: white;
  z-index: 3;
  opacity: 0;
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-text {
  font-size: 1rem;
  font-weight: 300;
}

.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.contact h1 {
  font-size: 3rem;
  font-weight: 700;
  color: white;
}

.contact .container-soc {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0 2rem 0;
  justify-content: space-around;
}

.contact .container-soc .con-bellow {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
}

.contact .container-soc h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.contact .container-soc a {
  text-decoration: none;
  color: white;
  font-size: 2.5rem;
  transition: all 0.3s ease-in-out;
}

.contact .container-soc a:hover {
  color: rgb(151, 151, 151);
}

.contact .email-send {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0 2rem 0;
  background-color: rgb(33, 42, 47);
  box-shadow: 0 0 30px 0 rgba(255, 255, 255, 0.2);
  padding: 1rem;
}

.contact .email-send h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.contact .email-send input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 5px;
  border: none;
  background-color: rgb(33, 42, 47);
  color: white;
  font-family: "Open Sans", sans-serif;
}

.contact .email-send textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 5px;
  border: none;
  background-color: rgb(33, 42, 47);
  color: white;
  font-family: "Open Sans", sans-serif;
}

.contact .email-send button {
  width: 100%;
  padding: 0.5rem;
  border-radius: 5px;
  border: none;
  background-color: rgb(33, 42, 47);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.contact .email-send button:hover {
  background-color: rgb(151, 151, 151);
}

.smaller {
  display: none;
}

@media screen and (max-width: 768px) {
  footer {
    flex-direction: column;
  }
  header.nav-container {
    height: 100px;
  }
  .copyright, .creator, .cc {
    margin: -20px 0;
  }
  header.nav-container .logo {
    width: 80px;
  }

  header.nav-container .nav-list-desktop ul {
    display: none;
  }

  header.nav-container .nav-side-mobile {
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }

  header.nav-container .nav-side-mobile .menu {
    font-size: 1.5rem;
    color: white;
  }

  header.nav-container .nav-side-mobile .menu:hover {
    color: rgb(151, 151, 151);
  }

  article.top .description {
    margin: 2rem 0 0 0;
  }

  .container-portofolio h1 {
    font-size: 5rem;
  }

  .cards {
    padding: 20px 0 20px 0;
  }

  .card {
    width: 250px;
    height: 150px;
  }

  .card-info {
    top: 30px;
  }

  .contact h1 {
    font-size: 2rem;
  }

  .contact .container-soc h4 {
    font-size: 1rem;
  }

  .contact .container-soc a {
    font-size: 2rem;
  }

  .contact .email-send h3 {
    font-size: 1rem;
  }

  .contact .email-send input {
    padding: 0.5rem;
  }

  .contact .email-send textarea {
    padding: 0.5rem;
  }

  .contact .email-send button {
    padding: 0.5rem;
  }
  header.nav-container .nav-side-mobile {
    display: flex;
    transition: all 0.3s ease-in-out;
    backdrop-filter: none;
  }
  header.nav-container .nav-side-mobile .side-nav {
    display: flex;
    width: 0;
    position: fixed;
    z-index: 1;
    height: 100%;
    top: 0;
    right: 0;
    background-color: rgba(33, 42, 47, 0.544);
    backdrop-filter: blur(6.5px);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    padding-top: 30px;
    flex-direction: column;
    padding-top: 55px;
    align-items: flex-start;
  }
  header.nav-container .nav-side-mobile .side-nav a:not(.active) {
    padding: 4px 8px 5px 32px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
    transition: all 0.3s ease-in-out;
  }
  header.nav-container .nav-side-mobile .side-nav .close-button {
    position: absolute;
    top: 0;
    right: 25px;
    margin-bottom: -10px;
    font-size: 50px;
    transition: all 0.3s ease-in-out;
  }
  header.nav-container .nav-side-mobile .open-button {
    font-size: 20px;
    cursor: pointer;
    background-color: rgba(34, 30, 30, 0.041);
    color: white;
    border: none;
    margin-left: 220px;
    margin-bottom: 10px;
    margin-top: 12.5px;
    transition: 0.3s ease-in-out;
  }
  header.nav-container {
    backdrop-filter: none;
  }
}

@media screen and (max-width: 650px) {
  .container-portofolio h1 {
    font-size: 4rem;
    position: relative;
    margin-bottom: -40px;
  }
  article.container-portofolio h1 {
    font-size: 3rem;
  }
  .cards {
    padding-top: 100px;
  }
  .smaller {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: -90px 0;
  }
  .smaller a {
    text-decoration: none;
    color: white;
  }
  .cc, .creator, .copyright {
    display: none;
  }
}

@media screen and (max-width: 425px) {
  .copyright2  p, .creator2 p, .cc2 p{
    margin: 0 0;
    font-size: 0.8rem;
  }
  .top .description h3 {
    font-size: 1.15rem;
  }
  .top .description {
    margin: 2rem 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 90px;
  }
  header.nav-container {
    height: 120px;
  }
  header.nav-container .logo {
    width: 95px;
    transition: all0.4s ease-in-out;
    margin: 0 0 0 10px;
  }
  
  header.nav-container .logo a img {
    width: 100%;
    max-width: 95px;
    height: auto;
    cursor: pointer;
  }
}