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

html,
body {
  overflow-x: hidden; /* Prevent horizontal scroll */
}

:root {
  --primary-color: #006838;
  --secondary-color: #f0c228;
  --text-color: #333;
  --light-bg: #f8f8f8;
  --dark-bg: #444;
  --white: #fff;
  --border-color: #ddd;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  padding-top: 120px; /* Increased from 80px to 120px to provide more space */
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

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

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 15px;
  line-height: 1.2;
}

p {
  margin-bottom: 15px;
}

section {
  padding: 60px 20px; /* Add horizontal padding here */
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: transform 0.3s ease;
}

/* Class to hide the navbar when scrolling down */
header.hide {
  transform: translateY(-100%);
}

/* Class to show the navbar when scrolling up */
header.show {
  transform: translateY(0);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px; /* Keep padding for header */
}

.logo img {
  height: 60px;
}

/* max-width 1000px */
@media (max-width: 1000px) {
  .logo img {
    height: 40px;
  }
}

@media (max-width: 900px) {
  .logo img {
    height: 30px;
  }
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s;
}

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

.mobile-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 80vh;
  background-image: url("images/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: var(--white);
  margin-top: -120px; /* Updated from -80px to match the new body padding-top */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.5rem;
}

/* Company Section */
.company {
  background-color: var(--light-bg);
}

.company-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.company-text {
  flex: 1;
  min-width: 300px;
}

.company-image {
  flex: 1;
  min-width: 300px;
}

.company-image img {
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Shipping Section */
.shipping {
  margin-top: 30px;
  padding: 0; /* Ensure no padding for full-width section */
}

.full-width-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.full-width-video {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* Production Facilities */
.production {
  background-color: var(--white);
  padding: 80px 20px;
}

.production h2 {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.production h2:after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 10px auto 0;
}

.facility-images {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, minmax(200px, auto));
  gap: 20px;
  margin-top: 30px;
}

.facility-item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.facility-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.facility-item:nth-child(1) {
  grid-column: 1 / 5;
  grid-row: 1 / 2;
}

.facility-item:nth-child(2) {
  grid-column: 5 / 9;
  grid-row: 1 / 2;
}

.facility-item:nth-child(4) {
  grid-column: 1 / 5;
  grid-row: 2 / 3;
}

.facility-item:nth-child(5) {
  grid-column: 5 / 9;
  grid-row: 2 / 3;
}

.facility-item:nth-child(3) {
  grid-column: 9 / 13;
  grid-row: 1 / 3;
  align-self: stretch;
}

.facility-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.facility-item:hover img {
  transform: scale(1.05);
}

/* Vision Mission */
.vision-mission {
  background-color: #fed136; /* Yellow background color as shown in the image */
  padding: 0 0 60px 0; /* Remove top padding and keep bottom padding */
  position: relative;
}

.vision-img {
  width: 100%;
  height: auto;
  overflow: hidden;
}

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

.vision-mission .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  padding-top: 60px; /* Add padding to the top of the container */
  padding-left: 8px;
  padding-right: 8px;
}

.vision,
.mission {
  width: 100%;
}

.title-box {
  background-color: #4d4d4d; /* Gray box for titles */
  padding: 10px 15px;
  width: fit-content;
  margin-bottom: 20px;
  border-radius: 5px;
}

.title-box h2 {
  color: white;
  margin: 0;
  text-transform: uppercase;
  font-size: 1.8rem;
}

.vision p {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  font-size: 1.2rem;
  margin: 0;
}

.mission ul {
  background-color: white;
  padding: 20px 20px 20px 40px;
  border-radius: 5px;
  margin: 0;
  list-style-type: disc;
}

.mission ul li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.mission-image {
  display: none; /* Hide the target image as it's not in the reference image */
}

.target-img {
  display: none; /* Hide the target image */
}

/* Transition section between vision-mission and values */
.transition-section {
  position: relative;
  width: 100%;
  /* height: 400px; */ /* Allow height to be determined by content or specific image height */
  z-index: 1;
  display: flex; /* Use flex to center the image */
  justify-content: center; /* Center the image horizontally */
  align-items: center; /* Center the image vertically if needed */
  padding: 0; /* Remove any padding that might constrain background */
  margin-bottom: 15px;
}

.transition-section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: #fed136; /* Same yellow as vision-mission */
  z-index: -1;
}

.transition-section:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: white;
  z-index: -1;
}

.transition-image-container {
  /* New container for the image */
  max-width: 800px; /* Max width for the image itself */
  width: 100%; /* Ensure it doesn't exceed parent if smaller */
  border-radius: 10px;
  overflow: hidden; /* To ensure border-radius clips the image */
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
}

.transition-image {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block; /* Remove extra space below image */
  /* object-fit: cover; /* Restore if you want image to fill container, possibly cropping */
}

/* Values Section */
.values-container {
  padding: 0 20px 50px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
}

.values-banner {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 400px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.values-buildings {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.values-overlay h1 {
  color: white;
  font-size: 5rem;
  text-transform: uppercase;
  font-weight: bold;
  margin: 0;
  letter-spacing: 10px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.values-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 120px;
  height: auto;
}

.values-logo img {
  width: 100%;
  height: auto;
  background-color: white;
  border-radius: 8px;
  padding: 5px;
}

.values-content {
  background-color: white;
  padding: 0;
  width: 100%;
  max-width: 800px;
}

.epic-values {
  width: 100%;
  margin: 0;
  padding: 30px 40px;
  background-color: #ffd336;
  border-radius: 10px;
  font-size: 2rem;
  font-weight: 500;
}

.epic-values p {
  margin-bottom: 20px;
  line-height: 1.3;
}

.value-letter {
  font-weight: bold;
  font-size: 2.5rem;
  margin-right: 10px;
}

.value-teamwork {
  font-weight: bold;
  font-size: 2.2rem;
}

/* Products Preview */
.products-preview {
  background-color: var(--white);
  padding: 60px 20px;
}

.product-category {
  margin-bottom: 50px;
}

.category-title {
  display: inline-block;
  background-color: #ffcc00;
  color: #000;
  font-size: 1.8rem;
  font-weight: bold;
  padding: 8px 20px;
  margin-bottom: 30px;
  border-radius: 5px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.product-grid .product-item {
  display: flex;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0;
  position: relative;
}

.product-grid .product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-grid .product-image {
  flex: 1;
  max-width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  min-width: auto;
}

.product-grid .product-image img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  height: auto;
}

.product-description {
  flex: 1;
  padding: 20px;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
}

.product-description h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: center;
  position: relative;
}

.product-description h3:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.product-description h3 a {
  color: var(--primary-color);
  text-decoration: none;
  display: inline-block;
  width: 100%;
  transition: color 0.3s ease;
}

.product-description h3 a:hover {
  color: var(--secondary-color);
}

.product-description p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

.product-description p:last-of-type {
  margin-bottom: 15px;
}

/* Product icon styling */
.product-icon {
  align-self: flex-end;
  margin-top: auto;
  width: 80px;
  height: 80px;
  pointer-events: none;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.85;
}

.view-all {
  text-align: center;
  margin-top: 30px;
}

.view-all-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.view-all-btn:hover {
  background-color: transparent;
  color: var(--primary-color);
}

/* Certification */
.certification {
  background-color: var(--light-bg);
  text-align: center;
}

.certification h2 {
  margin-bottom: 40px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin: 0 auto;
  max-width: 1000px;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  padding: 20px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cert-item:hover {
  transform: translateY(-10px);
}

.cert-img {
  height: 120px;
  width: auto;
  object-fit: contain;
  margin-bottom: 15px;
}

.cert-item p {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0;
}

/* Existing certification list styles can be removed */
.cert-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.cert-list li {
  font-size: 1.2rem;
  padding: 15px 25px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Media query for responsive design */
@media (max-width: 992px) {
  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* Company Summary */
.company-summary {
  background-color: var(--light-bg);
  text-align: center;
}

.summary-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Contacts Section Redesign */
.contacts {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contacts .section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #333;
  position: relative;
}

.contacts .section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 15px auto;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.contact-cards {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  position: relative;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--primary-color);
}

.contact-icon {
  margin-right: 15px;
}

.contact-icon i {
  font-size: 2rem;
  color: var(--secondary-color);
}

.contact-text h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #333;
}

.contact-text p {
  margin: 5px 0;
  color: #666;
}

.contact-text a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text a:hover {
  color: var(--primary-color);
}

.contact-map {
  flex: 1;
  min-width: 300px;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-card.email-card,
.contact-card.visit-card {
  grid-column: span 2;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 20px 0;
  text-align: center;
}

footer .container {
  padding: 0 20px; /* Add padding for footer */
}

/* New Footer Styles */
.footer-new {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-info {
  flex: 2;
  min-width: 300px;
  padding-right: 20px;
}

.footer-info h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  color: var(--white);
  text-transform: uppercase;
  text-align: left;
}

.footer-info p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-align: left;
}

.footer-contact {
  margin-top: 25px;
}

.footer-contact p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--secondary-color);
  font-size: 1.1rem;
  width: 20px;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* .footer-logo img {
  max-width: 180px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
} */

.footer-logo img {
  max-width: 180px;
  border-radius: 8px;
  background-color: white;
  padding: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 15px 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* Product Page Styles */
.product-hero {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.product-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.product-section {
  padding: 60px 20px;
}

.tepung-section {
  background-color: #fffce6;
}

.byproduct-section {
  background-color: #e9f9e9;
}

.section-title {
  display: inline-block;
  background-color: #ffcc00;
  color: #000;
  font-size: 2rem;
  font-weight: bold;
  padding: 10px 25px;
  margin-bottom: 40px;
  border-radius: 5px;
}

.byproduct-section .section-title {
  background-color: #7ac77a;
}

.product-card {
  display: flex;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
  flex: 1;
  max-width: 30%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

.product-image img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.product-image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-image a img {
  transition: transform 0.3s ease;
}

.product-image a:hover img {
  transform: scale(1.05);
}

.product-info {
  flex: 2;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.product-name {
  padding: 15px;
  margin: 0;
  font-size: 2.5rem;
  text-align: right;
  color: #fff;
  padding-right: 30px;
}

.tepung-section .product-card:nth-child(2) .product-name {
  background-color: #e53935;
}

.tepung-section .product-card:nth-child(3) .product-name {
  background-color: #1e88e5;
}

.tepung-section .product-card:nth-child(4) .product-name {
  background-color: #43a047;
}

.tepung-section .product-card:nth-child(5) .product-name {
  background-color: #ff8f00;
}

.byproduct-section .product-card:nth-child(2) .product-name {
  background-color: #000;
}

.byproduct-section .product-card:nth-child(3) .product-name {
  background-color: #795548;
}

.byproduct-section .product-card:nth-child(4) .product-name {
  background-color: #ffc107;
  color: #000;
}

.product-description {
  padding: 20px;
  background-color: #f9f9f9;
  flex: 1;
}

.product-description p {
  margin-bottom: 15px;
  line-height: 1.5;
}

.product-usage-title {
  font-weight: bold;
  margin-bottom: 5px !important;
}

.product-specs {
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  display: inline-block;
  margin-top: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.spec-item {
  display: flex;
  margin-bottom: 5px;
  max-width: 250px;
}

.spec-label {
  font-weight: bold;
  width: 120px;
}

.spec-separator {
  width: 15px;
  text-align: center;
}

.spec-value {
  font-weight: bold;
  text-align: right;
  flex-grow: 1;
}

.product-quality {
  background-color: #fff;
  padding: 60px 20px;
}

/* Responsive styles for product cards */
@media (max-width: 992px) {
  .product-card {
    flex-direction: column;
  }

  .product-image {
    max-width: 100%;
    padding: 30px;
  }

  .product-name {
    text-align: center;
  }
}

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

  .section-title {
    font-size: 1.5rem;
    padding: 8px 15px;
    display: block;
    text-align: center;
  }

  .product-image img {
    max-height: 200px;
  }

  .product-name {
    font-size: 2rem;
  }

  .product-specs {
    width: 100%;
  }

  .product-grid .product-item {
    flex-direction: column;
  }

  .product-grid .product-image {
    max-width: 100%;
    padding: 20px;
  }

  .product-icon {
    align-self: center;
    margin-top: 10px;
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .product-hero {
    padding-top: 80px;
  }

  .product-hero h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .product-name {
    font-size: 1.8rem;
  }

  .spec-item {
    flex-direction: column;
  }

  .spec-label {
    width: auto;
    margin-bottom: 2px;
  }

  .spec-separator {
    display: none;
  }
  .spec-value {
    text-align: left;
    font-weight: 400;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  /* .logo img {
    height: 40px;
  } */

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

  .hero p {
    font-size: 1.2rem;
  }

  section {
    padding: 40px 20px; /* Adjust section padding for mobile */
  }

  .company-info,
  .contact-info {
    flex-direction: column;
  }

  .company-text,
  .company-image,
  .company-name,
  .contact-details,
  .quality-image,
  .vision,
  .mission {
    min-width: 100%;
    width: 100%;
  }

  .target-img {
    max-width: 80%; /* Reduce max-width on mobile screens to ensure it's proportional */
  }

  .cert-list {
    justify-content: center;
  }

  /* Product styles for other product sections, not product-grid */
  .product-list .product-item {
    flex-direction: column;
  }

  .product-list .product-image,
  .product-details {
    min-width: 100%;
  }

  .facility-images {
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: auto;
  }

  .facility-item:nth-child(1) {
    grid-column: 1 / 5;
    grid-row: 1 / 2;
  }

  .facility-item:nth-child(2) {
    grid-column: 5 / 9;
    grid-row: 1 / 2;
  }

  .facility-item:nth-child(4) {
    grid-column: 1 / 5;
    grid-row: 2 / 3;
  }

  .facility-item:nth-child(5) {
    grid-column: 5 / 9;
    grid-row: 2 / 3;
  }

  .facility-item:nth-child(3) {
    grid-column: 1 / 9;
    grid-row: 3 / 4;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-info {
    text-align: center;
    margin-bottom: 30px;
    padding-right: 0;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-logo img {
    max-width: 100px; /* Smaller logo on mobile */
  }

  .footer-info h2 {
    text-align: center;
  }

  .footer-info p {
    text-align: center;
  }

  .contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .contact-card {
    width: 100%;
  }

  /* Override any span settings for mobile */
  .contact-card.email-card,
  .contact-card.visit-card {
    grid-column: auto;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .facility-images {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .facility-item:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
  }

  .target-img {
    max-width: 90%; /* Adjust max-width for extra small screens */
  }

  .footer-logo img {
    max-width: 120px; /* Even smaller logo on smaller screens */
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* Medium screens - specifically for navbar logo */
@media (min-width: 750px) and (max-width: 870px) {
  /* .logo img {
    height: 50px;
  } */

  nav ul li {
    margin-left: 15px; /* Reduce spacing between nav items */
  }

  nav ul li a {
    font-size: 0.9rem; /* Make nav text smaller */
  }
}

/* Extra small devices */
@media (max-width: 330px) {
  .logo img {
    height: 30px;
  }

  header .container {
    padding: 8px 10px; /* Keep specific header padding */
  }

  .mobile-menu {
    font-size: 20px;
  }

  .container {
    /* padding: 0 10px; <-- Remove this */
  }

  section {
    padding: 40px 10px; /* Adjust section padding for extra small */
  }
  .shipping {
    margin-top: 30px;
    padding: 0; /* Ensure no padding for full-width section */
  }
  footer .container {
    padding: 0 10px; /* Adjust footer padding */
  }
}

/* Mobile Menu Animation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--white);
  z-index: 200;
  padding: 50px 20px;
  transition: left 0.3s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav ul li {
  margin-bottom: 20px;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 199;
  display: none;
}

.overlay.active {
  display: block;
}

/* Image Modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
}

.image-modal img {
  max-width: 90%;
  max-height: 90vh;
  border: 5px solid var(--white);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 40px;
  color: var(--white);
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--secondary-color);
}

.footer-contact a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-map {
    margin-top: 30px;
  }
}

/* Media Queries for Product Grid */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .product-grid .product-item {
    flex-direction: column;
  }

  .product-grid .product-image {
    max-width: 100%;
    padding: 20px;
  }
}

.quality-images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
  align-items: flex-start;
}

.quality-image {
  flex: 1;
  min-width: 300px;
  height: auto;
}

.quality-image img {
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

.contact-cta {
  margin-top: 30px;
  text-align: center;
}

.cta-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.cta-btn:hover {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

@media (max-width: 768px) {
  .values-overlay h1 {
    font-size: 3.5rem;
    letter-spacing: 5px;
  }

  .values-logo {
    width: 80px;
  }

  .epic-values {
    font-size: 1.5rem;
  }

  .value-letter {
    font-size: 2rem;
  }

  .value-teamwork {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .values-banner {
    height: 300px;
  }

  .values-overlay h1 {
    font-size: 2.5rem;
    letter-spacing: 3px;
  }

  .values-logo {
    width: 60px;
  }

  .epic-values {
    font-size: 1.3rem;
  }

  .value-letter {
    font-size: 1.7rem;
  }

  .value-teamwork {
    font-size: 1.5rem;
  }
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.lang-btn {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.lang-btn:not(:last-child) {
  margin-right: 5px;
}

@media (max-width: 768px) {
  .language-switcher {
    position: absolute;
    top: 20px;
    right: 60px;
  }

  .lang-btn {
    padding: 3px 8px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .language-switcher {
    right: 50px;
  }
}

/* Mobile Language Switcher */
.mobile-language-switcher {
  display: flex;
  padding: 20px;
  justify-content: center;
  margin-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-language-switcher .lang-btn {
  padding: 8px 15px;
  font-size: 16px;
  margin: 0 5px;
}

@media (max-width: 768px) {
  .language-switcher {
    display: none; /* Hide the desktop language switcher on mobile */
  }
}

/* Product section spacing when navbar is hidden */
.product-section-offset {
  padding-top: 140px !important; /* Extra padding when navbar is hidden */
}

.section-with-navbar-space {
  scroll-margin-top: 120px; /* Modern CSS property for scroll offset */
}

/* Apply scroll margin to all product sections */
#argopuro,
#wilis,
#agung,
#panderman,
#pollard,
#kenanga,
#wheat-germ,
#contacts {
  scroll-margin-top: 120px;
}
