/* General */
html {
  scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:Georgia, 'Times New Roman', Times, serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden; 
    background-color: #f4f4f4;
}

h2 {
    margin-bottom: 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(34, 33, 33, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 1000;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo1 {
  height: 40px;
  width: auto;
  margin-left: 5cap;
}

.logo p {
  margin: 0;
  font-size: 18px;
  color: white;
  font-weight: bold;
}

.menu {
  display: flex;
  list-style: none;
  /* gap: 20px; */
  margin: 0px;
  padding: 0;
  margin-left: 15cap;
}

.menu li a {
  text-decoration: none;
  color: #fff;
  padding: 10px;
  transition: background 0.3s, color 0.3s;
  -webkit-transition: background 0.3s, color 0.3s;
  -moz-transition: background 0.3s, color 0.3s;
  -ms-transition: background 0.3s, color 0.3s;
  -o-transition: background 0.3s, color 0.3s;
}

.menu li a:hover {
  /* background: #28a745; */
  color: goldenrod;
  border-radius: 5px;
  font-weight: bold;
}

.order-button {
  background: #28a745;
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s;
  text-align: center;
}

.order-button:hover {
  background: #218838;
}

.pesan {
  margin-left: auto;
  display: flex;
  /* margin-right: 1cap; */
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .menu {
    align-items: center;
    display: none;
    flex-direction: column;
    position: absolute;
    transform: translateY(-20%) translateX(-100%);
    width: 40%;
    background: rgba(34, 33, 33, 0.95);
    padding: 20px 0;
    text-align: center;
    margin-left: 30cap;
    margin-top: 35cap;
    border-radius: 10%;
    -webkit-border-radius: 10%;
    -moz-border-radius: 10%;
    -ms-border-radius: 10%;
    -o-border-radius: 10%;
    -webkit-transform: translateY(-20%) translateX(-100%);
    -moz-transform: translateY(-20%) translateX(-100%);
    -ms-transform: translateY(-20%) translateX(-100%);
    -o-transform: translateY(-20%) translateX(-100%);
}

  .menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
    margin-right: 10px;
    position: absolute; /* Agar dapat diposisikan relatif terhadap elemen induknya */
    right: 10px; /* Jarak dari kanan */
    top: 50%; /* Posisikan di tengah vertikal */
    transform: translateY(-50%); /* Koreksi untuk vertikal tengah */
    cursor: pointer;
    z-index: 1000; /* Pastikan berada di atas elemen lainnya */
}

.pesan {
    display: flex;
    margin-right: 40px;
    margin-left: 10px;
    position: relative; /* Agar elemen anak (seperti hamburger) bisa diposisikan absolut relatif ke sini */
}

  .order-button {
    padding: 10px 15px;
    font-size: 14px;
  }
}

@media (min-width: 768px) and (max-width: 1199px){
  .menu {
    /* justify-content: center; */
    align-items: center;
    display: none;
    flex-direction: column;
    position: absolute;
    width: 30%;
    background: rgba(34, 33, 33, 0.95);
    padding: 20px 0;
    text-align: center;
    margin-top: 28cap;
    margin-left: 35cap;
    border-radius: 10%;
    -webkit-border-radius: 10%;
    -moz-border-radius: 10%;
    -ms-border-radius: 10%;
    -o-border-radius: 10%;
}

  .menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
    margin-right: 10px;
    position: absolute; /* Agar dapat diposisikan relatif terhadap elemen induknya */
    right: 10px; /* Jarak dari kanan */
    top: 50%; /* Posisikan di tengah vertikal */
    transform: translateY(-50%); /* Koreksi untuk vertikal tengah */
    cursor: pointer;
    z-index: 1000; /* Pastikan berada di atas elemen lainnya */
}

.pesan {
    display: flex;
    margin-right: 40px;
    margin-left: 10px;
    position: relative; /* Agar elemen anak (seperti hamburger) bisa diposisikan absolut relatif ke sini */
}

  .order-button {
    padding: 10px 15px;
    font-size: 14px;
  }
}


/* Dokumentasi */
.dokumentasi {
    max-width: 100%;
    margin: auto;
    height: 90vh;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    /* border-radius: 15px;  */
    /* align-items: center; */
    /* justify-content: center; */
  }
  
  .snap-container {
    display: flex;
    scroll-snap-type: x mandatory; 
    overflow-x: auto; 
    overflow-y: hidden; 
    height: 100%; 
    width: 100%; 
    scrollbar-width: none; 
  }
  
  .snap-container::-webkit-scrollbar {
    display: none;
  }
  
  .snap-item {
    scroll-snap-align: center; 
    flex-shrink: 0;
    width: 100%; 
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; 
  }
  
  .snap-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
    animation: fade-in 1s ease-in-out;
    -webkit-transition: transform 0.5s ease, opacity 0.5s ease;
    -moz-transition: transform 0.5s ease, opacity 0.5s ease;
    -ms-transition: transform 0.5s ease, opacity 0.5s ease;
    -o-transition: transform 0.5s ease, opacity 0.5s ease;
}
  
  .snap-item:focus img,
  .snap-item:hover img {
    transform: scale(1.05); 
    opacity: 0.9;
  }

  /* Animasi fade-in */
@keyframes fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  /* Animasi zoom-in */
  @keyframes zoom-in {
    from {
      transform: scale(0.8);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  /* Animasi slide-from-left */
  @keyframes slide-from-left {
    from {
      transform: translateX(-100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  /* Animasi slide-from-right */
  @keyframes slide-from-right {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  @media (max-width :768px) {
    .dokumentasi{
      width: 100%; 
      height: 350px;
    } 
  }
  @media (min-width: 768px) and (max-width: 1199px){
    .dokumentasi{
      width: 100%;
      height: 450px;
    }
  }
  
  /* Gaya animasi untuk gambar */
  .animated {
    transition: transform 0.5s ease, opacity 0.5s ease;
  }
  
  .fade-in {
    animation: fade-in 1s ease-in-out;
  }
  
  .zoom-in {
    animation: zoom-in 1s ease-in-out;
    -webkit-animation: zoom-in 1s ease-in-out;
}
  
  .slide-from-left {
    animation: slide-from-left 1s ease-in-out;
  }
  
  .slide-from-right {
    animation: slide-from-right 1s ease-in-out;
  }
  
/* Tentang Kami */
.tentang-kami {
  margin-top: 2cap;
  padding: 20px;
  margin-bottom: 3cap;
  /* display: flex; */
}

/* .text1 {
  margin-left: 15cap;
  margin-top: 2cap;
}

.text1 h4 {
  font-size: 1.2rem;
  color: #888;
  margin-bottom: 10px;
}

.text1 h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
} */

.text h4 {
  font-size: 1rem;
  color: #888;
  margin-bottom: 10px;
}

.text h1{
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
}

.container {
  display: flex;
  padding: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.text {
  flex: 1;
  font-size: 1rem;
  color: #444;
  text-align: justify;
}

.image {
  flex: 1; 
  text-align: center;
  padding: 10px; 
}

.imagetentang {
    max-width: 100%;
    height: auto;
    float: right;
    border: 3px solid white;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}
/* responsif hp */
@media (max-width :768px) {
  .container{
    flex-direction: column;
    text-align: center;
  }
}
/* responsif tab */
@media (min-width: 768px) and (max-width: 1199px){
  .container{
    flex-direction: column;
    text-align: center;
  }
}

/* Klien Kami */
.klien-kami {
  padding: 50px 20px;
  background: #e9ecef;
  border-radius: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}

.text-klien {
  text-align: center;
}

.text-klien h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

.scroll-container {
  overflow: hidden;
  white-space: nowrap;
  width: 80%;
  position: relative;
}

.logo-container {
  display: flex;
  gap: 20px;
  animation: scroll-loop 20s linear infinite;
  -webkit-animation: scroll-loop 20s linear infinite;
}

.logo-container img {
  width: 150px;
  filter: grayscale(100%);
  transition: filter 0.3s, transform 0.3s;
}

.logo-container img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

@keyframes scroll-loop {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Layanan Kami */
.layanan-kami .judul-layanan {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* margin-bottom: 10px; */
    margin-left: 3cap;
}

.layanan-kami h4 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 5px;
}

.layanan-kami h2 {
    font-size: 2rem;
    color: #333;
    font-weight: bold;
}

.layanan-kami {
  padding: 50px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.layanan-kami h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

.layanan-kami .cards-layanan {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 10px;
  padding: 20px;
}

.card-layanan {
  box-sizing: border-box;
  flex: 1 1 calc(33.33% - 20px);
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 10px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
  -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
  -moz-transition: transform 0.3s ease, box-shadow 0.3s ease;
  -ms-transition: transform 0.3s ease, box-shadow 0.3s ease;
  -o-transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-layanan:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card-layanan img {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  margin-bottom: 15px;
  object-fit: cover;
}

.card-layanan h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #222;
}

.card-layanan p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}
/* responsif tab */
@media (min-width: 768px) and (max-width: 1199px) {
  .card-layanan img{
    flex: 1 1 calc(50% - 20px);
    width: 100%;
    height: 250px;
  }
}

/* Responsif HP */
@media (min-width: 576px) and (max-width: 768px) {
  .layanan-kami .card-layanan {
      flex: 1 1 calc(100% - 10px);
  }
  .card-layanan img{
    width: 100%;
    height: 300px;
  }
  
}

/* Responsif Layar Kecil*/
@media (max-width: 576px) {
  .layanan-kami .card-layanan {
      flex: 1 1 calc(100% - 50px);
  }
  .card-layanan img{
    width: 100%;
    height: 200px;
  }
}

/* Portofolio */
.portofolio {
  text-align: center;
}

.portofolio h2 {
  font-size: 2rem;
}

.cards-porto {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 2cap;
}

.card-porto {
  border: 1px solid #ccc;
  padding: 20px;
  width: 250px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.card-porto img {
  width: 100%;
  height: 150px;
  border-radius: 8px;
}

.card-porto h3 {
  margin-top: 10px;
}

.card-porto button {
  background-color: #ffaa00;
  color: rgb(0, 0, 0);
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.card-porto:hover {
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto; /* Untuk memastikan modal bisa discroll jika terlalu panjang */
}

.modal h3 {
  margin-bottom: 1cap
}

/* Konten modal */
.modal-content {
    background-color: white;
    margin: 10% auto; /* Margin atas lebih kecil untuk kesan lebih proporsional */
    padding: 20px;
    border-radius: 8px;
    width: 80%; /* Default lebar 80% */
    max-width: 500px; /* Maksimal lebar 600px */
    height: 500px;
    text-align: center;
    position: relative; /* Untuk posisi close button */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Gambar di dalam modal */
.modal-content img {
  max-width: 100%; /* Responsif */
  width: 100%;
  height: auto; /* Menjaga proporsi gambar */
  aspect-ratio: 4/2.5; /* Semua gambar memiliki rasio 16:9 */
  margin-bottom: 15px;
  border-radius: 5px; /* Sedikit sudut melengkung */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Tombol close */
.close {
    color: #aaa;
    font-size: 24px; /* Ukuran yang lebih proporsional */
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Slide modal porto */
.slider {
    position: relative;
    display: flex;
    overflow: hidden;
    height: auto;
    justify-content: center;
    align-items: center;
}

.slide {
    display: none;
    max-width: 100%;
    height: auto;
}

.slide.active {
    display: block;
}

/* Navigasi slider */
button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 18px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}

button.prev:hover,
button.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
/* Responsif untuk perangkat kecil */
@media (max-width: 768px) {
  .modal-content {
    width: 90%; /* Lebar lebih kecil untuk perangkat mobile */
    margin: 20% auto; /* Margin atas lebih besar untuk menyesuaikan layar kecil */
  }
}


/* Testimoni */
.testimoni {
  background-color: #f4f4f4;
  padding: 50px 0;
  text-align: center;
}

.testimoni h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #000000;
}

.testimoni-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimoni-item {
  background-color: white;
  padding: 20px;
  width: 250px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.testimoni-item:hover {
  transform: translateY(-10px);
}

.testimoni-item img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.testimoni-text {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 15px;
  font-style: italic;
}

.customer-name {
  font-weight: bold;
  color: #333;
}

/* Kontak */
.kontak {
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px;
}

.kontak .map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.col-md-4 {
  display: flex;
  flex: 1 1 30%;
  max-width: 350px;
  box-sizing: border-box;
  text-align: left;
}

.info {
  display: flex;
  align-items: flex-start;
  padding: 20px;
}

.info i {
  font-size: 24px;
  background: #ffc451;
  color: #151515;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20%;
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  margin-right: 20px;
  -webkit-border-radius: 20%;
  -moz-border-radius: 20%;
  -ms-border-radius: 20%;
  -o-border-radius: 20%;
}

.ket-kontak {
  display: flex;
  flex-direction: column;
}

.ket-kontak h4 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #151515;
}

.ket-kontak p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #484848;
}

.ket-kontak a {
  color: black;
  text-decoration: none;
  font-size: 14px;
}

.ket-kontak a:hover {
  color: blue;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .col-md-4 {
    flex: 1 1 100%;
  }

  .phone{
    display:flex ;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }

  .email{
    display:flex ;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }

  .address{
    display:flex ;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }

  /* .address p {
    word-wrap:break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
  } */

  .info {
    flex-direction: column;
    /* align-items: center;
    text-align: center; */
  }

  .info i {
    margin-bottom: 15px;
    margin-right: 0;
  }

  /* .ket-kontak {
    align-items: center;
  } */
}

/* Footer */
.footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

.footer .social-media {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer .social-link {
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer .social-link:hover {
  color: #ffc451; /* Warna hover */
}

/* WhatsApp Chat Button */
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.chat-button:hover {
    transform: scale(1.1);
}
