/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

/* Gaya body */
body {
  line-height: 1.6;
  background-color: #fff;
  color: #333;
}

/* Hamburger icon */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Navigasi */
.navbar {
  padding: 1.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding-right: 7rem;
}

.navbar a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition:  color 0.3s ease;
}

.navbar a:hover {
  color: #0056b3;
}

/* Bagian utama */
main {
  max-width: 1000px;
  margin: 2rem auto;
}

section {
  margin-bottom: 3rem;
  line-height: 1;
}

/* font */
h1, h2 {
  color: #222;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: bold;
}

/* Beranda */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 5rem;
}

.hero_text {
  flex: 1;
}

.hero_text h1{
  font-size: 4rem;
}

#beranda h1, p{
  margin-bottom: 1rem;
}

.hero_text p{
  font-size: 2rem;
  margin-bottom: 2rem;
}

.hero_text .btn{
  background-color: #007bff;
  padding: 1rem 3rem;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  text-decoration: none;
  color: #000;
}

.hero_text .btn:hover {
  background: #0056b3;
}

.hero_image {
  flex: 1;
  text-align: center;
}

.hero_image img {
  max-width: 100%;
  width: 600px;
  height: auto;
  border-radius: 10px;
}

/* WhatsApp Icon */
.hero_image .whatsapp{
  position:fixed;
  bottom: 7rem;
  right: 2rem;
  width: 4rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  transition: box-shadow 0.3s ease;
  z-index: 9999;
}

.hero_image .whatsapp:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* Tentang */
.tentang{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.tentang p{
  font-size: 1.3rem;
}

.tentang h3{
  font-size: 2rem;
  font-weight: 300;
  font-style: normal;
  margin-top: 1rem;
}

.tentang .all_logo{
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.tentang .all_logo .logo{
  border: 1px solid black;
  padding: 1rem 1rem 0;
  background-color: #007bff;
  border-radius:5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.all_logo .logo p{
  padding: 0;
}

.logo .mikrotik{
  font-style: italic;
  font-size: 1.6rem;
}

.logo p span{
  font-weight: bold;
}

.logo .logo_sisco{
  width: 50px;
  position: absolute;
  margin-left: 4.5rem;
}

.all_logo #logo3{
  padding: 1rem 1rem 0.5rem 4rem;
}

.logo .logo_linux{
  position: absolute;
  width: 40px;
  margin-left: -8rem;
  margin-top: -2rem;
}

/* projek*/
#project{
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.containerAllPortofolio{
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.containerAllPortofolio .container{
  width: 310px;
  border: 1px solid black;
  border-radius: 2rem;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.containerAllPortofolio .container img{
  width: 80px;
}

.containerAllPortofolio .container p{
  font-size: 1.2rem;
  text-align: center;
}

.containerAllPortofolio .container span{
  font-weight: bold;
}

.containerAllPortofolio .container a{
  font-size: 1.2rem;
  color: #000;
  list-style-type: none;
  text-decoration: none;
}

/* sertifikat skils kontak */
.ssk{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
}

/* sertifikat */
.sertifikat .logo1{
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.sertifikat .logo1 .mikrotik1{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.sertifikat .logo1 .mikrotik1 span{
  font-weight: bold;
}

.sertifikat .logo1 .mikrotik1 p{
  font-size: 1.8rem;
  font-style: italic;
}

.sertifikat img{
  width: 100px;
}

/* skill */
.skill-container {
  margin: 50px auto;
}

.skill {
  margin-bottom: 1.5rem;
}

.skill .skill_1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  padding: 0;
}

.skill .skill_1 p {
  margin: 0;
}

progress {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  appearance: none;
}

progress::-webkit-progress-bar {
  background-color: #e0e0e0;
  border-radius: 10px;
}

progress::-webkit-progress-value {
  background-color: #007BFF;
  border-radius: 10px;
}

progress::-moz-progress-bar {
  background-color: #007BFF;
  border-radius: 10px;
}

/* kontak */
.kontak form {
  padding: 0 30px;
  width: 100%;
  max-width: 400px;
}

.kontak input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: 1px solid black;
}

.kontak button {
  background: #007BFF;
  color: white;
  padding: 10px;
  width: 100px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.kontak button:hover {
  background: #0056b3;
}

/* Footer */
footer {
  border-top: 1px solid black;
  text-align: center;
  position: relative;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0.5rem 5rem;
  align-items: center;
}

footer h3{
  text-align: left;
  font-size: 1.5rem;
}

footer h4{
  text-align: left;
}

.sectionFooter2{
  margin-top: 5rem;
}

.sectionFooter3{
  padding-left: 7rem;
}

.sectionFooter3 img{
  width: 30px;
}

@media (max-width: 768px) {
  /* Navbar */
  .navbar{
    padding: 1rem;
  }

  .menu-toggle{
    display: block;
  }

  .navbar .nav-links{
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 80px;
    right: -350px;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid black;
    height: 100vh;
    gap: 2rem;
    width: 50%;
    transition: right 9s ease;
    z-index: 1200;
  }

  .navbar .nav-links.show {
    right: 0;
    display: flex;
  }

  /* Overlay */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 1100;
  }

  .overlay.show {
    display: block;
  }

  /* bagian utama */
  main{
    margin: 0rem 2rem;
  }

  /* font */
  h2{
    font-size: 1.5rem;
  }

  /* beranda */
  .hero{
    padding: 0;
  }

  .hero_text h1{
    font-size: 2rem;
  }

  .hero_text p{
    font-size: 1rem;
  }

  .hero_text .btn{
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
  }

  .hero_image {
    text-align: center;
    padding: 2rem;
  }

  .hero_image img {
    width: 80%;
    height: auto;
  }

  /* WhatsApp Icon */
  .hero_image .whatsapp {
    width: 3rem;
    right: 1rem;
    bottom: 5rem;
  }

  /* tentang */
  .tentang{
    padding-top: 2rem;
  }

  .tentang h3{
    font-size: 1.2rem;
  }

  .tentang p{
    font-size: 1rem;
  }

  .tentang .all_logo{
    gap: 0.5rem;
  }

  .tentang .all_logo .logo{
    padding: 0.5rem 0.5rem 0;
  }

  .all_logo .logo p{
    font-size: 0.9rem;
  }

  .logo .logo_sisco{
    width: 40px;
    margin-left: 3.7rem;
  }

  .all_logo #logo3{
    padding: 1rem 1rem 0.5rem 3rem;
  }

  .logo .logo_linux{
    margin-right: -2rem;
  }

  /* projek*/
  #project{
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .containerAllPortofolio{
    gap: 1rem;
  }

  .containerAllPortofolio .container{
    width: 250px;
  }

  .containerAllPortofolio .container img{
    width: 50px;
  }

  .containerAllPortofolio .container p{
    font-size: 0.9rem;
  }

  .containerAllPortofolio .container a{
    font-size: 0.9rem;
  }

  /* sertifikat skils kontak */
  .ssk{
    gap: 1rem;
    padding: 2rem 0;
  }

  .sertifikat img{
    width: 80px;
  }

  /* skill */
  .skill .skill_1 p{
    font-size: 0.9rem;
  }

  /* Footer */
  footer {
    padding: 0 2rem;
  }

  footer p {
    font-size: 0.9rem;
  }

  footer h3{
    font-size: 1rem;
  }

  footer h4{
    font-size: 0.8rem;
  }

  .sectionFooter2{
    margin-top: 4rem;
  }
  
  .sectionFooter2 p{
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  main{
    margin: 0 1rem;
  }

  /* beranda */
  .hero{
    flex-direction:column-reverse;
    gap: 0.5rem;
  }

  .hero_text{
    width: 100%;
  }

  .hero_image img{
    width: 60%;
  }

  /* whatsapp */
  .hero_image .whatsapp{
    bottom: 7rem;
    right: 2rem;
  }

  /* tentang */
  .tentang{
    flex-direction: column-reverse;
    gap: 0.5rem;
    padding-bottom: 0;
  }

  /* sertifikat skils kontak */
  .ssk{
    gap: 0.5rem;
  }

  .sertifikat img{
    width: 50px;
  }

  /* footer */
  footer{
    gap: 0;
    padding: 0.5rem;
  }

  .sectionFooter2{
    margin-top: 1rem;
  }

  .sectionFooter3{
    padding: 0;
    margin: 0;
    right: 10rem;
  }
}