@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");
body {
  background: #161821;
  color: #fafafa;
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
.blur {
  position: absolute;
  height: 450px;
  width: 450px;
  left: -225px;
  top: 0;
  z-index: -1;
  background-color: #5743b7;
  filter: blur(120px);
  border-radius: 600px;
  opacity: 0.4;
}
/* nav */
.navbar {
  margin-top: 15px;
}
.logo {
  max-height: 30px;
}
.navbar .nav-item .nav-link {
  font-weight: 600;
  margin-left: 35px;
  padding: 5px 0;
  position: relative;
}
.navbar .nav-item .nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: #5743b7;
  transition: all 0.5s ease;
  transform: scale(0);
}
.navbar .nav-item .nav-link.active::before,
.navbar .nav-item .nav-link:hover::before {
  color: #5743b7;
  transform: scale(1);
}

/* menu hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  height: 20px;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #fafafa;
  border-radius: 3px;
  transition: all 0.5s;
}
.menu-toggle input {
  position: fixed;
  display: block;
  width: 40px;
  height: 28px;
  right: 6px;
  top: 13px;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

/* animasi hamburger */
.menu-toggle span:nth-child(2) {
  transform-origin: 0 0;
}
.menu-toggle span:nth-child(4) {
  transform-origin: 0 100%;
}
.menu-toggle input:checked ~ span:nth-child(2) {
  transform: rotate(45deg) translate(4px, -9px);
  position: fixed;
}
.menu-toggle input:checked ~ span:nth-child(4) {
  transform: rotate(-45deg) translate(-3px, 15px);
  position: fixed;
}
.menu-toggle input:checked ~ span:nth-child(3) {
  transform: scale(0);
  opacity: 0;
}

/* hero */
.hero {
  margin-top: 180px;
}
.hero h4 {
  font-weight: 600;
  font-size: 1.5rem; /* 24px */
  margin-bottom: 0px;
}
.hero h2 {
  font-weight: 700;
  font-size: 2.25rem; /* 36px */
  margin-bottom: 20px;
}
.hero p {
  font-size: 1rem; /* 16px */
  margin-bottom: 20px;
}
.hero .contact {
  background: #5743b7;
  border: #5743b7;
  padding: 10px 20px;
  border-radius: 200px;
  width: 120px;
}
.hero .contact:hover {
  background: #4027c0;
}
.hero .hero_img {
  margin-top: -80px;
  float: right;
  animation: bounceTop 5s ease infinite;
}
@keyframes bounceTop {
  0%,
  100% {
    transform: translateY(-20px);
  }
  50% {
    transform: translateY(0px);
  }
}

.project {
  margin-top: 150px;
}
.project h2 {
  font-weight: 700;
  font-size: 2.25rem; /* 36px */
}
.project .project-caption {
  font-size: 1rem; /* 16px */
  margin-left: 3px;
  margin-bottom: 25px;
}
.project .boxfilms,
.project .furniture {
  max-height: 400px;
}
.project .web-caption,
.project .app-caption {
  margin-top: 20px;
  text-align: center;
  font-weight: 700;
}
.mobile-project {
  margin-top: 80px;
}
.saving,
.meals,
.furniture-app {
  max-height: 310px;
}
.blur1 {
  position: absolute;
  height: 350px;
  width: 350px;
  right: 0px;
  z-index: -1;
  background-color: #5743b7;
  filter: blur(120px);
  border-radius: 600px;
  opacity: 0.4;
}
.project .detail {
  background: #5743b7;
  border: #5743b7;
  padding: 10px 20px;
  border-radius: 200px;
  width: 150px;
  display: block;
  margin: 50px auto;
}
.project .detail:hover {
  background: #4027c0;
}

/* skills and tools */
.skills {
  margin-top: 150px;
}
.skills h2 {
  font-weight: 700;
  font-size: 2.25rem; /* 36px */
  text-align: center;
  margin-bottom: 70px;
}
.programming img {
  padding-right: 50px;
  margin-bottom: 80px;
}
.programming .mysql {
  padding-right: 0;
}
.tools img {
  padding-right: 50px;
  margin-bottom: 50px;
}
.tools .figma {
  padding-right: 0;
}
.blur2 {
  position: absolute;
  height: 450px;
  width: 450px;
  left: -225px;
  z-index: -1;
  background-color: #5743b7;
  filter: blur(120px);
  border-radius: 600px;
  opacity: 0.4;
}

/* footer */
.footer {
  margin-top: 150px;
}
.footer h2 {
  font-weight: 700;
  font-size: 2.25rem; /* 36px */
  margin-bottom: 20px;
}
.footer p {
  margin-bottom: 20px;
  font-size: 1rem; /* 16px */
}
.footer .social-media {
  margin-bottom: 20px;
}
.footer .social-media img {
  padding-right: 20px;
}
.footer .signed-logo {
  margin-top: -100px;
  float: right;
  margin-bottom: 50px;
}

/* RESPONSIVE CSS */
@media (max-width: 576px) {
  .navbar {
    margin-top: 0 !important;
  }
  .navbar .navbar-nav {
    width: 60%;
    position: fixed;
    flex-direction: column;
    height: 100vh;
    top: 0;
    bottom: 0;
    right: 0;
    background: #161821;
    align-items: center;
    padding-top: 100px;
    z-index: 1;
    display: none;
    transition: all 0.5s;
  }
  .navbar .navbar-nav.slide {
    display: flex;
  }
  .navbar .nav-item .nav-link {
    padding-top: 50px;
    margin-left: 0;
    z-index: 1;
  }
  .menu-toggle {
    display: flex;
  }
  .hero {
    margin-top: 60px;
  }
  .hero .hero_img {
    float: none;
    display: block;
    margin: 20px auto;
    max-width: 300px;
  }
  .hero h4,
  .hero h2,
  .hero p {
    text-align: center;
  }
  .hero h2 {
    font-size: 24px;
  }
  .hero h4 {
    font-size: 18px;
  }
  .hero .contact {
    display: block;
    margin: 5px auto;
  }
  .project h2,
  .project p {
    text-align: center;
  }
  .project h2 {
    font-size: 24px;
  }
  .mobile-project {
    margin-top: 50px;
  }
  .saving,
  .meals,
  .furniture-app {
    display: block;
    margin: 5px auto;
  }
  .skills h2 {
    margin-bottom: 50px;
    font-size: 24px;
  }
  .programming img,
  .tools img {
    max-height: 30px !important;
    padding-right: 10px !important;
  }
  .programming img {
    margin-bottom: 35px;
  }
  .project .detail {
    margin-top: 25px;
  }
  .footer {
    margin-top: 80px;
  }
  .footer h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .footer p {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .social-media img {
    max-height: 20px;
    padding-right: 10px !important;
  }
  .footer .signed-logo {
    float: right;
    margin-bottom: 320px;
  }
  .signed-logo img {
    margin-top: 25px;
    max-height: 80px;
    opacity: 0.4;
  }
}
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: unset;
  }
  .footer .signed-logo {
    float: right;
    margin-bottom: 60px;
  }
  body h2 {
    font-size: 24px !important;
  }
  .hero h4 {
    font-size: 20px;
  }
  .hero .hero_img {
    margin-top: 20px;
  }
  .programming img,
  .tools img {
    max-height: 50px;
    padding-right: 25px;
  }
}
@media (max-width: 992px) {
  #skills .programming img,
  #skills .tools img {
    width: 75px; 
    height: auto; 
  }
}
@media (max-width: 576px) {
  #skills .programming img,
  #skills .tools img {
    width: 50px; 
    height: auto; 
  }
}

img {
  max-width: 100%;
  height: auto;
}
