/* Global Body & Font */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: url("bg.jpg") no-repeat center top fixed; /* ganti bg.jpg dengan file kamu */
  background-size: cover; /* full kiri-kanan & responsif */
  background-color: #f9f9f9; /* fallback warna */
  color: #333;
  margin: 0;
  padding: 0;
}

/* Navbar Custom */
.navbar-custom {
  background: linear-gradient(270deg, #0f2027, #203a43, #2c5364);
  background-size: 600% 600%;
  animation: gradientBG 20s ease infinite;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  padding: 0.8rem 0;
  z-index: 1030;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.navbar-custom .nav-link {
  color: #fff;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: #00ff99;
  transform: scale(1.05);
}

.navbar-custom .navbar-toggler {
  border: none;
  outline: none;
  background: transparent;
}

.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.85)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  background-size: cover;
  filter: invert(1);
  transition: filter 0.3s ease;
}

.navbar-custom .navbar-toggler:hover .navbar-toggler-icon {
  filter: brightness(1.2);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh; /* full layar */
  background: url("d8c34bf3-425a-416d-add5-b1857b97500f.jpg") no-repeat center center fixed;
  background-size: cover; /* isi penuh proporsional TANPA ruang kosong */
  background-color: #4a6b36; /* warna dominan daun sebagai filler */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* Hero Section Overlay */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* overlay gelap transparan */
  z-index: 0;
}

/* Konten Hero */
.hero-section .content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;   /* rata tengah */
  max-width: 800px;     /* biar tidak terlalu melebar */
  margin: 0 auto;       /* center horizontal */
}

.hero-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-section .btn {
  margin: 1rem auto 0;
  display: inline-block;
}

@media (min-width: 768px) {
  .hero-section h2 {
    font-size: 3.5rem;
  }
}

/* About Img Enhancement */
.about-img {
  transition: transform 0.3s ease;
}

.about-img:hover {
  transform: scale(1.02);
}

/* Product Cards Enhancement */
.product-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.product-card.animate-fade-in {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Gradient Border untuk Product Image */
.product-image {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(45deg, #28a745, #00ff99) border-box;
}

/* Icon Pulse */
@keyframes pulseIcon {
  0%, 100% { transform: scale(1); color: #28a745; }
  50% { transform: scale(1.15); color: #00ff99; }
}

.product-icon {
  animation: pulseIcon 2s ease-in-out infinite;
}

/* Modal Backdrop */
.modal {
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
}

.modal:not(.hidden) {
  opacity: 1;
}

/* Footer Custom */
.footer {
  background: linear-gradient(270deg, #0f2027, #203a43, #2c5364);
  background-size: 600% 600%;
  animation: gradientBG 20s ease infinite;
  color: #f0f0f0;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #00ff99, transparent);
  opacity: 0.3;
}

/* Footer Title */
.footer-title {
  font-size: 1.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 1.5rem;
  color: #fff;
  font-weight: 700;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 3px;
  background: #00ff99;
  border-radius: 2px;
  animation: underlineMove 2s linear infinite;
}

@keyframes underlineMove {
  0% { transform: translateX(0); }
  50% { transform: translateX(20px); }
  100% { transform: translateX(0); }
}

/* Footer Icon */
.icon-animate {
  display: inline-block;
  animation: pulseIcon 2.5s ease-in-out infinite;
  transition: color 0.3s ease;
  font-size: 1.2rem;
}

/* Footer Links */
.footer-link {
  color: #a0f0c0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: #00ff99;
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: #00ff99;
  transform: translateX(5px);
}

.footer-link:hover::after {
  width: 100%;
}

/* Footer Contact Item */
.contact-item {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.3s ease;
  cursor: pointer;
  padding: 0.5rem 0;
}

.contact-item:hover {
  transform: translateX(10px);
  color: #00ff99;
}

/* Footer Address */
.footer-address {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #c0f0d0;
}

/* Footer Bottom */
.footer-bottom {
  font-size: 0.9rem;
  color: #7f9f8f;
  letter-spacing: 1px;
  font-style: italic;
  user-select: none;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 255, 153, 0.2);
}

/* Responsive Footer */
@media (max-width: 991.98px) {
  .footer-title {
    font-size: 1.5rem;
  }
  
  .contact-item {
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .footer-address {
    font-size: 1rem;
  }
  
  .footer {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
}

@media (max-width: 575.98px) {
  .footer {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .footer-title {
    font-size: 1.3rem;
  }
  
  .footer-bottom {
    font-size: 0.8rem;
  }
}

/* Button Hover Effect */
.btn-read-more:hover {
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.5);
}

/* Smooth Transition Global */
* {
  transition: all 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-down {
  animation: slideDown 0.3s ease forwards;
}

/* Animasi transform untuk hamburger */
#hamburger span {
  transition: all 0.3s ease-in-out;
}
 