/* ==========================================================================
   UNIMEKA ENGINEERING SOLUTIONS - MASTER STYLESHEET
   Design System: Premium Industrial Glassmorphism, Dark/Light Hybrid
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & THEME DEFINITIONS
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette (derived from UniMeka Logo) */
  --brand-navy-darkest: #040d18;
  --brand-navy-dark: #071526;
  --brand-navy-primary: #0a2540;
  --brand-navy-secondary: #0f3b64;
  --brand-blue: #0284c7;
  --brand-cyan: #00a8e8;
  --brand-cyan-glow: #00f0ff;
  --brand-cyan-light: #e0f2fe;
  
  /* Accent Colors */
  --accent-amber: #f59e0b;
  --accent-amber-glow: #fbbf24;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Elevation & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  /* Container width */
  --container-max: 1240px;
  --header-height: 80px;
}

/* Light Theme (Default for Clean Corporate Presentation) */
:root, [data-theme="light"] {
  --color-scheme: light;
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-glass-nav: rgba(255, 255, 255, 0.88);
  --bg-input: #f8fafc;

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-light: rgba(15, 23, 42, 0.08);
  --border-glass: rgba(14, 165, 233, 0.2);
  --border-focus: #00a8e8;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(0, 168, 232, 0.08);
  --shadow-glow: 0 0 25px rgba(0, 168, 232, 0.22);

  --badge-bg: rgba(0, 168, 232, 0.1);
  --badge-text: #0284c7;
  --badge-border: rgba(0, 168, 232, 0.25);
}

/* Dark Theme (Glassmorphism & High-Tech Obsidian Navy) */
[data-theme="dark"] {
  --color-scheme: dark;
  --bg-body: #050b14;
  --bg-surface: #0a1524;
  --bg-surface-elevated: #0f1f33;
  --bg-card: rgba(11, 25, 44, 0.7);
  --bg-card-hover: rgba(15, 33, 58, 0.85);
  --bg-glass: rgba(9, 20, 36, 0.72);
  --bg-glass-nav: rgba(5, 11, 20, 0.85);
  --bg-input: rgba(7, 16, 29, 0.9);

  --text-main: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(0, 168, 232, 0.22);
  --border-focus: #00f0ff;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 30px -8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 168, 232, 0.08);
  --shadow-lg: 0 24px 45px -12px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 168, 232, 0.16);
  --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.28);

  --badge-bg: rgba(0, 240, 255, 0.12);
  --badge-text: #38bdf8;
  --badge-border: rgba(0, 240, 255, 0.3);
}

/* --------------------------------------------------------------------------
   2. MODERN CSS RESET & GLOBAL BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. UTILITIES & CONTAINER
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-padding {
  padding-block: clamp(3.5rem, 6vw, 6.5rem);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.section-head {
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background-color: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-badge svg {
  width: 16px;
  height: 16px;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-title .gradient-text {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-cyan) 60%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .section-title .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #00f0ff 60%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   4. GLASSMORPHISM CARDS & SURFACE PATTERNS
   -------------------------------------------------------------------------- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 168, 232, 0.4);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Grid helper */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   5. BUTTONS & CALL TO ACTIONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-navy-primary) 0%, var(--brand-blue) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
  color: #040d18;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 232, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--brand-cyan);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.btn-amber {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-amber:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   6. SITE HEADER & LUXURY SLIDE-OVER SIDEBAR
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  height: 76px;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all var(--transition-normal);
  overflow: visible !important;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.25rem;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
  box-sizing: border-box;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.site-logo:hover img {
  transform: scale(1.02);
}

/* Streamlined Desktop Navigation */
.header-nav-streamlined {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
}

.nav-pill-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  background: transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-pill-link:hover {
  background: var(--bg-surface-elevated);
  color: var(--brand-cyan);
}

.nav-pill-link.active {
  background: var(--badge-bg);
  color: var(--brand-cyan);
  font-weight: 700;
}

.nav-pill-link.highlight-amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-weight: 700;
}

.nav-pill-link.highlight-amber:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

/* --------------------------------------------------------------------------
   NAVIGATION DROPDOWNS & SUBMENUS
   -------------------------------------------------------------------------- */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
}

.nav-dropdown-toggle .chevron {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.nav-dropdown:hover .nav-dropdown-toggle .chevron,
.nav-dropdown:focus-within .nav-dropdown-toggle .chevron,
.nav-dropdown.open .nav-dropdown-toggle .chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--brand-cyan);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 168, 232, 0.12);
  padding: 0.65rem;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1050;
}

[data-theme="dark"] .dropdown-menu {
  background: rgba(7, 21, 38, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Invisible bridge so mouse hover doesn't break between button and menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

.dropdown-menu-right {
  left: auto;
  right: 0;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.35;
}

.dropdown-item:hover {
  background: var(--bg-surface-elevated);
  color: var(--brand-cyan);
  transform: translateX(4px);
}

.dropdown-item.featured {
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  margin-bottom: 0.35rem;
}

.dropdown-item.featured:hover {
  background: rgba(0, 168, 232, 0.18);
  color: var(--brand-cyan);
}

.dropdown-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dropdown-item:hover .dropdown-item-title {
  color: var(--brand-cyan);
}

.dropdown-item-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.2rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0.4rem 0.5rem;
}

/* Header Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.header-phone-btn:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  transform: translateY(-1px);
}

.theme-toggle-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 19px;
  height: 19px;
}

.theme-toggle-btn .icon-moon { display: none; }
.theme-toggle-btn .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle-btn .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle-btn .icon-sun { display: none; }

/* Luxury Hamburger Button */
.hamburger-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-navy-primary) 0%, var(--brand-blue) 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 168, 232, 0.4);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

[data-theme="dark"] .hamburger-toggle-btn {
  background: linear-gradient(135deg, #092038 0%, #0d3b66 100%);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.2);
}

.hamburger-toggle-btn:hover {
  transform: translateY(-2px);
  border-color: var(--brand-cyan-glow);
  box-shadow: 0 6px 20px rgba(0, 168, 232, 0.45);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 13px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .hamburger-icon span {
  background: #00f0ff;
}

.hamburger-text {
  font-size: 0.825rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

[data-theme="dark"] .hamburger-text {
  color: #00f0ff;
}

/* --------------------------------------------------------------------------
   LUXURY SLIDE-OVER SIDEBAR (DRAWER)
   -------------------------------------------------------------------------- */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 13, 24, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sidebar-backdrop.active,
.sidebar-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  display: block;
}

.slide-over-sidebar,
.sidebar-drawer,
#slideOverSidebar,
#mainSidebar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: min(88vw, 420px) !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: var(--bg-surface) !important;
  border-left: 1px solid var(--border-glass) !important;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.5) !important;
  z-index: 99999 !important;
  display: none !important;
  flex-direction: column !important;
  transform: translateX(105%) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.35s ease !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

[data-theme="dark"] .slide-over-sidebar,
[data-theme="dark"] .sidebar-drawer,
[data-theme="dark"] #slideOverSidebar,
[data-theme="dark"] #mainSidebar {
  background: rgba(7, 16, 29, 0.98) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
}

.slide-over-sidebar.active,
.slide-over-sidebar.open,
.sidebar-drawer.active,
.sidebar-drawer.open,
#slideOverSidebar.active,
#slideOverSidebar.open,
#mainSidebar.active,
#mainSidebar.open {
  display: flex !important;
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}

/* Sidebar Header */
.sidebar-top,
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface-elevated);
}

.sidebar-close-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-close-btn:hover {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
  transform: rotate(90deg);
}

.sidebar-close-btn svg {
  width: 20px;
  height: 20px;
}

/* Sidebar Scrollable Body */
.sidebar-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Fast Action Bar inside Sidebar */
.sidebar-fast-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.sidebar-fast-btn {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  text-align: center;
}

.sidebar-fast-btn.phone {
  background: var(--badge-bg);
  color: var(--brand-cyan);
  border: 1px solid var(--badge-border);
}

.sidebar-fast-btn.phone:hover {
  background: var(--brand-cyan);
  color: #ffffff;
}

.sidebar-fast-btn.whatsapp {
  background: #25d366;
  color: #ffffff;
}

.sidebar-fast-btn.whatsapp:hover {
  background: #20bd5a;
}

/* Navigation Groups */
.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-group-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sidebar-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.sidebar-link-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  transform: translateX(4px);
}

.sidebar-link-item.active {
  background: var(--badge-bg);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  font-weight: 700;
}

.sidebar-link-item.featured-amber {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

.sidebar-link-item.featured-amber:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.sidebar-link-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.sidebar-link-badge.amber {
  background: var(--accent-amber);
  color: #071526;
}

.sidebar-link-badge.cyan {
  background: var(--brand-cyan);
  color: #ffffff;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface-elevated);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar-contact-info {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 1120px) {
  .header-nav-streamlined { display: none !important; }
  .header-phone-btn { display: none !important; }
}

/* --------------------------------------------------------------------------
   7. HERO BANNER SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-block: clamp(3.5rem, 6vw, 6rem);
  background: radial-gradient(circle at 80% 20%, rgba(0, 168, 232, 0.12), transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(10, 37, 64, 0.08), transparent 45%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.stat-item h3 {
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 800;
  color: var(--brand-cyan);
  font-family: var(--font-mono);
  margin-bottom: 0.2rem;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-visual img, .hero-visual svg {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-glass);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-visual {
    order: -1;
    max-width: 580px;
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------------------
   8. SERVICE CARDS & ENGINEERING SOLUTIONS
   -------------------------------------------------------------------------- */
.service-card {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--brand-cyan), var(--brand-navy-primary));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--brand-cyan);
}

.service-icon-wrap svg {
  width: 32px;
  height: 32px;
}

.service-card-title {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.service-card-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand-cyan);
}

.service-link:hover {
  text-decoration: underline;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   9. RUHSAT, BELEDİYE & İSG ŞARTNAMELERİ UYUMLULUK SPOTLIGHT
   -------------------------------------------------------------------------- */
.compliance-section {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
  border-block: 1px solid var(--border-light);
}

[data-theme="dark"] .compliance-section {
  background: linear-gradient(135deg, rgba(7, 21, 38, 0.6) 0%, rgba(180, 83, 9, 0.12) 100%);
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.compliance-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.compliance-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.compliance-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
}

.compliance-item h4 {
  font-size: 0.975rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.compliance-item p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .compliance-grid { grid-template-columns: 1fr; }
  .compliance-list { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   10. TEXTILE & INDUSTRIAL MACHINERY SHOWCASE
   -------------------------------------------------------------------------- */
.machine-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.machine-tag {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.machine-tag:hover {
  background: var(--brand-cyan);
  color: #ffffff;
  border-color: var(--brand-cyan);
  transform: translateY(-2px);
}

/* Machine Detail Grid */
.machine-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.machine-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--brand-cyan);
}

.machine-card ul {
  margin-block: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.machine-card li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.machine-card li::before {
  content: '▸';
  color: var(--brand-cyan);
}

/* --------------------------------------------------------------------------
   11. INDUSTRIAL PIPING & WELDING PROCESSES
   -------------------------------------------------------------------------- */
.process-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--brand-cyan);
  color: #ffffff;
  border-color: var(--brand-cyan);
}

.process-spec-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.spec-item {
  border-left: 3px solid var(--brand-cyan);
  padding-left: 1rem;
}

.spec-item h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

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

/* --------------------------------------------------------------------------
   12. 81 İL PROGRESSIVE REGIONAL SEO ENGINE & BURSA HUB
   -------------------------------------------------------------------------- */
.regional-search-box {
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  position: relative;
}

.regional-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 2px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.regional-input:focus {
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-glow);
}

.search-icon-inside {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--brand-cyan);
  pointer-events: none;
}

.province-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-height: 280px;
  overflow-y: auto;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.province-pill {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.province-pill:hover, .province-pill.active {
  background: var(--brand-cyan);
  color: #ffffff;
  border-color: var(--brand-cyan);
}

.bursa-hub-banner {
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.95), rgba(7, 21, 38, 0.98)), url('/assets/images/hero-illustration.svg') center/cover;
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  margin-top: 3rem;
  border: 1px solid var(--brand-cyan);
  box-shadow: var(--shadow-lg);
}

.bursa-hub-banner h3 {
  color: #ffffff;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.bursa-osb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 1.25rem;
}

.bursa-osb-tag {
  background: rgba(0, 168, 232, 0.2);
  border: 1px solid rgba(0, 168, 232, 0.4);
  color: #00f0ff;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. INTERACTIVE QUOTE & AUDIT FORMS
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 3.5vw, 3.5rem);
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   14. FAQ ACCORDION COMPONENT
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 850px;
  margin-inline: auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--brand-cyan);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  color: var(--brand-cyan);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding-inline: 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--brand-navy-darkest);
  color: #94a3b8;
  border-top: 1px solid rgba(0, 168, 232, 0.15);
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-cyan);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--brand-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.footer-legal-links a {
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--brand-cyan);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
  }
}

/* --------------------------------------------------------------------------
   16. FLOATING WHATSAPP BUTTON & MOBILE BOTTOM BAR
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed !important;
  bottom: 2rem !important;
  right: clamp(1rem, 3vw, 2.25rem) !important;
  width: 60px !important;
  height: 60px !important;
  background-color: #25d366 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45) !important;
  z-index: 9990 !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
  color: #ffffff !important;
  touch-action: manipulation !important;
  box-sizing: border-box !important;
}

.floating-whatsapp:hover {
  transform: scale(1.08) translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6) !important;
}

.floating-whatsapp svg {
  width: 34px !important;
  height: 34px !important;
  fill: #ffffff !important;
}

.whatsapp-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulseRipple 2.2s infinite;
  pointer-events: none;
}

@keyframes pulseRipple {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Mobile Bottom Quick Contact Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  height: 64px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
  z-index: 980;
  padding-inline: 0.5rem;
  overflow: hidden;
}

.mobile-bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100%;
  width: 100%;
}

.bottom-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.bottom-bar-item.active, .bottom-bar-item:hover {
  color: var(--brand-cyan);
}

.bottom-bar-item svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .mobile-bottom-bar { display: block; }
  .floating-whatsapp {
    bottom: calc(64px + 14px) !important;
    right: 14px !important;
    width: 52px !important;
    height: 52px !important;
  }
  .floating-whatsapp svg {
    width: 30px !important;
    height: 30px !important;
  }
  body { padding-bottom: 64px; }
}

/* --------------------------------------------------------------------------
   17. BREADCRUMBS & INNER PAGE HEADERS
   -------------------------------------------------------------------------- */
.page-hero {
  padding-block: clamp(3rem, 5vw, 5rem);
  background: radial-gradient(circle at 75% 25%, rgba(0, 168, 232, 0.12), transparent 50%),
              var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb-nav a {
  color: var(--brand-cyan);
}

.breadcrumb-nav span {
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   18. HIGHLIGHT BOXES & CALLOUTS
   -------------------------------------------------------------------------- */
.callout-box {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand-cyan);
  background: var(--bg-surface-elevated);
  margin-block: 1.5rem;
}

.callout-box.amber {
  border-left-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.08);
}

.callout-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.callout-box p {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   19. AUDIT CHECKLIST COMPONENT
   -------------------------------------------------------------------------- */
.audit-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-block: 1.5rem;
}

.audit-check-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.audit-check-item:hover {
  border-color: var(--brand-cyan);
  background: var(--badge-bg);
}

.audit-check-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-cyan);
  cursor: pointer;
}

.audit-check-item span {
  font-weight: 600;
  font-size: 0.925rem;
}

/* ==========================================================================
   19. INTERACTIVE SERVICE DISCOVERY & QUOTE MODAL (GLASSMORPHISM)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 20, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 580px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 168, 232, 0.2);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-overlay.is-open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}

.modal-header .section-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.modal-header h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.modal-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-form label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.925rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.2);
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 520px) {
  .modal-buttons {
    flex-direction: row;
  }
  .modal-buttons .btn {
    flex: 1;
  }
}

/* Emergency SOS Dialog inside Modal */
.modal-emergency-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.modal-emergency-banner h4 {
  color: #ef4444;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal-emergency-banner p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   19. INDUSTRIAL MACHINE DIAGNOSTIC MODAL & HUB FILTERING
   -------------------------------------------------------------------------- */
.diagnose-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 13, 24, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.diagnose-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.diagnose-modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 168, 232, 0.25);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.diagnose-modal-overlay.is-open .diagnose-modal-box {
  transform: translateY(0) scale(1);
}

.diagnose-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: all var(--transition-fast);
}

.diagnose-modal-close:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
  transform: rotate(90deg);
}

.diagnose-field-group {
  margin-bottom: 1.15rem;
}

.diagnose-field-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.diagnose-field-group select,
.diagnose-field-group input,
.diagnose-field-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.diagnose-field-group select:focus,
.diagnose-field-group input:focus,
.diagnose-field-group textarea:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.2);
}

.diagnose-result-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--brand-cyan);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.category-filter-btn {
  transition: all var(--transition-fast);
}

.category-filter-btn.active {
  background: var(--brand-cyan) !important;
  color: #040d18 !important;
  border-color: var(--brand-cyan) !important;
  box-shadow: 0 0 15px rgba(0, 168, 232, 0.35);
}

.faq-card.open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-amber);
}

.faq-card.open .faq-answer {
  display: block !important;
}

