body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-weight: 400;
  background-color: #F4F1ED;
  color: #212121;
}

#top-bar {
  background: #212121;
  color: #F4F1ED;
  padding: 10px 0;
}

#top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 90%;
  margin: auto;
}

.contact-info a {
  color: #F4F1ED;
  margin-left: 20px;
  text-decoration: none;
  font-size: 0.9rem;
}

.contact-info a svg {
    vertical-align: middle;
    margin-right: 5px;
}

#main-header {
  background: #F4F1ED;
  color: #212121;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

#main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 80px; 
  height: 80px;
}

.logo-name {
  margin-left: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #212121;
}

#main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

#main-nav li {
  margin-left: 30px;
}

#main-nav a {
  color: #212121;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

#main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #B3A18F;
  transition: width 0.3s;
}

#main-nav a:hover::after, #main-nav a.active::after {
  width: 100%;
}

.btn-header {
  margin-left: 20px;
}

#hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

#hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background: #212121;
  margin: 5px 0;
  transition: 0.3s;
}

.hero {
  position: relative;
  background: url('../assets/telur.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero .hero-text {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.8rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn {
  background-color: #FFC107;
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #FFC107;
  transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
  background-color: #e0a800;
  color: #212121;
  border-color: #e0a800;
}

.about, .produk, .kontak, .gallery {
  padding: 60px 20px;
  text-align: center;
}

.produk, .kontak {
    background-color: #E8E3DD;
}

h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  text-align: center;
  color: #212121;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery .grid {
  display: flex;
  overflow-x: auto;
  padding-bottom: 20px; 
  flex-wrap: nowrap;
}

.gallery .card {
  flex: 0 0 auto;
  width: 300px;
  margin-right: 20px;
}

.gallery .grid::-webkit-scrollbar {
  height: 8px;
}

.gallery .grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.gallery .grid::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.gallery .grid::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card img {
  max-width: 100%;
  border-radius: 8px;
}

.gallery .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.clients {
  padding: 50px 20px;
  text-align: center;
}

.clients h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #212121;
}

.client-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.client {
  text-align: center;
}

.client img {
  max-width: 160px;
  height: auto;
  filter: grayscale(0%);
  transition: 0.3s;
}

.client img:hover {
  filter: grayscale(0%) drop-shadow(0px 0px 5px #aaa);
}

.client p {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 500;
}

lokasi-kami {
  text-align: center;
}

.testimonials {
  padding: 60px 20px;
  background: #4A4A4A;
  text-align: center;
  color: #F4F1ED;
}

.testimonials h2 {
    color: #F4F1ED;
}

.testimonials .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.testimonials .card {
  background: #E8E3DD;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: left;
  color: #212121;
}

.testimonials .card p {
  font-style: italic;
  margin-bottom: 15px;
}

.testimonials .card h4 {
  font-weight: bold;
  text-align: right;
  color: #212121;
}

footer {
  background: #212121;
  color: #F4F1ED;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  margin-top: 60px;
}

#back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #FFC107;
  color: #FFFFFF;
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
  border: 2px solid #FFC107;
  transition: background-color 0.3s, color 0.3s;
}

#back-to-top:hover {
  background-color: #e0a800;
  color: #FFFFFF;
  border-color: #e0a800;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #F4F1ED;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  #main-nav.active {
    display: block;
  }

  #main-nav ul {
    flex-direction: column;
  }

  #main-nav li {
    margin: 0;
    text-align: center;
    border-bottom: 1px solid #E8E3DD;
  }

  #main-nav a {
    display: block;
    padding: 15px;
  }

  .btn-header {
    display: none;
  }

  #hamburger-menu {
    display: block;
  }

  #hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  #hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }
  
  .gallery .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  h2 {
    font-size: 1.8rem;
  }

  .client-logos {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  #top-bar .container {
    justify-content: center;
  }
  .contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .contact-info a {
    margin: 5px 10px;
    font-size: 0.85rem;
  }
}

.kontak a {
  color: #212121;
  text-decoration: none;
}
