@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,300;0,400;0,600;0,800;1,500;1,700;1,800&display=swap");

:root {
  --primary: dodgerblue;
  --bg: white;
  --shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins";
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
}

.navbar {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 0;
  width: 100%;
  height: 80px;
  box-shadow: var(--shadow);
  background-color: var(--bg);
  padding: 10px 5%;
  z-index: 999;
  transition: 0.3s;
  left: 0;
}
.navbar .logo {
  font-size: 30px;
  color: var(--primary);
  font-weight: 800;
}
.navbar .list {
  display: flex;
  gap: 2rem;
  font-size: 20px;
}
.navbar .list li a {
  color: black;
}
.navbar .list li a:hover {
  color: var(--primary);
}
.navbar .hamburger {
  display: none;
  cursor: pointer;
}
.navbar .hamburger .line {
  width: 35px;
  height: 3px;
  background-color: black;
  margin: 10px;
}

.hero {
  margin-top: 8rem;
  display: flex;
  align-items: center;
  padding: 20px 5%;
}

.hero .hero-right {
  display: flex;
  justify-content: end;
}
.hero .sub-title,
.skils h1,
.about h4,
.contact h5 {
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  color: rgba(0, 0, 0, 0.5);
  position: relative;
  padding-left: 40px;
  width: fit-content;
  font-weight: 400;
  font-size: 0.9rem;
}

.hero .sub-title::before,
.skils h1::before,
.about h4::before,
.contact h5::before {
  content: "";
  width: 30px;
  height: 1px;
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  display: block;
  left: 0;
  top: 50%;
}

.hero .title {
  font-size: 30px;
}
.hero .hero-right {
  width: 100%;
  align-items: center;
}
.hero .hero-right img {
  width: 400px;
  border-radius: 100%;
}

.service .sub-title {
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  color: rgba(0, 0, 0, 0.5);
  position: relative;
  padding-left: 40px;
  width: fit-content;
  font-weight: 400;
  font-size: 0.9rem;
}

.service .sub-title::before {
  content: "";
  width: 30px;
  height: 1px;
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  display: block;
  left: 0;
  top: 30%;
}

.service {
  padding: 50px 0;
  background-color: whitesmoke;
}
.service .sub-title {
  margin: 0 auto;
  text-align: center;
  padding-bottom: 20px;
  font-size: 20px;
}

.service .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.service .row .content {
  background-color: var(--bg);
  width: 400px;
  height: 300px;
  text-align: center;
  box-shadow: var(--shadow);
  border-radius: 20px;
  margin: 20px;
  transition: ease-in-out 0.2s;
}

.service .row .content:hover {
  transform: scale(1.1);
}
.service .row .content h2 {
  font-weight: 500;
}
.service .row .content .icon {
  font-size: 25px;
  padding: 20px;
  color: dodgerblue;
  border-radius: 15px;
  background-color: #1e90ff4b;
  margin-top: 20px;
  margin-bottom: 10px;
}
.service .row .content h2 {
  padding-bottom: 10px;
}
.service .row .content p {
  padding: 0 20px;
}

.skils h1 {
  margin: 0 auto;
  text-align: center;
  font-size: 20px;
}
.skils h3 {
  margin: 5px;
  font-weight: 500;
}
.skils {
  width: 600px;
  margin: 60px auto;
  color: black;
  padding: 20px;
  box-shadow: var(--shadow);
}

.skils li {
  margin: 20px 0;
  padding: 10px;
}
.bar {
  background-color: rgba(0, 0, 0, 0.6);
  display: block;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 0.1);
}

.bar span {
  height: 20px;
  float: left;
  background-color: var(--primary);
}

.html {
  width: 100%;
  animation: html 4s;
}
.css {
  width: 75%;
  animation: css 4s;
}
.javascript {
  width: 35%;
  animation: javascript 4s;
}

@keyframes html {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}
@keyframes css {
  0% {
    width: 0%;
  }
  100% {
    width: 75%;
  }
}
@keyframes javascript {
  0% {
    width: 0%;
  }
  100% {
    width: 25%;
  }
}

.about {
  margin: 50px;
  line-height: 2rem;
  padding-bottom: 4rem;
}
.about h4 {
  line-height: 4rem;
  font-size: 30px;
}
.about p {
  font-size: 20px;
  max-width: 1200px;
}
.contact {
  margin: 30px 0;
  text-align: center;
}
.contact h5 {
  font-size: 30px;
  margin: 0 auto;
  line-height: 4rem;
}

.contact .row {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}
.contact .row .content {
  width: 500px;
  padding: 20px;
  height: 400px;
}
input,
textarea {
  font-family: "Poppins";
  padding: 15px 10px;
  margin-bottom: 1rem;
  border-radius: 5px;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: transparent;
}
input:focus,
textarea:focus {
  outline: none;
  border: 1px solid var(--primary);
}
button {
  width: 100%;
  background-color: var(--primary);
  padding: 10px;
  color: white;
  border: none;
  border-radius: 5px;
  transition: 0.2s;
}
button:hover {
  background-color: #0d447a;
}
footer {
  margin-top: 10rem;
  text-align: center;
  padding: 20px;
  font-size: 30px;
  color: white;
  bottom: 0;
  background-color: var(--primary);
}
footer h6 {
  font-weight: 400;
}
/*Tablet*/
@media (max-width: 768px) {
  .navbar .hamburger {
    display: block;
  }
  .navbar .list {
    padding: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background-color: var(--bg);
    box-shadow: var(--shadow);
    width: 100%;
  }
  .navbar .list.hidden {
    display: none;
  }

  .hero {
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero .hero-right {
    justify-content: center;
    order: -1;
  }

  .hero .hero-left {
    text-align: center;
    padding-bottom: 2rem;
  }

  .hero .sub-title {
    margin: 0 auto;
  }

  .hero .title {
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
  }
  .hero .deskripsi {
    max-width: 400px;
  }
  .skils {
    width: 90%;
  }
  .about h4 {
    font-size: 20px;
  }
  .about p {
    font-size: 15px;
    line-height: 1.5rem;
  }
}
