/* ==========================================================================
   CO.ME.S. INDIA - Official Italian Partner Redesign
   Modern, Precision-Engineered Light Theme Styling
   ========================================================================== */

:root {
  /* Italian Red Branding & Light Theme Tokens */
  --primary: #8B1515;
  --primary-hover: #700F0F;
  --primary-dark: #580B0B;
  --primary-light: #FFF1F1;
  --primary-rgb: 139, 21, 21;
  
  /* Bootstrap 5 Primary Overrides (Replaces default blue #0d6efd) */
  --bs-primary: #8B1515;
  --bs-primary-rgb: 139, 21, 21;
  --bs-link-color: #8B1515;
  --bs-link-hover-color: #700F0F;
  --bs-primary-border-subtle: rgba(139, 21, 21, 0.25);
  --bs-primary-bg-subtle: #FFF1F1;
  --bs-focus-ring-color: rgba(139, 21, 21, 0.25);
  
  --secondary: #0F172A;
  --secondary-light: #1E293B;
  --accent-gold: #D97706;
  --accent-green: #25D366;
  
  /* Neutral / Light Backgrounds */
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --bg-dark: #0B0F19;
  
  /* Text Colors */
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;
  
  /* Borders & Shadows */
  --border-color: #E2E8F0;
  --border-subtle: #EDF2F7;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 20px 40px -10px rgba(139, 21, 21, 0.16);
  
  /* Dimensions & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  scroll-behavior: smooth;
}

/* Dynamic Scroll Reading Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #8B1515 0%, #D97706 50%, #CE2B37 100%);
  z-index: 999999;
  box-shadow: 0 1px 6px rgba(139, 21, 21, 0.4);
  transition: width 0.08s ease-out;
  pointer-events: none;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.65;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Explicit Bootstrap Overrides to guarantee brand color */
.text-primary {
  color: var(--primary) !important;
}

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

.border-primary {
  border-color: var(--primary) !important;
}

.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #FFFFFF !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  color: #FFFFFF !important;
}

.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #FFFFFF !important;
}

.badge.bg-primary {
  background-color: var(--primary) !important;
  color: #FFFFFF !important;
}

.dropdown-item.text-primary {
  color: var(--primary) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.brand-font {
  font-family: 'Unbounded', sans-serif;
}

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

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

/* Utility Badges & Tags */
.badge-italian {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(139, 21, 21, 0.18);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(139, 21, 21, 0.08);
}

.badge-italian::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-25deg);
  animation: badgeShimmer 6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes badgeShimmer {
  0%, 70% { left: -150%; }
  100% { left: 180%; }
}

.badge-italian .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(139, 21, 21, 0.2);
}

.badge-gold {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-stock {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Section Styling */
.section-padding {
  padding: 85px 0;
}

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

/* Industrial Architectural Line-Art & Technical Blueprint Backgrounds */
.bg-factory-watermark {
  position: relative;
  background-color: #FFFFFF;
  overflow: hidden;
}

.bg-factory-watermark::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  max-width: 850px;
  background-image: url('../images/bg/factory-line-art.jpg');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.bg-factory-watermark > .container {
  position: relative;
  z-index: 1;
}

.bg-blueprint-watermark {
  position: relative;
  background-color: var(--bg-light);
  overflow: hidden;
}

.bg-blueprint-watermark::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  max-width: 850px;
  background-image: url('../images/bg/machinery-blueprint.jpg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.bg-blueprint-watermark > .container {
  position: relative;
  z-index: 1;
}

/* Rotating Precision Engineering Gears Watermark */
.bg-gear-animated {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.055;
  color: var(--primary);
}

.bg-gear-animated.gear-1 {
  top: -40px;
  right: 4%;
  width: 320px;
  height: 320px;
  animation: gearRotateClockwise 60s linear infinite;
}

.bg-gear-animated.gear-2 {
  bottom: -60px;
  right: 32%;
  width: 220px;
  height: 220px;
  animation: gearRotateCounter 45s linear infinite;
}

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

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

/* Carrara Marble Texture Background with Surface Polish Reflection Sweep */
.bg-marble-texture {
  position: relative;
  background-color: #F8FAFC;
  overflow: hidden;
}

.bg-marble-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/bg/carrara-marble.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.bg-marble-texture::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    65deg,
    transparent 0%,
    transparent 44%,
    rgba(255, 255, 255, 0.35) 49%,
    rgba(255, 255, 255, 0.75) 51%,
    rgba(255, 255, 255, 0.35) 53%,
    transparent 58%,
    transparent 100%
  );
  pointer-events: none;
  animation: marbleLusterSweep 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0.6;
  z-index: 0;
}

@keyframes marbleLusterSweep {
  0% { transform: translateY(-30%) translateX(-30%); }
  45%, 100% { transform: translateY(30%) translateX(30%); }
}

.bg-marble-texture > .container {
  position: relative;
  z-index: 1;
}

/* Technical Schematic & Blueprint Feature Card at Section Start */
.schematic-feature-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F8 50%, #F8FAFC 100%);
  border: 1px solid rgba(139, 21, 21, 0.14);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.schematic-feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent-gold));
}

/* CAD Live Animated Laser Scanner Container */
.laser-scanner-container {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(139, 21, 21, 0.22);
  background: #0B0F19;
}

.laser-scan-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: linear-gradient(90deg, transparent 0%, #EF4444 20%, #F59E0B 50%, #EF4444 80%, transparent 100%);
  box-shadow: 0 0 16px 4px rgba(239, 68, 68, 0.8), 0 0 6px 2px rgba(245, 158, 11, 0.95);
  pointer-events: none;
  z-index: 5;
  animation: laserScanMotion 4s ease-in-out infinite alternate;
}

@keyframes laserScanMotion {
  0% { top: 2%; opacity: 0.8; }
  50% { top: 96%; opacity: 1; }
  100% { top: 2%; opacity: 0.8; }
}

.cad-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(239, 68, 68, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(239, 68, 68, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 2;
}

.scanner-status-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.scanner-status-tag .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
  animation: scannerDotPulse 1.5s infinite;
}

@keyframes scannerDotPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.schematic-preview-box {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
}

.schematic-preview-box img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.schematic-preview-box:hover img {
  transform: scale(1.03);
}

.schematic-zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(17, 24, 39, 0.85);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  transition: background 0.2s ease;
  z-index: 6;
}

.schematic-preview-box:hover .schematic-zoom-badge {
  background: var(--primary);
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.35rem;
  margin-top: 12px;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
}

.title-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  border-radius: 2px;
  margin: 14px auto 0;
}

.title-line.start {
  margin-left: 0;
}

/* Button Components - Elite Italian Engineering */
.btn-primary-custom {
  background: linear-gradient(135deg, #8B1515 0%, #700F0F 100%);
  color: #fff !important;
  border: 1px solid rgba(139, 21, 21, 0.9);
  padding: 12px 26px;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(139, 21, 21, 0.28);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  transition: all 0.6s ease;
}

.btn-primary-custom:hover::before {
  left: 150%;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, #9C1919 0%, #7A1010 100%);
  border-color: #7A1010;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 21, 21, 0.38);
}

.btn-primary-custom:active {
  transform: translateY(0);
}

.btn-secondary-custom {
  background-color: #FFFFFF;
  color: var(--secondary) !important;
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary-custom:hover {
  background-color: #FFFFFF;
  border-color: var(--primary);
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  padding: 10px 22px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-custom:hover {
  background-color: var(--primary);
  color: #fff !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.top-bar {
  background-color: var(--secondary);
  color: #CBD5E1;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
  color: #E2E8F0;
  text-decoration: none;
}

.top-bar a:hover {
  color: #fff;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
}

.top-bar-item i {
  color: #F87171;
}

.tricolor-strip {
  height: 3px;
  background: linear-gradient(90deg, #009246 0%, #009246 33.3%, #ffffff 33.3%, #ffffff 66.6%, #ce2b37 66.6%, #ce2b37 100%);
  width: 100%;
}

/* ==========================================================================
   MAIN NAVBAR - Elite Italian Precision Styling
   ========================================================================== */
.navbar-custom {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
}

.navbar-custom.is-fixed,
.navbar-custom.scrolled {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09) !important;
  padding: 10px 0 !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
  z-index: 1040 !important;
  animation: navbarSlideDown 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navbarSlideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.navbar-brand img {
  height: 52px;
  width: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-custom.scrolled .navbar-brand img,
.navbar-custom.is-fixed .navbar-brand img {
  height: 46px;
}

.navbar-brand:hover img {
  transform: scale(1.02);
}

@media (min-width: 992px) {
  .navbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
  }
}

.navbar-nav .nav-item {
  position: relative;
  margin: 0 3px;
}

/* Elite Nav Link - Clean Minimal Typography + Pure Bottom Accent Line (NO background box on active/hover) */
.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #334155 !important;
  padding: 8px 14px !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  transition: color 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (min-width: 992px) {
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #CE2B37);
    border-radius: 99px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
    opacity: 0;
  }

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

  .nav-link:hover::after {
    width: calc(100% - 10px);
    opacity: 0.85;
  }

  .nav-link.active {
    color: var(--primary) !important;
    font-weight: 700;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .nav-link.active::after {
    width: calc(100% - 8px);
    opacity: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #CE2B37);
  }
}

.navbar-custom .nav-item.dropdown {
  position: relative;
}

/* Frosted Glass Dropdown Menu with Italian Accent */
.dropdown-menu-custom,
.navbar-custom .dropdown-menu {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(139, 21, 21, 0.03);
  border-radius: 14px;
  padding: 10px 8px;
  margin-top: 6px !important;
  min-width: 290px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1050;
  position: relative;
  overflow: hidden;
}

.dropdown-menu-custom::before,
.navbar-custom .dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #009246 0%, #009246 33.3%, #ffffff 33.3%, #ffffff 66.6%, #ce2b37 66.6%, #ce2b37 100%);
}

.dropdown-menu-custom .dropdown-item,
.navbar-custom .dropdown-menu .dropdown-item {
  font-weight: 500;
  font-size: 0.9rem;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--secondary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.dropdown-menu-custom .dropdown-item:hover,
.navbar-custom .dropdown-menu .dropdown-item:hover {
  background-color: rgba(139, 21, 21, 0.05);
  color: var(--primary);
  padding-left: 18px;
  border-left: 3px solid var(--primary);
}

@media (min-width: 992px) {
  .navbar-custom .nav-item.dropdown:hover > .dropdown-menu-custom,
  .navbar-custom .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    margin-top: 4px !important;
    top: 100%;
    left: 0;
    pointer-events: auto;
    animation: dropdownFadeSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 18px 16px;
    margin-top: 12px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--border-color);
  }
  .navbar-collapse .nav-link {
    padding: 10px 14px !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 4px;
    background: transparent !important;
  }
  .navbar-collapse .nav-link:last-child {
    border-bottom: none;
  }
  .navbar-collapse .nav-link.active {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--primary) !important;
    border-left: 3.5px solid var(--primary);
    padding-left: 16px !important;
  }
  .navbar-collapse .dropdown-menu {
    box-shadow: none;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    min-width: 100%;
    margin-top: 6px !important;
  }
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F5 50%, #F8FAFC 100%);
  padding: 90px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-bg-accent {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 21, 21, 0.06) 0%, transparent 70%);
  pointer-events: none;
  max-width: 100vw;
  overflow: hidden;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--secondary);
  margin-bottom: 20px;
}

.hero-title span.text-highlight {
  color: var(--primary);
  position: relative;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-visual-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual-card:hover {
  box-shadow: 0 28px 55px -12px rgba(139, 21, 21, 0.18);
  border-color: rgba(139, 21, 21, 0.25);
}

.hero-visual-card .hero-visual-stage {
  position: relative;
  border-radius: var(--radius-md);
  height: 410px;
  overflow: hidden;
  background: #111827;
}

.hero-visual-card .hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-visual-card:hover .hero-main-img {
  transform: scale(1.04);
}

.hero-stage-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 16px;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.85) 0%, rgba(17, 24, 39, 0.3) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

/* Hero Machine Heads Slider Stage */
.hero-visual-card .hero-visual-stage.hero-heads-slider-stage {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.hero-heads-slider-stage .hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-heads-slider-stage .hero-swiper-slide {
  height: 100%;
  background: transparent;
  display: flex;
}

.hero-heads-slider-stage .hero-slide-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding: 0;
}

.hero-heads-slider-stage .hero-slide-title-overlay {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  z-index: 3;
  pointer-events: none;
}

.hero-heads-slider-stage .hero-slide-head-title {
  font-family: 'Unbounded', 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  transition: all 0.3s ease;
  max-width: 80%;
}

.hero-heads-slider-stage .hero-slide-link:hover .hero-slide-head-title {
  color: var(--primary-hover);
  transform: translateX(3px);
}

.hero-heads-slider-stage .hero-slide-img-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 45px 35px 25px;
}

.hero-heads-slider-stage .hero-slide-head-img {
  max-width: 92%;
  max-height: 310px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-heads-slider-stage .hero-slide-link:hover .hero-slide-head-img {
  transform: scale(1.05);
}

.hero-swiper-prev,
.hero-swiper-next {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--secondary);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transition: all 0.3s ease;
  z-index: 10;
  top: 55%;
}

.hero-swiper-prev {
  left: 10px;
}

.hero-swiper-next {
  right: 10px;
}

.hero-swiper-prev:hover,
.hero-swiper-next:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(139, 21, 21, 0.25);
}

.hero-swiper-prev::after,
.hero-swiper-next::after {
  font-size: 13px;
  font-weight: 800;
}

.hero-swiper-pagination {
  bottom: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #cbd5e1;
  opacity: 1;
  transition: all 0.3s ease;
  margin: 0 !important;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--primary);
  width: 22px;
  border-radius: 4px;
}

.hero-float-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: heroFloat 5s ease-in-out infinite;
  z-index: 2;
  transition: transform 0.3s ease;
}

.hero-float-badge:hover,
.hero-float-badge-2:hover {
  animation-play-state: paused;
  transform: translateY(-10px) scale(1.02);
}

.hero-float-badge-2 {
  position: absolute;
  top: -15px;
  right: -15px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: heroFloatAlt 6s ease-in-out 0.6s infinite;
  z-index: 2;
  transition: transform 0.3s ease;
}

@keyframes heroFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.4deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes heroFloatAlt {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(-0.4deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* ==========================================================================
   TRUST PILLARS / KEY HIGHLIGHTS
   ========================================================================== */
.trust-strip {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  padding: 30px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.trust-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid rgba(139, 21, 21, 0.15);
}

.trust-item h6 {
  font-size: 1.02rem;
  margin-bottom: 2px;
  font-weight: 700;
}

.trust-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ==========================================================================
   CREATIVE 3D PERSPECTIVE SCROLL REVEAL ANIMATIONS (AOS OVERRIDE)
   ========================================================================== */
[data-aos="fade-up"] {
  transform: perspective(1000px) rotateX(14deg) translateY(45px) scale(0.95) !important;
  opacity: 0 !important;
  filter: blur(2px);
  transition-property: transform, opacity, filter, box-shadow !important;
  transition-duration: 0.75s !important;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform, opacity, filter;
}

[data-aos="fade-up"].aos-animate {
  transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1) !important;
  opacity: 1 !important;
  filter: blur(0px);
}

@media (max-width: 767.98px) {
  [data-aos="fade-up"] {
    transform: translateY(24px) scale(0.97) !important;
    filter: none;
  }
  [data-aos="fade-up"].aos-animate {
    transform: translateY(0) scale(1) !important;
  }
}

/* ==========================================================================
   PRODUCT CARDS & SHOWCASE
   ========================================================================== */
.product-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Top Accent Shimmer Line on Hover */
.product-card::before,
.head-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #009246 0%, #FFFFFF 35%, #CE2B37 70%, #D97706 100%);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 5;
}

.product-card:hover::before,
.head-category-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 42px -10px rgba(139, 21, 21, 0.16), 0 0 0 1px rgba(139, 21, 21, 0.15);
  border-color: rgba(139, 21, 21, 0.35);
}

.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #F8FAFC;
  border-bottom: 1px solid #EDF2F7;
}

.product-img-wrapper {
  position: relative;
  background: #FFFFFF;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  border-bottom: 1px solid #F1F5F9;
}

.product-img-link,
.head-category-img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: zoom-in;
  text-decoration: none;
}

.product-img-wrapper img {
  max-width: 85%;
  max-height: 165px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img-wrapper img,
.head-category-card:hover .head-category-img-box img {
  transform: scale(1.08);
}

.product-img-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(139, 21, 21, 0.9);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
  z-index: 2;
  opacity: 0.85;
  pointer-events: none;
}

.product-card:hover .product-img-zoom-hint,
.head-category-card:hover .product-img-zoom-hint,
.product-img-link:hover .product-img-zoom-hint {
  opacity: 1;
  background: var(--primary-dark);
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(139, 21, 21, 0.45);
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 5px;
}

.product-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--secondary);
  line-height: 1.35;
  height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-specs-list {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 8px 0;
  border-top: 1px dashed #E2E8F0;
  border-bottom: 1px dashed #E2E8F0;
}

.product-specs-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.product-specs-list li:last-child {
  margin-bottom: 0;
}

.product-specs-list li span.label {
  color: var(--text-muted);
}

.product-specs-list li span.val {
  font-weight: 600;
  color: var(--secondary);
}

.product-footer {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* Filter Nav Buttons */
.filter-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 35px;
}

.filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(139, 21, 21, 0.2);
}

/* Machine Head Category Cards */
.head-category-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.head-category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.head-category-img-box {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFF5F5 100%);
  padding: 0px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.head-category-img-box img {
  /* max-height: 180px; */
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.head-category-card:hover .head-category-img-box img {
  transform: scale(1.08);
}

.head-category-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.head-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 8px;
}

.head-category-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}

.head-category-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.head-specs-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.head-spec-pill {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--secondary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.head-parts-count-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 21, 21, 0.08);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  align-self: flex-start;
}

/* Head Filter Tabs (Primary) */
.head-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

@media (min-width: 1200px) {
  .head-filter-tabs {
    justify-content: flex-end;
  }
}

.head-tab-btn {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

.head-tab-btn .badge-count {
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.head-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.head-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(139, 21, 21, 0.28);
}

.head-tab-btn.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Component sub-filter pills */
.component-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.comp-pill-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.comp-pill-btn:hover,
.comp-pill-btn.active {
  background: var(--secondary);
  color: #FFFFFF;
  border-color: var(--secondary);
}

/* ==========================================================================
   WORKING PROCESS (5 STEPS)
   ========================================================================== */
.process-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  height: 100%;
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(139, 21, 21, 0.3);
}

.process-step-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(139, 21, 21, 0.12);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 24px;
}

.process-icon {
  width: 58px;
  height: 58px;
  background: var(--primary-light);
  border: 1px solid rgba(139, 21, 21, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.process-title {
  font-size: 1.18rem;
  margin-bottom: 12px;
}

.process-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.process-list {
  list-style: none;
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.process-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.process-list li i {
  color: var(--primary);
  font-size: 0.75rem;
}

/* ==========================================================================
   SERVICES CARDS
   ========================================================================== */
.service-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(139, 21, 21, 0.35);
}

.service-box-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-box:hover .service-box-img img {
  transform: scale(1.08);
}

.service-box-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-box-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-box-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.service-link {
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  margin-top: auto;
}

.service-link:hover {
  gap: 12px;
  color: var(--primary-hover);
}

/* ==========================================================================
   COUNTERS / STATS BANNER - Dynamic Liquid Velvet Gradient
   ========================================================================== */
.stats-banner {
  background: linear-gradient(-45deg, #0B0F19, #1C0C12, #0F172A, #180B0F, #0B0F19);
  background-size: 400% 400%;
  animation: statsMeshGradient 14s ease infinite;
  color: #FFFFFF;
  padding: 75px 0;
  position: relative;
  overflow: hidden;
}

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

.stats-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #009246, #ffffff, #ce2b37);
  z-index: 3;
}

/* Floating Ambient Neon Glow Orb inside Stats */
.stats-banner::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 650px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(139, 21, 21, 0.3) 0%, rgba(217, 119, 6, 0.12) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 1;
  animation: statsOrbBreathe 8s ease-in-out infinite alternate;
}

@keyframes statsOrbBreathe {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.95; }
}

.stats-banner > .container {
  position: relative;
  z-index: 2;
}

.stat-box {
  text-align: center;
  padding: 24px 16px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-box:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 21, 21, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-family: 'Unbounded', sans-serif;
  font-size: 35px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 4px 18px rgba(139, 21, 21, 0.4);
}

.stat-number span.plus {
  color: #EF4444;
}

.stat-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 0.82rem;
  color: #94A3B8;
}

/* ==========================================================================
   GALLERY / EVENTS LIGHTBOX
   ========================================================================== */
.gallery-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #000;
  height: 250px;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.1);
  opacity: 0.75;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h6 {
  color: #fff;
  margin-bottom: 2px;
  font-size: 1rem;
}

.gallery-overlay p {
  color: #CBD5E1;
  font-size: 0.82rem;
  margin: 0;
}

.gallery-zoom-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/*.event-image-tag-badge {*/
/*  position: absolute;*/
/*  top: 14px;*/
/*  right: 14px;*/
/*  z-index: 4;*/
/*  background: linear-gradient(135deg, #8B1515 0%, #A81B1B 100%);*/
/*  color: #FFFFFF;*/
/*  font-size: 0.73rem;*/
/*  font-weight: 700;*/
/*  letter-spacing: 0.04em;*/
/*  text-transform: uppercase;*/
/*  padding: 5px 12px;*/
/*  border-radius: 20px;*/
/*  box-shadow: 0 4px 12px rgba(139, 21, 21, 0.45), 0 2px 4px rgba(0, 0, 0, 0.2);*/
/*  border: 1px solid rgba(255, 255, 255, 0.35);*/
/*  display: inline-flex;*/
/*  align-items: center;*/
/*  gap: 6px;*/
/*  pointer-events: none;*/
/*  backdrop-filter: blur(4px);*/
/*  max-width: calc(100% - 65px);*/
  /*white-space: nowrap;*/
/*  overflow: hidden;*/
/*  text-overflow: ellipsis;*/
/*  line-height: 1.2;*/
/*  transition: transform 0.3s ease, box-shadow 0.3s ease;*/
/*}*/

/*.gallery-card:hover .event-image-tag-badge {*/
/*  transform: translateY(-2px);*/
/*  box-shadow: 0 6px 16px rgba(139, 21, 21, 0.55), 0 3px 6px rgba(0, 0, 0, 0.25);*/
/*}*/

/*.gallery-card.has-tag-badge .gallery-zoom-icon,*/
/*.gallery-card:has(.event-image-tag-badge) .gallery-zoom-icon {*/
/*  right: auto;*/
/*  left: 14px;*/
/*}*/

/* ==========================================================================
   TESTIMONIALS CAROUSEL
   ========================================================================== */
.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  margin: 10px;
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 22px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(139, 21, 21, 0.2);
}

.author-info h6 {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   QUICK QUOTE & FORMS
   ========================================================================== */
.form-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.form-label-custom {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--secondary);
  margin-bottom: 6px;
}

.form-control-custom {
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  padding: 12px 16px;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  color: var(--secondary);
  transition: var(--transition);
  width: 100%;
}

.form-control-custom:focus {
  background-color: #FFFFFF;
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(139, 21, 21, 0.12);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-main {
  background-color: var(--bg-dark);
  color: #94A3B8;
  font-size: 0.92rem;
  padding-top: 75px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-title {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

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

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

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-icon {
  color: #EF4444;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  background-color: #060911;
  padding: 24px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (WHATSAPP & BACK TO TOP)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background-color: var(--accent-green);
  color: #FFFFFF !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: whatsappPulse 3s infinite;
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5), 0 6px 20px rgba(37, 211, 102, 0.3);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 6px 20px rgba(37, 211, 102, 0.3);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 6px 20px rgba(37, 211, 102, 0.3);
  }
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
  animation-play-state: paused;
}

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--secondary);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  z-index: 999;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.back-to-top:hover {
  background: var(--primary);
  color: #FFFFFF !important;
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(139, 21, 21, 0.3);
}

.back-to-top:hover i {
  animation: arrowBounce 0.6s infinite alternate;
}

@keyframes arrowBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

/* Quick View & Inquiry Modals */
body.modal-open,
body.modal-open-lenis {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.modal {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.modal-content-custom {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header-custom {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 24px;
}

.modal-body-custom {
  padding: 28px 24px;
}

.modal-dialog-scrollable .modal-body-custom {
  overflow-y: auto !important;
  overscroll-behavior: contain;
  max-height: calc(100vh - 180px);
}

/* =========================================================================
   Fancybox 5 Lightbox & Zoom Customization (Italian Red Palette)
   ========================================================================= */
.fancybox__backdrop {
  background: rgba(15, 23, 42, 0.94) !important;
  backdrop-filter: blur(8px);
}

.fancybox__toolbar {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, transparent 100%) !important;
  padding: 8px 16px !important;
}

.fancybox__caption {
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  background: rgba(15, 23, 42, 0.92) !important;
  color: #FFFFFF !important;
  padding: 12px 20px !important;
  border-top: 2px solid var(--primary) !important;
  text-align: center !important;
}

.fancybox__caption code {
  color: #F87171 !important;
  background: rgba(255, 255, 255, 0.12) !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  font-family: monospace !important;
}

.fancybox__button:hover {
  background: var(--primary) !important;
  color: #FFFFFF !important;
}

.fancybox__slide.has-image > .fancybox__content {
  cursor: zoom-in;
}

.fancybox__slide.has-image.is-selected.is-zoomed > .fancybox__content {
  cursor: grab;
}

.fancybox__slide.has-image.is-selected.is-zoomed.is-dragging > .fancybox__content {
  cursor: grabbing;
}

/* ==========================================================================
   14. LENIS SMOOTH INERTIA SCROLLING SUPPORT
   ========================================================================== */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ==========================================================================
   15. 3D PERSPECTIVE TILT & METALLIC SPECULAR GLARE ENGINE
   ========================================================================== */
[data-tilt],
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tilt-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

/* ==========================================================================
   16. SPINDLE TELEMETRY HUD & ROTATING SATELLITE GEARS
   ========================================================================== */
.spindle-telemetry-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 10px;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.telemetry-item:last-child {
  border-right: none;
}

.hud-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-bottom: 2px;
}

.hud-value {
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rotating-spindle-icon {
  display: inline-block;
  animation: iconSpindleSpin 1.8s linear infinite;
  color: #F59E0B;
}

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

/* ==========================================================================
   17. HEAD DETAIL SPARE PARTS THUMBNAILS & PREVIEWS
   ========================================================================== */
.head-part-thumb {
  width: 54px;
  height: 54px;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 3px;
}

.head-part-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.head-part-thumb:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(139, 21, 21, 0.2);
  transform: translateY(-2px);
  background: #FFFFFF;
}

.head-part-thumb:hover img {
  transform: scale(1.15);
}

.part-thumb-zoom-icon {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 17px;
  height: 17px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.head-part-thumb:hover .part-thumb-zoom-icon {
  opacity: 1;
  transform: scale(1.05);
}

/* ==========================================================================
   Blog Details & Technical Article Styling
   ========================================================================== */
.blog-detail-header {
  position: relative;
  background-color: #F8FAFC;
  overflow: hidden;
}

.blog-hero-image-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-color);
  background: #FFFFFF;
}

.blog-hero-image-wrap img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.blog-hero-image-wrap:hover img {
  transform: scale(1.025);
}

.blog-hero-overlay-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.blog-hero-zoom-badge {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.blog-hero-image-wrap:hover .blog-hero-zoom-badge {
  background: var(--primary);
  transform: scale(1.1);
}

.blog-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.blog-meta-item i {
  color: var(--primary);
}

.blog-key-takeaways {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
  border-left: 4px solid var(--primary);
  border-top: 1px solid rgba(139, 21, 21, 0.12);
  border-right: 1px solid rgba(139, 21, 21, 0.12);
  border-bottom: 1px solid rgba(139, 21, 21, 0.12);
  border-radius: 0 16px 16px 0;
  padding: 24px 28px;
  margin-bottom: 35px;
  box-shadow: 0 4px 16px rgba(139, 21, 21, 0.04);
}

.blog-article-content {
  font-size: 1.06rem;
  line-height: 1.88;
  color: #334155;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.blog-article-content p {
  margin-bottom: 1.4rem;
}

.blog-article-content h2 {
  font-size: 1.68rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 2.4rem;
  margin-bottom: 1.1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-subtle);
  position: relative;
  letter-spacing: -0.01em;
}

.blog-article-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary);
}

.blog-article-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 1.9rem;
  margin-bottom: 0.9rem;
}

.blog-article-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
}

.blog-article-content ul,
.blog-article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.4rem;
}

.blog-article-content li {
  margin-bottom: 0.55rem;
  line-height: 1.75;
}

.blog-article-content blockquote {
  background: #F8FAFC;
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 20px 26px;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.1rem;
  color: #1E293B;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.blog-article-content blockquote::before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: rgba(139, 21, 21, 0.15);
  font-size: 2.2rem;
  position: absolute;
  top: 10px;
  right: 18px;
  pointer-events: none;
}

.blog-article-content blockquote p:last-child {
  margin-bottom: 0;
}

.blog-article-content .table-responsive {
  margin: 2rem 0;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  background: #FFFFFF;
}

.blog-article-content table {
  margin-bottom: 0;
}

.blog-article-content table thead th {
  background: #F1F5F9;
  color: var(--secondary);
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
  padding: 12px 16px;
}

.blog-article-content table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
}

.blog-consultation-box {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 28px 32px;
  margin: 35px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
}

.blog-consultation-box::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 21, 21, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

.blog-tag-pill {
  display: inline-block;
  background: #F1F5F9;
  color: #475569;
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.blog-tag-pill:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}

.share-btn-round {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: none;
  cursor: pointer;
}

.share-btn-round:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.share-btn-whatsapp { background: #25D366; }
.share-btn-linkedin { background: #0A66C2; }
.share-btn-twitter { background: #111827; }
.share-btn-facebook { background: #1877F2; }
.share-btn-copy { background: var(--primary); }

.author-box-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF9F9 100%);
  border: 1px solid rgba(139, 21, 21, 0.16);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.nav-adjacent-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 22px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.nav-adjacent-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(139, 21, 21, 0.12);
  transform: translateY(-2px);
}

.nav-adjacent-card .nav-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.nav-adjacent-card .nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.nav-adjacent-card:hover .nav-title {
  color: var(--primary);
}

.sidebar-widget {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.sidebar-widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-widget-title i {
  color: var(--primary);
}

.sidebar-recent-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-subtle);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.sidebar-recent-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-recent-card:hover .sidebar-recent-title {
  color: var(--primary);
}

.sidebar-recent-thumb {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.sidebar-recent-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.38;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.sidebar-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.sidebar-cat-item:hover,
.sidebar-cat-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  padding-left: 18px;
}

.sidebar-cta-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.sidebar-cta-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(139, 21, 21, 0.35);
  filter: blur(30px);
  pointer-events: none;
}

/* ==========================================================================
   Top Bar Language Switcher & Layout Polishing
   ========================================================================== */

.top-bar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.top-bar-center .top-bar-item {
  margin-right: 0;
}

.btn-topbar-lang {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  cursor: pointer;
  line-height: 1.4;
}

.btn-topbar-lang:hover,
.btn-topbar-lang[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.top-bar .language-menu {
  min-width: 230px;
  max-height: 350px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 14px 35px -6px rgba(15, 23, 42, 0.2);
  padding: 6px 0;
  z-index: 1060;
  background: #FFFFFF;
}

.top-bar .language-menu::-webkit-scrollbar {
  width: 6px;
}
.top-bar .language-menu::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.top-bar .language-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.top-bar .language-menu::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.top-bar .language-menu .dropdown-header {
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  color: var(--text-muted);
}

.top-bar .language-menu .dropdown-item {
  font-size: 0.82rem;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
  color: var(--text-main);
  cursor: pointer;
}

.top-bar .language-menu .dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.top-bar .language-menu .dropdown-item.active {
  background-color: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
}

.top-bar .language-menu .dropdown-item.active small,
.top-bar .language-menu .dropdown-item.active .badge {
  color: #FFFFFF !important;
  opacity: 0.9;
}

/* ==========================================================================
   Bulletproof Google Translate Iframe / Mouse Scroll Protection
   ========================================================================== */

.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
body > .skiptranslate {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  z-index: -9999 !important;
}

html, body {
  top: 0px !important;
  position: static !important;
}

#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}


