* {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  overflow-x: hidden;
}

.hubungi-wa {
  position: fixed;
  right: 15px;
  bottom: 15px;
  background-color: #29b43d;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  z-index: 9998;
}

.hubungi-wa:hover {
  background-color: #1e922f;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
  border: 2px solid white;
}

.hubungi-wa-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  /* border: 2px solid black; */
}

.hubungi-wa-logo img {
  width: 50%;
}

@keyframes darikanan {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes darikiri {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes dariatas {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes daribawah {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.kotak-navbar {
  width: 100%;
  height: 80px;
  background: whitesmoke;
  box-shadow: 0px 0.5px 3px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  z-index: 1000;
}

.navbar-logo {
  height: 100%;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.navbar ul li {
  margin-left: 20px;
}

.navbar ul li a {
  display: block;
  padding: 12px 20px;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 25px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.navbar ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.navbar ul li a:hover::before {
  left: 100%;
}

.navbar ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.icon {
  width: 200px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
}

#menu-toggle {
  display: none;
  position: absolute;
  right: 30px;
  bottom: 20px;
  font-size: 28px;
  color: #000;
  cursor: pointer;
}
 .custom-carousel {
        position: relative;
        width: 100%;
        height: 350px;
        overflow: hidden;
        border-radius: 20px;
  
      }

      .carousel-container {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: visible;
      }

      .carousel-track {
        display: flex;
        width: 500%; 
        height: 100%;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .carousel-slide {
        flex: 1;
        position: relative;
        overflow: hidden;
      }

      .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        transition: transform 0.6s ease;
      }

      .carousel-slide.active img {
        transform: scale(1.02);
      }

  
      .carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.9);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: #333;
        backdrop-filter: blur(10px);
      }

      .carousel-nav:hover {
        background: white;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      }

      .carousel-nav:active {
        transform: translateY(-50%) scale(0.95);
      }

      .carousel-prev {
        left: 15px;
      }

      .carousel-next {
        right: 15px;
      }

      .carousel-prev::after {
        content: '❮';
      }

      .carousel-next::after {
        content: '❯';
      }

      /* Indicators */
   .carousel-indicators {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 10;
      }

      .carousel-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        border: 2px solid rgba(255, 255, 255, 0.8);
        cursor: pointer;
        transition: all 0.3s ease;
      }

      .carousel-indicator.active {
        background: white;
        transform: scale(1.2);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
      }

      .carousel-indicator:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.1);
      }


      /* Progress Bar */
      .carousel-progress {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        width: 100%;
        z-index: 10;
      }

      .carousel-progress-bar {
        height: 100%;
        background: linear-gradient(90deg, #84ae92, #5a827e);
        width: 0%;
        transition: width 0.1s linear;
        border-radius: 0 4px 4px 0;
      }

      /* Fade Animation */
      .carousel-slide {
        opacity: 0;
        transition: opacity 0.6s ease-in-out;
      }

      .carousel-slide.active {
        opacity: 1;
      }

      /* Loading Animation */
      .carousel-slide img {
        filter: brightness(0.9);
        transition: filter 0.3s ease, transform 0.6s ease;
      }

      .carousel-slide.active img {
        filter: brightness(1);
      }

.carousel-next::after {
  content: "❯";
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: white;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

/* Progress Bar */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  width: 100%;
  z-index: 10;
}

.carousel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #84ae92, #5a827e);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 0 4px 4px 0;
}

/* Fade Animation */
.carousel-slide {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

/* Loading Animation */
.carousel-slide img {
  filter: brightness(0.9);
  transition: filter 0.3s ease, transform 0.6s ease;
}

.carousel-slide.active img {
  filter: brightness(1);
}

@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }

  #nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: whitesmoke;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 999;
    display: flex;
  }

  #nav-links.show {
    max-height: 450px;
  }

  #nav-links li {
    margin: 10px 0;
  }
}

.beranda {
  width: 100%;
  height: 100vh;
  background: url("../images/gambar/Home.jpg") no-repeat center center/cover;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  padding: 50px 40px 10px;
  box-sizing: border-box;
}

.kiri {
  width: 50%;
  padding-left: 100px;
  /* border: 2px solid black; */
}

.kiri h1 {
  font-size: 300%;
  margin-bottom: 30px;
  color: #5a827e;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.545);
}

@media (max-width: 1020px){
  .kiri h1 {
    font-size: 37px;
  }
}

@media (min-width: 1590px) {
  .kiri h1{
    font-size: 56px;
  }
}

.kiri .btn-beranda {
  padding: 15px 30px;
  background-color: #84ae92;
  border: none;
  border-radius: 30px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.kiri .btn-beranda:hover {
  background-color: #5a827e;
  border: 2px solid white;
  transform: translateY(-10%);
}

.kanan {
  /* border: 2px solid black; */
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  width: 50%;
  height: 50vh;
}

.kanan img {
  width: 60%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .beranda {
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    flex-direction: column;
  }

  .kiri {
    width: 90%;
    padding-left: 0px;
    /* border: 2px solid black; */
    margin-bottom: 40px;
    text-align: center;
    margin-top: 50px;
    position: relative;
    bottom: 40px;
  }

  .kiri h1 {
    font-size: 2rem;
  }

  .kanan {
    order: -1;
    width: 90%;
    margin-left: 0;
    padding-top: 100px;
    left: 0;

  }


   .custom-carousel {
          height: 230px;
          max-width: 100%;
        }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.tentang {
  padding-top: 20px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.tentang-kiri {
  flex: 2;
}

.tentang h2 {
  color: #0f2c4d;
  margin-bottom: 10px;
  font-size: 2.2em;
  font-weight: bold;
}

.tentang-kiri p {
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 20px;
  font-size: 16px;
}

.usaha {
  margin-top: 30px;
  background-color: #f5f5f5;
  padding: 20px;
  border-left: 5px solid #ffc107;
  border-radius: 6px;
}

.usaha h4 {
  margin: 0 0 10px;
  color: #0f2c4d;
  font-size: 1.1em;
  font-weight: bold;
}

.usaha ol {
  padding-left: 20px;
}

.usaha ol li {
  margin-bottom: 8px;
  font-size: 15px;
}

.tentang-kanan {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.tentang-kanan img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .tentang {
    flex-direction: column;
  }

  .tentang-kanan img {
    margin-top: 20px;
  }

  .tentang h2 {
    font-size: 1.8em;
  }

  .tentang-kiri p {
    font-size: 14px;
  }
}

#layanan {
  margin-top: 30px;
  background-color: whitesmoke;
}

.layanan-kami {
  padding: 20px 0;
}

.layanan-kami h2 {
  color: #0f2c4d;
  margin-bottom: 20px;
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
}

.content-layanan {
  width: 90%;
  margin: 50px auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0px;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  width: 260px;
  margin-bottom: 30px;
  height: 470px;
  box-sizing: border-box;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  overflow: scroll;
}

@media (min-width: 1500px) {
  .card {
    width: 300px;
  }
}

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

.card:hover {
  cursor: pointer;
  scale: 1.03;
}

.card img {
  width: 100%;
  object-fit: cover;
  height: 42%;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  margin-bottom: 10px;
}

.card .isi {
  padding: 10px;
  margin-bottom: 10px;
  color: #0f2c4d;
}

.card .isi h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0f2c4d;
}

.card .isi p {
  font-size: 14px;
  color: black;
}

@media (max-width: 768px) {
  .content-layanan {
    padding: 0;
  }

  .card {
    width: 230px;
    height: 300px;
  }

  .card img {
    height: 40%;
    margin-bottom: 3px;
  }

  .card .isi h3 {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .card .isi p {
    font-size: 12px;
  }
}

#struktur {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 30px 0;
}

@media (max-width: 768px) {
  #struktur {
    flex-direction: column;
    padding: 15px 0;
  }
}

#struktur h2 {
  color: #0f2c4d;
  margin-bottom: 50px;
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
}

#struktur img {
  width: 65%;
}

#galeri {
  box-sizing: border-box;
  padding: 25px 0;
  margin-top: 50px;
  background-color: whitesmoke;
  min-height: 80vh;
}

#galeri h2 {
  color: #0f2c4d;
  margin-bottom: 50px;
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
}

.galeri-container {
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 0px;
}

.galeri-container img {
  width: 350px;
  height: 250px;
  margin-bottom: 30px;
  object-fit: cover;
  box-shadow: 6px 6px 2px rgb(115, 200, 191);
  border-radius: 5px;
  transition: all 0.3s ease;
  animation: darikanan 1s forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

.galeri-container img:hover {
  scale: 1.05;
  cursor: pointer;
}
@media (min-width: 1590px) {
  .galeri-container img {
    scale: 1.2;
    position: relative;
    top: 60px;
  }
  .galeri-container img:hover {
    scale: 1.25;
    cursor: pointer;
  }
}

@media (min-width: 1908px) {
  .galeri-container img {
    scale: 1.3;
    position: relative;
    top: 190px;
  }
  .galeri-container img:hover {
    scale: 1.35;
    cursor: pointer;
  }
}

@media (min-width: 2520px) {
  .galeri-container img {
    scale: 1.65;
  }
  .galeri-container img:hover {
    scale: 1.7;
    cursor: pointer;
  }
}

#client {
  min-height: 100vh;
  margin-top: 20px;
}

.banner h2 {
  color: #0f2c4d;
  margin-bottom: 20px;
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
}

.client-isi {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 30px;
  box-sizing: border-box;
  width: 100%;
}

.card-client {
  text-align: center;
  background-color: rgb(199, 205, 228);
  display: flex;
  margin: 20px;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  box-sizing: border-box;
  padding: 30px;
  width: 250px;
  height: 250px;
  border-radius: 20px;
  box-shadow: 3px 6px 12px rgba(1, 1, 1, 0.495);
  transition: all 0.3s ease;
  font-size: 0.8rem;
}

.card-client:nth-child(even) {
  animation: darikanan 1s forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

.card-client:nth-child(odd) {
  animation: darikiri 1s forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

@media (max-width: 768px) {
  .client-isi {
    padding: 10px;
  }

  .card-client {
    height: 130px;
    width: 130px;
    margin: 10px;
    padding: 10px;
  }
}

.card-client:hover {
  scale: 1.05;
  cursor: pointer;
}

.card-client img {
  width: 100%;
}

.footer {
  background: linear-gradient(135deg, #2c3e50, #5ca79f);
  color: white;
  padding: 40px 0 20px;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.2em;
  border-bottom: 2px solid #3498db;
  padding-bottom: 8px;
  display: inline-block;
}

.footer-section p,
.footer-section li {
  color: white;
  margin-bottom: 8px;
  font-size: 0.9em;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #3498db;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  background: #34495e;
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: #3498db;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 20px;
  text-align: center;
  color: white;
  font-size: 0.85em;
}

.footer-bottom p {
  margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .social-links {
    justify-content: center;
  }
}

@media (min-width: 1590px){
  h2 {
    font-size: 2.5rem !important;
  }
}
