:root {
  --primaryColor: #fbf6ea;
  --text-dark: #1a251d;
  --textGreen: #84c5b1;
}
html{
    scroll-behavior:smooth;
}
.navbar {
  background-color: var(--primaryColor);
}
.nav-link{
    position:relative;
    color:#555;
    transition:.3s;
}
.nav-link:hover {
  color: var(--text-dark);
}
.nav-link:active{
  color: var(--text-dark);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #198754;
    transition: width .3s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #198754;
    transition: width .3s ease;
}

#backToTop{
    position:fixed;
    right:25px;
    bottom:25px;
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    background:#198754;
    color:#fff;
    font-size:20px;
    cursor:pointer;
    box-shadow:0 5px 15px rgba(0,0,0,.2);

    opacity:0;
    visibility:hidden;
    transform:translateY(20px);

    transition:.3s;
    z-index:999;
}

#backToTop.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

#backToTop:hover{
    transform:translateY(-3px);
    background:#157347;
}

.carousel-item {
  height: 100vh;
  background: url("../images/kompres.jpg") center center/cover no-repeat;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -450px -600px -450px -450px;
  background: linear-gradient(
    to right,
    rgba(251, 246, 234, 0.95),
    rgba(251, 246, 234, 0.7),
    rgba(251, 246, 234, 0)
  );
  filter: blur(50px);
  z-index: -1;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 300;
}

.hero-content h2 {
  font-size: 4rem;
  font-weight: 700;
}

.hero-content p {
  margin: 20px 0;
}

.list .icon {
  color: var(--textGreen);
}

/* layanan */
.service-card {
  width: 180px;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Tengah secara vertikal */
  align-items: center; /* Tengah secara horizontal */
  text-align: center;
}

.circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primaryColor);

  display: flex;
  justify-content: center;
  align-items: center;
}

/* produk */
.produk-slider {
  display:flex;
    gap:20px;
    overflow-x:auto;
    scroll-behavior:smooth;
    padding:10px 0;
}

/* Hilangkan scrollbar */
.produk-slider::-webkit-scrollbar {
  display: none;
}

.produk-slider {
  scrollbar-width: none;
}

.product-card {
  min-width: 280px;
  transition: 0.3s;
      flex:0 0 280px;   /* Lebar setiap card */
    background:#fff;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card h5 {
  font-weight: 700;
}

.product-card p {
  color: #777;
}

/* kontak */
.why-us {
  padding: 80px 0;
}

.why-wrapper {
  background: linear-gradient(rgba(15, 45, 20, 0.85), rgba(15, 45, 20, 0.85)),
    url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSrOOEhUQ7TEiUq0_2-NV-wlj8-32Vq94Ik4pD2dsqn7A&s=10");

  background-size: cover;
  background-position: center;

  border-radius: 25px;

  padding: 70px 50px;
}

.why-title {
  font-family: "Great Vibes", cursive;
  color: #fff;
  font-size: 52px;
  margin-bottom: 25px;
}

.why-desc {
  color: #fff;
  line-height: 2;
  font-size: 17px;
  margin-bottom: 35px;
}

.btn-about {
  padding: 14px 35px;
  border-radius: 12px;
  background: #3d7b44;
  border: none;
}

.counter-box {
  color: #fff;
  padding: 10px;
}

.counter-box i {
  color: #d8bf73;
  font-size: 28px;
  margin-bottom: 15px;
}

.counter-box h2 {
  color: #e5c67d;
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 10px;
}

.counter-box p {
  font-size: 18px;
  margin: 0;
}

/* footer */
.footer {
  background: #18361f;
  color: #fff;
}

.footer-logo {
  color: fff;
  font-weight: 700;
}

.footer-text {
  color: #d8d8d8;
  line-height: 1.8;
}

.footer h5 {
  margin-bottom: 20px;
  color: fff;
  font-weight: 600;
}

.footer-link {
  color: #ddd;
  list-style: none;
  padding: 0;
}

.footer-link li {
  margin-bottom: 12px;
}

.footer-link a {
  text-decoration: none;
  color: #ddd;
  transition: 0.3s;
}

.footer-link a:hover {
  padding-left: 8px;
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  color: #ddd;
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
}

.footer-contact i {
  width: 20px;
}

.social-icon {
  display: flex;
  gap: 15px;
}

.social-icon a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #2b5033;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.social-icon a:hover {
  background: fff;
  transform: translateY(-5px);
}

.footer-line {
  border-color: rgba(255, 255, 255, 0.15);
  margin: 40px 0 25px;
}

/* kontak */
.cta-banner {
  position: relative;
  background: linear-gradient(90deg, #fdf6e8, #fff7e8);
  border-radius: 20px;
  overflow: hidden;
  padding: 25px 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cta-text {
  color: #444;
  font-size: 18px;
}

.btn-whatsapp {
  background: #2f6b37;
  color: #fff;
  padding: 12px 25px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-whatsapp:hover {
  background: #24542c;
  color: #fff;
}

.btn-whatsapp i {
  margin-right: 8px;
}

.instagram-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.instagram-link i {
  font-size: 28px;
  color: red;
}

/* Responsive */

@media (max-width: 992px) {
  .cta-banner {
    padding: 35px 25px;
    text-align: center;
  }

  .cta-title {
    font-size: 38px;
  }
}

@media (max-width: 576px) {
  .cta-title {
    font-size: 32px;
  }

  .cta-text {
    font-size: 15px;
  }

  .btn-whatsapp {
    width: 100%;
    justify-content: center;
    display: flex;
  }

  .instagram-link {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .footer {
    text-align: center;
  }

  .footer-contact li {
    justify-content: center;
  }

  .social-icon {
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .why-wrapper {
    padding: 50px 30px;
  }

  .why-title {
    font-size: 42px;
    text-align: center;
  }

  .why-desc {
    text-align: center;
  }

  .btn-about {
    display: block;
    width: 220px;
    margin: auto;
  }

  .counter-box {
    border: none;
  }
}

@media (max-width: 576px) {
  .why-wrapper {
    padding: 35px 20px;
  }

  .why-title {
    font-size: 36px;
  }

  .counter-box h2 {
    font-size: 34px;
  }

  .counter-box p {
    font-size: 15px;
  }
}

@media (min-width: 600px) {
  .hero-content {
    text-align: center;
    align-items: center;
  }
}
@media (max-width: 992px) {
  .product-card {
    flex: 0 0 calc(50% - 10px); /* 2 card */
  }
}
@media (max-width: 576px) {
  .product-card {
    flex: 0 0 90%;
    margin: auto;
  }
}
@media (max-width:768px){

    .slider-control{
        display:flex;
        justify-content:center;
        margin-top:20px;
    }

}