html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

html::selection {
  background-color: #59e4a8;
  color: white;
}

* {
  font-family: "Poppins", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: #323232;
  /* font-family: "Arial", sans-serif; */
}

p {
  margin: 0;
  color: #323232;
}

a > i,
button > i {
  margin-left: 7px;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* HTML: <div class="loader"></div> */
.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side, #000 90%, #0000);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: l3 1s infinite linear;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes l3 {
  20% {
    background-position: 0% 0%, 50% 50%, 100% 50%;
  }
  40% {
    background-position: 0% 100%, 50% 0%, 100% 50%;
  }
  60% {
    background-position: 0% 50%, 50% 100%, 100% 0%;
  }
  80% {
    background-position: 0% 50%, 50% 50%, 100% 100%;
  }
}

main {
  /* visibility: hidden; */
  opacity: 0;
  transition: opacity 0.5s ease;
  min-height: 100vh;
}

#backToTop {
  border-radius: 5px;
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #323232;
  color: white;
  cursor: pointer;
  padding: 10px 16px;
  transition: all 0.5s ease;
}

#backToTop:hover {
  background-color: #565656;
}

#backToTop > i {
  margin: 0;
}

nav {
  position: fixed;
  z-index: 999;
  padding: 7px 0;
  background-color: white;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
}

nav .navbar {
  display: flex;
  align-items: center;
  justify-content: start;
  flex-flow: row wrap;
  padding: 0 20px;
  max-width: 1200px; /* samakan dengan konten utama */
  margin: 0 auto;
}

.navbar a.logo {
  font-size: 24px;
  text-decoration: none;
  color: #323232;
  font-weight: bold;
}

.navbar ul li {
  margin: 0 14px;
  display: inline;
  list-style: none;
}

.navbar ul li a {
  color: #323232;
  text-decoration: none;
  transition: all 3s ease;
  position: relative;
}

.navbar ul li a::after {
  border-radius: 2px;
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0%;
  height: 1.5px;
  background-color: #323232;
  transition: width 0.5s ease;
}

.navbar ul li a:hover::after {
  width: 100%;
}

.navbar .nav-button {
  margin-left: auto;
}

.navbar .nav-button .download-cv-btn {
  color: #323232;
  outline: 1px solid #323232;
  background-color: transparent;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.5s ease;
}

.navbar .nav-button .download-cv-btn:hover {
  background-color: #323232;
  color: white;
}

/* Navbar Mobile */
nav .navbar-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 6px 20px;
  position: relative;
}

.navbar-mobile-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-mobile a.logo {
  font-size: 28px;
  text-decoration: none;
  color: #323232;
  font-weight: bold;
}

.navbar-mobile-toggle {
  border: 1px solid #323232;
  color: #323232;
  background-color: transparent;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  /* transition: all 0.5s ease; */
  cursor: pointer;
  font-size: 20px;
}

.navbar-mobile-toggle i {
  margin: 0;
}

#navbar-toggle.active {
  background-color: #323232;
  color: white;
}

.navbar-mobile .navbar-body {
  padding: 20px 0;
  background-color: white;
  text-align: center;
  width: 100%;
  display: none;
  position: absolute;
  top: calc(100%);
  left: 0;
  z-index: 5;
  transition: all 1 ease;
}

.navbar-mobile ul {
  padding: 0;
  margin: 0 0 12px;
}

.navbar-mobile ul li {
  margin: 0 12px;
  display: inline;
  list-style: none;
  display: flex;
  align-items: stretch;
  height: 48px;
}

.navbar-mobile ul li a {
  align-content: center;
  color: #323232;
  text-decoration: none;
  position: relative;
  display: block;
  width: 100%;
}

.navbar-mobile ul li a:active {
  background-color: #323232;
  color: white;
}

/* .navbar-mobile ul li a::after {
  border-radius: 2px;
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0%;
  height: 1.5px;
  background-color: #323232;
  transition: width 0.5s ease;
}

.navbar-mobile ul li a:hover::after {
  width: 100%;
} */

.navbar-mobile .nav-button .download-cv-btn {
  color: #323232;
  outline: 1px solid #323232;
  background-color: transparent;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.5s ease;
  display: inline-block;
}

.navbar-mobile .nav-button .download-cv-btn:hover {
  background-color: #323232;
  color: white;
}

main > section {
  padding: 48px 64px;
}

#hero {
  padding-top: calc(72px + 48px);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background-color: white;
  flex-wrap: wrap;
}

#hero .text-section {
  flex: 1 1 400px;
}

#hero .text-section h1 {
  font-size: 60px;
  margin: 0;
}

#hero .text-section h1 span {
  color: #59e4a8;
}

#hero .text-section h3 {
  margin: 10px 0;
}

#hero .text-section a.hire-btn {
  background-color: #323232;
  padding: 12px 32px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  transition: all 0.5s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
  margin-top: 16px;
}

#hero .text-section a.hire-btn:hover {
  background-color: transparent;
  color: #323232;
  outline: 1px solid #323232;
}

#hero .image-section {
  text-align: center;
  flex: 1 1 400px;
}

#hero .image-section img {
  width: 70%;
}

#tech-list {
  overflow: hidden;
  background-color: white;
  padding: 30px 0;
}

.slider {
  padding: 18px 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slide-track {
  display: flex;
  gap: 64px;
  width: max-content; /* 26 item + 25 gap antar item */
  animation: scroll 30s linear infinite;
}

.slide-item {
  background-color: white;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  border-radius: 12px;
  padding: 12px;
  flex: 0 0 auto;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-item:hover {
  background-color: #59e4a8;
}

.slide-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

#about {
  text-align: left;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

#about > div {
  flex: 1 1 400px;
}
#about > .image-section > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  width: fit-content;
}

/* Elemen latar belakang (kotak gelap) */
#about > .image-section > div > div {
  background-color: #323232;
  width: 240px;
  height: 240px;
  border-radius: 14px;
  margin-left: 140px; /* offset ke kanan */
  margin-top: -220px;
  z-index: 1;
}

/* Gambar di atasnya */
#about > .image-section > div > img {
  width: 240px;
  height: 240px;
  border-radius: 14px;
  margin-top: 0; /* overlap ke atas */
  margin-left: 160px; /* offset ke kanan */
  z-index: 2;
  position: relative;
}

#about .text-section > h1 {
  margin: 0 0 4px;
}

#services > div .services {
  background-color: white;
  margin: 0 auto;
  width: 80%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

#services > div .services .card:hover {
  cursor: pointer;
  /* flex-grow: 2;
  transform: scale(1.05);
  z-index: 1; */
}

#services > div > h1,
#services > div > p {
  margin: 0 auto;
  text-align: center;
}

#services > div > p {
  width: 60%;
}

#services > div > h1 {
  margin: 0 0 4px;
}

#services > div > p {
  margin-bottom: 12px;
}

.services .card {
  cursor: pointer;
  background-color: white;
  padding: 18px;
  border-radius: 8px;
  border: #b6b6b6 1px solid;
  flex: 1 1 230px;
}

.services .card .card-header {
  text-align: center;
}

.services .card .card-header img {
  width: 80%;
}

.services .card .card-header i {
  font-size: 110px;
  margin: 24px 0 36px;
  color: #323232;
  transition: all 0.5s ease;
}

.services .card:hover > .card-header i{
  color: #59e4a8;
}

.services .card .card-body {
  border-bottom: #b6b6b6 1px solid;
}

.services .card .card-body h3,
.services .card .card-body p {
  color: #323232;
  text-align: left;
  margin: 5px 0 10px;
}

.services .card .card-body p {
  text-align: justify;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.services .card .card-footer {
  text-align: right;
  padding-top: 10px;
}

.services .card .card-footer button.read-more-btn {
  cursor: pointer;
  border: none;
  background-color: #323232;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  transition: all 0.5s ease;
}

.services .card .card-footer button.read-more-btn:hover {
  background-color: transparent;
  outline: #323232 1px solid;
  color: #323232;
}

#projects > h1 {
  margin: 0 0 4px;
}

#projects > h1 span {
  color: #59e4a8;
}

#projects > p {
  margin-bottom: 12px;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.projects > .card {
  background-color: white;
  padding: 18px;
  border-radius: 8px;
  border: #b6b6b6 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;

  /* transition: flex-grow 0.3s ease, transform 0.3s ease; */
}

.projects > .card h4 {
  margin: 4px 0;
}

.projects > .card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.projects > .card > .card-image {
  flex: 1 0 200px;
}

.projects > .card > .card-image > img {
  border-radius: 6px;
  height: auto;
  width: 100%;
  object-fit: contain;
}

.projects > .card > .card-body {
  flex: 1 1 740px;
}

.card-footer {
  /* flex: 1; */
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.projects > .card > .card-footer > a.open-link-btn {
  cursor: pointer;
  border: none;
  background-color: #323232;
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  transition: all 0.5s ease;
  text-align: end;
}

.open-link-btn > i {
  font-size: 18px;
  margin: 0;
}

.projects > .card > .card-footer > a.open-link-btn:hover {
  background-color: transparent;
  outline: #323232 1px solid;
  color: #323232;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.pagination-controls button {
  background-color: #323232;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.pagination-controls button:disabled {
  background-color: #d1d1d1;
  color: #888;
  cursor: auto;
  /* cursor: not-allowed; */
  outline: none;
}

.pagination-controls button i {
  margin: 0;
}

.pagination-controls button:not(:disabled):hover {
  background-color: transparent;
  outline: 1px solid #323232;
  color: #323232;
}

.pagination-controls span {
  font-weight: bold;
}

#contact > div {
  margin: 0 auto;
  width: 70%;
}

#contact > div > h1 {
  margin: 0 0 4px;
}

#contact > div > p {
  margin-bottom: 12px;
}

#contact > div > h1,
#contact > div > p {
  text-align: center;
}

#contact > div > form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

#contact > div > form input,
#contact > div > form textarea {
  margin-top: 4px;
  display: inline-block;
  padding: 12px 10px;
  width: 100%;
  border-radius: 6px;
  border: #b6b6b6 1px solid;
  box-sizing: border-box;
}

#contact > div > form input:focus,
#contact > div > form textarea:focus {
  outline: #323232 1px solid;
}

#contact > div > form button {
  cursor: pointer;
  border: none;
  background-color: #323232;
  padding: 12px 18px;
  border-radius: 6px;
  color: white;
  transition: all 0.5s ease;
}

#contact > div > form button:hover {
  background-color: #565656;
}

#connect > h1 {
  margin: 0 0 4px;
  text-align: center;
}

#connect > p {
  text-align: center;
  margin-bottom: 12px;
}

.social-media > h4 {
  margin-bottom: 8px;
  text-align: center;
}

h4 + .social-media-links {
  margin-bottom: 10px;
}

.social-media > div {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 15px;
}

.social-media a {
  border: #323232 1px solid;
  background-color: transparent;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #323232;
  text-decoration: none;
  transition: all 0.5s ease;
  font-size: 32px;
}

.social-media a:hover {
  background-color: #323232;
  color: white;
}

.social-media a > i {
  margin: 0;
}

#service-detail {
  padding-top: calc(72px + 48px);
}

div#nav {
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-btn {
  color: #323232;
  border: none;
  font-weight: bold;
  transition: all 0.5s ease;
  text-decoration: none;
}
.back-btn:hover {
  text-decoration: underline;
}

.back-btn i {
  margin-left: 0;
  margin-right: 5px;
}

#service-detail .card {
  background-color: white;
  padding: 18px;
  border-radius: 8px;
  border: #b6b6b6 1px solid;
}

#service-detail .card-header > h1 {
  font-size: 32px;
  margin-bottom: 4px;
}

#service-detail .card-header > h1 i {
  margin-right: 14px;
}

#service-detail .card > div p {
  text-align: justify;
  margin-bottom: 12px;
}

.service-list-tech {
  margin-top: 6px;
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
}

.service-list-tech button {
  border: #323232 1px solid;
  background-color: transparent;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #323232;
  text-decoration: none;
  transition: all 0.5s ease;
  font-size: 24px;
}

.service-list-tech button:hover {
  background-color: #323232;
  color: white;
}

.service-list-tech button:hover svg {
  fill: white;
}

.service-list-tech button > i {
  margin: 0;
}

#service-detail .card .card-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
}

.order-btn {
  cursor: pointer;
  border: none;
  background-color: #323232;
  padding: 8px 18px;
  border-radius: 6px;
  color: white;
  transition: all 0.5s ease;
}

.order-btn:hover {
  background-color: transparent;
  outline: #323232 1px solid;
  color: #323232;
}

.order-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-form input,
.order-form textarea {
  display: inline-block;
  padding: 12px 10px;
  width: 100%;
  border-radius: 6px;
  border: #b6b6b6 1px solid;
  box-sizing: border-box;
}

.order-form label {
  font-size: 16px;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: #323232 1px solid;
}

.sub-title-order {
  text-align: center;
  font-size: 16px;
  margin-top: -20px;
  margin-bottom: 20px;
}

.send-order-btn {
  cursor: pointer;
  border: none;
  background-color: #323232;
  border-radius: 6px;
  color: white;
  transition: all 0.5s ease;
}
.send-order-btn:hover {
  background-color: #565656;
}

.cancel-order-btn {
  color: #323232;
  outline: 1px solid #323232;
  background-color: transparent;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.5s ease;
}
.cancel-order-btn:hover {
  background-color: #323232;
  color: white;
}

footer {
  width: 100%;
  background-color: #323232;
  padding: 12px 0;
  text-align: center;
}
footer p {
  color: white;
}
