:root {
  --primary: #1A365D;
  --primary-light: #2B6CB0;
  --secondary: #2C5282;
  --secondary-light: #4299E1;
  --accent: #3182CE;
  --dark: #FFFFFF;
  --dark-2: #F8FAFC;
  --surface: #FFFFFF;
  --surface-hover: #F1F5F9;
  --text: #0F172A;
  --text-muted: #475569;
  --green: #10B981;
  --nav-h: 72px;
  --container-pad: clamp(1rem, 4vw, 2rem);
  --section-pad-y: clamp(3rem, 8vw, 5rem);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.site-bg-gradient {
  display: none;
}

@keyframes bg-shift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }

  100% {
    transform: translate(-2%, -1%) scale(1.03);
    opacity: 1;
  }
}

.site-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
  animation: grid-drift 40s linear infinite;
  translate: 0 calc(var(--scroll, 0) * 0.15px);

  will-change: translate;
}

@keyframes grid-drift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 60px 60px;
  }
}

.site-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-drift 14s ease-in-out infinite;

  will-change: translate, transform;
}

.site-bg-orb-1 {
  display: none;
}

.site-bg-orb-2 {
  display: none;
}

.site-bg-orb-3 {
  display: none;
}

@keyframes orb-drift {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(30px, -40px);
  }

  66% {
    transform: translate(-20px, 25px);
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 1001;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  transform-origin: left;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px rgba(26, 54, 93, 0.5);
}

h1,
h2,
h3,
h4 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

.mono {
  font-family: 'Share Tech Mono', monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(var(--container-pad), env(safe-area-inset-left));
  padding-right: max(var(--container-pad), env(safe-area-inset-right));
}

section {
  padding: var(--section-pad-y) 0;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.section-title span {
  color: var(--primary);
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.about-text .about-tagline {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.about-text h2 span {
  color: var(--primary);
}

.status-text-green {
  color: var(--green);
  font-size: 0.9rem;
}

.products-header code {
  color: var(--accent);
  font-size: 0.9rem;
}

.feature-block .feature-icon {
  font-size: 1.75rem;
  width: 48px;
  height: 48px;
  background-color: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.rating-big span {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.testimonial-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.map-header .section-sub {
  margin: 0 auto;
}

.info-card .btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
}

#email-link {
  color: var(--secondary);
}

.footer-grid h4 {
  color: var(--secondary);
  margin-bottom: 1rem;
}

.footer-grid p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(60px) scale(0.98);
  transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fade-left {
  opacity: 0;
  transform: translateX(-50px) scale(0.98);
  transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.fade-right {
  opacity: 0;
  transform: translateX(50px) scale(0.98);
  transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.fade-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

.fade-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-stagger>* {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.reveal-stagger.visible>*:nth-child(1) {
  transition-delay: 0.05s;
}

.reveal-stagger.visible>*:nth-child(2) {
  transition-delay: 0.12s;
}

.reveal-stagger.visible>*:nth-child(3) {
  transition-delay: 0.19s;
}

.reveal-stagger.visible>*:nth-child(4) {
  transition-delay: 0.26s;
}

.reveal-stagger.visible>*:nth-child(5) {
  transition-delay: 0.33s;
}

.reveal-stagger.visible>*:nth-child(6) {
  transition-delay: 0.4s;
}

.reveal-stagger.visible>* {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up,
  .fade-left,
  .fade-right,
  .fade-scale,
  .reveal-stagger>*,
  .hero h1,
  .hero-sub,
  .hero-ctas,
  .hero-cards {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-bg-gradient,
  .site-bg-grid,
  .site-bg-orb,
  .hero-mesh,
  .orb {
    animation: none;
  }
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height 0.4s var(--ease-smooth), background 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  height: 60px;
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(212, 160, 23, 0.2);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(var(--container-pad), env(safe-area-inset-left));
  padding-right: max(var(--container-pad), env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1;
}

.navbar {
  padding-left: 0;
  padding-right: 0;
}

.logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo);
}

.logo:hover {
  transform: scale(1.03);
}

.static-home-logo {
  position: absolute;
  top: 10px;
  left: max(var(--container-pad), env(safe-area-inset-left));
  z-index: 1002;
  display: flex;
  align-items: center;
  height: var(--nav-h);
}

body:has(.nav-dropdown:hover) .static-home-logo,
body:has(.nav-dropdown-menu.show) .static-home-logo {
  z-index: 999;
}

.static-home-logo img {
  max-height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
  transform: scale(1.4) translate(4px, 24px);
  transform-origin: left center;
}

.logo .abm {
  color: var(--primary);
}

.logo .elec {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease-smooth);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out-expo);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-light);
}

.nav-links a.nav-cta::after {
  display: none;
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active {
  color: var(--dark);
}

/* Dropdown Styles - Mega Menu */
.nav-dropdown {
  /* No position relative, so the absolute menu positions relative to navbar */
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  backdrop-filter: blur(16px);
  width: 100%;
  max-width: 100%;
  box-shadow: 0 16px 48px rgba(26, 54, 93, 0.25), 0 8px 16px rgba(26, 54, 93, 0.15);
  border-bottom: 2px solid var(--primary);
  border-radius: 0 0 12px 12px;
  padding: 0;
  z-index: 1010;
  /* Above static-home-logo which is 1002 */
  flex-direction: row;
  overflow: hidden;
}

.nav-dropdown-menu.show {
  display: flex;
  animation: dropdown-mega-fade 0.4s var(--ease-out-expo) forwards;
}

@keyframes dropdown-mega-fade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-left {
  width: 25%;
  list-style: none;
  background: var(--surface-hover);
  border-right: 1px solid rgba(26, 54, 93, 0.2);
  padding: 1rem 0;
  max-height: 80vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mega-right {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 25%;
  width: 75%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
  overflow-x: hidden;
}

.nav-links .nav-dropdown-menu .mega-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--primary);
  transition: background 0.2s, color 0.2s, padding-left 0.3s;
}

.nav-links .nav-dropdown-menu .mega-item a::after {
  display: none;
}

.nav-links .nav-dropdown-menu .mega-item a:hover {
  background: rgba(26, 54, 93, 0.08);
  color: var(--primary);
  padding-left: 1.75rem;
}

.mega-content {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.mega-content.active {
  display: flex;
  animation: fade-in-mega 0.3s ease forwards;
}

@keyframes fade-in-mega {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mega-content h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  border-bottom: 2px solid rgba(26, 54, 93, 0.15);
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links .nav-dropdown-menu .mega-content a {
  font-size: 0.95rem;
  color: var(--primary);
  padding: 0.5rem 0;
  text-transform: none;
  letter-spacing: normal;
  transition: color 0.2s, transform 0.2s;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

.nav-links .nav-dropdown-menu .mega-content a::after {
  display: none;
}

.nav-links .nav-dropdown-menu .mega-content a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
  background: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-smooth);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-smooth);
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #FFFFFF;
  box-shadow: 0 4px 24px rgba(26, 54, 93, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(26, 54, 93, 0.5);
  color: #FFFFFF;
}

.btn-enquire,
.btn-enquire-wa {
  background: linear-gradient(135deg, var(--green), #059669) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35) !important;
}

.btn-enquire:hover,
.btn-enquire-wa:hover {
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.45) !important;
  color: #FFFFFF !important;
}

.btn-quote-desktop {
  padding: 0.5rem 1rem;
}

.btn-green {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #fff;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}

.btn-green:hover {
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-whatsapp-nav {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--primary);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: rgba(11, 18, 32, 1);
  backdrop-filter: blur(24px);
  padding: calc(var(--nav-h) + 1.25rem) max(1.25rem, env(safe-area-inset-right)) 1.5rem max(1.25rem, env(safe-area-inset-left));
  flex-direction: column;
  gap: 0.75rem;
  border-bottom: 2px solid var(--primary);
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.45s var(--ease-out-expo), opacity 0.4s ease, visibility 0.4s;
  z-index: 999;
}

body:has(.mobile-menu.open) .navbar,
body:has(.mobile-menu.open) .navbar.scrolled {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

body:has(.mobile-menu.open) .static-home-logo,
body:has(.mobile-menu.open) .nav-inner>*:not(.nav-actions),
body:has(.mobile-menu.open) .nav-actions>*:not(.hamburger) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mobile-menu .btn {
  width: 100%;
  min-height: 48px;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(59, 159, 217, 0.15);
  transform: translateX(-16px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.4s ease, color 0.2s, padding-left 0.3s;
}

.mobile-menu.open a {
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu.open>a:nth-child(1),
.mobile-menu.open>div:nth-child(1) {
  transition-delay: 0.06s;
}

.mobile-menu.open>a:nth-child(2),
.mobile-menu.open>div:nth-child(2) {
  transition-delay: 0.1s;
}

.mobile-menu.open>a:nth-child(3),
.mobile-menu.open>div:nth-child(3) {
  transition-delay: 0.14s;
}

.mobile-menu.open>a:nth-child(4),
.mobile-menu.open>div:nth-child(4) {
  transition-delay: 0.18s;
}

.mobile-menu.open>a:nth-child(5),
.mobile-menu.open>div:nth-child(5) {
  transition-delay: 0.22s;
}

.mobile-menu.open>a:nth-child(6),
.mobile-menu.open>div:nth-child(6) {
  transition-delay: 0.26s;
}

.mobile-menu.open>a:nth-child(7),
.mobile-menu.open>div:nth-child(7) {
  transition-delay: 0.3s;
}

.mobile-menu.open>a:nth-child(8),
.mobile-menu.open>div:nth-child(8) {
  transition-delay: 0.34s;
}

.mobile-menu a:hover,
.mobile-menu-toggle:hover,
.mobile-submenu-toggle:hover {
  color: var(--primary-light);
  padding-left: 0.5rem;
}

/* Mobile Dropdown Submenus */
.mobile-menu-toggle,
.mobile-submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0;
  font-size: 1.25rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  background: none;
  color: inherit;
  border-bottom: 1px solid rgba(59, 159, 217, 0.15);
  cursor: pointer;
  transform: translateX(-16px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.4s ease, color 0.2s, padding-left 0.3s;
}

.mobile-menu.open .mobile-menu-toggle {
  transform: translateX(0);
  opacity: 1;
}

.mobile-submenu-item {
  display: block;
  font-size: 1.1rem;
  padding: 0.6rem 0;
  min-height: 44px;
  text-transform: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  border-bottom: 1px dashed rgba(59, 159, 217, 0.1);
}

.mobile-dropdown-menu,
.mobile-submenu {
  display: flex;
  flex-direction: column;
  padding-left: 1.25rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease-in-out, opacity 0.3s ease, padding 0.3s ease;
}

.mobile-dropdown-menu.expanded,
.mobile-submenu.expanded {
  max-height: 25000px;
  opacity: 1;
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
}

.mobile-menu-toggle span,
.mobile-submenu-toggle span {
  transition: transform 0.3s ease;
}

.mobile-menu-toggle.expanded span,
.mobile-submenu-toggle.expanded span {
  transform: rotate(180deg);
  color: var(--primary);
}

.mobile-submenu-toggle {
  font-size: 1.15rem;
  border-bottom: 1px dashed rgba(59, 159, 217, 0.1);
  transform: none;
  opacity: 1;
}

.back-to-top {
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom, 0px) + 1rem);
  right: max(1rem, env(safe-area-inset-right, 0px) + 0.75rem);
  z-index: 998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease-smooth), transform 0.35s var(--ease-out-expo), visibility 0.35s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(212, 160, 23, 0.4);
}

/* HERO */
#home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

#home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('background img.jpeg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-mesh {
  display: none;
}

@keyframes mesh-shift {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float-orb 8s ease-in-out infinite;

  will-change: translate, transform;
}

.orb-1 {
  display: none;
}

.orb-2 {
  display: none;
}

.orb-3 {
  display: none;
}

@keyframes float-orb {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(20px, -30px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(var(--container-pad), env(safe-area-inset-left));
  padding-right: max(var(--container-pad), env(safe-area-inset-right));
}

.hero-badge-float {
  position: absolute;
  top: 1rem;
  right: 0;
  background: linear-gradient(135deg, var(--surface), var(--dark-2));
  border: 2px solid var(--accent);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  box-shadow: 0 0 25px rgba(26, 54, 93, 0.4);
  animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: hero-in 0.8s ease forwards;
  opacity: 0;
}

.hero h1 .highlight {
  color: var(--primary-light);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2rem;
  animation: hero-in 0.8s 0.15s ease forwards;
  opacity: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: hero-in 0.8s 0.3s ease forwards;
  opacity: 0;
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-in-start {
  transform: translateY(24px);
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  animation: hero-in 0.8s 0.45s ease forwards;
  opacity: 0;
}

.hero-card {
  background: rgba(26, 39, 68, 0.75);
  border: 1px solid rgba(59, 159, 217, 0.25);
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-smooth), border-color 0.3s;
}

.hero-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: 0 12px 36px rgba(59, 159, 217, 0.2);
}

.hero-card strong {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.hero-card span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 6px;
  animation: blink 1.5s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* DIAGONAL DIVIDER */
.diag-top {
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
  margin-top: -4rem;
  padding-top: 6rem;
}

.diag-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.js-parallax {
  translate: 0 var(--parallax-y, 0px);
  will-change: translate;
}

/* BRAND MARQUEE */
.brand-marquee-container {
  overflow: hidden;
  white-space: nowrap;
  background: transparent;
  padding: 1.5rem 0;
  border: none;
  position: relative;
}

.brand-marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  padding-right: 3rem;
  align-items: center;
}

.marquee-card {
  width: 150px;
  height: 80px;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  overflow: hidden;
}

.marquee-card:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.marquee-card img {
  width: 130px;
  height: 60px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.marquee-card img[alt="Maxsell"] {
  transform: scale(1.65);
}

.marquee-card img[alt="Scale-tec"] {
  transform: scale(1.85);
}

.marquee-card img[alt="A&D"] {
  transform: scale(1.6);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ABOUT */
#about {
  background: rgba(17, 27, 46, 0.85);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid rgba(26, 54, 93, 0.3);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s, border-color 0.3s;
}

.stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(26, 54, 93, 0.55);
  box-shadow: 0 12px 32px rgba(26, 54, 93, 0.15);
}

.stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* PRODUCTS — wide catalog */
#products {
  background: rgba(11, 18, 32, 0.7);
  overflow: hidden;
}

.products-wide {
  width: min(1680px, 100%);
  margin: 0 auto;
  padding-left: max(var(--container-pad), env(safe-area-inset-left));
  padding-right: max(var(--container-pad), env(safe-area-inset-right));
}

.products-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.products-header .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.products-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid rgba(59, 159, 217, 0.2);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.products-search-wrap {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  order: 3;
}

.products-toolbar>.products-search-wrap:first-child:last-child {
  margin-left: auto;
}

.products-search-wrap input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: var(--dark);
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

.products-search-wrap input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 16px rgba(59, 159, 217, 0.2);
}

.products-search-wrap {
  position: relative;
}

.products-search-wrap::before {
  content: "⌕";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.products-count {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  order: 2;
  margin-right: 1rem;
}

.products-count span {
  color: var(--secondary);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  order: 1;
}

.category-filters-scroll {
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
  mask-image: linear-gradient(90deg, black 92%, transparent);
}

.category-filters-scroll .cat-btn {
  flex-shrink: 0;
}

.cat-btn {
  padding: 0.5rem 1rem;
  background: var(--dark);
  border: 1px solid rgba(26, 54, 93, 0.25);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(26, 54, 93, 0.3);
  transform: translateY(-2px);
}

.products-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid rgba(59, 159, 217, 0.25);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(59, 159, 217, 0.25), 0 24px 64px rgba(0, 0, 0, 0.4);
}

.product-card.hidden {
  display: none;
}

.product-image {
  height: 240px;
  background: linear-gradient(145deg, var(--dark-2), var(--dark));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(59, 159, 217, 0.2);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease-out-expo);
}

.product-image img.img-scaled {
  transform: scale(1.4);
}

.product-card:hover .product-image img.img-scaled {
  transform: scale(1.45);
}

.product-image img.img-no-scale {
  transform: scale(1);
}

.product-card:hover .product-image img.img-no-scale {
  transform: scale(1.05);
}

.product-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.product-image-placeholder svg {
  width: 64px;
  height: 64px;
  color: var(--secondary);
  opacity: 0.7;
}

.product-image-placeholder span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.product-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  flex: 1;
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.product-card-actions .btn {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem;
  font-size: 0.85rem;
}

.products-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  display: none;
}

.products-empty.show {
  display: block;
}

.products-add-hint {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 230, 0, 0.06);
  border: 1px dashed rgba(255, 230, 0, 0.35);
  border-radius: 8px;
  text-align: center;
}

.products-add-hint p {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.products-add-hint code {
  color: var(--accent);
}

/* WHY US */
#why {
  background: rgba(17, 27, 46, 0.85);
  position: relative;
  overflow: hidden;
}

.circuit-bg {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M10 50 H40 M60 50 H90 M50 10 V40 M50 60 V90' stroke='%233B9FD9' fill='none' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='4' fill='%23D4A017'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.feature-block {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s, background 0.3s;
}

.feature-block:hover {
  transform: translateX(8px) scale(1.02);
  background: var(--surface-hover);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.feature-block h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: var(--accent);
}

.feature-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* TESTIMONIALS */
#testimonials {
  background: rgba(11, 18, 32, 0.7);
}

.rating-banner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.5rem);
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid rgba(255, 230, 0, 0.3);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(255, 230, 0, 0.1);
}

.rating-big {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3rem;
  color: var(--accent);
}

.stars {
  color: var(--accent);
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid rgba(123, 139, 168, 0.25);
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s, border-color 0.3s;
}

.review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 159, 217, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.review-card .author {
  font-weight: 600;
  color: var(--secondary);
  margin-top: 1rem;
}

/* MAP */
#map-section {
  padding: 0;
  background: rgba(17, 27, 46, 0.85);
}

#map {
  height: 420px;
  width: 100%;
  z-index: 1;
}

.abm-marker {
  background: transparent !important;
  border: none !important;
}

.map-header {
  padding: 3rem 0 1rem;
  text-align: center;
}

.leaflet-popup-content-wrapper {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 2px solid var(--primary);
  border-radius: 6px !important;
}

.leaflet-popup-tip {
  background: var(--surface) !important;
}

/* CONTACT */
#contact {
  background: rgba(11, 18, 32, 0.7);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid rgba(26, 54, 93, 0.2);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s, border-color 0.3s;
}

.info-card:hover {
  transform: translateX(6px);
  border-color: rgba(26, 54, 93, 0.45);
  box-shadow: 0 8px 28px rgba(26, 54, 93, 0.12);
}

.info-card .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--surface);
  border: 1px solid rgba(59, 159, 217, 0.3);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--dark);
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 16px rgba(59, 159, 217, 0.22);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #ff4444;
  animation: shake 0.4s ease;
}

.form-group .err-msg {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: none;
}

.form-group.error .err-msg {
  display: block;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  75% {
    transform: translateX(6px);
  }
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid var(--green);
  border-radius: 6px;
  color: var(--green);
  margin-top: 1rem;
  animation: success-pop 0.5s ease;
}

.form-success.show {
  display: block;
}

@keyframes success-pop {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* FOOTER */
footer {
  background: var(--dark-2);
  border-top: 2px solid var(--primary);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-tagline {
  color: var(--text-muted);
  margin: 0.5rem 0 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  transition: color 0.25s, padding-left 0.3s var(--ease-out-expo);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 6px;
}

.footer-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-icons a:hover {
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(59, 159, 217, 0.35);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--surface);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: 'Share Tech Mono', monospace;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

/* RIPPLE */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* MOBILE BOTTOM BAR */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 997;
  border-top: 1px solid rgba(59, 159, 217, 0.2);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-bottom-bar a {
  flex: 1;
  text-align: center;
  padding: 0.85rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-bottom-call {
  color: var(--secondary);
  border-right: 1px solid rgba(59, 159, 217, 0.2);
}

.btn-bottom-wa {
  color: #25D366;
}

/* RESPONSIVE — mobile, tablet, laptop, desktop */
@media (min-width: 1400px) {

  .container,
  .nav-inner,
  .hero-content {
    max-width: 1320px;
  }

  .products-wide {
    max-width: 1680px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Laptop */
@media (max-width: 1280px) {
  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .products-catalog {
    gap: 1.5rem;
  }

  .product-card-top {
    grid-template-columns: 180px 1fr;
  }
}

/* Tablet landscape & small laptop */
@media (max-width: 1200px) {
  .product-card-top {
    grid-template-columns: 220px 1fr;
  }
}

/* Tablet — hamburger nav, 2-column layouts where useful */
@media (max-width: 1024px) {
  :root {
    --nav-h: 64px;
  }

  .nav-links,
  .nav-actions .btn-quote-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .product-specs,
  .product-features {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid {
    max-width: 520px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rating-banner {
    padding: 1.25rem 1.5rem;
  }

  #map {
    height: 380px;
  }

  .orb-1,
  .orb-2,
  .orb-3,
  .site-bg-orb-1,
  .site-bg-orb-2,
  .site-bg-orb-3 {
    display: none !important;
    animation: none !important;
  }
}

/* Strict Tablet Optimization (Doesn't touch Mobile or Desktop) */
@media (min-width: 769px) and (max-width: 1024px) {
  .static-home-logo {
    top: 4px;
  }

  .static-home-logo img {
    max-height: 60px;
    transform: scale(1.1) translate(0px, 8px);
  }

  .hero-text-left {
    text-align: center !important;
  }

  .hero-sub {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  .navbar.scrolled {
    height: 56px;
  }

  .product-card-top {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-image {
    height: 200px;
    min-height: 160px;
    border-right: none;
    border-bottom: 1px solid rgba(59, 159, 217, 0.2);
  }

  .product-card-head {
    padding: 1rem 1.25rem;
  }

  .product-card-body {
    padding: 0 1.25rem 1rem;
  }

  .product-card-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
  }

  .product-card-footer .btn-enquire {
    width: 100%;
  }

  .product-card-actions .btn {
    min-height: 44px;
  }

  .product-card h3 {
    font-size: 1.25rem;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .products-toolbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .category-filters {
    justify-content: center;
  }

  .category-filters-scroll {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    mask-image: none !important;
  }

  .products-search-wrap {
    max-width: none;
    width: 100%;
  }

  .products-count {
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-badge-float {
    position: static;
    margin-bottom: 1rem;
    display: inline-block;
    max-width: 100%;
  }

  .hero-ctas {
    margin-bottom: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rating-banner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .rating-banner .btn {
    width: 100%;
  }

  .stat-num {
    font-size: 2rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .diag-top {
    clip-path: none;
    margin-top: -2rem;
    padding-top: 4rem;
  }

  .diag-bottom {
    clip-path: none;
  }

  #map {
    height: 320px;
  }

  .map-header {
    padding: 2rem 0 1rem;
  }

  .section-sub {
    margin-bottom: 2rem;
  }

  /* Optimize for phones specifically */
  .mobile-bottom-bar {
    display: flex;
  }

  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .back-to-top {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  :root {
    --section-pad-y: 3rem;
  }

  .section-title {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
    line-height: 1.2;
  }

  .product-card {
    border-radius: 6px;
  }

  /* --- New Smooth Mobile Optimizations --- */
  .static-home-logo {
    top: 0;
  }

  .static-home-logo img {
    max-height: 44px;
    transform: none;
  }

  .hero-text-left {
    text-align: center !important;
  }

  .hero-sub {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .info-card p,
  .footer-grid p,
  .product-card-body p {
    word-break: break-word;
    line-height: 1.6;
  }

  .contact-grid {
    gap: 1.5rem;
  }

  /* Aggressive Mobile Smoothness Optimizations */
  .navbar.scrolled,
  .mobile-bottom-bar,
  .mobile-menu {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.98) !important;
  }

  .js-parallax {
    translate: none !important;
    transform: none !important;
  }

  .site-bg-orb {
    display: none !important;
  }

  /* Snappier, shorter animations for a smoother feel on mobile */
  .fade-up {
    transform: translateY(30px) scale(0.98);
    transition-duration: 0.7s;
  }

  .fade-left {
    transform: translateX(-30px) scale(0.98);
    transition-duration: 0.7s;
  }

  .fade-right {
    transform: translateX(30px) scale(0.98);
    transition-duration: 0.7s;
  }

  .fade-scale {
    transition-duration: 0.7s;
  }

  .reveal-stagger>* {
    transform: translateY(20px) scale(0.98);
    transition-duration: 0.6s;
  }

  /* Better touch targets */
  .btn {
    min-height: 48px;
    border-radius: 8px;
  }

  .cat-btn {
    min-height: 44px;
  }

  .hamburger {
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 1rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
    letter-spacing: 0.02em;
  }

  .hero-brand h1 {
    font-size: clamp(2.5rem, 12vw, 3.5rem) !important;
  }

  .hero-brand div {
    font-size: clamp(1.2rem, 5vw, 1.6rem) !important;
    margin-top: 0 !important;
  }

  .hero-text-left div {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-cards {
    grid-template-columns: 1fr;
  }

  .products-catalog {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .stat-num {
    font-size: 1.75rem;
  }

  .products-toolbar {
    padding: 1rem;
    gap: 0.75rem;
  }

  .product-card-actions {
    grid-template-columns: 1fr;
  }

  .cat-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    min-height: 40px;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .info-card {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
  }

  .logo .elec {
    display: inline;
  }

  .products-add-hint {
    padding: 1rem;
  }

  .products-add-hint p {
    font-size: 0.72rem;
    word-break: break-word;
  }

  /* Mobile Brand Grid Optimization */
  .brand-logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 2rem 0;
  }

  .brand-logo-item {
    height: 100px;
    padding: 1rem;
  }

  .brand-logo-item.enlarge-box {
    padding: 0.5rem;
  }
}

@media (max-width: 360px) {
  .logo .elec {
    display: none;
  }
}

/* Touch devices — larger tap targets, no hover-only tilt */
@media (hover: none),
(pointer: coarse) {

  .btn,
  .cat-btn,
  .nav-links a,
  .footer-links a {
    min-height: 44px;
  }

  .cat-btn {
    display: inline-flex;
    align-items: center;
  }

  .product-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  }

  .hero-card:hover,
  .stat-card:hover,
  .feature-block:hover,
  .review-card:hover,
  .info-card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .product-card.tilt-card {
    will-change: transform;
  }
}

/* Form inputs — prevent iOS zoom on focus */
@media (max-width: 768px) {

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

  .products-search-wrap input {
    font-size: 16px;
    min-height: 48px;
  }
}

/* Short landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  #home {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 1rem);
    padding-bottom: 2rem;
  }

  .hero-cards {
    display: none;
  }

  .hero-badge-float {
    display: none;
  }
}

/* Print */
@media print {

  .navbar,
  .mobile-menu,
  .scroll-progress,
  .back-to-top,
  .site-bg,
  #hero-canvas,
  .hero-mesh,
  .orb,
  .hamburger {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  section {
    padding: 1.5rem 0;
    break-inside: avoid;
  }
}

/* LIGHT MODE OVERRIDES APPLIED GLOBALLY */
body .navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(26, 54, 93, 0.15);
}

body .mobile-menu {
  background: rgba(255, 255, 255, 0.98);
}

body .site-bg-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(26, 54, 93, 0.05), transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(43, 108, 176, 0.05), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 255, 255, 0.8), transparent);
}

body .site-bg-grid {
  background-image:
    linear-gradient(rgba(26, 54, 93, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 54, 93, 0.05) 1px, transparent 1px);
}

body .hero-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(26, 54, 93, 0.15);
}

body #about,
body #why,
body #map-section {
  background: rgba(240, 244, 248, 0.9);
}

body #products,
body #testimonials,
body #contact {
  background: rgba(245, 247, 250, 0.9);
}

body .product-card-footer {
  background: rgba(240, 244, 248, 0.8);
  border-top-color: rgba(26, 54, 93, 0.15);
}

body .btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}

body .hero-badge-float {
  background: linear-gradient(135deg, #fff, #f0f4f8);
}

body .circuit-bg {
  opacity: 0.05;
}

/* MOBILE PERFORMANCE OPTIMIZATIONS */
@media (max-width: 768px) {

  .site-bg-grid,
  .site-bg-gradient,
  .site-bg-orb,
  .site-bg-orb-1,
  .site-bg-orb-2,
  .site-bg-orb-3 {
    display: none !important;
  }

  body {
    background: var(--dark-2) !important;
  }

  .navbar.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Remove heavy box-shadow transitions on mobile to boost FPS */
  .stat-card,
  .feature-block,
  .review-card,
  .info-card,
  .hero-card,
  .product-card,
  .brand-logo-item {
    transition-property: transform, opacity;
  }

  .btn {
    transition-property: transform, opacity, background-color;
  }
}

/* BRANDS GRID */
.brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
  justify-items: center;
  align-items: center;
}

.brand-logo-item {
  background: #ffffff;
  border: 1px solid rgba(59, 159, 217, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 159, 217, 0.5);
}

.brand-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-logo-item:hover img {
  transform: scale(1.05);
}

.brand-logo-item.enlarge-box {
  padding: 0.5rem;
  overflow: hidden;
}

.brand-logo-item.enlarge-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-logo-item.enlarge-box:hover img {
  transform: scale(1.05);
}

.brand-logo-item.no-border {
  border: none !important;
}

.zoom-logo-md {
  transform: scale(1.2);
}

.brand-logo-item.enlarge-box:hover img.zoom-logo-md {
  transform: scale(1.25);
}

.center-mettler {
  transform: scale(1.3) translate(-10%, 12%);
}

.brand-logo-item.enlarge-box:hover img.center-mettler {
  transform: scale(1.35) translate(-10%, 12%);
}

.zoom-logo-lg {
  transform: scale(1.4);
}

.brand-logo-item.enlarge-box:hover img.zoom-logo-lg {
  transform: scale(1.45);
}

.sharp-crop {
  transform: scale(1.15);
  clip-path: inset(2% 18%);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.brand-logo-item.enlarge-box:hover img.sharp-crop {
  transform: scale(1.2);
}

/* PRODUCT IMAGE CAROUSEL */
.product-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-inner {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 18, 32, 0.6);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background: rgba(11, 18, 32, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  padding: 4px 8px;
  background: rgba(11, 18, 32, 0.4);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Mobile specific styles for specs table scrollbar */
@media (max-width: 768px) {
  .table-responsive::-webkit-scrollbar {
    height: 6px;
    -webkit-appearance: none;
  }

  .table-responsive::-webkit-scrollbar-thumb {
    background-color: rgba(59, 159, 217, 0.6);
    border-radius: 4px;
  }

  .table-responsive::-webkit-scrollbar-track {
    background-color: rgba(11, 18, 32, 0.4);
    border-radius: 4px;
  }

  .table-responsive {
    /* Force scrollbar to be visible */
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 159, 217, 0.6) rgba(11, 18, 32, 0.4);
    padding-bottom: 5px;
    /* prevent cutting off bottom content by scrollbar */
  }
}

.mettler-cat-img {
  width: 100%;
  height: 240px;
  background-size: 95%;
  background-repeat: no-repeat;
  background-position: center;
  border-bottom: 1px solid var(--border, #334155);
}

@media (max-width: 768px) {
  .mettler-cat-img {
    background-size: contain;
  }
}