@import url('https://fonts.googleapis.com/css2?family=Capriola&family=Comfortaa:wght@300..700&family=DynaPuff:wght@400..700&family=Poetsen+One&family=Signika:wght@300..700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4b6f32;
  --secondary-color: #8aad52;
  --accent-color: #d4a22c;
  --dark-color: #333333;
  --light-color: #f4f4f4;
  --white-color: #ffffff;
  --transition: all 0.3s ease;
  --border-radius: 5px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Comfortaa", sans-serif;
  font-weight: normal;
  font-style: normal;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white-color);
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.section-padding {
  padding: 50px 0;
}

.section-produk {
  padding: 150px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title p {
  animation: fadeInDown 2s ease;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  animation: fadeInDown 1s ease;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 25%;
}

.section-title p {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.bg-light {
  background-color: var(--light-color);
}

.no-click {
  cursor: default;
  pointer-events: none;
  text-decoration: none;
  color: inherit;
}

/* ========== HEADER STYLES ========== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  transition: background-color 2s ease, box-shadow 2s ease;
  z-index: 999;
  backdrop-filter: saturate(180%) blur(10px);
}


header.scrolled {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  animation: fadeInDown 2s ease;
}

.logo {
  margin-right: auto;
}

.logo h1 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.tagline {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

nav ul {
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: var(--dark-color);
  font-weight: 500;
  transition: var(--transition);
  padding: 5px 10px;
}

nav ul li a:hover {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background-color: rgba(75, 111, 50, 0.1);
}

.mobile-menu-toggle i {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active i {
    transform: rotate(90deg);
}

/* ========== HERO SECTION STYLES ========== */
#hero {
  background: url('image/bg.png') no-repeat center center/cover;
  height: 115vh;
  color: var(--white-color);
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.3s;
  animation-fill-mode: both;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 12px 30px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease 0.6s;
  animation-fill-mode: both;
}

.btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ========== FITUR SECTION STYLES ========== */
.fitur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.fitur-item {
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.fitur-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px #4b6f32;
}

.fitur-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.fitur-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* ========== PRODUK SECTION STYLES ========== */
.produk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  animation: fadeInDown 2s ease;
}

.produk-grid-jadi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  /* tambahkan padding agar tidak mentok kiri-kanan */
  animation: fadeInDown 2s ease;
}

@media (max-width: 768px) {
  .produk-grid-jadi {
    grid-template-columns: 1fr;
    /* jadi 1 kolom */
    max-width: 400px;
    /* batasi lebar agar tetap rapi */
  }
}




.produk-card {
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.produk-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.produk-img {
  height: 250px;
  overflow: hidden;
}

.produk-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.produk-card:hover .produk-img img {
  transform: scale(1.1);
}

.produk-info {
  padding: 20px;
}

.produk-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.produk-info p {
  margin-bottom: 15px;
  color: var(--dark-color);
}

.produk-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.btn-produk {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 600;
}

.produk-btn-wrapper {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}


.btn-produk:hover {
  background-color: var(--accent-color);
}

/* ========== CERITA SECTION STYLES ========== */
.story-container {
  display: grid;
  gap: 50px;
  align-items: center;
  text-align: center;
}

.story-content {
  animation: fadeInDown 1.5s ease;
}

.story-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  animation: fadeInDown 1s ease;
}

.story-content p {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  font-size: 1.1rem;
  text-align: center;
  max-width: 1000px;
  /* batas lebar maksimum */
  padding-left: 5%;
  padding-right: 5%;
}


.story-img img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* ========== PROSES SECTION STYLES ========== */
.proses-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.proses-timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background-color: var(--secondary-color);
  left: 50%;
  transform: translateX(-50%);
}

.proses-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 50px;
  position: relative;
}

.proses-item:last-child {
  padding-bottom: 0;
}

.proses-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white-color);
  font-size: 1.5rem;
  z-index: 1;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.proses-content {
  width: 45%;
  background-color: var(--white-color);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.proses-item:nth-child(odd) .proses-content {
  margin-right: auto;
}

.proses-item:nth-child(even) .proses-content {
  margin-left: auto;
}

.proses-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* ========== PRODUK BARU ========*/

.newproduk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.newproduk-item {
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.newproduk-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.newproduk-text {
  margin-bottom: 20px;
  position: relative;
  flex: 1;
}

.newproduk-text p {
  font-style: italic;
}

.newproduk-image {
  width: 350px;
  height: auto;
  border-radius: 10px;
}

.newproduk-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.newproduk-text::before {
  content: '\201C';
  font-size: 4rem;
  position: absolute;
  top: -30px;
  left: -10px;
  color: rgba(75, 111, 50, 0.1);
  font-family: Georgia, serif;
}

.newproduk-info h4 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.newproduk-info p {
  font-size: 1rem;
  color: var(--secondary-color);
}

/* ========== TESTIMONIAL SECTION STYLES ========== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-item {
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.testimonial-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px #4b6f32;
}

.testimonial-text {
  margin-bottom: 20px;
  position: relative;
}

.testimonial-text p {
  font-style: italic;
}

.testimonial-text::before {
  content: '\201C';
  font-size: 4rem;
  position: absolute;
  top: -30px;
  left: -10px;
  color: rgba(100, 111, 50, 0.1);
  font-family: Georgia, serif;
}

.testimonial-info h4 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.testimonial-info p {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

/* ========== SHOPING CARD ========== */
.cart-icon {
  position: relative;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #d9534f;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-dropdown {
  position: absolute;
  right: 0;
  top: 40px;
  width: 350px !important;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: none;
}

.cart-dropdown.show {
  display: block;
}

.cart-empty {
  text-align: center;
  padding: 20px 0;
  color: #777;
}

.cart-items {
  max-height: 300px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 10px;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.cart-item-price {
  color: #555;
}

.cart-item-remove {
  color: #d9534f;
  cursor: pointer;
  margin-left: 10px;
}

.cart-footer {
  margin-top: 15px;
  text-align: center;
}

.checkout-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.checkout-btn:hover {
  background-color: #218838;
}

/* ========== PROFILE SECTION STYLES ========== */

.profile-icon {
  position: relative;
  cursor: pointer;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: 40px;
  width: 200px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: none;
}

.profile-dropdown.show {
  display: block;
}

.profile-menu {
  padding: 10px 0;
}

.profile-link {
  display: block;
  padding: 8px 15px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s;
}

.profile-link:hover {
  background-color: #f5f5f5;
}

.profile-link i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
}

/* ========== KONTAK SECTION STYLES ========== */
.kontak-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.kontak-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.kontak-item i {
  font-size: 2rem;
  color: var(--primary-color);
}

.kontak-item h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.btn-submit {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 12px 30px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 1rem;
}

.btn-submit:hover {
  background-color: var(--accent-color);
}

/* ========== FOOTER STYLES ========== */
/* ========== FOOTER STYLES (continued) ========== */
footer {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--white-color);
}

.footer-logo p {
  color: #bbb;
}

.footer-links h3,
.footer-social h3,
.footer-newsletter h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #bbb;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white-color);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px);
}

.footer-newsletter p {
  color: #bbb;
  margin-bottom: 15px;
}

.footer-newsletter form {
  display: flex;
}

.footer-newsletter input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-family: inherit;
}

.footer-newsletter button {
  background-color: var(--accent-color);
  border: none;
  color: var(--white-color);
  padding: 0 15px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  transition: var(--transition);
}

.footer-newsletter button:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #bbb;
  font-size: 0.9rem;
}

/*mobile responsif*/
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-color);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  background-color: rgba(75, 111, 50, 0.1);
}

.mobile-menu-toggle i {
  transition: transform 0.3s ease;
}

.mobile-menu-toggle.active i {
  transform: rotate(90deg);
}

.right-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}




/* ========== ANIMATIONS ========== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 992px) {
  .hero-content h2 {
    font-size: 2.8rem;
  }

  .story-container {
    grid-template-columns: 1fr;
  }

  .story-img {
    order: 2;
  }

  .proses-timeline::before {
    left: 30px;
  }

  .proses-icon {
    left: 30px;
  }

  .proses-content {
    width: 85%;
    margin-left: 80px !important;
  }

  .kontak-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .logo {
    margin-bottom: 15px;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
  }

  nav.mobile-menu-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    max-height: 500px;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin: 0;
    display: flex !important;
  }

  nav ul li {
    border-bottom: 1px solid #eee;
    width: 100%;
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
  }

  nav ul li a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
  }

  .mobile-menu-toggle {
    display: block;
  }
}


@media (max-width: 576px) {
  .section-padding {
    padding: 50px 0;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .proses-content {
    width: 80%;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}