:root {
  --primary-blue: rgb(198 162 50);
  --secondary-blue: #0056b3;
  --accent-cyan: #17a2b8;
  --light-bg: #f8f9fa;
  --dark-text: #212529;
  --white: #ffffff;
  --primary-color: rgb(198 162 50) !important;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-text);
  background-color: #f8f9fa;
  background-image: radial-gradient(at 0% 0%, rgba(198, 162, 50, 0.15) 0px, transparent 50%), 
                    radial-gradient(at 100% 0%, rgba(23, 162, 184, 0.1) 0px, transparent 50%), 
                    radial-gradient(at 100% 100%, rgba(198, 162, 50, 0.15) 0px, transparent 50%), 
                    radial-gradient(at 0% 100%, rgba(0, 86, 179, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
  top: 0px !important;
}

body.lang-km {
  font-family: 'Battambang', 'Inter', sans-serif;
}

body.lang-zh-CN {
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
}

/* Bootstrap 5 ScrollSpy Fix */
section {
  scroll-margin-top: 85px;
}

/* Core Glassmorphism Utility Class */
.glass-panel {
  /* background: rgba(255, 255, 255, 0.45) !important; */
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07) !important;
}

.text-primary-custom {
  color: var(--primary-color) !important;
  line-height: 1.5em;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.bg-light-custom {
  background-color: transparent !important;
}

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

/* Navbar */
.navbar {
  background-color: #ffffffd4 !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 0.8em;
}

.nav-link {
  font-weight: 600;
  color: var(--dark-text) !important;
  margin: 0 10px;
  transition: color 0.3s;
}

.nav-link:hover, 
.nav-link.active {
  color: var(--primary-color) !important;
}

/* Language Dropdown Glass Styling */
.dropdown-menu.glass-panel {
  background: rgba(255, 255, 255, 0.75) !important;
}

.dropdown-item {
  font-weight: 500;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: rgba(198, 162, 50, 0.2);
  color: var(--primary-color);
}

/* Hero Slider */
#home {
  width: 100%;
  height: 800px; /* Lock the exact height */
  margin: 0px auto 50px auto; /* 120px top margin clears the navbar, auto centers it left/right */
  position: relative;
  overflow: hidden; /* Ensures the images don't spill outside the rounded corners */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); /* Soft floating shadow */
}

/* Custom Home Carousel Controls */
.home-carousel-control {
  width: 55px;
  height: 55px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  opacity: 0.7;
  transition: all 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}

.carousel-control-prev.home-carousel-control { 
  left: 30px; 
}
.carousel-control-next.home-carousel-control { 
  right: 30px; 
}

.home-carousel-control:hover {
  background: var(--primary-color);
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 10px 25px rgba(198, 162, 50, 0.4);
  border-color: var(--primary-color);
}

.carousel-item {
  background-size: cover !important; /* Cover guarantees zero empty space */
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}

.slide-1 {
  background-image: url('img/Background/1.webp');
}

.slide-2 {
  background-image: url('img/Background/2.webp');
}

.slide-3 {
  background-image: url('img/Background/3.webp');
}

.slide-4 {
  background-image: url('img/Background/4.webp');
}

.slide-5 {
  background-image: url('img/Background/5.webp');
}

.slide-6 {
  background-image: url('img/Background/6.webp');
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 30px;
  opacity: 0.9;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.slider-animate {
  opacity: 0;
  transform: translateY(30px);
}

.carousel-item.active .slider-animate {
  animation: slideUpFade 0.8s ease-out forwards;
}

.slider-delay-1 { animation-delay: 0.2s; }
.slider-delay-2 { animation-delay: 0.4s; }
.slider-delay-3 { animation-delay: 0.6s; }
.slider-delay-4 { animation-delay: 0.8s; }

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn-custom {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  border: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgb(196 172 97 / 20%);
  background-color: rgb(196 172 97 / 90%);
  color: var(--white);
}

/* Process Timeline */
.process-step {
  position: relative;
  z-index: 1;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 35px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(198, 162, 50, 0.1) 0%, var(--primary-color) 50%, rgba(198, 162, 50, 0.1) 100%);
  background-size: 200% 100%;
  animation: flowLine 2.5s linear infinite;
  z-index: -1;
  border-radius: 5px;
}

.process-step:last-child::after {
  display: none;
}

@keyframes flowLine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.process-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  border-radius: 50%;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.process-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  opacity: 0;
  z-index: -1;
}

.process-step:hover .process-icon {
  transform: translateY(-10px) scale(1.1);
  background: var(--primary-color) !important;
  color: var(--white);
  box-shadow: 0 15px 30px rgba(198, 162, 50, 0.4) !important;
  border-color: var(--primary-color) !important;
}

.process-step:hover .process-icon::before {
  animation: pulseRing 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.step-number {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--dark-text);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  transition: all 0.3s ease;
}

.process-step:hover .step-number {
  background: white;
  color: var(--primary-color);
}

/* Filters */
.filter-btn {
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--dark-text);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

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

/* Filter Animations */
.product-item {
  transition: all 0.5s ease;
  opacity: 1;
  transform: scale(1);
}

.product-item.hide {
  display: none;
  opacity: 0;
  transform: scale(0.8);
}

/* Cards */
.product-card {
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 15px 40px 0 rgba(198, 162, 50, 0.2);
  border: 1px solid rgba(255, 255, 255, 1);
}

.product-card img {
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.moq-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  color: var(--dark-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Stat Counters */
.stat-counter {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 5px;
}

/* Modal Glass Styling */
.modal-content.glass-panel {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

/* Form Styling */
.form-control, 
.form-select {
  background: #eee;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 12px 15px;
  color: var(--dark-text);
  transition: all 0.3s ease;
}

.form-control:focus, 
.form-select:focus {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgb(198 162 50 / 20%);
}

/* Floating Client Logos Section */
.client-section {
  overflow: hidden;
  position: relative;
  background: transparent;
  padding: 80px 0 40px;
}

/* Diamond Carousel Indicators */
.carousel-indicators {
  margin-bottom: 3rem;
  gap: 15px;
  color: var(--primary-color);

}

.carousel-indicators [data-bs-target] {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 2px;
  opacity: 0.5;
  transition: all 0.3s ease;
  transform: rotate(45deg);
  margin: 0;
  padding: 0;
  text-indent: -999px;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: var(--primary-color);
  transform: rotate(45deg) scale(1.3);
  box-shadow: 0 0 10px rgb(196 172 97 / 50%);
}

.carousel-indicators [data-bs-target]:hover {
  opacity: 0.8;
  cursor: pointer;
}



/* Scroll Animations */
.scroll-reveal-up, 
.scroll-reveal-left, 
.scroll-reveal-right, 
.scroll-reveal-scale {
  opacity: 1;
}

@supports (animation-timeline: view()) {
  .scroll-reveal-up {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }

  .scroll-reveal-left {
    animation: reveal-left linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 30%;
  }

  .scroll-reveal-right {
    animation: reveal-right linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 30%;
  }

  .scroll-reveal-scale {
    animation: reveal-scale linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }

  @keyframes reveal-up {
    from { opacity: 0; transform: translateY(100px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes reveal-left {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
  }

  @keyframes reveal-right {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
  }

  @keyframes reveal-scale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
  }
}

/* Maps & Floating Action */
.map-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  background-color: transparent;
}

.map-overlay-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  background: var(--primary-color);
  box-shadow: 0 10px 20px rgba(198, 162, 50, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-overlay-btn:hover {
  transform: scale(1.1);
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 15px 40px 0 rgba(198, 162, 50, 0.2);
  border: 1px solid rgba(255, 255, 255, 1);
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: contrast(1.05) saturate(0.85);
  transition: filter 0.3s ease;
  border-radius: 12px;
}

.map-wrapper iframe:hover {
  filter: contrast(1) saturate(1);
}

.floating-widget {
  position: fixed;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top {
  bottom: 30px;
  right: 30px;
  color: var(--primary-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-color) !important;
  color: white;
}

.chat-widget {
  bottom: 30px;
  left: 30px;
  background: rgba(34, 158, 217, 0.15) !important;
  color: #229ED9;
  border: 1px solid rgba(34, 158, 217, 0.4) !important;
}

.chat-widget:hover {
  background: #229ED9 !important;
  color: white;
  transform: scale(1.1);
}

.brand-facebook { color: #1877F2; }
.brand-linkedin { color: #0A66C2; }
.brand-whatsapp { color: #25D366; }
.brand-wechat { color: #07C160; }

.brand-facebook:hover, 
.brand-linkedin:hover, 
.brand-whatsapp:hover,
.brand-wechat:hover {
  filter: brightness(0.85);
}

@media (max-width: 768px) {

/* 1. Prevent the empty slider from collapsing */
#home {
		width: 100% !important; /* Full width on phones */
		border-radius: 0 !important; /* Remove corners for a flush mobile look */
		height: 250px !important; /* Lock the exact mobile height */
		margin-top: 76px; /* Offset for the navbar */
		margin-bottom: 30px;
	}

	/* 2. Remove padding since there is no content to push down */
.carousel-item {
		background-size: cover !important; 
		background-position: center center !important;
		background-repeat: no-repeat !important;
		padding-top: 0 !important; 
		padding-bottom: 0 !important;
	}

  .carousel-control-next-icon, .carousel-control-prev-icon{
    width: 1rem;
    height: 1rem;
  }

  .home-carousel-control {
    width: 35px;
    height: 35px;
  }

	/* 4. Force Left Alignment for all text and elements */
	#home .container .row > div {
		text-align: left !important;
		display: flex;
		flex-direction: column;
		align-items: flex-start; /* Forces the badge and buttons to the left */
	}

	/* 5. Shrink Typography and Buttons */
	.hero-title {
		font-size: 1.3rem !important; /* Much smaller title */
		margin-top: 5px;
		margin-bottom: 5px;
		line-height: 1.2;
	}
	
	.hero-subtitle {
		font-size: 0.8rem !important; /* Smaller subtitle */
		/* margin-bottom: 25px; */
		max-width: 95%; /* Prevents text from stretching all the way to the right edge */
	}

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

	.btn-custom, .btn-outline-light {
		padding: 8px 20px;
		font-size: 0.85rem;
	}

	/* Align diamond indicators neatly at the bottom */
	.carousel-indicators {
		margin-bottom: 20px;
		gap: 8px;
	}
	
	.carousel-indicators [data-bs-target] {
		width: 10px;
		height: 10px;
		border-width: 1px;
	}
	
	.carousel-indicators .active {
		transform: rotate(45deg) scale(1.2);
	}
	
	/* Navbar mobile fixes */
	.navbar-brand {
		font-size: 0.85rem !important;
		white-space: normal;
	}
	.brand-logo {
		height: 35px !important;
	}
	.brand-text {
		font-size: 0.8rem;
		line-height: 1.2;
		white-space: normal;
	}
	.container {
		flex-wrap: nowrap;
	}
	.process-step::after {
		display: none;
	}

  /* 2. Reduce padding inside the card */
  .product-card .card-body {
    padding: 12px !important;
  }
  
  /* 3. Shrink typography */
  .product-card .card-title {
    font-size: 0.85rem !important;
    margin-bottom: 5px;
  }
  
  /* 4. Truncate long descriptions with an ellipsis (...) after 2 lines */
  .product-card .card-text {
    font-size: 0.7rem !important;
    display: -webkit-box;
    --webkit-line-clamp: 2;
    --webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
  }
  
  /* 5. Shrink the MOQ Badge */
  .moq-badge {
    font-size: 0.6rem;
    padding: 3px 6px;
    top: 8px;
    right: 8px;
  }
  
  /* 6. Adjust Filter button sizing */
  .filter-btn {
    padding: 6px 15px;
    font-size: 0.85rem;
  }
}



.object-fit-cover {
  object-fit: cover;
}



/* Signature Brands */
.signature-brand-card {
  cursor: pointer;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
  filter: grayscale(80%);
  opacity: 0.7;
}

.signature-brand-card.active, 
.signature-brand-card:hover {
  filter: grayscale(0%);
  opacity: 1;
  background: radial-gradient(#c5a13b4a, transparent) !important;
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(198, 162, 50, 0.15);
  transform: translateY(-5px);
  color: black;
}

.brand-showcase-logo {
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}


@media (max-width: 768px) {
  .modal-close-custom {
    top: -15px;
    right: 0;
  }
}

/* Expandable Glassmorphic FAB */
.floating-action-menu {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1050;
  display: flex;
  flex-direction: column-reverse; 
  align-items: center;
  gap: 15px;
}

.fab-main {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
  color: var(--primary-color);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-main:hover, 
.fab-main.active {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.75) !important;
  box-shadow: 0 15px 35px rgba(198, 162, 50, 0.25) !important;
}

.fab-main i {
  transition: transform 0.4s ease;
}

.fab-main.active i {
  transform: rotate(90deg);
}

.fab-options {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px) scale(0.5); 
  transform-origin: bottom center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-action-menu.open .fab-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.fab-item {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.fab-item:hover {
  transform: translateY(-5px) scale(1.1);
}

.fab-whatsapp { color: #25D366; }
.fab-wechat { color: #07C160; }
.fab-email { color: #D44638; }

.fab-whatsapp:hover { background: rgba(37, 211, 102, 0.15) !important; color: #25D366; }
.fab-wechat:hover { background: rgba(7, 193, 96, 0.15) !important; color: #07C160; }
.fab-email:hover { background: rgba(212, 70, 56, 0.15) !important; color: #D44638; }

/* Tooltips */
.fab-item::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 60px;
  background: rgba(33, 37, 41, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.fab-item:hover::before {
  opacity: 1;
  visibility: visible;
}



/* =========================================
   Cinematic Photo-First Bento Grid (Visible Titles)
========================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
}

.bento-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: #000; 
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Grid Placements */
.bento-material  { grid-column: span 2; }
.bento-recycling { grid-column: span 2; }
.bento-mixing    { grid-column: span 2; }
.bento-blowing   { grid-column: span 2; }
.bento-cutting   { grid-column: span 2; }
.bento-packaging { grid-column: span 2; }

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

/* Permanent bottom gradient so white text is always readable */
.bento-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  transition: background 0.5s ease;
}

/* Title Container - Always Visible */
.bento-title-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px 20px;
  z-index: 3;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-title {
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  font-size: 1rem;
}

/* Center Action Button - Invisible until hover */
.bento-action-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: all 0.5s ease;
}

.action-btn {
  width: 60px;
  height: 60px;
  transform: translateY(30px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover States */
.bento-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(198, 162, 50, 0.3);
}

.bento-item:hover img {
  transform: scale(1.08);
  opacity: 0.7;
}

/* Dim the whole image slightly on hover to make the icon pop */
.bento-item:hover::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.bento-item:hover .bento-action-center {
  opacity: 1;
}

.bento-item:hover .action-btn {
  transform: translateY(0) scale(1);
}

/* Subtle upward bounce for the title when hovered */
.bento-item:hover .bento-title-wrapper {
  transform: translateY(-8px);
}

/* Tablet & Mobile Adjustments */
@media (max-width: 991px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr); 
    grid-auto-rows: 220px;
    gap: 15px;
  }
  
  .bento-material, .bento-recycling, .bento-mixing, .bento-blowing, .bento-cutting, .bento-packaging { 
    grid-column: span 1 !important; 
  }

  .bento-title {
    font-size: 1.2rem;
  }

  .bento-title-wrapper {
    padding: 15px;
  }
}


/* Mobile Horizontal Scrolling Utilities */
.hide-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
}

.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.signature-scroll-item {
  flex: 0 0 auto;
  width: 70%; /* On mobile, shows 1 card and a peek of the next to indicate swiping */
}

@media (min-width: 768px) {
  .signature-scroll-item {
    width: 23%; /* Resets to 4 columns on desktop */
  }
}

/* Adjust close button position so it sits cleanly on the corner */
.glass-swal-popup .swal2-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  background: var(--primary-color) !important;
  color: white !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1060;
  opacity: 1;
}

.glass-swal-popup .swal2-close:hover {
  /* transform: scale(1.15) rotate(90deg); */
  background: white !important;
  color: var(--primary-color) !important;
  box-shadow: 0 15px 35px rgba(198, 162, 50, 0.6);
  border-color: var(--primary-color);
}

.glass-swal-popup .swal2-close:focus {
  outline: none !important;
  box-shadow: 0 10px 25px rgba(198, 162, 50, 0.4);
}

/* Constrain the product image size inside the Swal popup */
.glass-swal-popup .swal2-image {
  max-height: 50vh !important; 
  object-fit: contain !important; /* Keeps aspect ratio intact without cropping */
  width: auto !important;
  max-width: 100% !important;
  margin-top: 15px !important;
}

/* On mobile screens, tuck the button slightly inside so it doesn't get cut off by the screen edge */
@media (max-width: 768px) {
.glass-swal-popup .swal2-close {
    /* Tuck the close button slightly inward on phones so it isn't cropped by the screen edge */
    top: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
}

/* =========================================
   Floating Logo Cloud (Client Section)
========================================= */
.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0 60px 0;
}

.cloud-item {
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); /* Soft, premium shadow */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
}

/* Size the image to leave a nice white border inside the circle */
.cloud-item img {
  width: 70%; 
  height: 70%;
  object-fit: contain;
}

.cloud-item:hover {
  transform: translateY(-10px) scale(1.1) !important; /* Overrides the float animation on hover */
  box-shadow: 0 25px 45px rgba(198, 162, 50, 0.25);
  z-index: 2;
}

/* Varied Circular Sizes & Staggered Positioning */
.size-l { width: 150px; height: 150px; }
.size-m { width: 110px; height: 110px; margin-top: 60px; } /* Pushes down */
.size-s { width: 85px; height: 85px; margin-top: -40px; }  /* Pulls up */

/* Gentle Floating Animations */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); } /* Bobs up by 15px */
}

/* Different timings make it look organic, not robotic */
.float-delay-1 { animation: floatGentle 4s ease-in-out infinite; }
.float-delay-2 { animation: floatGentle 5s ease-in-out infinite 1s; }
.float-delay-3 { animation: floatGentle 4.5s ease-in-out infinite 2s; }
.float-delay-4 { animation: floatGentle 5.5s ease-in-out infinite 0.5s; }
.float-delay-5 { animation: floatGentle 4.2s ease-in-out infinite 1.5s; }

/* Mobile Optimizations */
@media (max-width: 768px) {
  .logo-cloud {
    gap: 20px;
    padding: 10px 0 40px 0;
  }
  
  .size-l { width: 100px; height: 100px; }
  .size-m { width: 85px; height: 85px; margin-top: 30px; }
  .size-s { width: 70px; height: 70px; margin-top: -20px; }
}


/* =========================================
   Isometric 3D Workflow Styles
========================================= */

/* The Parent 3D Environment */
.isometric-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  transform-style: preserve-3d;
  /* Tilt the entire environment */
  transform: rotateX(60deg) rotateZ(-45deg);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* The Tilted Glass Tile */
.isometric-base {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  
  /* Thick 3D depth block below the glass */
  box-shadow: 
    -1px 1px 0 #b3922d,
    -2px 2px 0 #b3922d,
    -3px 3px 0 #b3922d,
    -4px 4px 0 #b3922d,
    -5px 5px 0 #b3922d,
    -6px 6px 0 #b3922d,
    -7px 7px 0 #b3922d,
    -20px 20px 30px rgba(0,0,0,0.15) !important;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* The Standing Icon */
.isometric-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* 1. translateZ(20px) lifts it slightly above the glass */
  /* 2. rotateZ(45deg) rotateX(-60deg) reverses the parent's tilt so it stands straight */
  transform: translateZ(20px) rotateZ(45deg) rotateX(-60deg);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.isometric-icon img.custom-isometric-svg {
  width: 75px;  /* Adjust this width depending on how large your SVGs are */
  height: 75px; /* Adjust this height to match */
  object-fit: contain; /* Ensures the SVG doesn't stretch */
  
  /* The drop shadow traces the transparent SVG, creating the 3D standing illusion */
  filter: drop-shadow(0px 15px 8px rgba(0,0,0,0.1));
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* -----------------------------------------
   Hover Animations
----------------------------------------- */
/* Lift the whole wrapper slightly */
.prod-workflow-step:hover .isometric-wrapper {
  transform: rotateX(60deg) rotateZ(-45deg) translateZ(20px);
}

/* Brighten and expand the shadow of the base */
.prod-workflow-step:hover .isometric-base {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 
    -1px 1px 0 #b3922d,
    -2px 2px 0 #b3922d,
    -15px 15px 0 rgba(198, 162, 50, 0.1),
    -35px 35px 40px rgba(198, 162, 50, 0.35) !important;
}

/* Pop the icon higher into the air and scale it up */
.prod-workflow-step:hover .isometric-icon {
  transform: translateZ(50px) rotateZ(45deg) rotateX(-60deg) scale(1.15);
}

.prod-workflow-step:hover .isometric-icon img.custom-isometric-svg {
  /* Note: The physical lift (translateZ) is still handled by the .isometric-icon parent wrapper */
  transform: scale(1.5); 
  filter: drop-shadow(0px 25px 12px rgba(198, 162, 50, 0.1));
}
/* QR Code Showcase & Footer Connect */
.qr-card {
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.qr-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 28px rgba(198, 162, 50, 0.2) !important;
  border-color: var(--primary-color) !important;
  background: rgba(255, 255, 255, 0.8) !important;
}

.qr-card:focus-visible {
  outline: 2px solid var(--primary-color);
}

.qr-img-wrapper {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-whatsapp-btn:hover {
  background: #25D366 !important;
  color: white !important;
  border-color: #25D366 !important;
}

.brand-wechat-btn:hover {
  background: #07C160 !important;
  color: white !important;
  border-color: #07C160 !important;
}

.brand-email-btn:hover {
  background: #D44638 !important;
  color: white !important;
  border-color: #D44638 !important;
}

/* Video Sound Control Badge */
.video-sound-badge {
  top: 15px;
  right: 15px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-sound-badge:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  transform: scale(1.05);
}

.video-sound-badge.active {
  background: rgba(37, 211, 102, 0.9) !important;
  border-color: #25D366 !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

@media (max-width: 576px) {
  .bento-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 200px !important;
  }
}
