/* ========================================
   DESIGN SYSTEM & GLOBAL STYLES
   Framework: Bootstrap 5 (CDN)
   Justification: Proven components, excellent grid, faster development
   ======================================== */

:root {
  /* Color Palette - Industrial Modern */
  --primary-color: #1a4d7a;        /* Deep industrial blue */
  --primary-dark: #0f3554;
  --secondary-color: #e67e22;      /* Accent orange for CTAs */
  --secondary-dark: #d35400;
  --neutral-dark: #2c3e50;
  --neutral-medium: #7f8c8d;
  --neutral-light: #ecf0f1;
  --neutral-bg: #f8f9fa;
  --white: #ffffff;
  --success: #27ae60;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;

  /* Typography Scale */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', var(--font-primary);

  /* Spacing Scale - Optimized for compact layout */
  --spacing-xs: 0.5rem;      /* 8px */
  --spacing-sm: 1rem;        /* 16px */
  --spacing-md: 1.5rem;      /* 24px */
  --spacing-lg: 1.25rem;     /* 20px - Reduced from 2.5rem */
  --spacing-xl: 2rem;        /* 32px - Reduced from 4rem (50% reduction) */

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
  --shadow-hover: 0 12px 32px rgba(0,0,0,0.18);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ========================================
   GLOBAL RESETS & BASE STYLES
   ======================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--neutral-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--secondary-color);
}

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

/* ========================================
   UTILITY CLASSES
   ======================================== */

.section-padding {
  padding: var(--spacing-xl) 0;
}

.section-padding-sm {
  padding: var(--spacing-lg) 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn:focus {
  outline: 3px solid rgba(26, 77, 122, 0.3);
  outline-offset: 2px;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0.25rem 0;
}

.navbar-logo {
  height: 65px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  transition: transform var(--transition-base);
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: var(--neutral-dark);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  margin: 0 0.1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: 0.95rem;
  white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
  background-color: rgba(26, 77, 122, 0.05);
}

/* Navbar Toggler */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Mobile Menu */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--white);
    padding: 1rem 0;
    margin-top: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }

  .navbar-nav {
    gap: 0.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }

  .btn-quote-compact {
    margin: 1rem 0 0.5rem 0;
    width: 100%;
    justify-content: center;
  }

  .lang-switcher-btn {
    margin: 0.5rem auto;
    display: block;
  }
}

/* Language Switcher - Isolated from Bootstrap */
.language-switcher {
  position: relative;
  margin-left: 1rem;
  display: inline-block;
}

.language-switcher .language-btn {
  background: transparent !important;
  border: 2px solid var(--neutral-light);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s ease;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.language-switcher .language-btn:hover {
  border-color: var(--primary-color);
}

.language-switcher .language-btn:focus,
.language-switcher .language-btn:active {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: none;
}

.language-switcher .language-btn img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

.language-switcher .language-btn i {
  font-size: 0.7rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.language-switcher .language-btn:hover i {
  color: var(--primary-color);
}

.language-switcher .language-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 0.5rem;
  display: none !important;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.language-switcher .language-dropdown.show {
  display: block !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-switcher .language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.language-switcher .language-option:last-child {
  margin-bottom: 0;
}

.language-switcher .language-option:hover {
  background-color: rgba(26, 77, 122, 0.08);
}

.language-switcher .language-option.active {
  background-color: rgba(26, 77, 122, 0.12);
  font-weight: 600;
}

.language-switcher .language-option img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.language-switcher .language-option .lang-name {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.language-switcher .language-option .lang-code {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 500;
}

/* Prevent Bootstrap dropdown conflicts */
.language-switcher .language-dropdown.dropdown-menu {
  display: none !important;
}

.language-switcher .language-dropdown.show.dropdown-menu {
  display: block !important;
}

.language-option.active .lang-code {
  background: var(--primary-color);
  color: var(--white);
}

/* Compact Quote Button */
.btn-quote-compact {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

/* Language Switcher - Compact Flags */
.lang-switcher-btn {
  border: none;
  background: transparent;
  padding: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.lang-switcher-btn:hover {
  transform: scale(1.1);
}

.lang-switcher-btn:focus {
  box-shadow: none;
}

.flag-icon {
  font-size: 1.5rem;
  line-height: 1;
  display: inline-block;
}

.lang-dropdown {
  min-width: 180px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: none;
  padding: 0.5rem 0;
}

.lang-dropdown .dropdown-item {
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.lang-dropdown .dropdown-item:hover {
  background-color: rgba(26, 77, 122, 0.08);
  padding-left: 1.25rem;
}

.lang-dropdown .dropdown-item.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.lang-dropdown .flag-icon {
  font-size: 1.25rem;
}

/* Translation Toast Notification - Top Right Corner */
.translation-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  min-width: 250px;
  max-width: 350px;
  border-left: 4px solid var(--primary-color);
}

.translation-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.translation-toast i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.translation-toast-info {
  border-left-color: #0dcaf0;
  color: #055160;
}

.translation-toast-info i {
  color: #0dcaf0;
}

.translation-toast-success {
  border-left-color: #198754;
  color: #0a3622;
}

.translation-toast-success i {
  color: #198754;
}

.translation-toast-error {
  border-left-color: #dc3545;
  color: #58151c;
}

.translation-toast-error i {
  color: #dc3545;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .translation-toast {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
  }
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background-color: rgba(26, 77, 122, 0.05);
  color: var(--primary-color);
}

/* ========================================
   HERO SECTION WITH CAROUSEL
   ======================================== */

/* Hero Carousel Container - ONLY for Homepage */
/* ========================================
   HERO CAROUSEL - FULLY RESPONSIVE
   ======================================== */

.hero-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-carousel .carousel-inner {
  position: relative;
  width: 100%;
}

.hero-carousel .carousel-item {
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel .carousel-item.active,
.hero-carousel .carousel-item-next,
.hero-carousel .carousel-item-prev {
  opacity: 1;
}

/* Hero Section - Responsive Heights */
.hero {
  position: relative;
  width: 100%;
  min-height: 500px;
  height: clamp(500px, 60vh, 700px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(26, 77, 122, 0.95), rgba(15, 53, 84, 0.9)),
              url('../img/hero-bg.jpg') center/cover no-repeat;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--white);
  overflow: hidden;
}

/* Homepage carousel hero - Responsive */
.hero-carousel .carousel-item .hero {
  min-height: 500px;
  height: clamp(500px, 60vh, 700px);
}

/* Ensure background images are responsive */
.hero[style*="background-image"] {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* ========================================
   HERO SUBPAGE - COMPACT HEIGHT
   ======================================== */

/* Hero for sub-pages (smaller) - Compact, just enough for text */
.hero--subpage {
  min-height: 200px !important;
  height: auto !important;
  max-height: none !important;
  padding: 3rem 0 2.5rem !important;
  display: flex !important;
  align-items: center !important;
}

.hero--subpage h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem) !important;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.hero--subpage p {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem) !important;
  line-height: 1.5;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 0;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.hero--subpage .hero-content {
  padding: 1rem 1.5rem !important;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  display: block;
}

    .hero--subpage .hero-content h1 {
        padding-top: 40px;
        text-transform: uppercase;
    }

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/pattern.svg') repeat;
  opacity: 0.05;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: var(--spacing-xl) 0;
}

/* Ensure carousel content is above overlay */
.hero-carousel .hero-content {
  position: relative;
  z-index: 10;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-lg);
  max-width: 1000px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Carousel Controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(230, 126, 34, 0.9);
  border-radius: 50%;
  opacity: 0.8;
  transition: all var(--transition-base);
}

.hero-carousel .carousel-control-prev {
  left: 2rem;
}

.hero-carousel .carousel-control-next {
  right: 2rem;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  opacity: 1;
  background: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  width: 24px;
  height: 24px;
}

/* Carousel Indicators */
.hero-carousel .carousel-indicators {
  bottom: 2rem;
  margin-bottom: 0;
  z-index: 3;
}

.hero-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  transition: all var(--transition-base);
  margin: 0 6px;
}

.hero-carousel .carousel-indicators button.active {
  background-color: var(--secondary-color);
  transform: scale(1.3);
  border-color: var(--white);
}

/* Slide Animations */
.carousel-item.active .animate-fade-in {
  animation: fadeInUp 0.8s ease;
}

.carousel-item.active .animate-fade-in-delay {
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.carousel-item.active .animate-fade-in-delay-2 {
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

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

/* ========================================
   CARDS
   ======================================== */

.card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  overflow: hidden;
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: var(--spacing-md);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--neutral-dark);
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Product Card Specific */
.product-card .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--spacing-sm);
}

.spec-tag {
  background-color: var(--neutral-light);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ========================================
   TRUST BAR / STATS
   ======================================== */

.trust-bar {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  padding: 0.75rem 0;
  margin-top: -1.5rem;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-sm);
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: block;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  text-transform: capitalize;
}

/* ========================================
   RESPONSIVE - ALL SCREEN SIZES
   ======================================== */

/* Large Monitors (> 1400px) */
@media (min-width: 1400px) {
  .hero,
  .hero-carousel .carousel-item .hero {
    min-height: 600px;
    height: clamp(600px, 55vh, 700px);
  }

  .hero h1 {
    font-size: clamp(2.5rem, 4vw, 3rem);
  }

  .hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
  }
}

/* Desktop (993px - 1399px) - Default styles apply */

/* Tablet (768px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
  .hero,
  .hero-carousel .carousel-item .hero {
    min-height: 480px;
    height: clamp(480px, 65vh, 600px);
  }

  .hero h1 {
    font-size: clamp(1.85rem, 3.5vw, 2.25rem);
  }

  .hero p {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  }

  .hero-cta .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
  }

  .hero-carousel .carousel-control-prev {
    left: 1rem;
  }

  .hero-carousel .carousel-control-next {
    right: 1rem;
  }

  /* Subpage hero - Tablet */
  .hero--subpage {
    min-height: 180px !important;
    padding: 2.5rem 0 2rem !important;
  }

  .hero--subpage h1 {
    font-size: 1.45rem !important;
    padding: 0;
  }

  .hero--subpage p {
    font-size: 0.9rem !important;
    padding: 0;
  }

  .hero--subpage .hero-content {
    padding: 0.75rem 1.25rem !important;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* Hero typography - Mobile */
  .hero h1 {
    font-size: 1.75rem !important;
    margin-bottom: 0.75rem;
  }

  .hero p {
    font-size: 0.95rem !important;
    line-height: 1.5;
  }

  .hero--subpage h1 {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem;
  }

  .hero--subpage p {
    font-size: 0.9rem !important;
  }

  /* Trust bar */
  .trust-bar {
    margin-top: 0;
    padding: 0.75rem 0;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-subtitle {
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--neutral-dark);
  margin-bottom: var(--spacing-sm);
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background-color: var(--neutral-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--secondary-color);
}

/* Footer Contact Compact */
.footer-contact-compact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-compact li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-contact-compact i {
  font-size: 1rem;
  vertical-align: middle;
}

.footer-contact-compact a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.footer-contact-compact .hover-primary:hover {
  color: var(--secondary-color) !important;
}

.footer-contact-compact strong {
  font-weight: 600;
  font-size: 0.85rem;
}

.footer-contact-compact .small {
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: var(--spacing-md);
}

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

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* ========================================
   FLOATING ACTION BUTTONS
   ======================================== */

.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-hover);
  color: var(--white);
}

.fab-primary {
  background-color: var(--secondary-color);
}

.fab-whatsapp {
  background-color: #25D366;
}

.fab-whatsapp:hover {
  background-color: #1ebe57;
}

.fab-zalo {
  background-color: #0068FF;
}

.fab-zalo:hover {
  background-color: #0052cc;
}

.fab-zalo svg {
  fill: white;
}

.fab-wechat {
  background-color: #09B83E;
}

.fab-wechat:hover {
  background-color: #07a335;
}

.fab-messenger {
  background: linear-gradient(135deg, #00B2FF 0%, #006AFF 100%);
}

.fab-messenger:hover {
  background: linear-gradient(135deg, #0099e6 0%, #0052cc 100%);
}

.fab-phone {
  background-color: var(--primary-color);
}

.fab-phone:hover {
  background-color: var(--primary-dark);
}

.fab i {
  font-size: 1.5rem;
}

/* Tooltip on hover */
.fab::before {
  content: attr(title);
  position: absolute;
  right: 70px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  font-size: 0.875rem;
}

.fab:hover::before {
  opacity: 1;
}

/* ========================================
   CATEGORY FILTER
   ======================================== */

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--neutral-light);
  background-color: var(--white);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
}

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

/* ========================================
   PRODUCT GALLERY
   ======================================== */

.product-gallery {
  display: flex;
  gap: 1rem;
  margin-bottom: var(--spacing-lg);
}

.gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
  border-color: var(--primary-color);
}

.gallery-main {
  flex: 1;
}

.gallery-main img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ========================================
   SPECS TABLE
   ======================================== */

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-md) 0;
}

.specs-table th,
.specs-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--neutral-light);
}

.specs-table th {
  background-color: var(--neutral-bg);
  font-weight: 600;
  color: var(--neutral-dark);
  width: 30%;
}

.specs-table td {
  color: var(--text-secondary);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

/* ========================================
   TIMELINE / PROCESS FLOW
   ======================================== */

.process-timeline {
  position: relative;
  padding: var(--spacing-lg) 0;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.timeline-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.timeline-content {
  flex: 1;
  padding-top: 0.5rem;
}

.timeline-content h4 {
  color: var(--neutral-dark);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-secondary);
}

/* ========================================
   MACHINERY GRID
   ======================================== */

.machinery-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  text-align: center;
  height: 100%;
}

.machinery-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.machinery-card h4 {
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.machinery-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.machinery-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.machinery-specs {
  list-style: none;
  padding: 0;
  margin-top: var(--spacing-sm);
  text-align: left;
}

.machinery-specs li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.machinery-specs li i {
  color: var(--secondary-color);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonial-card {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--secondary-color);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-info h5 {
  margin: 0;
  color: var(--neutral-dark);
  font-size: 1rem;
}

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

/* ========================================
   FORM STYLES
   ======================================== */

.form-control,
.form-select {
  border: 2px solid var(--neutral-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 77, 122, 0.1);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--neutral-dark);
  margin-bottom: 0.5rem;
}

/* ========================================
   TOAST / MODAL
   ======================================== */

.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 9999;
}

.custom-toast {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-icon {
  font-size: 1.5rem;
}

/* ========================================
   LIFESTYLE BANNERS
   ======================================== */

.lifestyle-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 275px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.lifestyle-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
}

.lifestyle-banner-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 1.25rem var(--spacing-lg) var(--spacing-lg);
  max-width: 600px;
}

.lifestyle-banner-content h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: var(--spacing-sm);
}

.lifestyle-banner-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

.lifestyle-banner-badge {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

/* Laptop/Medium screens - Fix navbar */
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-logo {
    height: 55px;
    max-width: 240px;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0.5rem;
    font-size: 0.9rem;
  }

  .btn-quote-compact {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }

  .language-switcher .language-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
  }

  .language-switcher .language-btn img {
    width: 18px;
    height: 13px;
  }
}

/* Extra small laptops */
@media (min-width: 992px) and (max-width: 1100px) {
  .navbar-nav .nav-link {
    padding: 0.5rem 0.4rem;
    font-size: 0.85rem;
  }

  .btn-quote-compact {
    font-size: 0.75rem;
    padding: 0.45rem 0.7rem;
  }

  .btn-quote-compact i {
    font-size: 0.9rem;
  }

  .language-switcher .language-btn {
    padding: 0.3rem 0.5rem;
  }

  .language-switcher .language-btn span {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .navbar-logo {
    height: 45px;
    max-width: 180px;
  }

  .language-switcher .language-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    min-width: 70px;
  }

  .language-switcher .language-btn img {
    width: 20px;
    height: 15px;
  }

  .language-switcher .language-dropdown {
    min-width: 170px;
  }

  .language-switcher .language-option {
    padding: 0.6rem 0.7rem;
  }

  .language-switcher .language-option img {
    width: 24px;
    height: 18px;
  }

  .language-option .lang-name {
    font-size: 0.9rem;
  }

  .language-option .lang-code {
    font-size: 0.7rem;
  }

  .hero {
    min-height: 500px;
  }

  /* Homepage carousel - Mobile Responsive */
  .hero,
  .hero-carousel .carousel-item .hero {
    min-height: 450px;
    height: clamp(450px, 70vh, 550px);
  }

  /* Subpage hero - Mobile */
  .hero--subpage {
    min-height: 140px !important;
    padding: 1.75rem 0 1.25rem !important;
  }

  .hero--subpage h1 {
    font-size: 1.25rem !important;
    margin-bottom: 0.4rem;
    padding: 0;
    line-height: 1.3;
  }

  .hero--subpage p {
    font-size: 0.85rem !important;
    padding: 0;
    line-height: 1.4;
  }

  .hero-content {
    padding: var(--spacing-lg) 0;
  }

  .hero--subpage .hero-content {
    padding: 0.75rem 1rem !important;
  }

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

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

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Carousel controls on mobile */
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .hero-carousel .carousel-control-prev {
    left: 0.5rem;
  }

  .hero-carousel .carousel-control-next {
    right: 0.5rem;
  }

  .hero-carousel .carousel-indicators {
    bottom: 1rem;
  }

  .hero-carousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }

  .floating-actions {
    bottom: 1rem;
    right: 1rem;
  }

  .fab {
    width: 48px;
    height: 48px;
  }

  .fab i {
    font-size: 1.25rem;
  }

  .fab::before {
    display: none; /* Hide tooltips on mobile */
  }

  .product-gallery {
    flex-direction: column;
  }

  .gallery-thumbnails {
    flex-direction: row;
  }

  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }

  .section-padding {
    padding: var(--spacing-lg) 0;
  }

  .lifestyle-banner {
    height: 300px;
  }

  .lifestyle-banner-content {
    padding: var(--spacing-md);
  }
}

/* ========================================
   LOADING & LAZY LOAD
   ======================================== */

.lazy-load {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ========================================
   BLOG STYLES
   ======================================== */

.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.blog-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.blog-content h2,
.blog-content h3 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.blog-content img {
  border-radius: var(--radius-lg);
  margin: var(--spacing-md) 0;
}

.table-of-contents {
  background-color: var(--neutral-bg);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
}

.table-of-contents ul {
  list-style: none;
  padding-left: 1rem;
}

.table-of-contents a {
  color: var(--text-primary);
  text-decoration: none;
}

.table-of-contents a:hover {
  color: var(--primary-color);
}

/* ========================================
   CERTIFICATE GRID
   ======================================== */

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.certificate-card {
  background-color: var(--white);
  border: 2px solid var(--neutral-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  text-align: center;
  transition: all var(--transition-base);
}

.certificate-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.certificate-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: var(--spacing-sm);
}

/* ========================================
   CUSTOMER LOGOS
   ======================================== */

.customer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) 0;
}

.customer-logo {
  width: 150px;
  height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-base);
}

.customer-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

