/* =========================================
   Vomera - Dark Premium Theme
   ========================================= */

:root {
  /* Colors - Light Premium Theme Default */
  --bg-dark: #F9FAFB;
  --bg-card: #FFFFFF;
  --bg-input: #F3F4F6;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --accent-primary: #7C3AED;
  --accent-secondary: #A855F7;
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --accent-glow: 0 0 25px rgba(124, 58, 237, 0.2);
  --border-color: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.84);
  --glass-border: rgba(0, 0, 0, 0.12);

  /* Icon System Refinement */
  --icon-size: 24px;
  --icon-bg: rgba(139, 92, 246, 0.1);
  --icon-color: var(--accent-primary);
  --icon-border: rgba(139, 92, 246, 0.2);

  /* Typography - Professional & Precision */
  --font-heading: 'IBM Plex Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Fira Code', monospace;

  /* Type scale */
  --text-display: clamp(3.5rem, 8vw, 6rem);
  --text-h1: clamp(2.5rem, 5vw, 4rem);
  --text-h2: clamp(2rem, 4vw, 3rem);
  --text-h3: clamp(1.5rem, 3vw, 2.25rem);
  --text-h4: 1.25rem;
  --text-h5: 1.125rem;
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-body-sm: 0.875rem;
  --text-caption: 0.75rem;
  --text-xs: 0.7rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Layout */
  --container-width: 1280px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  --footer-bg: #F3F4F6;
  --section-bg-alt: #F8FAFC;
}

.header,
.nav-link,
.btn,
.feature-card,
.footer-col h4,
p,
h1,
h2,
h3,
h4,
.logo img,
.glass-card,
.submenu {
  /* Removed var(--theme-transition) */
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  background-color: var(--bg-dark);
  background-image: radial-gradient(ellipse at top center, rgba(124, 58, 237, 0.08) 0%, rgba(249, 250, 251, 1) 45%, #ffffff 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Snap sections */
section {
  scroll-snap-align: center;
  scroll-margin-top: var(--header-height);
  min-height: 100vh;
  position: relative;
}

.hero,
.site-footer {
  scroll-snap-align: center;
  scroll-margin-top: var(--header-height);
}

.hero {
  min-height: 100vh;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.01) 0px, transparent 1px, transparent 4px);
  z-index: 9999;
  opacity: 0.03;
}

main {
  flex: 1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

.u-hidden {
  display: none !important;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Typography Scale ─────────────────────────────────────────────── */

/* Headings use IBM Plex Sans */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

/* Display — hero / priority heading */
.text-display {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: 200;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

/* H1 — primary page heading */
h1 {
  font-size: var(--text-h1);
  font-weight: 300;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* H2 — section heading */
h2 {
  font-size: var(--text-h2);
  font-weight: 300;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* H3 — sub-section heading */
h3 {
  font-size: var(--text-h3);
  font-weight: 400;
}

/* H4 — minor heading */
h4 {
  font-size: var(--text-h4);
  font-weight: 500;
}

/* H5 — small heading / Sub 4 */
h5 {
  font-size: var(--text-h5);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ──────────────────────────────────────────────────────────────────
   Body Text & Variants
   ────────────────────────────────────────────────────────────────── */

/* Body / Paragraph 01 — uses Inter */
p {
  font-family: var(--font-main);
  font-size: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

/* Body Large — lead paragraph / Sub 5 */
.text-body-lg,
.subtitle,
.lead,
.lead-text {
  font-family: var(--font-main);
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Body Small / Paragraph 02 — secondary text */
.text-body-sm,
.secondary-text,
small {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
}

/* Caption / Paragraph 03 — fine print, labels */
.caption,
.fine-print,
figcaption {
  font-size: var(--text-caption);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* Paragraph 04 - Special small text */
.text-xs {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Body — uses Inter */
p {
  font-family: var(--font-main);
  font-size: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

/* Body Large — lead paragraph */
.text-body-lg,
.subtitle,
.lead {
  font-size: var(--text-body-lg);
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Body Small — secondary text */
.text-body-sm,
small {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
}

/* Caption — fine print, labels */
.caption,
figcaption {
  font-size: var(--text-caption);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(2.5rem, 6vw, 4.5rem);
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient {
  background: linear-gradient(135deg, #6d28d9, #c026d3);
  /* darker vibrant purples for better contrast */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  font-size: 0.8125rem;
  gap: 0.4rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(107, 63, 152, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
  animation: spark-pulse 2s infinite;
}

.btn-outline {
  background: transparent;
  border-color: var(--accent-primary);
  color: var(--text-primary);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--accent-secondary);
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.25);
}

/* QF-02: scoped modal override — .btn-outline inside dark .modal-content needs light text */
.modal-content .btn-outline {
  color: #f1f5f9;
  border-color: rgba(139, 92, 246, 0.6);
}

.modal-content .btn-outline:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--accent-secondary);
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.25);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* Custom Modals */
.confirm-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.confirm-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.confirm-modal__content {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-modal.active .confirm-modal__content {
  transform: scale(1);
}

.confirm-modal__content h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.confirm-modal__content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.confirm-modal__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.success-state {
  text-align: center;
  padding: 2rem 0;
}

.success-state h3 {
  color: #10b981;
  font-size: 1.5rem;
  margin: 1rem 0;
}

.success-state svg {
  color: #10b981;
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
}


/* ── Header Actions ───────────────────────────────────── */
.btn-cart {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 0.45rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
  position: relative;
}

.btn-cart:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-primary);
  transform: scale(1.08);
}

.btn-cart svg {
  width: 20px;
  height: 20px;
  display: block;
}

.btn-cart {
  color: #1a1a2e;
}

.btn-cart:hover {
  color: var(--accent-primary);
  background: rgba(124, 58, 237, 0.08);
}

/* Theme Toggle Switch */
.btn-theme {
  --switch-width: 46px;
  --switch-height: 24px;
  --knob-size: 18px;
  width: var(--switch-width);
  height: var(--switch-height);
  padding: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.btn-theme:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-primary);
}

.btn-theme::before {
  content: '';
  position: absolute;
  left: 3px;
  width: var(--knob-size);
  height: var(--knob-size);
  border-radius: 50%;
  background: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* Hide the SVG injected by JS */
.btn-theme svg {
  display: none !important;
}

/* Knob movement and background change */
.btn-theme {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn-theme::before {
  left: calc(var(--switch-width) - var(--knob-size) - 4px);
}

/* Optional: Add small icons inside the switch */
.btn-theme::after {
  content: '🌙';
  position: absolute;
  right: 6px;
  font-size: 10px;
  opacity: 0.6;
}

.btn-theme::after {
  content: '☀️';
  left: 6px;
  right: auto;
  color: white;
}

/* === Utility Classes — replaces all inline styles === */

/* Hidden by JS (display toggled at runtime) */
.u-hidden {
  display: none !important;
}

/* Features hero section (index.html section-3) */
.section-features-hero {
  min-height: 100vh;
  background-image: url('https://images.unsplash.com/photo-1723110994499-df46435aa4b3?q=80&w=2079&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Staggered animation delays */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

/* Timeline label (about.html) */
.timeline-label {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* City label caps (about.html) */
.city-name-label {
  font-size: 1.2rem;
  display: block;
}

/* Contact info tag (contact.html) */
.contact-tag-label {
  font-size: 0.7rem;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-secondary);
}

/* Core engineering values intro paragraph (about.html) */
.values-intro-text {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  max-width: 800px;
}

/* Cart badge */
.cart-badge-mini {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent-primary);
  /* purple */
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1;
}

#cart-clear {
  background: transparent;
  border: none;
  color: var(--text-secondary); /* QF-01: was rgba(255,255,255,0.4) — illegible on glass-bg */
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

#cart-clear:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.section {
  padding: 8rem 0;
  /* Restored spacious padding */
  min-height: 100vh;
  position: relative;
}

.section-tight {
  padding: 6rem 0;
  min-height: 60vh;
  position: relative;
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.flex {
  display: flex;
  gap: var(--space-md);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background 0.4s ease, border-bottom 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.header .nav {
  justify-self: center;
}

.header .header-actions {
  justify-self: end;
}

@media (max-width: 1100px) {
  .header .container {
    display: flex;
    justify-content: space-between;
  }
}

.header.scrolled {
  background: #FFFFFF;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Nav link color transitions to black when header is scrolled */
.header.scrolled .nav-link {
  color: #0F172A !important;
  transition: color 0.4s ease;
}

.header.scrolled .nav-link:hover {
  color: var(--accent-primary) !important;
}

.header.scrolled .nav-link.active {
  color: var(--accent-primary) !important;
}

/* Logo and cart icon also need to adapt on scroll */
.header.scrolled .btn-cart {
  color: #0F172A;
}

.header.scrolled .btn-cart svg {
  color: #0F172A;
}

.header.scrolled .btn-mobile-toggle span {
  background: #0F172A;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
}

.logo img {
  height: 34px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

/* Navigation & Submenu */
.nav-list {
  list-style: none;
  display: flex;
  gap: 2.2rem;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  opacity: 1;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.4s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  color: #1a1a2e;
}

/* Ensure purple hover in all themes */
.nav-link:hover {
  opacity: 1 !important;
  color: var(--accent-primary) !important;
}

.nav-link:hover {
  color: var(--accent-primary) !important;
}

.nav-link.active {
  color: var(--accent-primary);
  opacity: 1;
  font-weight: 600;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* Dropdown Submenu */
.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  min-width: 220px;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  z-index: 100;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.submenu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.submenu-link {
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.submenu-link:hover {
  background: rgba(124, 58, 237, 0.08);
  color: var(--accent-primary);
  padding-left: 1.25rem;
}

/* Nested Dropdowns */
.nested-dropdown {
  position: relative;
}

.nested-dropdown-toggle {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

.nested-submenu {
  position: absolute;
  top: -8px;
  /* Offset to align with parent padding */
  left: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  min-width: 220px;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nested-submenu .submenu-link {
  font-size: 0.85rem;
  padding: 0.75rem 1.1rem;
  color: var(--text-secondary);
}

.nested-submenu .submenu-link:hover {
  color: var(--accent-primary);
}

.nested-submenu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20px;
  width: 20px;
  height: 100%;
  background: transparent;
}

.nested-dropdown:hover .nested-submenu {
  opacity: 1;
  visibility: visible;
}

.dropdown-arrow {
  display: inline-block;
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
  margin-left: 6px;
}

.dropdown-arrow.right {
  margin-left: 12px;
  transform: rotate(-90deg);
  color: var(--accent-primary);
  opacity: 0.8;
}

.nested-dropdown:hover>.submenu-link .dropdown-arrow.right {
  transform: rotate(-90deg) scale(1.2);
  color: var(--accent-primary);
  opacity: 1;
}

.nav-item:hover>.nav-link .dropdown-arrow:not(.right) {
  transform: rotate(180deg);
  opacity: 1;
}

/* Hero Panels */
.hero-panels {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.panel {
  flex: 1;
  position: relative;
  transition: flex 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  overflow: hidden;
  border-right: 1px solid var(--border-color);
}

.panel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform var(--transition-normal);
}

.panel:hover .panel-image {
  transform: scale(1.1);
}

.panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
  z-index: 0;
}

.panel:last-child {
  border-right: none;
}





.panel:hover {
  flex: 1.5;
}



.panel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s ease;
}

@media (max-width: 768px) {
  .panel-content {
    padding: 2rem;
    padding-top: 80px;
    /* Space for the logo/header */
    bottom: auto;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.panel:hover .panel-content {
  opacity: 1;
  transform: translateY(0);
}

.panel-content h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.panel-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.panel-content .explore-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: gap 0.3s ease;
}

.panel:hover .explore-link {
  gap: 1rem;
}

/* Why Choose Vomera Section */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-primary);
  transform: translateY(-8px);
}

.why-card__number {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
}

.why-card__icon {
  width: 60px;
  height: 60px;
  background: rgba(107, 63, 152, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--accent-primary);
}

.why-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.why-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Partners Branding Section */
.partners-section {
  padding: 6rem 0;
  background: var(--section-bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.partners-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 3rem 0;
  /* Slightly more padding */
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.partners-track {
  display: flex;
  gap: 6rem;
  /* Increased gap */
  width: max-content;
  animation: scrollPartners 40s linear infinite;
  will-change: transform;
  align-items: center;
}

.partners-track.paused {
  animation-play-state: paused;
}

/* Partners Slider Controls */
.partners-controls {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  position: relative;
  z-index: 10;
}

.btn-slider-control {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-slider-control:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.btn-slider-control svg {
  width: 20px;
  height: 20px;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 75px;
  position: relative;
}

.partner-logo-box {
  width: 75px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  cursor: pointer;
}

.partner-logo-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(1) brightness(1.5);
  transition: all 0.5s ease;
}

[data-theme="light"] .partner-logo-img {
  filter: grayscale(1) brightness(0.3);
}

.partner-item:hover .partner-logo-box {
  background: transparent;
  border: none;
  transform: translateY(-6px);
  box-shadow: none;
}

.partner-item:hover .partner-logo-img {
  opacity: 1;
  filter: grayscale(0) brightness(1);
  transform: scale(1.1);
}

.partner-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent-primary);
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
  font-weight: 500;
  margin-top: 1rem;
}

.partner-item:hover .partner-label {
  opacity: 1;
  transform: translateY(0);
}

/* Slider Controls removed - using the ones defined at 1159 */


@keyframes scrollPartners {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Optimized Quotation Badge */
.cart-badge {
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  position: relative;
  top: -1px;
  letter-spacing: -0.05em;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px -10px rgba(107, 63, 152, 0.2);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(107, 63, 152, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

/* Features Icons (No shapes around) */
.icon-box {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  filter: drop-shadow(0 0 8px rgba(107, 63, 152, 0.3));
  transition: var(--transition-normal);
}

.icon-box svg {
  width: 100%;
  height: 100%;
  max-width: 80px;
  max-height: 80px;
  stroke-width: 1.25px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card {
  text-align: left;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: var(--transition-normal);
}

.feature-card:hover {
  border-color: var(--accent-secondary);
  transform: translateY(-5px);
}

.feature-card:hover .icon-box {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(107, 63, 152, 0.4));
}

/* Service Technical Headers Icons */
.tech-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: var(--space-md);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-header h2 {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.tech-icon {
  color: var(--accent-magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 0 5px rgba(217, 70, 239, 0.3));
  transition: var(--transition-normal);
}

.tech-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.25px;
}

.tech-block:hover .tech-icon {
  transform: translateX(5px) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.5));
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tech-item {
  position: relative;
  padding-left: 2rem;
  transition: var(--transition-normal);
}

.tech-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: var(--transition-normal);
}

.tech-item:hover {
  transform: translateX(8px);
}

.tech-item:hover::before {
  width: 20px;
  box-shadow: 0 0 10px var(--accent-magenta);
}

.tech-item h4 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.tech-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: var(--space-lg);
}

.tech-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 16px;
  transition: var(--transition-normal);
  height: 100%;
}

.tech-block:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.2);
}

.control-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.control-item {
  background: var(--bg-card);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  position: relative;
  transition: var(--transition-normal);
}

.control-item:hover {
  border-color: var(--accent-magenta);
  transform: translateY(-3px);
}

.control-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  opacity: 0.6;
  letter-spacing: -0.05em;
}

.consultant-section {
  padding: var(--space-xl) 0;
  background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.05), transparent);
  text-align: center;
}

.consultant-content {
  max-width: 900px;
  margin: 0 auto;
}

.consultant-text {
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.consultant-tag {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Page-Specific Hero Backgrounds */
.page-about .hero-mini {
  background-image: linear-gradient(rgba(10, 10, 14, 0.7), rgba(10, 10, 14, 0.7)),
    url('../images/products/hero/hero-about-bg.png');
}

.page-services .hero-mini {
  background-image: linear-gradient(rgba(10, 10, 14, 0.7), rgba(10, 10, 14, 0.7)),
    url('../images/products/hero/hero-services-bg.png');
}

.page-products .hero-mini {
  background-image: linear-gradient(rgba(10, 10, 14, 0.7), rgba(10, 10, 14, 0.7)),
    url('../images/products/hero/hero-products-bg.png');
}

.page-downloads .hero-mini {
  background-image: linear-gradient(rgba(10, 10, 14, 0.7), rgba(10, 10, 14, 0.7)),
    url('../images/products/hero/hero-downloads-bg.png');
}

.page-contact .hero-mini {
  background-image: linear-gradient(rgba(10, 10, 14, 0.7), rgba(10, 10, 14, 0.7)),
    url('../images/products/hero/hero-contact-bg.png');
}

/* Hero Mini (Unified Sub-pages) */
.hero-mini {
  position: relative;
  height: 55vh;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding-top: 80px;
  overflow: hidden;
}

.hero-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.75);
  z-index: 1;
}

.hero-mini .container {
  position: relative;
  z-index: 2;
}

.hero-mini h1 {
  margin-bottom: var(--space-xs);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), #d946ef, var(--accent-primary));
  background-size: 300% 300%;
  animation: dynamicGradient 6s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes dynamicGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-mini p {
  max-width: 700px;
  margin: 0 auto;
  font-size: var(--text-body-lg);
  font-weight: 300;
  color: #94A3B8 !important;
  /* Force dark-theme muted color for readability on dark hero bg */
}

/* Global Breadcrumb Styling */
.breadcrumb-overlay {
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  z-index: 10;
  text-align: left;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.breadcrumb span {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.reveal-text {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: var(--transition-normal);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.feature-card:hover .reveal-text {
  height: auto;
  opacity: 1;
  margin-top: var(--space-xs);
  padding-bottom: var(--space-xs);
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--glass-bg);
  z-index: 3000;
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9);
  border-left: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.cart-badge {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.7;
}

.cart-badge::before {
  content: "(";
}

.cart-badge::after {
  content: ")";
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-icon-clear {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-icon-clear:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.btn-icon-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-icon-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.cart-sidebar.active {
  right: 0;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-header,
.cart-footer {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.cart-footer {
  border-top: 1px solid var(--border-color);
  border-bottom: none;
  margin-top: auto;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  position: relative;
  transition: all 0.3s ease;
}

.cart-item:hover {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.2);
}

.cart-item-quantity {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.cart-item-quantity button,
.cart-quantity-input {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  text-align: center;
}

.cart-item-quantity button {
  cursor: pointer;
  border-radius: 4px;
}

.cart-quantity-input {
  width: 42px;
  border-radius: 4px;
  -moz-appearance: textfield;
}

.cart-quantity-input::-webkit-inner-spin-button,
.cart-quantity-input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.pd-extras-section > * {
  min-width: 0;
}

@media (max-width: 768px) {
  .pd-extras-section {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 2rem 1.5rem 3rem !important;
  }
}

.cart-item-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0.3;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-info h4 {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary); /* QF-01: was #fff — illegible on glass-bg */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-info p {
  font-size: 0.75rem;
  margin: 0;
  color: var(--text-secondary); /* QF-01: was rgba(255,255,255,0.5) — illegible on glass-bg */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-remove {
  background: transparent;
  border: none;
  color: var(--text-secondary); /* QF-01: was rgba(255,255,255,0.3) — illegible on glass-bg */
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 4px;
}

.btn-remove:hover {
  color: #ef4444;
  transform: scale(1.1);
}

#cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(20, 20, 25, 0.98);
  padding: 2.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #f1f5f9; /* QF-02: explicit light color — was inheriting #0F172A (dark on dark modal) */
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  border-radius: 6px;
  font-size: 0.88rem;
  transition: all 0.3s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(107, 63, 152, 0.15);
}

.modal-content textarea {
  height: 100px;
  resize: vertical;
}

.intro-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  margin: var(--space-lg) auto 0;
  width: 60%;
  box-shadow: 0 0 10px var(--accent-primary);
}

/* Footer */
.footer {
  background: #050508;
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding: var(--space-lg) 0;
}

/* Product Styles */
/* ── Filter / Category Tabs ──────────────────────────────────────── */
.filters,
.category-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.filters button,
.category-tabs button {
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-main);
  font-size: var(--text-body-sm);
  font-weight: 500;
  white-space: nowrap;
}

.filters button:hover,
.category-tabs button:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.filters button.active,
.category-tabs button.active {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
}

/* Main vs Subcategory Tab Styling */
.main-category-tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 100px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.main-category-tabs button {
  background: transparent;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.main-category-tabs button:hover {
  color: #fff;
}

.main-category-tabs button.active {
  background: var(--accent-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.subcategory-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.subcategory-tabs button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.subcategory-tabs button:hover,
.subcategory-tabs button.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  color: #fff;
}


.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-secondary);
}

.product-image {
  height: 200px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-info {
  padding: var(--space-md);
}

.product-specs-list {
  margin: 1rem 0;
}

.product-specs-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.product-specs-list input[type="checkbox"] {
  margin-right: 10px;
  accent-color: var(--accent-primary);
}

/* Mobile Toggle */
.btn-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0;
}

.btn-mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

.btn-mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.btn-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.btn-mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ── Smart Home page: nav links white on dark backgrounds ──── */
.page-smart-home .nav-link {
  color: #ffffff;
}

.page-smart-home .nav-link:hover,
.page-smart-home .nav-link.active {
  color: var(--accent-primary);
}

/* Animations - Deconstructing the Spark */
@keyframes spark-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(107, 63, 152, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(107, 63, 152, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(107, 63, 152, 0);
  }
}

@keyframes technical-glow {

  0%,
  100% {
    opacity: 0.8;
    filter: brightness(1);
  }

  50% {
    opacity: 1;
    filter: brightness(1.3) drop-shadow(0 0 10px var(--accent-primary));
  }
}

/* Animations added */
.animate-on-scroll {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Mobile Responsive */

/* =========================================
   Floating Icons (Section 3)
   ========================================= */
.floating-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.floating-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.4s ease;
  animation: floatIcon 3s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
  animation-delay: 0.5s;
}

.floating-icon:nth-child(3) {
  animation-delay: 1s;
}

.floating-icon:nth-child(4) {
  animation-delay: 1.5s;
}

.floating-icon:hover {
  transform: scale(1.15);
}

.floating-icon-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.4s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.floating-icon:hover .floating-icon-circle {
  border-color: var(--accent-secondary);
  background: rgba(107, 63, 152, 0.1);
  box-shadow: 0 0 25px rgba(199, 27, 129, 0.3);
  animation: spark-pulse 1.5s infinite linear;
}

.floating-icon span {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.floating-icon:hover span {
  opacity: 1;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@media (max-width: 768px) {
  .hero-panels {
    flex-direction: column;
    margin-top: var(--header-height);
    height: calc(100vh - var(--header-height));
  }

  .panel:hover {
    flex: 1.5;
    /* Still expand but vertically */
  }

  /* Nav Menu for Mobile */
  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-md);
    border-top: 1px solid var(--border-color);
    z-index: 999;
  }

  .nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: var(--space-md);
    text-align: center;
  }

  .nav-link {
    margin-left: 0;
    font-size: 1.2rem;
    display: block;
    padding: 1rem 0;
  }

  .btn-mobile-toggle {
    display: flex;
  }

  .submenu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 0;
    width: 100%;
    border: none;
  }

  .dropdown.active .submenu {
    display: flex;
    flex-direction: column;
  }

  .submenu-link {
    padding: 0.8rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }

  .submenu-link:last-child {
    border-bottom: none;
  }

  /* Nested dropdown mobile */
  .nested-submenu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 0.5rem;
    margin-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nested-dropdown.active .nested-submenu {
    display: flex;
    flex-direction: column;
  }

  .nested-dropdown.active>.nested-dropdown-toggle .dropdown-arrow.right {
    transform: rotate(90deg);
  }

  .nested-submenu .submenu-link {
    padding: 0.6rem 0 0.6rem 1rem;
    border-bottom: none;
    font-size: 0.95rem;
  }

  .page-services .hero-mini > .container,
  .page-about .hero-mini > .container {
    width: 100%;
    min-width: 0;
  }

  body .services-grid,
  .page-services .control-system-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-services .tech-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
  }

  h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.25;
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.3;
  }

  h3 {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 clamp(1.5rem, 5vw, 2.5rem);
  }

  .section {
    padding: 4rem 0;
  }

  .section-tight {
    padding: 2rem 0;
  }

  .hero-content {
    padding: 0 1.25rem;
    text-align: center;
  }

  .hero-mini {
    padding: 100px 0 50px;
    text-align: center;
  }

  .grid-features,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .floating-icons-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2rem;
    max-width: 400px;
  }

  @media (min-width: 480px) {
    .floating-icons-grid {
      grid-template-columns: repeat(2, 1fr);
      max-width: 600px;
    }
  }

  .floating-icon-circle {
    width: 70px;
    height: 70px;
  }

  .floating-icon-circle svg {
    width: 30px;
    height: 30px;
  }

  .floating-icon span {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .page-services .tech-block {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}


/* =========================================
   Product Gallery (Product Detail)
   ========================================= */
.pd-gallery-section {
  padding: 2rem clamp(2.5rem, 6vw, 4.5rem) 4rem;
  /* Top Right Bottom Left */
  max-width: var(--container-width);
  margin: 0 auto;
}

.pd-gallery-section h2 {
  margin-bottom: var(--space-md);
  font-size: var(--text-h3);
}

.pd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
  justify-content: start;
  /* Align grid items to the left */
}

.gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  /* 1:1 ratio as requested */
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.gallery-trigger {
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Prevent stretching, show full product */
  padding: 0.5rem;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: 'View Full Size';
  position: absolute;
  inset: 0;
  background: rgba(139, 92, 246, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  /* Crucial: Allow clicks to pass to the image trigger */
}

.gallery-item:hover::after {
  opacity: 1;
}

@media (max-width: 900px) {
  .pd-gallery-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 768px) {
  .pd-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* =========================================
   Lightbox System
   ========================================= */
.pd-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pd-lightbox.active {
  display: flex;
  opacity: 1;
}

.pd-lightbox__content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pd-lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pd-lightbox__close {
  position: fixed;
  /* Fixed to screen for consistency */
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s ease;
  z-index: 10001;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.pd-lightbox__close:hover {
  background: var(--accent-purple);
  transform: rotate(90deg);
}

.pd-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 10001;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.pd-lightbox__nav:hover {
  background: rgba(139, 92, 246, 0.4);
  border-color: var(--accent-purple);
  transform: translateY(-50%) scale(1.1);
}

.pd-lightbox__nav--prev {
  left: 2rem;
}

.pd-lightbox__nav--next {
  right: 2rem;
}

.pd-lightbox__caption {
  margin-top: 1.5rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1.1rem;
  text-align: center;
}

@media (max-width: 480px) {
  .pd-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   BEGA-Style Footer
   ========================================= */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent-secondary);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(107, 63, 152, 0.1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}

/* Why Choose Vomera Enhanced */
.why-vomera .feature-card {
  padding: 3rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  transition: all 0.4s ease;
}

.why-vomera .feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-purple);
  transform: translateY(-5px);
}

.why-vomera .feature-icon-large {
  width: 56px;
  height: 56px;
  margin-bottom: 2rem;
  color: var(--accent-purple);
}

.why-vomera .feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
  color: #fff;
}

.why-vomera .feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Redundant Partner Slider Styles Removed - Merged into line 1123 */

.partner-logo-box {
  border: none;
}

.partner-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.partner-item:hover {
  transform: scale(1.15);
}

.partner-item:hover .partner-logo-img {
  filter: none;
  opacity: 1;
}

.partner-item:hover .partner-label {
  opacity: 1;
  transform: translateY(0);
}

.partner-logo:hover {
  opacity: 1;
  color: var(--text-primary);
  border-bottom-color: var(--accent-primary);
  transform: translateY(-2px);
}

@keyframes scrollPartners {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .partners-track {
    gap: 3rem;
  }

  .partner-logo {
    font-size: 1.3rem;
  }
}

/* ── Utility Classes ────────────────────────────────────────────── */

.u-flex-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.u-flex-between {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.u-flex-1 {
  flex: 1 !important;
}

.u-flex-2 {
  flex: 2 !important;
}

.u-gap-xs {
  gap: var(--space-xs) !important;
}

.u-gap-sm {
  gap: var(--space-sm) !important;
}

.u-gap-md {
  gap: var(--space-md) !important;
}

.u-mt-xs {
  margin-top: var(--space-xs) !important;
}

.u-mt-sm {
  margin-top: var(--space-sm) !important;
}

.u-mt-md {
  margin-top: var(--space-md) !important;
}

.u-mt-lg {
  margin-top: var(--space-lg) !important;
}

.u-mb-sm {
  margin-bottom: var(--space-sm) !important;
}

.u-mb-md {
  margin-bottom: var(--space-md) !important;
}

.u-text-center {
  text-align: center !important;
}

.u-full-width {
  width: 100% !important;
}

.u-h-100 {
  height: 100% !important;
}

/* Helper classes */
.u-dark-skin {
  color: #fff !important;
}

.u-dark-skin h1,
.u-dark-skin h2,
.u-dark-skin h3,
.u-dark-skin h4 {
  color: #fff !important;
}

.u-dark-skin p {
  color: rgba(255, 255, 255, 0.7) !important;
}

.u-dark-skin .feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.u-block {
  display: block !important;
}

.u-border-0 {
  border: 0 !important;
}

.u-overflow-hidden {
  overflow: hidden !important;
}

/* Removed redundant theme toggle styles */

/* Ensure nav links remain white on transparent header over dark images in light mode */
.header:not(.scrolled) .nav-link {
  color: #fff;
}

.header:not(.scrolled) .nav-link.active {
  color: #c026d3 !important;
  /* Force Magenta active in transparent light mode */
}

.header:not(.scrolled) .btn-mobile-toggle span {
  color: #fff;
  background-color: #fff;
}

.submenu-link:hover {
  background: rgba(124, 58, 237, 0.05);
}

/* Refined Quote Icon/Button in Light Mode */
.header .btn-cart {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #0F172A;
  box-shadow: none;
}

.header .btn-cart svg {
  color: #0F172A;
}

.header:not(.scrolled) .btn-cart {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.header:not(.scrolled) .btn-cart svg {
  color: #fff;
}

/* Services Grid & Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--section-bg-alt);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.3s ease, background 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  background: rgba(124, 58, 237, 0.05);
}

.quote-icon {
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author h4 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--text-primary);
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--accent-glow);
}

.service-image {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
}

.service-content {
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.03));
}

.service-card .icon-box {
  width: 54px;
  height: 54px;
  background: var(--icon-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--icon-color);
  border: 1px solid var(--icon-border);
  transition: all 0.3s ease;
}

.service-card:hover .icon-box {
  background: var(--accent-primary);
  color: #fff;
  transform: rotate(5deg) scale(1.1);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Related Products Section */
.pd-section-title {
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.pd-related-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pd-related-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-related-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(5px);
  background: var(--bg-input);
}

.pd-related-info {
  flex: 1;
  min-width: 0;
}

.pd-related-name {
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.pd-related-subcat {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pd-related-arrow {
  color: var(--accent-primary);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.pd-related-card:hover .pd-related-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.pd-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.3s ease;
}

.pd-view-all:hover {
  gap: 0.8rem;
}

/* Eye-friendly adjustments */
[data-theme='dark'] {
  --text-gradient: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
}

[data-theme='dark'] .text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

/* =========================================
   Engineering Excellence Grid (Enhanced)
   ========================================= */
.engineering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: var(--space-lg) 0;
}

.engineering-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.engineering-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.engineering-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.engineering-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.engineering-card:hover::before {
  opacity: 1;
}

.engineering-icon {
  width: 54px;
  height: 54px;
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.engineering-card:hover .engineering-icon {
  transform: rotate(5deg) scale(1.1);
  background: var(--accent-primary);
  color: white;
}

.engineering-card h4 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
}

.engineering-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}


/* --- Extracted Inline Styles --- */
.ext-inline-1 {
  position: relative;
  z-index: 2;
  width: 100%;
}

.ext-inline-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.ext-inline-3 {
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.ext-inline-4 {
  margin-bottom: 3rem;
}

.ext-inline-5 {
  font-size: 1.25rem;
  text-align: center;
}

.ext-inline-6 {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
}

.ext-inline-7 {
  font-size: 0.65rem;
  opacity: 0.5;
}

.ext-inline-8 {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.ext-inline-9 {
  margin-top: 2rem;
}

.ext-inline-10 {
  background: #ef4444;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.ext-inline-11 {
  background: var(--section-bg-alt);
}

.ext-inline-12 {
  max-width: 700px;
  margin: 0 auto;
}

.ext-inline-13 {
  background: var(--section-bg-alt);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.grid-stats {
  grid-template-columns: repeat(4, 1fr);
  gap: 5rem;
  align-items: center;
  /* Centered alignment for premium look */
}

@media (max-width: 992px) {
  .grid-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ext-inline-14 {
    grid-template-columns: 1fr;
  }
}

.stat-number {
  font-size: 4rem;
  /* Larger for better visibility */
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.ext-inline-17 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.ext-inline-18 {
  padding: 2.5rem;
  background: var(--glass-bg);
  border-color: var(--accent-primary);
}

.ext-inline-19 {
  margin-bottom: 2rem;
}

.ext-inline-20 {
  font-size: 1.1rem;
  line-height: 1.8;
}

.ext-inline-21 {
  padding: 2.5rem;
  background: var(--glass-bg);
  border-color: var(--accent-secondary);
}

.ext-inline-22 {
  background-image: linear-gradient(rgba(11, 11, 14, 0.85), rgba(11, 11, 14, 0.85)), url('../images/hero/hero-services-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  padding: 12rem 0;
}

.ext-inline-23 {
  text-align: left;
  margin-bottom: 5rem;
}

.ext-inline-24 {
  font-size: 2.5rem;
  opacity: 0.9;
}

.grid-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.ext-inline-26 {
  text-align: center;
  margin-bottom: 4rem;
}

.ext-inline-27 {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.ext-inline-28 {
  border-radius: 2px;
  border-left: 4px solid var(--accent-primary);
}

.ext-inline-29 {
  border-radius: 2px;
  border-left: 4px solid var(--accent-secondary);
}

.ext-inline-30 {
  background: rgba(107, 63, 152, 0.05);
  border-top: 1px solid var(--glass-border);
}

.ext-inline-31 {
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
}

.ext-inline-32 {
  flex: 1;
  min-width: 300px;
}

.ext-inline-33 {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  flex: 1;
  min-width: 300px;
}

.ext-inline-34 {
  padding: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  text-align: center;
}

.ext-inline-35 {
  gap: 1rem;
  margin-top: 1rem;
}

.ext-inline-36 {
  flex: 1;
}

.ext-inline-37 {
  flex: 2;
}

.ext-inline-38 {
  grid-column: span 2;
}

.ext-inline-39 {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.ext-inline-40 {
  justify-content: space-between;
  height: 100%;
}

.ext-inline-41 {
  color: var(--accent-primary);
}

.ext-inline-42 {
  gap: 1rem;
}

.ext-inline-43 {
  color: var(--text-primary);
}

.grid-contact-main {
  grid-template-columns: 1fr 1fr;
  /* Perfect 50/50 split */
  gap: 4rem;
}

@media (max-width: 992px) {
  .grid-contact-main {
    grid-template-columns: 1fr;
  }
}

.ext-inline-45 {
  margin-bottom: 1rem;
}

.ext-inline-46 {
  margin-bottom: 3rem;
  opacity: 0.7;
}

.ext-inline-47 {
  width: 100%;
  margin-top: 1rem;
}

.ext-inline-48 {
  width: 24px;
  height: 24px;
}

.ext-inline-49 {
  height: 320px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.ext-inline-50 {
  color: var(--accent-purple);
}

.ext-inline-51 {
  max-width: 800px;
  margin: 0 auto;
}

.ext-inline-52 {
  background: var(--section-bg-alt);
  padding-top: 0;
}

.ext-inline-53 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.ext-inline-54 {
  font-size: var(--text-h2);
}

.ext-inline-55 {
  margin-top: 0;
}

.ext-inline-56 {
  margin-top: var(--space-xl);
}

.ext-inline-57 {
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ext-inline-58 {
  margin-top: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ext-inline-59 {
  top: 72%;
  left: 53%;
}

.breadcrumb-sticky {
  position: sticky;
  top: var(--header-height);
  background: transparent;
  color: var(--text-primary) !important;
  z-index: 90;
  padding: 0.5rem 0;
  width: 100%;
  transition: all 0.3s ease;
  pointer-events: none; /* Allow clicks to pass through to the background if needed */
}

.breadcrumb-sticky .container {
  pointer-events: auto; /* Re-enable clicks for the links */
  display: flex !important;
  align-items: center;
}

.breadcrumb-sticky .breadcrumb,
.breadcrumb-sticky .breadcrumb a {
  color: var(--text-primary) !important;
  opacity: 0.85;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  transition: all 0.3s ease;
}

.breadcrumb-sticky .breadcrumb a:hover {
  opacity: 1;
  color: var(--accent-primary) !important;
  text-decoration: underline;
}

.breadcrumb-sticky .breadcrumb span {
  opacity: 0.4;
  margin: 0 0.6rem;
  font-size: 0.8rem;
}

/* ── Breadcrumb with Background (Specific to Products Page) ────── */
.breadcrumb-sticky.has-background {
  background: var(--accent-primary);
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
}

.breadcrumb-sticky.has-background .breadcrumb,
.breadcrumb-sticky.has-background .breadcrumb a {
  color: #fff !important;
  opacity: 1;
  text-shadow: none;
}

.breadcrumb-sticky.has-background .breadcrumb a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.breadcrumb-sticky.has-background .breadcrumb span {
  color: #fff !important;
  opacity: 0.6;
}

.ext-inline-60 {
  top: 85%;
  left: 70%;
}

.ext-inline-61 {
  top: 52%;
  right: 16%;
}

.ext-inline-62 {
  top: 50%;
  left: 15%;
}

.ext-inline-63 {
  top: 52%;
  right: 22%;
}

.ext-inline-64 {
  top: 55%;
  left: 35%;
}

.ext-inline-65 {
  top: 65%;
  left: 85%;
}

.ext-inline-66 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.ext-inline-67 {
  text-align: center;
  margin-top: 4rem;
}

.ext-inline-68 {
  top: 56%;
  left: 63%;
}

.ext-inline-69 {
  top: 67%;
  left: 52%;
}

.ext-inline-70 {
  top: 68%;
  left: 53%;
}

.ext-inline-71 {
  top: 90%;
  left: 27%;
}

.breadcrumb-sticky {
  position: sticky;
  top: var(--header-height);
  background: var(--accent-primary);
  color: #fff !important;
  z-index: 90; /* Stay below header dropdowns (1000) */
  padding: 0.35rem 0; /* Minimized bar height */
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.breadcrumb-sticky {
  background: var(--accent-primary);
}

.breadcrumb-sticky .container {
  display: flex !important;
  align-items: center;
}

.breadcrumb-sticky .breadcrumb {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
  font-family: var(--font-main);
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1;
}

.breadcrumb-sticky .breadcrumb a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

.breadcrumb-sticky .breadcrumb a:hover {
  color: #fff !important;
  opacity: 1;
}

.breadcrumb-sticky .breadcrumb span {
  opacity: 0.5;
  margin: 0 2px;
  color: #fff !important;
}

.breadcrumb-sticky .breadcrumb .active,
.breadcrumb-sticky .breadcrumb strong,
.breadcrumb-sticky .breadcrumb .ext-inline-43 {
  color: #fff !important;
  font-weight: 600;
}

/* ── Contact Info Fixes ────────────────────────────────────────── */
.contact-item .contact-icon-box svg {
  width: 24px;
  height: 24px;
}

.contact-text h4 {
  margin: 0;
  font-size: 1.1rem;
}

.contact-text p {
  margin: 0;
  font-size: 0.9rem;
}

.map-container iframe {
  border: 0;
}


/*  Sensor Point Positions  */
.pt-living-3 { top: 50%; right: 25%; }
.pt-living-4 { top: 39%; left: 15%; }

.pt-room-2 { top: 70%; right: 55%; }
.pt-room-3 { top: 50%; left: 60%; }

.pt-kitchen-1 { top: 50%; left: 40%; }
.pt-kitchen-2 { top: 15%; left: 25%; }
.pt-kitchen-3 { top: 50%; right: 38%; }

.pt-bathroom-1 { top: 65%; right: 10%; }
.pt-bathroom-2 { top: 20%; left: 25%; }
.pt-bathroom-3 { top: 10%; right: 20%; }


