/* Reset default margins and padding */
* {
  margin: 0;
  padding: 0;
}

html {
  margin: 0 !important;
  padding: 0 !important;
}

body {
  overflow-x: hidden;
  padding-top: 65px !important;
  margin: 0 !important;
}

/* Fixed header navbar styling */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #fffaed !important;
  border-bottom: 2px solid #fef08a !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  z-index: 100;
  height: auto;
}

/* Hero section spacing below navbar */
#heroSection {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Default site font - will be overridden by template-level setting when provided */
html, body, input, textarea, select, button {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== VIBRANT ANIMATIONS ===== */

/* Blob animation for background elements */
@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    transform: translate(50px, 50px) scale(1.05);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-3000 {
  animation-delay: 3s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

.animation-delay-5000 {
  animation-delay: 5s;
}

.animation-delay-6000 {
  animation-delay: 6s;
}

/* Fade in down animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
}

/* Fade in up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Bounce slow animation */
@keyframes bounceSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-bounce-slow {
  animation: bounceSlow 3s infinite;
}

/* Import translate-specific styles */
@import url('translate.css');

/* Hero container animations */
.hero-container {
  position: relative;
  overflow: hidden;
}

.hero-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.8s ease;
  z-index: 1;
}

.hero-container:hover::before {
  left: 100%;
}

.hero-container:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-container img {
  transition: transform 0.4s ease;
}

.hero-container:hover img {
  transform: scale(1.05);
}

/* Industrial containers hover effects */
.container .grid > div {
  transition: all 0.3s ease;
  cursor: pointer;
}

.container .grid > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.container .grid > div:not(.hero-container):hover {
  transform: translateY(-3px) scale(1.02);
}

/* Enhanced navbar animations */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
  background-color: #fffaed !important;
  width: 100%;
  min-height: 56px;
}

/* Prevent hero sections from overlapping the fixed navbar */
body {
  padding-top: 56px;
}

html {
  scroll-padding-top: 56px;
}

.fixed-header:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background-color: #fffaed !important;
}

/* Logo animation */
.logo-black-filter {
  transition: transform 0.3s ease;
}

.logo-black-filter:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Navigation links animation */
nav a {
  position: relative;
  transition: all 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 100%;
}

/* Search box animations */
.search-box {
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.search-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.search-box:focus::before {
  left: 100%;
}

.search-box:focus {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

/* Search button styling */
.search-box + button {
  pointer-events: auto;
  z-index: 10;
  cursor: pointer;
  border: none;
  background: transparent;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Hero section animations */
.hero-gradient {
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
  z-index: 1;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Hero text animations */
.hero-gradient h1 {
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-gradient p {
  animation: fadeInUp 1s ease 0.6s both;
}

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

/* Stats cards animation */
.bg-\[\\#FFF9E5\] {
  animation: slideInUp 0.8s ease both;
  transition: all 0.3s ease;
}

.bg-\[\\#FFF9E5\]:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

/* Category cards enhancement - ENHANCED */
.card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  background-color: #ffffff !important;
  border: 1px solid #e5e7eb;
}

.card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.05), rgba(250, 204, 21, 0.02));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.card-hover:hover::before {
  opacity: 1;
}

.card-hover:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-color: #fcd34d;
}

/* Category icons animation */
.category-icon-circle {
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.card-hover:hover .category-icon-circle {
  transform: scale(1.2) rotateY(360deg);
  box-shadow: 0 12px 30px rgba(250, 204, 21, 0.4);
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.6));
}

/* Supplier cards animations */
.supplier-card {
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  background-color: #ffffff !important;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
}

.supplier-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.03));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.supplier-card:hover::after {
  opacity: 1;
}

.supplier-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  border-color: #93c5fd;
}

.supplier-card img {
  transition: transform 0.4s ease;
}

.supplier-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* Button animations */
button, .inline-block {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button::before, .inline-block::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  z-index: -1;
}

button:hover::before, .inline-block:hover::before {
  width: 300px;
  height: 300px;
}

button:hover, .inline-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

/* Star ratings animation */
.fa-star, .fa-star-half-alt {
  transition: all 0.2s ease;
}

.supplier-card:hover .fa-star,
.supplier-card:hover .fa-star-half-alt {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Footer animation */
footer {
  animation: fadeIn 1s ease;
  background-color: #fffaed !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

footer a {
  transition: all 0.3s ease;
}

footer a:hover {
  transform: translateY(-2px);
}

/* Social media icons */
.fab {
  transition: all 0.3s ease;
}

.fab:hover {
  transform: scale(1.3) rotate(10deg);
}

/* Full screen hero section */
.w-full.min-h-screen {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Responsive Carousel Grid Layout */
.hero-carousel-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0.75rem;
  height: 100%;
  width: 100%;
  padding: 0.5rem;
}

.carousel-item {
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  background-color: #000;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: contents;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-item-large {
  grid-column: span 3;
  grid-row: span 2;
}

.carousel-item-medium {
  grid-column: span 2;
  grid-row: span 1;
}

/* Mobile Carousel Responsiveness */
@media (max-width: 768px) {
  #heroSection {
    height: auto !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  #heroSection > div:first-child {
    position: static !important;
    height: auto !important;
    width: 100% !important;
    inset: auto !important;
    display: none;
  }

  .w-full.min-h-screen {
    width: 100vw;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-carousel-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto !important;
    min-height: auto !important;
    gap: 0.5rem;
    padding: 0 1rem;
    max-height: 620px;
  }

  .carousel-item-large {
    grid-column: span 1;
    grid-row: span 1;
    height: 110px;
    width: 100%;
    overflow: hidden;
  }

  .carousel-item-medium {
    grid-column: span 1;
    grid-row: span 1;
    height: 110px;
    width: 100%;
    overflow: hidden;
  }

  .carousel-item {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #000;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
  }

  .carousel-item h3,
  .carousel-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
  }

  .carousel-item p {
    font-size: 0.65rem;
    display: none;
  }

/* Ensure mobile language container has roomy tap area */
#mobileLanguageToggle, #mobileLanguageToggle * {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

  .card-hover:hover {
    transform: translateY(-5px) scale(1.01);
  }

  .supplier-card:hover {
    transform: translateY(-4px);
  }
}

/* Extra small screen carousel fixes */
@media (max-width: 480px) {
  #heroSection {
    height: auto !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  #heroSection > div:first-child {
    position: static !important;
    height: auto !important;
    width: 100% !important;
    inset: auto !important;
    display: none;
  }

  .w-full.min-h-screen {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-carousel-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto !important;
    min-height: auto !important;
    gap: 0.5rem;
    padding: 0 1rem;
    max-height: 660px;
  }

  .carousel-item {
    grid-column: span 1;
    grid-row: span 1;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 110px;
    width: 100%;
  }

  .carousel-item-large {
    grid-column: span 1;
    grid-row: span 1;
    height: 110px;
    overflow: hidden;
  }

  .carousel-item-medium {
    grid-column: span 1;
    grid-row: span 1;
    height: 110px;
    overflow: hidden;
  }

  .carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .carousel-item h3 {
    font-size: 1.125rem;
  }

  .carousel-item h4 {
    font-size: 1rem;
    font-weight: 600;
  }

  .carousel-item p {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .carousel-item .absolute.bottom-4,
  .carousel-item .absolute.bottom-8 {
    bottom: 1rem !important;
    left: 1rem !important;
    right: 1rem !important;
    font-size: 0.95rem !important;
    padding: 0.5rem 0.75rem !important;
    max-width: calc(100% - 2rem);
  }

  /* Stack footer columns on very small screens */
  footer .grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Adjust category grid for mobile */
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  /* Improve tap targets for cards */
  .card-hover, .supplier-card {
    padding: 1rem;
  }

  /* Increase font sizes in cards */
  .card-hover h3, .supplier-card h3 {
    font-size: 1.125rem;
  }

  .card-hover p, .supplier-card p {
    font-size: 0.875rem;
  }

  /* Navbar mobile menu improvements */
  #mobileMenu {
    padding: 1rem;
  }

  #mobileMenu nav a {
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
  }

  /* Showcase responsive for small screens */
  .showcase-section {
    padding: 2rem 1rem;
  }

  .showcase-book {
    margin-left: 1.5rem;
  }
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse effect for premium badges */
.bg-yellow-400 {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
  }
}

/* Carousel dots styling */
.carousel-dot.active {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.carousel-dot:hover {
  transform: scale(1.1);
}

/* Enhanced carousel animations */
#heroCarousel {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#heroCarousel.transitioning {
  opacity: 0.8;
  transform: translateX(10px);
}

/* Hero container click effects */
.hero-container {
  transition: all 0.3s ease;
}

.hero-container:hover {
  transform: scale(1.08);
  z-index: 25;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Remove overlay on hover for specific containers */
#heroCarousel > div:hover .absolute.inset-0.bg-gradient-to-t {
  opacity: 0.3;
}

/* Hero container hover effects - remove overlay and pop out */
#heroCarousel > div {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

#heroCarousel > div:hover {
  transform: scale(1.08) translateZ(0);
  z-index: 25;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

#heroCarousel > div:hover .absolute.inset-0 {
  background: transparent !important;
}

/* Keep text visible on hover */
#heroCarousel > div:hover .absolute.bottom-8,
#heroCarousel > div:hover .absolute.bottom-4 {
  z-index: 30;
}

/* Container animation stagger */
#heroCarousel > div {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation: containerSlideIn 0.6s ease-out forwards;
}

#heroCarousel > div:nth-child(1) { animation-delay: 0.1s; }
#heroCarousel > div:nth-child(2) { animation-delay: 0.2s; }
#heroCarousel > div:nth-child(3) { animation-delay: 0.3s; }
#heroCarousel > div:nth-child(4) { animation-delay: 0.4s; }
#heroCarousel > div:nth-child(5) { animation-delay: 0.5s; }

/* Responsive text sizing */
@media (max-width: 640px) {
  .text-2xl {
    font-size: 1.25rem;
  }

  .text-lg {
    font-size: 1rem;
  }

  .text-base {
    font-size: 0.875rem;
  }
}

@keyframes containerSlideIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Navigation arrows styling */
#prevBtn, #nextBtn, #prevBottomBtn, #nextBottomBtn {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transform: scale(1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#prevBtn:hover, #nextBtn:hover, #prevBottomBtn:hover, #nextBottomBtn:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

#prevBtn:active, #nextBtn:active, #prevBottomBtn:active, #nextBottomBtn:active {
  transform: scale(0.95);
}

/* Map container styling */
.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  display: block;
  width: 80px;
  height: 60px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

/* Announcement Popup Styles */
.announcement-popup-container {
  position: fixed;
  right: 1rem;
  bottom: 1.5rem;
  left: auto;
  transform: none;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .announcement-popup-container {
    bottom: 1rem;
    right: 0.5rem;
  }
}

.announcement-btn {
  background: linear-gradient(90deg, #fff9e5);
  color: #222;
  border: none;
  outline: none;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 0 0 1px #000000;
  padding: 0.3rem 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: box-shadow 0.3s, transform 0.3s;
  animation: announcement-popin 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}

.announcement-btn-icon {
  font-size: 1.3em;
}

.announcement-btn-label {
  font-size: 1em;
  font-weight: 600;
}

.announcement-bar {
  display: none;
  margin-top: 1rem;
  min-width: 320px;
  max-width: 90vw;
  background: #FFF9E5;
  color: #222;
  padding: 0.75rem 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 0 0 2px #000000;
  border-radius: 999px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  animation: announcement-popin 0.7s cubic-bezier(.68,-0.55,.27,1.55);
  position: relative;
  transition: border-radius 0.4s cubic-bezier(.68,-0.55,.27,1.55), width 0.4s, height 0.4s, padding 0.4s;
}

.announcement-bar.active {
  display: flex;
  border-radius: 24px;
  min-width: 320px;
  max-width: 90vw;
  min-height: 120px;
  padding: 1.5rem 2rem;
  width: 340px;
  height: auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
}

.announcement-text {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  display: block;
  padding: 0 0.5rem;
  white-space: normal;
  animation: none;
}

.announcement-list {
  list-style: disc inside;
  margin: 0;
  padding: 0;
  width: 100%;
}

.announcement-list li {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f59e0b;
  font-weight: 500;
}

.announcement-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.announcement-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: #0a0a0a;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.announcement-footer {
  width: 100%;
  border-top: 1px solid #f59e0b;
  margin-top: 1rem;
  padding-top: 0.5rem;
  font-size: 0.95em;
  color: #444;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.announcement-footer a {
  color: #b45309;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}

.announcement-footer a:hover {
  color: #92400e;
}

@keyframes announcement-popin {
  0% {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Mobile menu styles */
#mobileMenu {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  pointer-events: none;
}

#mobileMenu.hidden {
  display: none !important;
  pointer-events: none !important;
}

#mobileMenu:not(.hidden) {
  display: block !important;
  pointer-events: auto !important;
}

/* Mobile menu overlay */
#mobileMenu .mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 9999;
  pointer-events: none;
  transition: background-color 0.3s ease;
}

#mobileMenu.show .mobile-menu-overlay {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

#mobileMenu .mobile-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 85vw;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background: white;
  z-index: 10001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

#mobileMenu.show .mobile-panel {
  transform: translateX(0);
}

#mobileProductsMenu {
  transition: all 0.3s ease;
}

#mobileProductsMenu.show {
  display: block !important;
}

.announcement-bar.show {
  display: flex !important;
}

/* Hamburger animation */
.hamburger-line {
  transition: all 0.3s ease;
}

.hamburger-line.active:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-line.active:nth-child(2) {
  opacity: 0;
}

.hamburger-line.active:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile menu button styling */
#mobileMenuBtn {
  position: relative;
  z-index: 50;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mobileMenuBtn:hover {
  opacity: 0.8;
}

/* Mobile panel content sections */
#mobileMenu .mobile-panel > div:nth-child(1) {
  position: sticky;
  top: 0;
  z-index: 50;
  background: white;
  flex-shrink: 0;
}

#mobileMenu .mobile-panel > div:nth-child(2) {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

#mobileMenu .mobile-panel > div:nth-child(2)::-webkit-scrollbar {
  width: 6px;
}

#mobileMenu .mobile-panel > div:nth-child(2)::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#mobileMenu .mobile-panel > div:nth-child(2)::-webkit-scrollbar-thumb {
  background: #fbbf24;
  border-radius: 3px;
}

#mobileMenu .mobile-panel > div:nth-child(2)::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* Responsive hero grid and image showcase for mobile */
@media (max-width: 768px) {
  #heroCarousel {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 160px);
    height: auto !important;
    min-height: 800px !important;
    gap: 8px;
  }
  #heroCarousel > div {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 140px;
    height: 160px;
  }
  #heroCarousel img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 140px;
    max-height: 160px;
  }
  /* Overlay caption box for mobile */
  .absolute.bottom-8, .absolute.bottom-4 {
    left: 1rem !important;
    right: 1rem !important;
    bottom: 1rem !important;
    font-size: 0.95rem !important;
    padding: 0.5rem 0.75rem !important;
    max-width: 90vw;
  }
}

/* ...existing code... */

/* X-split triangle hero styles */
.hero-xsplit {
  width: 100vw;
  height: 80vh;
  background:  #fff9e5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 3px solid #5156609f;
}

.x-split {
  position: relative;
  width: 100vw;
  height: 80vh;
}

.triangle {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: .5s cubic-bezier(.77,0,.18,1),transform .3s cubic-bezier(.77,0,.18,1);
  cursor: pointer;
  z-index: 1;
  border: 3px solid #5156609f;
}
.triangle:hover { transform: scale(.96); }
.triangle-1 {
  clip-path: polygon(0 0,50% 50%,0 100%);
  background: url('../images/t1.jpeg') left top/cover;
  border-color: #51566089;
}
.triangle-2 {
  clip-path: polygon(100% 0,50% 50%,0 0);
  background: url('../images/t2.jpeg') right top/cover;
  border-color: #51566089;
}
.triangle-3 {
  clip-path: polygon(0 100%,50% 50%,100% 100%);
  background: url('../images/t3.jpeg') left bottom/cover;
  border-color: #51566089;
}
.triangle-4 {
  clip-path: polygon(100% 100%,50% 50%,100% 0);
  background: url('../images/t4.jpeg') right bottom/cover;
  border-color: #51566089;
}
.triangle.active {
  clip-path: inset(0);
  width: 30vw;
  height: 30vw;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  z-index: 20;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  border-radius: 16px;
  border-width: 4px;
}
.center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  z-index: 100;
  box-shadow: 0 0 15px rgba(255,255,255,.6);
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,rgba(0,0,0,.1),rgba(0,0,0,.05));
  pointer-events: none;
  z-index: 5;
}

/* Center circle with logo at intersection of triangles */
.center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: rgb(255, 255, 255);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  z-index: 10; /* Lower than .triangle.active (z-index: 20) */
  border: 3px solid #fff;
}

.center-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 5px;
}

/* Compact language toggle styling */
#languageToggle {
  transform: scale(0.9);
  transition: all 0.3s ease;
}

#languageToggle:hover {
  transform: scale(0.95);
  background: rgba(251, 191, 36, 0.1);
}

/* Login button hover effect */
.rounded-full.border.border-yellow-700:hover {
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

/* Enhanced image loading and performance */
img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Lazy loading images */
img.lazy-load {
  opacity: 0.7;
  background-color: #f3f4f6;
  transition: opacity 0.4s ease, background-color 0.4s ease;
}

img.lazy-load.loaded {
  opacity: 1;
  background-color: transparent;
}

/* Image optimization for different screen sizes */
@media (max-width: 768px) {
  img {
    image-rendering: optimizeSpeed;
  }
}

/* GPU acceleration for better performance */
.hero-container, .card-hover, .supplier-card {
  will-change: transform;
  transform: translateZ(0);
}

/* Z-index layering system */
.navbar {
  z-index: 1000;
}

.navbar .dropdown {
  z-index: 9999;
}

.mobile-menu {
  z-index: 9998;
}

.hero-carousel {
  z-index: 20;
}

.showcase-section {
  z-index: 10;
}

/* Hamburger menu animation */
.hamburger-line {
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Mobile menu animations */
.mobile-menu-slide {
  transition: transform 0.3s ease-in-out;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Showcase Section Styles with Fade-In and Slide Effects */
.showcase-section {
  position: relative;
  overflow: hidden;
}

/* Rotating Circle Indicator (Globe-like) */
.showcase-rotating-circle {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.circle-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotateGlobe 20s linear infinite;
}

.circle-dots.paused {
  animation-play-state: paused;
}

.dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
}

.dot-1 {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: pulse 1.5s ease-in-out infinite;
}

.dot-2 {
  bottom: 30px;
  left: 15px;
  animation: pulse 1.5s ease-in-out infinite 0.5s;
}

.dot-3 {
  bottom: 30px;
  right: 15px;
  animation: pulse 1.5s ease-in-out infinite 1s;
}

.circle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 35% 35%, #fef3c7, #fbbf24);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #b45309;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.5);
  border: 3px solid #f59e0b;
  z-index: 10;
}

@keyframes rotateGlobe {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.showcase-grid {
  position: relative;
  min-height: 300px;
}

/* Fade-In and Slide Animation for Showcase Items */
.showcase-item-new {
  opacity: 0;
  transform: translateY(30px) translateX(0);
  animation: fadeInSlideUp 0.7s ease-out forwards;
}

.showcase-item-new[data-index="0"] {
  animation-delay: 0.1s;
}

.showcase-item-new[data-index="1"] {
  animation-delay: 0.25s;
}

.showcase-item-new[data-index="2"] {
  animation-delay: 0.4s;
}

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

/* Fade-In animation for header */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
}

/* Image wrapper with smooth fade transition */
.showcase-image-wrapper {
  position: relative;
  perspective: 1000px;
}

.showcase-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation buttons styling */
.showcase-nav-btn-new {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.showcase-nav-btn-new:hover span {
  transform: scale(1.15);
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.5) !important;
}

.showcase-nav-btn-new:active span {
  transform: scale(0.9);
}

/* Counter styling */
.showcase-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 100px;
}

/* Smooth transition for page changes */
.showcase-item-new.slide-out-left {
  animation: slideOutLeft 0.5s ease-in forwards;
}

.showcase-item-new.slide-in-right {
  animation: slideInRight 0.5s ease-out forwards;
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-40px) translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px) translateY(0);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

/* Hover effects for showcase items */
.showcase-item-new {
  cursor: pointer;
  border-radius: 1rem;
  background: white;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.showcase-item-new:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Image zoom effect on hover */
.showcase-image-wrapper {
  overflow: hidden;
}

.showcase-image-wrapper img:hover {
  transform: scale(1.1);
}

/* Mobile showcase adjustments */
@media (max-width: 768px) {
  .showcase-section {
    padding: 3rem 1rem;
  }

  .showcase-item-new {
    animation-delay: 0.1s !important;
  }

  .showcase-item-new[data-index="1"],
  .showcase-item-new[data-index="2"] {
    animation-delay: 0.1s !important;
  }

  .showcase-counter {
    font-size: 1rem;
  }

  .showcase-counter span {
    line-height: 1;
  }

  .showcase-image-wrapper {
    height: 240px;
  }
}

/* Performance optimizations */
* {
  box-sizing: border-box;
}

/* Optimize font loading */
body {
  font-display: swap;
  margin-top: 0;
}

/* Critical CSS for above-the-fold content */
.navbar, .hero-section {
  contain: layout style paint;
}

/* Touch device optimizations */
.touch-device .card-hover:hover,
.touch-device .supplier-card:hover,
.touch-device .hero-container:hover {
  transform: none;
  box-shadow: inherit;
}

.touch-device button:hover,
.touch-device .inline-block:hover {
  transform: none;
}

/* Low-end device optimizations */
.low-end-device * {
  animation-duration: 0.1s !important;
  transition-duration: 0.1s !important;
}

.low-end-device .hero-container::before,
.low-end-device .card-hover::before,
.low-end-device .supplier-card::after {
  display: none;
}

/* Mobile-first responsive design improvements */
@media (max-width: 640px) {
  .hamburger-line {
    width: 5px;
    height: 0.5px;
  }

  .mobile-menu {
    width: 100vw;
  }

  .hero-carousel {
    height: 50vh !important;
  }
}

/* Improve focus visibility for accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* Profile/Logout toggle styles */
#profileBtn, #logoutBtn {
  transition: all 0.3s ease;
}

#profileBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#logoutBtn {
  transition: all 0.3s ease;
  background-color: #ef4444;
}

#logoutBtn:hover {
  transform: scale(1.05);
  background-color: #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.relative.group {
  transition: all 0.3s ease;
}

/* ===== ABOUT PAGE ENHANCEMENTS ===== */

/* Glassmorphism Effects */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-overlay {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

/* Enhanced Gradients */
.gradient-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-mission {
  background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
}

.gradient-values {
  background: linear-gradient(90deg, #a8edea 0%, #fed6e3 100%);
}

.gradient-story {
  background: linear-gradient(180deg, #ffecd2 0%, #fcb69f 100%);
}

/* Typography Enhancements */
.modern-heading {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.modern-subheading {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.modern-body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Advanced Animations */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.interactive-hover {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.interactive-hover:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.micro-interaction {
  transition: all 0.2s ease;
}

.micro-interaction:hover {
  transform: scale(1.05);
}

.stagger-animation {
  opacity: 0;
  transform: translateY(20px);
  animation: staggerFadeIn 0.6s ease-out forwards;
}

.stagger-animation:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation:nth-child(5) { animation-delay: 0.5s; }

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

/* Enhanced Counter Animation */
.counter-enhanced {
  font-family: 'Inter', monospace;
  font-weight: 700;
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* Gallery Enhancements */
.gallery-enhanced .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-enhanced .gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.gallery-enhanced .gallery-item:hover::before {
  left: 100%;
}

.gallery-enhanced .gallery-item:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Team Member Enhanced Hover */
.team-member-enhanced {
  position: relative;
  overflow: hidden;
}

.team-member-enhanced::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(245, 158, 11, 0.1), rgba(59, 130, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-member-enhanced:hover::after {
  opacity: 1;
}

.team-member-enhanced:hover .team-member-image-spin img {
  transform: rotate(360deg) scale(1.1);
  filter: brightness(1.1) contrast(1.1);
}

/* CTA Button Enhanced */
.cta-enhanced {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, #f59e0b, #d97706);
  transition: all 0.3s ease;
}

.cta-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-enhanced:hover::before {
  left: 100%;
}

.cta-enhanced:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .glass-card {
    backdrop-filter: blur(5px);
  }

  .interactive-hover:hover {
    transform: translateY(-5px) scale(1.01);
  }

  .gallery-enhanced .gallery-item:hover {
    transform: scale(1.02);
  }
}

/* Performance Optimizations */
.glass-card,
.interactive-hover,
.gallery-enhanced .gallery-item {
  will-change: transform;
  transform: translateZ(0);
}

/* ============================================
   RESPONSIVE MOBILE-FIRST UTILITIES
   ============================================ */

/* Mobile Menu Wrapper - Root container with fixed positioning */
.mobile-menu-wrapper {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000 !important;
  display: flex !important;
  flex-direction: row;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.mobile-menu-wrapper.hidden {
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}

.mobile-menu-wrapper:not(.hidden) {
  pointer-events: auto;
  opacity: 1;
}

/* Mobile Menu Overlay - Semi-transparent backdrop */
.mobile-menu-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 9999 !important;
  pointer-events: none;
  transition: background 0.3s ease-out;
}

.mobile-menu-wrapper:not(.hidden) .mobile-menu-overlay {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

@keyframes fadeInOverlay {
  from {
    background: rgba(0, 0, 0, 0);
  }
  to {
    background: rgba(0, 0, 0, 0.5);
  }
}

/* Mobile Navigation Drawer */
.mobile-panel {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 85vw;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
  z-index: 10001 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto !important;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-wrapper:not(.hidden) .mobile-panel {
  transform: translateX(0);
}

.mobile-panel::-webkit-scrollbar {
  width: 6px;
}

.mobile-panel::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.mobile-panel::-webkit-scrollbar-thumb {
  background: #fbbf24;
  border-radius: 3px;
}

.mobile-panel::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* Mobile Panel Header - Sticky Close Button */
.mobile-panel > div:first-child {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  flex-shrink: 0;
}

/* Scrollable content area */
.mobile-panel > div:nth-child(2) {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.mobile-panel > div:nth-child(2)::-webkit-scrollbar {
  width: 6px;
}

.mobile-panel > div:nth-child(2)::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.mobile-panel > div:nth-child(2)::-webkit-scrollbar-thumb {
  background: #fbbf24;
  border-radius: 3px;
}

.mobile-panel > div:nth-child(2)::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* Close Button Styling */
#closeMobileMenu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  padding: 8px !important;
  position: relative;
  z-index: 51 !important;
}

#closeMobileMenu:hover {
  background-color: #f3f4f6 !important;
  color: #374151 !important;
}

#closeMobileMenu:active {
  transform: scale(0.95);
}

/* Hamburger Menu Animation */
.hamburger-line {
  transition: all 0.3s ease-out;
}

.hamburger-active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.hamburger-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* Responsive Button Sizing */
button, .btn {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

@media (max-width: 640px) {
  button, .btn {
    min-height: 48px;
    width: 100%;
    font-size: 16px;
    padding: 12px 16px;
  }
  
  .btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-group .btn {
    width: 100%;
  }
}

/* Responsive Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="phone"],
textarea,
select {
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  width: 100%;
}

@media (max-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="phone"],
  textarea,
  select {
    min-height: 48px;
    font-size: 16px;
    padding: 14px 14px;
  }
}

/* Responsive Card Grid */
.card-grid {
  display: grid;
  gap: 16px;
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1025px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Responsive Card Styling */
.responsive-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
  .responsive-card {
    padding: 14px;
    border-radius: 8px;
  }
}

.responsive-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.responsive-card h3 {
  margin: 0 0 8px 0;
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 600;
  color: #1f2937;
}

.responsive-card p {
  margin: 8px 0;
  color: #6b7280;
  font-size: clamp(14px, 3vw, 16px);
  line-height: 1.5;
}

/* Responsive Table (Mobile Card Layout) */
@media (max-width: 768px) {
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
  }
  
  table thead {
    display: none;
  }
  
  table tbody,
  table tr,
  table td {
    display: block;
    width: 100%;
  }
  
  table tr {
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
  }
  
  table td {
    padding: 10px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #374151;
    min-width: 100px;
  }
}

/* Touch-friendly spacing */
a, button {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Prevent zoom on input focus (mobile) */
input[type="text"],
input[type="email"],
input[type="password"],
select {
  font-size: 16px;
}

/* Responsive Typography */
h1 {
  font-size: clamp(24px, 6vw, 48px);
}

h2 {
  font-size: clamp(20px, 5vw, 36px);
}

h3 {
  font-size: clamp(18px, 4vw, 28px);
}

h4 {
  font-size: clamp(16px, 3vw, 22px);
}

/* ===== SUPPLIERS PAGE ANIMATIONS & STYLES ===== */

/* Blob Animation for Hero */
@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    transform: translate(50px, 50px) scale(1.05);
  }
}

/* Float animation for particles */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 1;
  }
  50% {
    transform: translateY(-30px) translateX(20px);
    opacity: 0.5;
  }
}

/* Wave animation */
@keyframes wave {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Slide Left animation */
@keyframes slideLeft {
  from {
    transform: scaleX(0);
    transform-origin: right;
  }
  to {
    transform: scaleX(1);
    transform-origin: right;
  }
}

/* Slide Right animation */
@keyframes slideRight {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* Pulse gentle animation */
@keyframes pulseGentle {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(250, 204, 21, 0);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-3000 {
  animation-delay: 3s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animation-delay-1000 {
  animation-delay: 1s;
}

.animate-wave {
  animation: wave 3s ease-in-out infinite;
}

.animate-slide-left {
  animation: slideLeft 0.8s ease-out forwards;
}

.animate-slide-right {
  animation: slideRight 0.8s ease-out forwards;
}

.animate-pulse-gentle {
  animation: pulseGentle 2s infinite;
}

/* Suppliers Hero Section */
.suppliers-hero-section {
  position: relative;
  animation: fadeInDown 1s ease-out;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.suppliers-icon-wrapper {
  display: inline-block;
  animation: slideInDown 0.8s ease-out 0.2s both;
  filter: drop-shadow(0 4px 15px rgba(250, 204, 21, 0.4));
}

.supplier-hero-title {
  animation: slideInUp 0.8s ease-out 0.3s both;
  letter-spacing: -1px;
  filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.5));
  text-shadow: 0 4px 20px rgba(250, 204, 21, 0.3);
}

.supplier-hero-subtitle {
  animation: slideInUp 0.8s ease-out 0.4s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

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

.animate-bounce-slow {
  animation: bounceSlow 3s infinite;
}

@keyframes bounceSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-25px);
  }
}

/* Filter Section Animations */
.suppliers-filter-section {
  animation: slideInDown 0.8s ease-out 0.1s both;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in-down {
  animation: fadeInDown 1s ease-out forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Supplier Card */
.supplier-card-enhanced {
  animation: scaleInUp 0.6s ease-out forwards;
  opacity: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
}

.supplier-card-enhanced:nth-child(1) {
  animation-delay: 0.1s;
}

.supplier-card-enhanced:nth-child(2) {
  animation-delay: 0.2s;
}

.supplier-card-enhanced:nth-child(3) {
  animation-delay: 0.3s;
}

.supplier-card-enhanced:nth-child(4) {
  animation-delay: 0.4s;
}

.supplier-card-enhanced:nth-child(5) {
  animation-delay: 0.5s;
}

.supplier-card-enhanced:nth-child(6) {
  animation-delay: 0.6s;
}

.supplier-card-enhanced:nth-child(n+7) {
  animation-delay: 0.7s;
}

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

.supplier-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.supplier-card-enhanced:hover::before {
  left: 100%;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .supplier-card-enhanced {
    gap: 16px;
  }

  .supplier-card-enhanced:hover {
    transform: scale(1.02);
  }

  .suppliers-hero-section {
    padding: 3rem 1rem;
  }
}

/* Responsive Container */
.responsive-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
}

@media (min-width: 640px) {
  .responsive-container {
    padding: 0 16px;
  }
}

@media (min-width: 1024px) {
  .responsive-container {
    max-width: 1280px;
    padding: 0 24px;
  }
}

/* Responsive Spacing Utilities */
@media (max-width: 640px) {
  .space-mobile-sm { gap: 8px !important; }
  .space-mobile-md { gap: 12px !important; }
  .space-mobile-lg { gap: 16px !important; }
  
  .px-mobile-sm { padding-left: 8px; padding-right: 8px; }
  .px-mobile-md { padding-left: 12px; padding-right: 12px; }
  .px-mobile-lg { padding-left: 16px; padding-right: 16px; }
  
  .py-mobile-sm { padding-top: 8px; padding-bottom: 8px; }
  .py-mobile-md { padding-top: 12px; padding-bottom: 12px; }
  .py-mobile-lg { padding-top: 16px; padding-bottom: 16px; }
}

/* Modern Supplier Cards - Professional Design */
.supplier-card-modern {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.supplier-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.supplier-card-modern:hover::before {
  left: 100%;
}

.supplier-card-modern:hover {
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-8px);
}

/* Logo/Image Container */
.supplier-card-modern > div:first-child {
  position: relative;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 224px;
}

.supplier-card-modern img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Card Content */
.supplier-card-modern p {
  margin: 0;
}

/* Color-Coded Category Badges */
.supplier-card-modern .bg-green-600 {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.supplier-card-modern .bg-orange-600 {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.supplier-card-modern .bg-amber-700 {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3);
}

.supplier-card-modern .bg-cyan-600 {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.supplier-card-modern .bg-blue-600 {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Card Title Styling */
.supplier-card-modern h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.supplier-card-modern h3:hover {
  color: #2563eb;
}

/* Info Text Styling */
.supplier-card-modern .text-xs.text-gray-500 {
  font-size: 0.75rem;
  color: #6b7280;
}

.supplier-card-modern .text-sm.text-gray-600 {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Icons */
.supplier-card-modern .fas {
  transition: color 0.3s ease;
}

.supplier-card-modern a:hover .fas {
  color: #1e40af;
}

/* Learn More Button */
.supplier-card-modern a[href*="supplier_detail"] {
  position: relative;
  overflow: hidden;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.supplier-card-modern a[href*="supplier_detail"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
  z-index: -1;
}

.supplier-card-modern a[href*="supplier_detail"]:hover {
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
  transform: scale(1.05);
}

.supplier-card-modern a[href*="supplier_detail"]:hover::before {
  left: 100%;
}

/* Product Badge Styling */
.supplier-card-modern .bg-blue-100 {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid #93c5fd;
}

.supplier-card-modern .text-blue-800 {
  color: #1e40af;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .supplier-card-modern h3 {
    font-size: 1rem;
  }

  .supplier-card-modern a[href*="supplier_detail"] {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    font-size: 0.875rem;
  }
}

/* Floating Action Button Container */
.fab-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 50;
}

@media (max-width: 640px) {
  .fab-container {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }

  body {
    padding-top: 70px;
  }
}

/* ===== MODERN UI ENHANCEMENTS ===== */

/* Divider Line Enhancement */
.w-16.h-1.bg-gradient-to-r {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  animation: lineGlow 2s ease-in-out infinite;
}

@keyframes lineGlow {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  }
}

/* Section Headers Enhancement */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Text shadow for depth */
.shadow-text {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced card shadows */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth link hover effect */
a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:not([class]) {
  color: #3b82f6;
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

a:not([class]):hover {
  color: #1e40af;
  border-bottom-color: #3b82f6;
}

/* Hero section overlay enhancement */
#heroSection > div:first-child {
  background: linear-gradient(135deg, rgba(136, 178, 233, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
}

/* Modern badge styles */
.badge-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.badge-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Smooth paragraph text */
p {
  line-height: 1.7;
  color: #4b5563;
  font-weight: 400;
}

/* Hero container pop effect enhancement */
#heroCarousel > div {
  perspective: 1000px;
}

#heroCarousel > div:hover {
  transform: scale(1.10) translateZ(20px) perspective(1000px);
  z-index: 25;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* About section enhancements */
.about-feature-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(250, 204, 21, 0.5);
}

/* Showcase item enhancement */
.showcase-item-new {
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.showcase-item-new:hover {
  border-color: rgba(250, 204, 21, 0.3);
}

/* Improved spacing and typography */
.container {
  max-width: 1280px;
}

/* Form input enhancement */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* List style enhancement */
ul, ol {
  list-style-position: inside;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Table enhancement */
table {
  border-collapse: collapse;
  width: 100%;
  background: white;
}

thead {
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 100%);
}

tr:hover {
  background-color: #f9fafb;
}

td, th {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Disabled state */
:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Selection color enhancement */
::selection {
  background: #fcd34d;
  color: #000;
}
