* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #2c5530, #4a7c59);
  border-radius: 10px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0);
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  padding: 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(44, 85, 48, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(45deg, #4a7c59, #90c695);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.logo-img {
  width: 80px;
  height: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #4a7c59, #90c695);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.user-icon {
  margin-left: 15px;
}

.user-icon a {
  color: #ffffff; /* ubah sesuai warna tema Anda */
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.user-icon a:hover {
  color: #00f2ea; /* Warna efek hover, bisa disesuaikan */
}

/* Hero Section */
.hero {
  height: 100vh;
  background-image: url("/img/background_mytragyna.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.hero-content {
  z-index: 2;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #fff, #90c695);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease-out;
}

.hero h3 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #4a7c59, #90c695);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.6s both;
  box-shadow: 0 10px 30px rgba(74, 124, 89, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(74, 124, 89, 0.4);
  color: white;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h4 {
  color: #4a7c59;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

/* About Section */
.about {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(74,124,89,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(144,198,149,0.1)"/><circle cx="60" cy="80" r="2" fill="rgba(74,124,89,0.1)"/></svg>');
  opacity: 0.5;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  color: #2c5530;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 1.5rem;
}

.about-image {
  position: relative;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.about-image:hover img {
  transform: scale(1.1);
}

.vision-list {
  list-style: none;
}

.vision-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #2c5530;
}

.vision-list li i {
  color: #4a7c59;
  margin-right: 1rem;
  font-size: 1.2rem;
}

/* Timeline Section */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: #013220;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  padding: 20px 30px;
  position: relative;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 25px;
  right: -12px;
  width: 20px;
  height: 20px;
  background-color: #ffce54;
  border: 3px solid #013220;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.right::before {
  left: -12px;
}

.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.timeline-date {
  font-weight: bold;
  color: #013220;
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 20px;
    margin-bottom: 40px;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-item::before {
    left: 8px;
  }
}
.timeline-item {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.timeline-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer inside History */
.history-footer {
  max-width: 850px;
  margin: auto;
  text-align: center;
  padding: 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.history-footer h3 {
  color: #013220;
  margin-bottom: 15px;
}
.history-footer p {
  color: #555;
  font-size: 1rem;
}

.button-source {
  background: linear-gradient(135deg, #2c5530, #1e5323ff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  margin-top: 10px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.button-source:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.button-source::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.button-source:hover::before {
  left: 100%;
}

/* Product Section */
.products {
  padding: 80px 0;
  background: #fff;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 30px;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.product-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.product-card h4 {
  font-size: 1.2rem;
  margin: 15px 0 10px;
  color: #16552f;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.product-img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}
/* Quality Assurance Section */
.quality-assurance {
  margin-top: 60px;
  padding: 40px 20px;
  background: #fafaf7;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.quality-assurance h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #16552f;
  font-weight: 700;
}

.quality-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.quality-card {
  flex: 1 1 250px;
  max-width: 280px;
  padding: 20px;
}

.quality-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
}

.quality-icon.green {
  background: #2e7d32;
}
.quality-icon.yellow {
  background: #f4c542;
}
.quality-icon.brown {
  background: #8d6e63;
}

.quality-card h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #16552f;
}

.quality-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Gallery Section */
.gallery {
  padding: 60px 20px;
  background: #f9f9f7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #fff;
  aspect-ratio: 1 / 1; 
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}
/* Contact Section */
.contact {
  background: #1a1a1a;
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}

.contact-info h4 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #90c695;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item i {
  color: #4a7c59;
  margin-right: 1rem;
  font-size: 1.2rem;
  width: 20px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.fb {
  background: linear-gradient(45deg, #4267b2, #a1c0ffff);
}

.tt {
  background: linear-gradient(45deg, #010101, #2e2b2bff);
}

.ig {
  background: linear-gradient(45deg, #e1306c, #d84b7aff);
}

.li {
  background: linear-gradient(45deg, #0077b5, #54b7ecff);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(74, 124, 89, 0.3);
}

.hours-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.hours-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* WhatsApp Button */
.wa-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
  animation: pulse 3s infinite;
}

.wa-button:hover {
  transform: scale(1.1);
  color: white;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Copyright */
.copyright {
  background: #000;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h3 {
    font-size: 1.2rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
