/* Reset and variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Scheme Updated: Eco-Industrial (Green & Charcoal) */
  --primary-gold: #2E7D32; /* Emerald Green (Utama) */
  --light-gold: #A5D6A7;   /* Soft Green (Terang) */
  --accent-gold: #1B5E20;  /* Forest Green (Gelap/Aksen) */
  --dark-brown: #121212;   /* Charcoal Black (Teks Utama) */
  --medium-brown: #455A64; /* Slate Grey (Teks Sekunder) */
  --light-brown: #CFD8DC;  /* Silver (Garis/Border) */
  --rose-beige: #E8F5E9;   /* Mint Nuance (Background Halus) */
  --cream-beige: #EAEDED;  /* ASH SILVER (Background Utama Industrial) */
  --light-cream: #FFFFFF;  /* Pure White (Background Kartu) */
  --white: #ffffff;
  
  /* Legacy mappings for backward compatibility (pointing to new colors) */
  --primary-green: var(--primary-gold);
  --light-green: var(--light-gold);
  --accent-green: var(--accent-gold);
  --dark-charcoal: var(--dark-brown);
  --medium-charcoal: var(--medium-brown);
  --light-charcoal: var(--light-brown);
  --wood-brown: var(--dark-brown);
  --cream: var(--light-cream);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  background: var(--cream-beige); /* UPDATED: Ash Silver Background */
  color: var(--dark-brown);
}

/* Style for subpage headers to prevent overlap with fixed nav */
header {
  padding-top: 120px;
}

/* Particles layer and content wrapper */
#particles-js {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}
.content-wrapper {
  position: relative;
  z-index: 1;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: blur(0px);
  padding: 25px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
nav.scrolled {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(234, 237, 237, 0.95)); /* White to Ash Silver */
  backdrop-filter: blur(15px);
  padding: 18px 50px;
  box-shadow: 0 8px 40px rgba(46, 125, 50, 0.15); /* Green Shadow */
  border-bottom: 2px solid var(--accent-gold);
}
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: transform .3s;
}
.logo:hover {
  transform: scale(1.05);
}

/* UPDATED .logo-circle STYLE */
.logo-circle {
  height: 55px; /* Maintain vertical size */
  width: auto;  /* Adjust width to keep aspect ratio */
  border: none; /* Remove border */
  background: transparent; /* Remove background */
}

.logo-text {
  color: var(--dark-brown);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.nav-menu {
  display: flex;
  gap: 35px;
  align-items: center;
  list-style: none;
}
.nav-menu li a {
  color: var(--dark-brown);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .3s;
  position: relative;
  padding: 5px 0;
}
.nav-menu li a:hover {
  color: var(--primary-gold);
}
.nav-menu li a.active {
  color: var(--primary-gold);
}
.nav-menu li a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-gold), var(--accent-gold));
  transition: width .3s;
}
.nav-menu li a:hover::before,
.nav-menu li a.active::before {
  width: 100%;
}
.search-icon {
  color: var(--dark-brown);
  font-size: 20px;
  cursor: pointer;
  transition: all .3s;
  padding: 10px;
  border-radius: 50%;
}
.search-icon:hover {
  color: var(--accent-gold);
  background: rgba(46, 125, 50, 0.1);
  transform: scale(1.1);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
  z-index: 1001;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark-brown);
  border-radius: 3px;
  transition: all .25s; /* PERBAIKAN: Dipercepat agar serasi */
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero */
.hero {
  height: 100vh;
  /* Gradient Updated: Ash Silver to White */
  background: linear-gradient(135deg, rgba(234, 237, 237, 0.8), rgba(255, 255, 255, 0.5) 50%, rgba(207, 216, 220, 0.6));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(46, 125, 50, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(207, 216, 220, 0.2) 0%, transparent 40%);
  animation: particleFloat 15s ease-in-out infinite alternate;
}
@keyframes particleFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-20px, -30px) scale(1.1);
    opacity: 0.5;
  }
  100% {
    transform: translate(20px, 30px) scale(1);
    opacity: 0.3;
  }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: auto;
}
.hero-subtitle {
  color: var(--primary-gold);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}
.hero-title {
  color: var(--dark-brown);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 25px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
}
.hero-title span {
  background: linear-gradient(135deg, var(--accent-gold), var(--light-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-description {
  font-size: 18px;
  color: var(--medium-brown);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.8);
}
.cta-button {
  background: linear-gradient(135deg, var(--dark-brown), #000000);
  color: var(--white);
  padding: 20px 50px;
  border: 2px solid var(--primary-gold);
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 40px rgba(46, 125, 50, 0.2);
  position: relative;
  overflow: hidden;
}
.cta-button::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 .5s;
}
.cta-button:hover::before {
  left: 100%;
}
.cta-button:hover {
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
  color: var(--white);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(46, 125, 50, 0.4);
  border-color: var(--accent-gold);
}
.cta-button::after {
  content: "→";
  font-size: 20px;
  transition: transform .3s;
}
.cta-button:hover::after {
  transform: translateX(8px);
}
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--primary-gold);
  font-size: 30px;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity .3s;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-15px);
  }
  60% {
    transform: translateX(-50%) translateY(-7px);
  }
}

/* Sections */
section {
  padding: 100px 50px;
  position: relative;
  background: var(--cream-beige); /* Ash Silver */
}

/* Remove top padding from the first section after a header */
header + section {
  padding-top: 0;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--dark-brown);
}
.section-title span {
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  text-align: center;
  color: var(--accent-gold);
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* About */
.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text h3 {
  font-size: 28px;
  color: var(--primary-gold);
  margin: 30px 0 20px;
}
.about-text h3:first-child {
  margin-top: 0;
}
.about-text p,
.about-text ul {
  font-size: 17px;
  line-height: 1.8;
  color: var(--medium-brown);
  margin-bottom: 20px;
}
.about-text ul {
  list-style: none;
  padding-left: 0;
}
.about-text ul li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 15px;
}
.about-text ul li::before {
  content: "✨";
  position: absolute;
  left: 0;
  color: var(--primary-gold);
}
.about-stats {
  background: linear-gradient(135deg, var(--dark-brown), var(--accent-gold));
  padding: 40px;
  border-radius: 20px;
  border: 2px solid var(--primary-gold);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.stat-item {
  margin-bottom: 30px;
}
.stat-item:last-child {
  margin-bottom: 0;
}
.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--light-gold); /* Soft Green for numbers */
  margin-bottom: 10px;
}
.stat-label {
  font-size: 16px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Export countries + map (about) */
.countries-grid {
  max-width: 1000px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.country-item {
  background: linear-gradient(135deg, var(--white), var(--light-cream));
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid var(--light-brown);
  transition: all .3s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
.country-item:hover {
  background: linear-gradient(135deg, var(--rose-beige), var(--light-gold));
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.1);
  border-color: var(--primary-gold);
}
.countries-map {
  width: 100%;
  margin-top: 30px;
  background: linear-gradient(135deg, var(--white), var(--light-cream));
  border: 2px solid var(--light-brown);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}
#export-map {
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

/* Products */
.products-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}
.product-card {
  /* Set to Pure White for contrast against Ash BG */
  background: var(--light-cream);
  border-radius: 20px;
  overflow: hidden;
  transition: all .4s;
  border: 2px solid var(--light-brown);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(46, 125, 50, 0.15);
  border-color: var(--primary-gold);
}
.product-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--light-brown), var(--light-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  overflow: hidden;
  position: relative;
}
.product-image::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Updated SVG Fill Color to Green */
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="50" cy="50" r="30" fill="%232E7D32" opacity="0.1"/><circle cx="150" cy="100" r="40" fill="%232E7D32" opacity="0.05"/><circle cx="100" cy="150" r="25" fill="%232E7D32" opacity="0.1"/></svg>');
  background-size: cover;
}
.product-info {
  padding: 30px;
}
.product-info h3 {
  font-size: 26px;
  color: var(--dark-brown);
  margin-bottom: 15px;
  font-weight: 700;
}
.product-info p {
  color: var(--medium-brown);
  line-height: 1.6;
  margin-bottom: 20px;
}
.specs-list {
  list-style: none;
  padding: 0;
}
.specs-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}
.specs-list li:last-child {
  border-bottom: none;
}
.spec-label {
  color: var(--primary-gold);
  font-weight: 600;
}

/* Gallery */
.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  aspect-ratio: 1;
  border: 2px solid var(--light-brown);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  /* Overlay Gradient Updated: Green/Charcoal */
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.85), rgba(27, 94, 32, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay span {
  color: white;
  font-size: 40px;
}

/* Info cards */
.info-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.info-card {
  background: linear-gradient(135deg, var(--white), var(--light-cream));
  padding: 40px;
  border-radius: 20px;
  border: 2px solid var(--light-brown);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}
.info-card h3 {
  font-size: 28px;
  color: var(--primary-gold);
  margin-bottom: 20px;
}
.info-card p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--medium-brown);
  margin-bottom: 15px;
}

/* Contact */
.contact-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.contact-card {
  background: linear-gradient(135deg, var(--white), var(--light-cream));
  padding: 40px;
  border-radius: 20px;
  border: 2px solid var(--light-brown);
  text-align: center;
  transition: all .3s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}
.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(46, 125, 50, 0.15);
  border-color: var(--primary-gold);
}
.contact-icon {
  font-size: 60px;
  color: var(--primary-gold);
  margin-bottom: 20px;
}
.contact-card h3 {
  color: var(--primary-gold);
  margin-bottom: 15px;
}
.contact-card a {
  color: var(--dark-brown);
  text-decoration: none;
  transition: color .3s;
}
.contact-card a:hover {
  color: var(--primary-gold);
}

/* Footer */
footer {
  background: var(--dark-brown); /* Charcoal Black */
  padding: 40px 50px;
  text-align: center;
  border-top: 3px solid var(--primary-gold);
}
footer p {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 240, 240, 0.98));
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 25px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.25s cubic-bezier(0.4, 0, 0.2, 1); /* PERBAIKAN: Animasi dipercepat */
    z-index: 999;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu li a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  .search-icon {
    display: none;
  }
  .hero-title {
    font-size: 40px;
  }
  .about-content {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 60px 20px;
  }
  .section-title {
    font-size: 36px;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  .hero-description {
    font-size: 16px;
  }
  .nav-menu {
    width: 80%;
  }
}