:root {
  --primary: #235787;
  --primary-container: #235787;
  --primary-fixed: #d1e4ff;
  --primary-fixed-dim: #9dcaff;
  --on-primary: #ffffff;
  --secondary: #416181;
  --tertiary: #800018;
  --surface: #f9f9fb;
  --surface-container-low: #f3f3f6;
  --surface-container-highest: #e2e2e5;
  --surface-variant: #e2e2e5;
  --on-surface: #1a1c1e;
  --on-surface-variant: #42474f;
  --outline-variant: #c2c7d0;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.icon-fill {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 24px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 14px;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 16px 32px rgba(35, 87, 135, 0.2);
}

.btn-primary:hover {
  background: var(--primary-container);
  transform: translateY(-2px);
}

.btn-outline {
  background: #ffffff;
  border-color: #d8dbe2;
  color: #4b5563;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(35, 87, 135, 0.1);
  color: var(--primary);
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}

.section-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--secondary);
}

.top-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-socials a {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  line-height: 0;
}

.top-bar-socials a:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.navbar {
  position: fixed;
  top: 28px;
  inset-inline: 0;
  z-index: 50;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: visible;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.logo-image {
  height: 74px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-image {
  transform: scale(1.06);
}

.logo-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 4px 8px;
  line-height: 1.2;
  text-align: center;
}

.logo-sub {
  font-size: 8px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 800;
  color: #4b5563;
}

.nav-links a,
.nav-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
  cursor: pointer;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.active {
  color: var(--primary);
  border: none;
  padding-bottom: 0;
}

.mobile-close-btn {
  display: none;
}

.nav-links a:hover,
.nav-dropdown:hover {
  color: var(--primary);
}

.dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 10px 0;
}

.dropdown-menu {
  position: absolute;
  top: calc(100%);
  left: 0;
  background: #ffffff;
  min-width: 240px;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
  border: 1px solid #f1f5f9;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  pointer-events: none;
}

.dropdown-wrapper:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

.dropdown-menu a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px !important;
  color: #475569 !important;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease !important;
  width: 100%;
  position: relative;
}

.dropdown-menu a::after {
  display: none !important;
}

.dropdown-menu a:hover {
  background: #f8fafc;
  color: var(--primary) !important;
  padding-inline-start: 28px !important;
}

.dropdown-submenu-wrapper {
  position: relative;
}

.dropdown-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 220px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
  border: 1px solid #f1f5f9;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 4px;
  pointer-events: none;
}

.dropdown-submenu-wrapper:hover .dropdown-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.dropdown-submenu::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20px;
  bottom: 0;
  width: 24px; /* Bridge margin-left: 4px + transform gap */
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 8px;
  display: grid;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 120;
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-menu a:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.lang-menu a.is-active {
  background: var(--primary);
  color: #ffffff;
}

.lang-switcher:focus-within .lang-menu,
.lang-switcher:hover .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-menu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

/* Footer Lang Switcher (Upward) */
.lang-switcher-up .lang-menu {
  top: auto;
  bottom: calc(100% + 12px);
  right: auto;
  left: 0;
}

.lang-switcher-up .lang-menu::before {
  top: auto;
  bottom: -20px;
}

.icon-btn {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 10px;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.3s ease;
}

.icon-btn:hover {
  background: #f1f5f9;
}

.theme-icon-dark {
  display: none !important;
}

.theme-icon-light {
  display: inline-flex !important;
}

.dark .theme-icon-light {
  display: none !important;
}

.dark .theme-icon-dark {
  display: inline-flex !important;
}

.page-main {
  padding-top: 120px;
}

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #ffffff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at top, rgba(35, 87, 135, 0.08), transparent 55%),
    linear-gradient(120deg, #f8fafc 0%, #eef2f7 100%);
}

.hero-slider {
  position: absolute;
  inset: 24px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
  background: #ffffff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide--viotech {
  background-image: url("/assets/img/VIOTECH-reklam.png");
}

.hero-slide--jel {
  background-image: url("/assets/img/Jel-Akuler.png");
}

.hero-slide--datasafe {
  background-image: url("/assets/img/Datasafe-aku.png");
}

.hero-slide--eaton {
  background-image: url("/assets/img/Eaton-Ups.png");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.96) 30%, rgba(255, 255, 255, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--primary);
}

.hero-title span {
  color: var(--secondary);
}

.hero-text {
  font-size: 18px;
  color: #5f6b7a;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.products {
  padding: 96px 0;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 64px;
}

.products-header p {
  max-width: 420px;
  text-align: end;
  font-size: 13px;
  color: var(--on-surface-variant);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.product-card {
  background: #f8fafc;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.product-media {
  background: #ffffff;
  padding: 32px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media img {
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.7s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.08);
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.product-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(35, 87, 135, 0.08);
  color: var(--primary);
}

.product-body h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.product-body p {
  font-size: 13px;
  color: var(--on-surface-variant);
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  transition: all 0.3s ease;
}

.card-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.about {
  background: var(--surface-container-low);
  padding: 96px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image figure {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: rotate(-3deg);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.about-badge {
  position: absolute;
  right: -24px;
  bottom: -24px;
  background: var(--primary);
  color: #ffffff;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  display: none;
}

.about-badge p:first-child {
  font-size: 32px;
  font-weight: 900;
}

.about-badge p:last-child {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.about-feature h5 {
  font-weight: 700;
  margin-top: 6px;
}

.about-feature p {
  font-size: 14px;
  color: var(--on-surface-variant);
}

.services {
  padding: 96px 0;
}

.services-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: #ffffff;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid #eef2f6;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: all 0.5s ease;
}

.service-card .material-symbols-outlined {
  font-size: 44px;
  color: var(--primary);
  margin-bottom: 16px;
  transition: color 0.4s ease;
}

.service-card h4 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.service-card:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.service-card p {
  color: var(--on-surface-variant);
  margin-bottom: 24px;
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.85);
}

.service-card:hover .material-symbols-outlined {
  color: #ffffff;
}

.partner-logos {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--surface-container-highest);
}

.partner-logos p {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 32px;
  font-weight: 800;
}

.partner-logos .logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  opacity: 0.6;
  filter: grayscale(1);
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logos .logo-row:hover {
  opacity: 1;
  filter: grayscale(0);
}

.partner-logos span {
  font-size: 24px;
  font-weight: 900;
  color: #64748b;
}

.italic {
  font-style: italic;
}

.footer {
  background: #f1f5f9;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: 64px 0;
  font-size: 14px;
  color: #64748b;
}

.footer-title {
  color: #1e3a8a;
  font-weight: 800;
  font-size: 18px;
}

.footer-links h6 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1e3a8a;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-contact h6 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1e3a8a;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.footer .nav-actions {
  margin-top: 16px;
  color: #94a3b8;
}

.footer-contact div {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.footer-bottom {
  border-top: 1px solid #e2e8f0;
  padding: 24px 0;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-bottom-notes {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-note {
  color: #94a3b8;
}

.footer-badge {
  color: #1d4ed8;
  font-weight: 800;
}

.fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 40;
}

.fab-label {
  position: absolute;
  right: 72px;
  bottom: 8px;
  background: #25D366;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.fab:hover .fab-label {
  opacity: 1;
}

.fab-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #25D366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.fab-button:hover {
  transform: scale(1.08);
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .hero-overlay {
    background: rgba(255, 255, 255, 0.85);
  }

  .hero-slider {
    inset: 16px;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .products-header p {
    text-align: start;
  }

  .about-badge {
    display: block;
  }
}

@media (max-width: 720px) {
  .navbar {
    top: 28px;
  }

  .navbar .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .top-bar .container {
    justify-content: space-between;
    text-align: start;
  }

  .hero {
    padding: 72px 0;
  }

  .hero-slider {
    inset: 12px;
    border-radius: 20px;
  }

  .about-badge {
    right: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}



/* ================================= */
/* MODERN ABOUT PAGE STYLES          */
/* ================================= */
.modern-hero {
  position: relative;
  background: var(--surface);
  overflow: hidden;
  padding: 64px 0 80px 0;
  text-align: center;
}
.hero-bg-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(35, 87, 135, 0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: 24px;
}
.page-breadcrumb a {
  color: var(--primary);
  transition: color 0.3s ease;
}
.page-breadcrumb a:hover {
  color: var(--primary-container);
}
.page-breadcrumb .nav-sep {
  font-size: 14px;
  color: #c2c7d0;
}
.hero-text-wrapper {
  max-width: 760px;
}
.modern-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--on-surface);
  margin: 16px 0 24px 0;
}
.modern-subtitle {
  font-size: 18px;
  color: var(--on-surface-variant);
  line-height: 1.7;
}

.modern-about {
  padding: 40px 0 100px 0;
  background: var(--surface);
}
.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-page-media {
  position: relative;
}
.media-decoration-glow {
  position: absolute;
  top: 10%;
  left: -10%;
  width: 70%;
  height: 80%;
  background: var(--primary-fixed-dim);
  filter: blur(80px);
  opacity: 0.3;
  border-radius: 50%;
  z-index: 0;
}
.about-page-photo {
  position: relative;
  z-index: 1;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
  border: 10px solid #ffffff;
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}
.about-page-photo:hover {
  transform: rotate(0deg) scale(1.02);
}
.about-page-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.modern-experience-card {
  position: absolute;
  bottom: -30px;
  right: -30px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 24px 32px;
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 16px;
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.modern-experience-card .md-icon {
  font-size: 44px;
  color: var(--primary);
  background: rgba(35, 87, 135, 0.1);
  padding: 12px;
  border-radius: 16px;
}
.about-card-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.about-card-text {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-surface-variant);
  margin: 0;
}
.modern-tags {
  position: absolute;
  top: 30px;
  left: -30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modern-tags .pill {
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border: 1px solid #f1f5f9;
  padding: 10px 16px;
  font-size: 12px;
  border-radius: 14px;
}

.modern-content {
  position: relative;
  z-index: 1;
}
.content-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 32px;
}
.content-body p {
  font-size: 16px;
  color: var(--on-surface-variant);
  margin-bottom: 20px;
  line-height: 1.8;
}
.content-body strong {
  color: var(--on-surface);
}

.modern-list {
  margin-top: 48px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}
.modern-list li {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}
.modern-list li:hover {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  transform: translateX(8px);
  border-color: #e2e8f0;
}
.list-icon {
  background: rgba(35, 87, 135, 0.06);
  color: var(--primary);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  flex-shrink: 0;
}
.list-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.list-text strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--on-surface);
}
.list-text span {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.modern-highlight {
  padding: 80px 0 120px 0;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}
.modern-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.highlight-card {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  padding: 48px 32px;
  border-radius: 28px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.highlight-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.06);
  background: #ffffff;
}
.highlight-card:hover::before {
  transform: scaleX(1);
}
.primary-card {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.primary-card::before {
  display: none;
}
.primary-card:hover {
  background: var(--primary-container);
}
.card-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: inline-block;
  background: #ffffff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.highlight-card:not(.primary-card) .card-icon {
  color: var(--primary);
}
.primary-card .card-icon {
  color: var(--primary);
  background: #ffffff;
}
.highlight-card p.highlight-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
}
.highlight-card:not(.primary-card) p.highlight-label {
  color: var(--secondary);
}
.highlight-card h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .about-page-grid {
    grid-template-columns: 1fr;
    gap: 80px;
  }
  .modern-tags {
    left: 0;
    top: -20px;
  }
  .modern-experience-card {
    right: 0;
    bottom: -20px;
  }
  .about-page-photo {
    transform: none;
  }
  .about-page-photo:hover {
    transform: none;
  }
}

.dark .modern-hero,
.dark .modern-about,
.dark .modern-highlight {
  background: #0b1220;
  border-color: #1f2937;
}
.dark .page-breadcrumb {
  background: #1f2937;
  color: #e2e8f0;
  box-shadow: none;
}
.dark .page-breadcrumb a { color: var(--primary-fixed); }
.dark .modern-list li,
.dark .modern-tags .pill {
  background: #111827;
  border-color: #1f2937;
}
.dark .modern-experience-card {
  background: rgba(17, 24, 39, 0.85);
  border-color: #374151;
}
.dark .highlight-card:not(.primary-card) {
  background: #111827;
  border-color: #1f2937;
}
.dark .highlight-card:hover { background: #1f2937; }
.dark .highlight-card:not(.primary-card) .card-icon {
  background: #1f2937;
}

/* ================================= */
/* IMPORTED RENDER FROM _service.scss*/
/* ================================= */
.alert-card { background: rgba(220, 38, 38, 0.05); border: 1px solid rgba(220, 38, 38, 0.2); border-left: 4px solid #dc2626; padding: 24px; border-radius: var(--radius-lg); margin-bottom: 40px; display: flex; gap: 16px; align-items: flex-start; box-shadow: 0 12px 24px rgba(220, 38, 38, 0.04); }
.alert-card .md-icon { color: #dc2626; font-size: 32px; }
.alert-card p { margin: 0; color: #7f1d1d; line-height: 1.5; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.step-card { background: var(--surface); border: 1px solid #e2e8f0; padding: 32px 24px; border-radius: var(--radius-xl); position: relative; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; }
.step-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08); background: #ffffff; border-color: var(--primary); }
.step-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.step-card:hover::before { transform: scaleX(1); }
.step-number { position: absolute; top: 16px; right: 16px; font-size: 64px; font-weight: 900; color: rgba(35, 87, 135, 0.04); line-height: 1; pointer-events: none; transition: color 0.4s ease; }
.step-card:hover .step-number { color: rgba(35, 87, 135, 0.08); }
.step-card h4 { font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.step-card p { font-size: 14px; color: var(--on-surface-variant); position: relative; z-index: 1; line-height: 1.6; }
.faq-section { padding: 80px 0; background: #ffffff; border-top: 1px solid #f1f5f9; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.faq-item { padding: 32px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid #f1f5f9; transition: all 0.3s ease; }
.faq-item:hover { box-shadow: 0 12px 24px rgba(0,0,0,0.04); }
.faq-item h5 { font-size: 18px; font-weight: 800; margin-bottom: 16px; color: var(--on-surface); }
.faq-item p { color: var(--on-surface-variant); font-size: 15px; line-height: 1.7; }
.dark .alert-card { background: rgba(220, 38, 38, 0.1); color: #fca5a5; }
.dark .alert-card p { color: #fca5a5; }
.dark .step-card { background: #111827; border-color: #1f2937; }
.dark .step-card:hover { border-color: var(--primary); background: #1f2937; }
.dark .step-number { color: rgba(255,255,255,0.03); }
.dark .step-card:hover .step-number { color: rgba(255,255,255,0.06); }
.dark .faq-section { background: #0b1220; border-color: #1f2937; }
.dark .faq-item { background: #111827; border-color: #1f2937; }
.dark .faq-item h5 { color: #f8fafc; }

/* ================================= */
/* IMPORTED RENDER FROM _contact.scss*/
/* ================================= */
.contact-section { min-height: calc(100vh - 120px); display: flex; align-items: center; padding: 40px 0; background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: stretch; }
.contact-info-wrapper { display: flex; flex-direction: column; gap: 20px; }
.contact-card { display: flex; align-items: flex-start; gap: 16px; background: #ffffff; padding: 16px 24px; border-radius: var(--radius-lg); border: 1px solid #f1f5f9; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.contact-card:hover { box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06); transform: translateX(8px); border-color: var(--primary); }
.contact-card .md-icon { background: rgba(35, 87, 135, 0.08); color: var(--primary); width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 16px; flex-shrink: 0; font-size: 28px; }
.contact-card h5 { font-size: 14px; font-weight: 800; color: var(--on-surface-variant); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.contact-card p, .contact-card a { font-size: 16px; font-weight: 600; color: var(--on-surface); line-height: 1.5; transition: color 0.3s ease; }
.contact-card a:hover { color: var(--primary); }
.map-container { border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08); border: 8px solid #ffffff; height: 260px; flex: 1; margin-top: 8px; position: relative; }
.map-container iframe { width: 100%; height: 100%; border: none; filter: grayscale(0.2) contrast(1.1); transition: filter 0.5s ease; }
.map-container:hover iframe { filter: grayscale(0) contrast(1); }
.contact-form-wrapper { background: #ffffff; padding: 40px 48px; border-radius: 32px; box-shadow: 0 32px 64px rgba(15, 23, 42, 0.06); border: 1px solid #f1f5f9; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.contact-form-wrapper::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.contact-form-wrapper h3 { font-size: 28px; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.contact-form-wrapper > p { color: var(--on-surface-variant); font-size: 14px; margin-bottom: 24px; line-height: 1.5; }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--on-surface); margin-bottom: 6px; }
.form-label span { color: #dc2626; }
.form-control { width: 100%; padding: 12px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; font-family: inherit; font-size: 14px; color: var(--on-surface); transition: all 0.3s ease; }
.form-control::placeholder { color: #94a3b8; }
.form-control:focus { outline: none; border-color: var(--primary); background: #ffffff; box-shadow: 0 0 0 4px rgba(35, 87, 135, 0.1); }
textarea.form-control { resize: vertical; min-height: 100px; line-height: 1.6; }
.btn-submit { width: 100%; justify-content: center; padding: 18px; font-size: 16px; margin-top: 16px; box-shadow: 0 16px 32px rgba(35, 87, 135, 0.25); }
.btn-submit:hover { box-shadow: 0 20px 40px rgba(35, 87, 135, 0.35); }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; gap: 64px; } .map-container { height: 400px; } }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; gap: 0; } .contact-form-wrapper { padding: 40px 24px; border-radius: 24px; } }
.dark .contact-section { background: #0b1220; }
.dark .contact-card, .dark .contact-form-wrapper { background: #111827; border-color: #1f2937; }
.dark .contact-card p, .dark .contact-card a { color: #e2e8f0; }
.dark .contact-card:hover { border-color: var(--primary); background: #1f2937; transform: translateX(8px); }
.dark .map-container { border-color: #1f2937; }
.dark .form-control { background: #1f2937; border-color: #374151; color: #f8fafc; }
.dark .form-control:focus { background: #111827; border-color: var(--primary); }
.dark .form-label { color: #94a3b8; }

/* ================================= */
/* PRODUCT PAGE RENDER (_product.scss) */
/* ================================= */
.product-page-wrapper { padding: 40px 0 100px 0; background: #ffffff; }
.product-page-header { max-width: 900px; margin-bottom: 64px; }
.active-crumb { color: var(--primary); font-weight: 800; }
.lead-text p { font-size: 16px; color: var(--on-surface-variant); line-height: 1.8; margin-bottom: 16px; font-weight: 400; }
.lead-text p:last-child { margin-bottom: 0; }

.models-showcase { margin-bottom: 80px; }
.models-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.model-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03); color: inherit; }
.model-card .download-btn { pointer-events: none; }
.model-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 20px 48px rgba(35, 87, 135, 0.1); }
.model-img-wrapper { height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; position: relative; width: 100%; border-radius: 8px; overflow: hidden; }
.model-img-wrapper img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.08)); transition: transform 0.3s ease; position: relative; z-index: 1; }
.model-img-wrapper:hover img { transform: scale(1.05); }
.zoom-indicator { position: absolute; inset: 0; background: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: all 0.3s ease; z-index: 2; border-radius: 8px; backdrop-filter: blur(2px); }
.zoom-indicator .material-symbols-outlined { font-size: 36px; color: var(--primary); transform: scale(0.5); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.model-img-wrapper:hover .zoom-indicator { opacity: 1; }
.model-img-wrapper:hover .zoom-indicator .material-symbols-outlined { transform: scale(1); }
.model-info h3 { font-size: 18px; font-weight: 800; color: var(--on-surface); margin-bottom: 20px; transition: color 0.3s ease; }
.model-card:hover .model-info h3 { color: var(--primary); }
.download-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--primary); background: rgba(35, 87, 135, 0.1); padding: 12px 20px; border-radius: 12px; transition: all 0.3s ease; text-decoration: none; border: 1px solid transparent; width: 100%; justify-content: center; }
.download-btn:hover { background: var(--primary); color: #ffffff; box-shadow: 0 8px 16px rgba(35, 87, 135, 0.2); transform: translateY(-2px); }
.download-btn .material-symbols-outlined { font-size: 18px; }

.product-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: flex-start; }
.info-panel { background: #f8fafc; padding: 48px; border-radius: 32px; border: 1px solid #e2e8f0; display: flex; flex-direction: column; }
.panel-title { font-size: 28px; font-weight: 900; color: var(--on-surface); margin-bottom: 24px; }
.panel-desc { font-size: 15px; color: var(--on-surface-variant); line-height: 1.7; margin-bottom: 32px; }
.panel-subtitle { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.tech-list { padding-left: 0; }
.tech-list li { list-style: none; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 15px; color: var(--on-surface-variant); font-weight: 600; line-height: 1.5; }
.tech-list li .material-symbols-outlined { color: #25D366; font-size: 20px; margin-top: 2px; }

.highlighted-panel { background: var(--primary); border: none; box-shadow: 0 24px 64px rgba(35, 87, 135, 0.2); }
.text-white { color: #ffffff !important; }
.tags-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.use-case-tag { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); color: #ffffff; padding: 10px 18px; border-radius: 12px; font-size: 13px; font-weight: 700; backdrop-filter: blur(8px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: default; }
.use-case-tag:hover { background: #ffffff; color: var(--primary); transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }

@media (max-width: 1024px) { .product-info-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .info-panel { padding: 32px 24px; } .models-grid { grid-template-columns: 1fr 1fr; } .use-case-tag { font-size: 12px; padding: 8px 14px; } }

.dark .product-page-wrapper { background: var(--surface); }
.dark .model-card { background: #111827; border-color: #1f2937; }
.dark .model-card:hover { border-color: var(--primary); background: #1f2937; }
.dark .info-panel { background: #111827; border-color: #1f2937; }
.dark .highlighted-panel { background: var(--primary); box-shadow: none; border: 1px solid #1f2937; }
.dark .tech-list li { color: #e2e8f0; }

/* Accordion Layout */
.modern-accordion { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; margin-bottom: 80px; }
.accordion-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; transition: box-shadow 0.3s ease; }
.accordion-header { padding: 18px 24px; cursor: pointer; display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: 16px; color: var(--on-surface); user-select: none; list-style: none; transition: background 0.3s ease; }
.accordion-header::-webkit-details-marker { display: none; }
.accordion-header:hover { background: #f8fafc; }
.accordion-icon { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); color: var(--primary); font-size: 24px; }
details[open] .accordion-icon { transform: rotate(45deg); }
details[open] .accordion-header { border-bottom: 1px solid #e2e8f0; background: #f8fafc; color: var(--primary); }
.accordion-body { padding: 24px; background: #ffffff; line-height: 1.7; color: var(--on-surface-variant); font-size: 15px; }
.accordion-tag { background: #f1f5f9; color: var(--on-surface); border: 1px solid #e2e8f0; }
.accordion-tag:hover { background: var(--primary); color: #ffffff; }
.accordion-list li { color: var(--on-surface); }

.dark .accordion-item { background: #111827; border-color: #1f2937; }
.dark .accordion-header { color: #e2e8f0; }
.dark .accordion-header:hover, .dark details[open] .accordion-header { background: #1f2937; border-color: #374151; }
.dark .accordion-body { background: #111827; color: #94a3b8; }
.dark .accordion-tag { background: #1f2937; color: #e2e8f0; border-color: #374151; }

/* Eaton UPS & product listing cards */
.dark .ups-card {
  background: #111827;
  border-color: #1f2937;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dark .ups-card:hover {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.dark .ups-name { color: #f8fafc; }
.dark .ups-desc { color: #cbd5e1; }
.dark .ups-type { color: #94a3b8; }

.dark .page-breadcrumb-bordered {
  border-bottom-color: #334155;
}

.dark .active-crumb { color: #93c5fd; }
.dark .content-title,
.dark .modern-title { color: #f8fafc; }
.dark .lead-text p { color: #cbd5e1; }

.dark .eaton-panel,
.dark .eaton-spec-card {
  background: #111827;
  border-color: #1f2937;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dark .eaton-panel h1,
.dark .eaton-panel .modern-title,
.dark .eaton-spec-card h3 {
  color: #f8fafc;
}

.dark .eaton-panel p,
.dark .eaton-spec-card p {
  color: #cbd5e1;
}

.dark .eaton-download-link {
  background: #1f2937;
  border-color: #374151;
  color: #f8fafc;
}

.dark .eaton-download-link:hover {
  background: #334155;
  border-color: #475569;
}

.detail-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); gap: 40px; align-items: flex-start; margin-bottom: 100px; }
.detail-content,
.detail-sidebar {
  min-width: 0;
}
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; gap: 32px; } }

/* Lightbox Modal CSS */
.custom-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-lightbox.active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100002;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close .material-symbols-outlined {
  font-size: 28px;
}

.lightbox-close:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: scale(1.05);
}

.lightbox-content {
  position: relative;
  z-index: 100001;
  width: min(920px, 96vw);
  max-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
  background: #ffffff;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-lightbox.active .lightbox-img {
  transform: scale(1);
}

@media (max-width: 768px) {
  .custom-lightbox {
    padding: 16px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .lightbox-content,
  .lightbox-img {
    max-height: calc(100vh - 72px);
  }
}

/* ================================= */
/* RESPONSIVE STYLES                 */
/* ================================= */

/* Custom CSS Hamburger Menu */
.hamburger-btn {
  display: none !important;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.hamburger-lines {
  width: 26px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-origin: center;
}

.hamburger-lines .line {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 4px;
  background: var(--primary);
  transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out;
  transform-origin: left center;
}

.mobile-menu-btn.is-active .line1 {
  transform: rotate(45deg);
}
.mobile-menu-btn.is-active .line2 {
  opacity: 0;
}
.mobile-menu-btn.is-active .line3 {
  transform: rotate(-45deg);
}

.dark .hamburger-lines .line {
  background: #ffffff;
}

/* Tablet & Mobile Menu Styles (max-width: 1024px) */
@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: flex !important;
  }
  
  .nav-actions > button:not(.mobile-menu-btn) {
    display: none !important;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 80px 32px 32px 32px;
    gap: 16px;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 9999; /* Highest priority to cover everything */
    border-top: none;
    align-items: flex-start;
  }

  .mobile-close-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1a1c1e;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }

  .nav-links.nav-active {
    pointer-events: auto;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  
  .dark .nav-links {
    background: rgba(15, 23, 42, 0.85);
  }
  
  .dark .mobile-close-btn {
    color: #ffffff;
  }

  .nav-links a {
    font-size: 18px;
    width: 100%;
    padding: 8px 0;
    border-bottom: none;
    color: #000000;
    font-weight: 500;
    text-align: start;
  }
  
  .dark .nav-links a {
    border-bottom: none;
    color: #ffffff;
  }

  .nav-links a::after {
    display: none;
  }

  .dropdown-wrapper {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0;
    height: auto;
    border-bottom: 1px solid #f1f5f9;
  }
  
  .dark .dropdown-wrapper {
    border-bottom: 1px solid #1e293b;
  }

  .nav-dropdown {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 16px;
    padding-inline-start: 16px;
    min-width: 100%;
    display: none;
    background: transparent;
    flex-direction: column;
    width: 100%;
  }

  /* Always show dropdown links on mobile menu when active */
  .nav-links.nav-active .dropdown-menu {
    display: flex;
  }

  .dropdown-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    padding-inline-start: 16px;
    margin-left: 0;
    background: transparent;
  }
  
  .dropdown-submenu-wrapper {
    width: 100%;
  }
  
  .dropdown-wrapper:hover .dropdown-menu,
  .dropdown-submenu-wrapper:hover .dropdown-submenu {
    pointer-events: auto;
  }
  
  .dropdown-menu a {
    padding: 12px 16px !important;
  }
}

/* Hide mobile menu button on desktop */
@media (min-width: 1025px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

/* Base Responsive Adjustments (max-width: 768px) */
@media (max-width: 768px) {
  .page-main {
    padding-top: 100px;
  }

  .hero {
    min-height: 500px;
  }

  .hero-slider {
    inset: 12px;
    border-radius: 16px;
  }
  
  .hero-content {
    padding: 0 16px;
    max-width: 100%;
  }
  
  .hero-title {
    font-size: clamp(32px, 8vw, 44px);
  }
  
  .hero-text {
    font-size: 15px;
  }
  
  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .products-header p {
    text-align: start;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer-bottom-notes {
    justify-content: center;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .section-title, .about-title, .panel-title {
    font-size: 26px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .product-media img {
    max-height: 140px;
  }
  
  .service-card {
    padding: 24px;
  }

  .info-panel {
    padding: 24px 20px;
  }
  
  .about-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: -30px;
    z-index: 2;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
  }

  .fab {
    bottom: 16px;
    right: 16px;
  }
}

/* ================================= */
/* COMPREHENSIVE DARK MODE PATCH     */
/* ================================= */

.dark {
  --surface: #0b1220;
  --surface-container-low: #0f172a;
  --surface-container-highest: #1e293b;
  --surface-variant: #1e293b;
  --on-surface: #f8fafc;
  --on-surface-variant: #cbd5e1;
  --outline-variant: #334155;
}

.dark body { background: var(--surface); color: var(--on-surface); }

.dark .navbar,
.dark .hero,
.dark .products,
.dark .services,
.dark .about {
  background: #0f172a;
  color: #e2e8f0;
}

.dark .top-bar {
  background: #0b1220;
}

.dark .hero-media {
  background: radial-gradient(circle at top, rgba(35, 87, 135, 0.2), transparent 55%),
    linear-gradient(120deg, #0b1220 0%, #0f172a 100%);
}

.dark .hero-slider {
  background: #0f172a;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.dark .hero-overlay {
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 30%, rgba(15, 23, 42, 0.2) 100%);
}

html[dir="rtl"].dark .hero-overlay {
  background: linear-gradient(to left, rgba(15, 23, 42, 0.95) 30%, rgba(15, 23, 42, 0.2) 100%);
}

.dark .hero-text {
  color: #94a3b8;
}

.dark .product-card,
.dark .service-card {
  background: #111827;
  border-color: #1f2937;
}

/* Buttons & Links */
.dark .btn-outline { background: transparent; border-color: #334155; color: #cbd5e1; }
.dark .btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.dark .nav-links a { color: #cbd5e1; }
.dark .nav-dropdown { color: #cbd5e1; }
.dark .nav-links a:hover, .dark .nav-dropdown:hover, .dark .nav-links a.active { color: #60a5fa; }
.dark .nav-links a.active::after { background: #60a5fa; }

/* Navbar Dropdowns */
.dark .dropdown-menu, .dark .dropdown-submenu { background: #1e293b; border-color: #334155; }
.dark .dropdown-wrapper:hover .dropdown-menu { box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4); }
.dark .dropdown-menu a { color: #cbd5e1 !important; }
.dark .dropdown-menu a:hover { background: #334155; color: #60a5fa !important; }

/* Product Grid Adjustments */
.dark .card-link { border-color: #334155; color: #60a5fa; }
.dark .card-link:hover { background: #60a5fa; color: #0b1220; border-color: #60a5fa; }
.dark .product-tag { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.dark .product-body h4 { color: #f8fafc; }
.dark .product-media { background: #ffffff; } /* Keep images on white for best contrast unless they are transparent pngs */

/* Partner Logos */
.dark .partner-logos { background: #0b1220; border-top-color: #1e293b; }

/* Footer */
.dark .footer { background: #0b1220; }
.dark .footer-title, .dark .footer-links h6, .dark .footer-contact h6 { color: #93c5fd; }
.dark .footer-bottom, .dark .footer-links a { color: #94a3b8; }
.dark .footer-links a:hover { color: #60a5fa; }

/* Icon buttons (Header elements) */
.dark .icon-btn { color: #cbd5e1; }
.dark .icon-btn:hover { background: #334155; }

/* Product Page Detail */
.dark .panel-title, .dark .model-info h3 { color: #f8fafc; }
.dark .panel-desc { color: #cbd5e1; }
.dark .download-btn { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.dark .download-btn:hover { background: #60a5fa; color: #0f172a; }

/* Contact Forms */
.dark .contact-form-wrapper h3 { color: #f8fafc; }
.dark .form-control { background: #1e293b; border-color: #334155; color: #f8fafc; }
.dark .form-control:focus { background: #0f172a; border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.1); }

/* ================================= */
/* RTL SUPPORT                       */
/* ================================= */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body {
  direction: rtl;
  font-family: "Noto Sans Arabic", "Inter", sans-serif;
  text-align: right;
}

/* Header: same physical layout as TR/EN (logo left, actions right) */
html[dir="rtl"] .top-bar .container,
html[dir="rtl"] .navbar .container,
html[dir="rtl"] .nav-links {
  direction: ltr;
}

html[dir="rtl"] .nav-links a,
html[dir="rtl"] .dropdown-menu,
html[dir="rtl"] .dropdown-submenu,
html[dir="rtl"] .dropdown-menu a,
html[dir="rtl"] .has-submenu {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .nav-links a::after {
  transform-origin: left;
}

html[dir="rtl"] .nav-links a:hover::after,
html[dir="rtl"] .nav-links a.active::after {
  transform-origin: right;
}

html[dir="rtl"] .hero-overlay {
  background: linear-gradient(to left, rgba(255, 255, 255, 0.96) 30%, rgba(255, 255, 255, 0) 100%);
}

html[dir="rtl"] .hero > .container {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

html[dir="rtl"] .hero-content {
  text-align: right;
  margin-inline-start: auto;
  margin-inline-end: 0;
}

html[dir="rtl"] .hero-actions {
  justify-content: flex-start;
}

html[dir="rtl"] .hero-actions .btn .material-symbols-outlined,
html[dir="rtl"] .btn-primary .material-symbols-outlined {
  transform: rotate(180deg);
}

html[dir="rtl"] .products-header p {
  text-align: start;
}

html[dir="rtl"] .section-title,
html[dir="rtl"] .about-title,
html[dir="rtl"] .about-content,
html[dir="rtl"] .section-kicker,
html[dir="rtl"] .services-header,
html[dir="rtl"] .content-title,
html[dir="rtl"] .modern-title,
html[dir="rtl"] .panel-title,
html[dir="rtl"] .lead-text,
html[dir="rtl"] .content-body,
html[dir="rtl"] .modern-content,
html[dir="rtl"] .product-page-header,
html[dir="rtl"] .alert-card,
html[dir="rtl"] .step-card,
html[dir="rtl"] .faq-item,
html[dir="rtl"] .contact-card,
html[dir="rtl"] .contact-form-wrapper {
  text-align: right;
}

html[dir="rtl"] .product-body p {
  text-align: right;
}

html[dir="rtl"] .about-grid,
html[dir="rtl"] .about-page-grid,
html[dir="rtl"] .contact-grid,
html[dir="rtl"] .product-info-grid,
html[dir="rtl"] .detail-layout,
html[dir="rtl"] .highlight-grid,
html[dir="rtl"] .modern-cards-grid {
  direction: rtl;
}

html[dir="rtl"] .modern-experience-card {
  right: auto;
  left: -30px;
}

html[dir="rtl"] .modern-tags {
  left: auto;
  right: -30px;
}

html[dir="rtl"] .media-decoration-glow {
  left: auto;
  right: -10%;
}

html[dir="rtl"] .modern-list li:hover {
  transform: translateX(-8px);
}

html[dir="rtl"] .contact-card:hover,
html[dir="rtl"] .dark .contact-card:hover {
  transform: translateX(-8px);
}

html[dir="rtl"] .alert-card {
  border-left: none;
  border-right: 4px solid #dc2626;
}

html[dir="rtl"] .step-card::before {
  transform-origin: right;
}

html[dir="rtl"] .step-number {
  right: auto;
  left: 16px;
}

html[dir="rtl"] .steps-grid,
html[dir="rtl"] .faq-grid {
  direction: rtl;
}

html[dir="rtl"] .footer-bottom {
  direction: rtl;
}

html[dir="rtl"] .product-page-actions {
  text-align: right;
}

html[dir="rtl"] .accordion-header {
  text-align: right;
}

html[dir="rtl"] .search-modal-header {
  direction: rtl;
}

html[dir="rtl"] .nav-sep,
html[dir="rtl"] .card-link .material-symbols-outlined {
  transform: rotate(180deg) !important;
}

html[dir="rtl"] .contact-brand-row {
  direction: ltr;
}

html[dir="rtl"] .modern-list li {
  direction: rtl;
}

@media (max-width: 1024px) {
  html[dir="rtl"] .nav-links {
    align-items: stretch;
  }

  html[dir="rtl"] .nav-links a {
    text-align: right;
    direction: rtl;
  }

  html[dir="rtl"] .nav-dropdown {
    direction: ltr;
    justify-content: flex-start;
    gap: 6px;
  }

  html[dir="rtl"] .dropdown-wrapper {
    align-items: stretch;
  }

  html[dir="rtl"] .modern-tags {
    right: 0;
  }

  html[dir="rtl"] .modern-experience-card {
    left: 0;
  }
}

/* Live Search Modal Styles */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 20px 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-modal-overlay.is-active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.search-modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(-20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.search-modal-overlay.is-active .search-modal-container {
  transform: translateY(0) scale(1);
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 16px;
  transition: border-color 0.2s ease;
}

.search-input-wrapper:focus-within {
  border-color: #235787;
}

.search-input-icon {
  color: #64748b;
  font-size: 24px;
}

.search-input-wrapper input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
}

.search-clear-btn, .search-modal-close {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.search-clear-btn:hover, .search-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.search-modal-results {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.search-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
}

.search-empty-state .material-symbols-outlined {
  font-size: 48px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: #f1f5f9;
}

.search-result-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  object-fit: contain;
  padding: 4px;
}

.search-result-info {
  flex: 1;
}

.search-result-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.search-result-meta {
  font-size: 0.8rem;
  color: #64748b;
}

[data-theme="dark"] .search-modal-container {
  background: #1e293b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .search-modal-header {
  background: #0f172a;
  border-color: #334155;
}

[data-theme="dark"] .search-input-wrapper {
  background: #1e293b;
  border-color: #475569;
}

[data-theme="dark"] .search-input-wrapper input {
  color: #f8fafc;
}

[data-theme="dark"] .search-result-title {
  color: #f8fafc;
}

[data-theme="dark"] .search-result-item:hover {
  background: #334155;
}



/* Quote Modal Styles */
.product-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quote-trigger .material-symbols-outlined {
  font-size: 20px;
}

body.modal-open,
body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

.quote-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.quote-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.quote-modal-container {
  width: min(720px, 100%);
  max-height: min(90vh, 820px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
}

.quote-modal-overlay.is-active .quote-modal-container {
  transform: translateY(0) scale(1);
}

.quote-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.quote-modal-header h3 {
  margin-top: 12px;
  color: var(--primary);
  font-size: 28px;
  line-height: 1.2;
}

.quote-modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.quote-modal-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.quote-form {
  padding: 28px 32px 32px;
}

.quote-form-status {
  display: none;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
}

.quote-form-status.is-success,
.quote-form-status.is-error {
  display: block;
}

.quote-form-status.is-success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
}

.quote-form-status.is-error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.dark .quote-modal-container {
  background: #111827;
  border: 1px solid #1f2937;
}

.dark .quote-modal-header {
  border-color: #1f2937;
}

.dark .quote-modal-close {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

@media (max-width: 640px) {
  .quote-modal-overlay {
    align-items: flex-start;
    padding: 16px;
  }

  .quote-modal-header,
  .quote-form {
    padding-left: 20px;
    padding-right: 20px;
  }

  .quote-modal-header h3 {
    font-size: 24px;
  }
}

/* ==========================================================================
   MOBILE HEADER & LOGO PERFECT FIX
   ========================================================================== */
@media (max-width: 992px) {
  .top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 32px !important;
    z-index: 60 !important;
    padding: 6px 0 !important;
  }

  .top-bar .container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 16px !important;
  }

  .top-bar span {
    font-size: 10px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 75% !important;
  }

  .navbar {
    position: fixed !important;
    top: 32px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
    padding: 6px 0 !important;
  }

  .navbar .container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 16px !important;
  }

  .logo {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .logo-image {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
}

