/* ==========================================================================
   ROMOTECH TECHNOLOGIES INC. - Modern Enterprise IT Stylesheet
   Montreal, Quebec, Canada
   Inspired by Present.ca & ITI.ca Design Systems
   Trilingual (FR / EN / AR) with Native RTL Support
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg-primary: #0a0f1d;          /* Canadian Enterprise Deep Navy */
  --bg-secondary: #0f172a;        /* Slate Navy */
  --bg-tertiary: #162036;         /* Elevated Corporate Card Base */
  --bg-card: rgba(22, 32, 54, 0.78);
  --bg-card-hover: rgba(30, 43, 72, 0.90);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(37, 99, 235, 0.38);

  --accent-primary: #2563eb;       /* Canadian Cobalt & Royal Blue (ITI.ca / Enterprise) */
  --accent-primary-hover: #1d4ed8; /* Deep Royal Blue */
  --accent-secondary: #0284c7;     /* Ocean Sapphire Cyan */
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  --accent-glow: rgba(37, 99, 235, 0.20);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-light: #ffffff;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  --font-arabic: 'Cairo', 'Segoe UI Arabic', Tahoma, sans-serif;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --container-max: 1240px;
}

/* --------------------------------------------------------------------------
   2. Reset, Base Typography & Document Setup
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* --------------------------------------------------------------------------
   3. RTL (Right-to-Left) Styles for Arabic Support
   -------------------------------------------------------------------------- */
html[dir="rtl"],
body.is-rtl {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  line-height: 1.75;
}

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 {
  font-family: var(--font-arabic);
  letter-spacing: normal !important;
}

html[dir="rtl"] .arrow-icon,
body.is-rtl .arrow-icon {
  transform: scaleX(-1);
}

html[dir="rtl"] .cadence-item svg,
body.is-rtl .cadence-item svg {
  margin-left: 0.75rem;
  margin-right: 0;
}

html[dir="rtl"] .service-features li svg,
body.is-rtl .service-features li svg {
  margin-left: 0.65rem;
  margin-right: 0;
}

html[dir="rtl"] .service-modal-close,
body.is-rtl .service-modal-close {
  left: 1.5rem;
  right: auto;
}

html[dir="rtl"] .contact-item-icon,
body.is-rtl .contact-item-icon {
  margin-left: 1rem;
  margin-right: 0;
}

html[dir="rtl"] .why-pillar-icon,
body.is-rtl .why-pillar-icon {
  left: auto;
  right: 1.25rem;
  margin-left: 0;
  margin-right: 0;
}

html[dir="rtl"] .mobile-lang-menu,
body.is-rtl .mobile-lang-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .mobile-lang-option,
body.is-rtl .mobile-lang-option {
  text-align: right;
}

a[href^="tel:"][dir="ltr"] {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

/* --------------------------------------------------------------------------
   4. Background Subtle Ambient Glows
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

.ambient-glow-1 {
  top: -120px;
  right: -100px;
  background: var(--accent-primary);
}

.ambient-glow-2 {
  top: 45%;
  left: -220px;
  background: var(--accent-secondary);
}

.ambient-glow-3 {
  bottom: 0;
  right: 10%;
  background: #3b82f6;
  opacity: 0.08;
}

/* --------------------------------------------------------------------------
   5. Layout & Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   6. Typography & Headings
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.025em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.text-gradient {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 50%, #eab308 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #facc15;
}

html[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.28);
  color: #facc15;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

html[data-theme="light"] .badge {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--accent-primary);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  color: #facc15;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

html[data-theme="light"] .section-tag {
  color: var(--accent-primary);
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.15rem;
}

.section {
  padding: 100px 0;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* --------------------------------------------------------------------------
   7. Buttons & Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.78rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sm {
  padding: 0.52rem 1.15rem;
  font-size: 0.88rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   8. Navigation Bar & Sticky Header
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.brand-text {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.brand-text span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.mobile-drawer-header {
  display: none;
}

.nav-links-inner {
  display: contents;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-link:hover, .nav-link:focus {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Floating Emergency 24/7 Hotline Button (Fixed Bottom-Right) */
.floating-urgent-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.42), 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.floating-urgent-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.65), 0 4px 14px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

.floating-urgent-btn:active {
  transform: translateY(0);
}

.urgent-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: urgentPulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

@keyframes urgentPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.floating-urgent-icon {
  color: #ffffff;
  flex-shrink: 0;
}

html[dir="rtl"] .floating-urgent-btn {
  right: auto;
  left: 24px;
}

/* Trilingual Switcher Desktop Pill */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.35);
}

/* Theme Toggle Button (Light / Dark Mode Switcher) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.25);
  transform: translateY(-1px);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.theme-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Default Dark Mode: Show Sun icon, Hide Moon icon */
html:not([data-theme="light"]) .theme-icon-sun {
  display: block;
  stroke: #fbbf24;
}
html:not([data-theme="light"]) .theme-icon-moon {
  display: none;
}

/* Light Mode: Show Moon icon, Hide Sun icon */
html[data-theme="light"] .theme-icon-sun {
  display: none;
}
html[data-theme="light"] .theme-icon-moon {
  display: block;
  stroke: #2563eb;
}

html[data-theme="light"] .theme-toggle-btn {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

html[data-theme="light"] .theme-toggle-btn:hover {
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.2);
}

.theme-toggle-btn:active .theme-icon-wrap {
  transform: rotate(45deg) scale(0.92);
}

.mobile-theme-item,
.mobile-drawer-cta {
  display: none;
}

/* Mobile Language Selector Dropdown (Pill: Globe + Flag + Code + Chevron) */
.mobile-lang-dropdown {
  position: relative;
  display: none;
}

.mobile-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: #ffffff;
}

.mobile-lang-trigger:hover,
.mobile-lang-dropdown.is-open .mobile-lang-trigger {
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(22, 32, 54, 0.95);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.mobile-lang-trigger .globe-icon {
  stroke: #d4af37;
  flex-shrink: 0;
}

.flag-wrap {
  display: inline-flex;
  align-items: center;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  line-height: 1;
}

.flag-icon {
  display: block;
  width: 18px;
  height: 13px;
  object-fit: cover;
}

.mobile-lang-trigger .lang-code {
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.mobile-lang-trigger .chevron-icon {
  stroke: #94a3b8;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.mobile-lang-dropdown.is-open .chevron-icon {
  transform: rotate(180deg);
}

.mobile-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 1000;
}

.mobile-lang-dropdown.is-open .mobile-lang-menu {
  display: flex;
}

.mobile-lang-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.mobile-lang-option:hover {
  background: rgba(37, 99, 235, 0.2);
  color: #ffffff;
}

.mobile-lang-option.active {
  background: rgba(37, 99, 235, 0.35);
  color: #ffffff;
  font-weight: 700;
}

.mobile-lang-option .opt-label {
  flex-grow: 1;
}

.mobile-lang-option .opt-code {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  position: relative;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform-origin: center;
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1),
.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2),
.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3),
.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   9. Hero Section & Uptime Cadence
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px 0 32px;
  position: relative;
}

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

.hero-content {
  max-width: 660px;
}

.hero-badge-wrap {
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 3.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.14;
  color: #ffffff;
}

html[data-theme="light"] .hero h1 {
  color: #0f172a;
}

.hero-lead {
  font-size: 1.08rem;
  margin-bottom: 1.4rem;
  line-height: 1.58;
}

/* 4-Point Uptime & Peace-of-Mind Cadence (Inspired by Present.ca) */
.hero-cadence {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.85rem;
  padding: 1.05rem 1.4rem;
  background: rgba(10, 16, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cadence-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #f1f5f9;
}

.cadence-item svg {
  width: 20px;
  height: 20px;
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 2px;
}

.cadence-item strong {
  color: #facc15;
  font-weight: 700;
}

html[data-theme="light"] .cadence-item strong {
  color: var(--accent-primary);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Hero Visual Card & Showcase */
.hero-visual {
  position: relative;
  margin-top: 0.4rem;
}

.hero-card-preview {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(37, 99, 235, 0.15);
  background: var(--bg-tertiary);
  transition: box-shadow var(--transition-normal);
}

.hero-card-preview:hover {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(37, 99, 235, 0.25);
}

.hero-slides-wrapper {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.8s;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient overlay for high contrast text readability */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 26, 0.35) 0%, rgba(8, 13, 26, 0.1) 40%, rgba(8, 13, 26, 0.75) 100%);
  pointer-events: none;
}

/* Top Showcase Bar */
.hero-showcase-topbar {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 10;
  pointer-events: none;
}

.hero-live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  background: rgba(9, 13, 22, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: heroPulse 2s infinite;
}

@keyframes heroPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-showcase-indicators {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(9, 13, 22, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

.hero-dot {
  width: 26px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-dot.active {
  width: 44px;
  background: var(--accent-primary);
}

.hero-dot-progress {
  position: absolute;
  inset: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.active .hero-dot-progress {
  animation: heroDotProgress 5s linear infinite;
}

@keyframes heroDotProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Floating Badge */
.hero-preview-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  padding: 1.15rem 1.35rem;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  z-index: 5;
  transition: transform var(--transition-normal);
}

.hero-card-preview:hover .hero-preview-badge {
  transform: translateY(-2px);
}

.hero-preview-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.25);
}

.hero-preview-text h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.hero-preview-text p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.35;
}

/* Slide Navigation Chevrons */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-card-preview:hover .hero-nav-btn {
  opacity: 0.9;
}

.hero-nav-btn:hover {
  opacity: 1 !important;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-50%) scale(1.08);
}

.hero-nav-prev {
  left: 1rem;
}

.hero-nav-next {
  right: 1rem;
}

html[dir="rtl"] .hero-nav-prev {
  left: auto;
  right: 1rem;
  transform: translateY(-50%) rotate(180deg);
}

html[dir="rtl"] .hero-nav-prev:hover {
  transform: translateY(-50%) rotate(180deg) scale(1.08);
}

html[dir="rtl"] .hero-nav-next {
  right: auto;
  left: 1rem;
  transform: translateY(-50%) rotate(180deg);
}

html[dir="rtl"] .hero-nav-next:hover {
  transform: translateY(-50%) rotate(180deg) scale(1.08);
}

/* --------------------------------------------------------------------------
   10. Trust & Metrics Bar
   -------------------------------------------------------------------------- */
.metrics-section {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 1.5rem;
  padding: 1.5rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: -0.75rem;
  height: 70%;
  width: 1px;
  background: var(--border-color);
}

html[dir="rtl"] .metric-item:not(:last-child)::after {
  right: auto;
  left: -0.75rem;
}

.metric-value {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #facc15;
  font-family: var(--font-heading);
  line-height: 1.15;
}

html[data-theme="light"] .metric-value {
  color: var(--accent-primary);
}

.metric-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   11. Core IT Services Grid (6 Equal-Height Cards)
   -------------------------------------------------------------------------- */
.services-section {
  padding-top: 28px;
  padding-bottom: 20px;
  border-bottom: none;
  scroll-margin-top: 80px;
}

.services-section .section-header {
  margin: 0 auto 2.25rem;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(37, 99, 235, 0.22);
}

.service-card:hover .service-card-btn,
.service-card:focus-within .service-card-btn {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.service-card-image-wrap {
  position: relative;
  height: 195px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

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

.service-card:hover .service-card-image-wrap img {
  transform: scale(1.06);
}

.service-card-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, 0.5) 100%);
  pointer-events: none;
}

html[data-theme="light"] .service-card-image-wrap::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, 0.2) 100%);
}

.service-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: var(--radius-full);
  color: #facc15;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

html[dir="rtl"] .service-card-tag {
  left: auto;
  right: 1rem;
}

.service-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card h3 {
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.service-card-desc {
  font-size: 0.96rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-grow: 1;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.91rem;
  color: #cbd5e1;
}

.service-features li svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-card-action {
  margin-top: auto;
}

.service-card-btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   12. Interactive Service Modal Drawer
   -------------------------------------------------------------------------- */
.service-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.service-modal-backdrop.active,
.service-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop-close {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.service-modal-drawer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(37, 99, 235, 0.18);
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-normal);
}

.service-modal-drawer::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.service-modal-backdrop.active .service-modal-drawer,
.service-modal-backdrop.open .service-modal-drawer {
  transform: translateY(0) scale(1);
}

.service-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.service-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

.service-modal-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-modal-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.service-modal-desc {
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.service-modal-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.service-modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  padding: 1.25rem;
  background: rgba(9, 13, 22, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.service-modal-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
  color: #cbd5e1;
}

.service-modal-features li svg {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-cta-btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   13. Quebec Law 25 & Why Us Section
   -------------------------------------------------------------------------- */
.why-section {
  padding-top: 20px;
  padding-bottom: 40px;
  scroll-margin-top: 80px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0c1220 100%);
}

.why-law25-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(22, 32, 54, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 4rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.why-law25-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.28);
  color: #facc15;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

html[data-theme="light"] .why-law25-badge {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  color: var(--accent-secondary);
}

.why-law25-content h3 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.why-law25-content p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.why-law25-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-law25-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.98rem;
  color: var(--text-main);
  padding: 0.85rem 1.2rem;
  background: rgba(9, 13, 22, 0.65);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.why-law25-list svg {
  width: 22px;
  height: 22px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* 3 Pillars Grid */
.why-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
  overflow: hidden;
}

.why-pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 30px rgba(37, 99, 235, 0.15);
}

.why-pillar-image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

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

.why-pillar-card:hover .why-pillar-image-wrap img {
  transform: scale(1.06);
}

.why-pillar-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 50%, rgba(15, 23, 42, 0.6) 100%);
  pointer-events: none;
}

.why-pillar-icon {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.why-pillar-icon svg {
  width: 22px;
  height: 22px;
}

.why-pillar-card:hover .why-pillar-icon {
  transform: scale(1.08);
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

.why-pillar-body {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.why-pillar-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  line-height: 1.35;
}

.why-pillar-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   14. Certified Technology Partners
   -------------------------------------------------------------------------- */
.partners-section {
  padding: 44px 0 60px;
  scroll-margin-top: 80px;
  background: rgba(15, 23, 42, 0.45);
}

.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1060px;
  margin: 0 auto;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.75rem;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  height: 100px;
  width: 240px;
  flex: 0 0 240px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.partner-logo-item img {
  max-height: 70px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: transform 0.3s ease;
}

.partner-logo-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25), 0 0 0 2px var(--accent-primary);
}

.partner-logo-item:hover img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   15. Contact & Consultation Section
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 110px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #060910 100%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.contact-info h3 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.contact-details {
  list-style: none;
  margin: 2.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item-text span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-item-text a,
.contact-item-text p {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-item-text a:hover {
  color: var(--accent-primary);
}

/* Consultation Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-control {
  width: 100%;
  padding: 0.88rem 1.15rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.96rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.form-control.is-valid {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.form-control.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

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

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

html[dir="rtl"] select.form-control {
  background-position: left 1rem center;
}

select.form-control option {
  background: var(--bg-secondary);
  color: var(--text-main);
}

/* Form Toast Notification */
.form-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-primary);
  color: #ffffff;
  padding: 1.1rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
  font-weight: 600;
  font-size: 0.98rem;
  display: none;
  z-index: 9999;
  animation: toastSlideUp 0.35s ease;
}

html[dir="rtl"] .form-toast {
  right: auto;
  left: 2rem;
}

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

/* --------------------------------------------------------------------------
   16. Enterprise Multi-Column Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 70px 0 35px;
  background: #05080e;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer .brand-text,
.footer-brand .brand-text {
  color: #ffffff !important;
}

.footer .brand-text span,
.footer-brand .brand-text span {
  color: var(--accent-primary) !important;
}

.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  max-width: 320px;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  color: #f1f5f9;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-law25-badge {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-social-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

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

.social-link {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.back-to-top-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.back-to-top-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   17. Light Mode Theme Overrides (UI/UX Pro Max certified)
   -------------------------------------------------------------------------- */
html[data-theme="light"] {
  --bg-primary: #f8fafc;          /* Canadian Enterprise Crisp Slate */
  --bg-secondary: #ffffff;        /* Pure White Elevated Panels */
  --bg-tertiary: #f1f5f9;         /* Slate Neutral Base */
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #ffffff;
  
  --border-color: rgba(15, 23, 42, 0.08);
  --border-light: rgba(15, 23, 42, 0.12);
  --border-glow: rgba(37, 99, 235, 0.35);

  --accent-primary: #2563eb;       /* Canadian Cobalt & Royal Blue */
  --accent-primary-hover: #1d4ed8;
  --accent-secondary: #0284c7;     /* Ocean Sapphire Cyan */
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  --accent-glow: rgba(37, 99, 235, 0.12);

  --text-main: #0f172a;           /* Deep Slate High Contrast AAA (> 12:1) */
  --text-muted: #475569;          /* Slate 600 WCAG AA > 4.5:1 */
  --text-dim: #64748b;            /* Slate 500 */
  --text-light: #0f172a;
}

/* Document & Ambient Lighting in Light Mode */
html[data-theme="light"],
html[data-theme="light"] body {
  background-color: var(--bg-primary);
  color: var(--text-main);
}

html[data-theme="light"] .ambient-glow {
  opacity: 0.06;
  filter: blur(160px);
}

/* Sticky Navbar in Light Mode */
html[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

/* Secondary Button in Light Mode */
html[data-theme="light"] .btn-secondary {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.14);
  color: #0f172a;
}

html[data-theme="light"] .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.22);
  color: #0f172a;
}

/* Desktop Lang Switcher in Light Mode */
html[data-theme="light"] .lang-switcher {
  background: rgba(15, 23, 42, 0.04);
  border-color: var(--border-color);
}

html[data-theme="light"] .lang-btn {
  color: #475569;
}

html[data-theme="light"] .lang-btn:hover {
  color: #0f172a;
}

html[data-theme="light"] .lang-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.3);
}

/* Mobile Lang Dropdown & Trigger in Light Mode */
html[data-theme="light"] .mobile-lang-trigger {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .mobile-lang-trigger .lang-code {
  color: #0f172a;
}

html[data-theme="light"] .mobile-lang-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.15);
}

html[data-theme="light"] .mobile-lang-option {
  color: #0f172a;
}

html[data-theme="light"] .mobile-lang-option:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

html[data-theme="light"] .mobile-lang-option .opt-code {
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}

/* Hamburger toggle lines in Light Mode */
html[data-theme="light"] .hamburger-line {
  background: #0f172a;
}

/* Hero Section Cadence & Visual in Light Mode */
html[data-theme="light"] .hero-cadence,
html[data-theme="light"] .hero-uptime-cadence {
  background: #80808042;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .cadence-item {
  color: #1e293b;
}

html[data-theme="light"] .hero-card-preview {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12), 0 0 40px rgba(37, 99, 235, 0.1);
}

html[data-theme="light"] .hero-live-status {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .hero-showcase-indicators {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .hero-dot {
  background: rgba(15, 23, 42, 0.22);
}

html[data-theme="light"] .hero-dot.active {
  background: var(--accent-primary);
}

html[data-theme="light"] .hero-preview-badge {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .hero-preview-text h4 {
  color: #0f172a;
}

html[data-theme="light"] .hero-preview-text p {
  color: #475569;
}

html[data-theme="light"] .hero-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .hero-nav-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

/* Metrics Bar in Light Mode */
html[data-theme="light"] .metrics-bar {
  background: #ffffff;
  border-color: var(--border-color);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

/* Core Services Grid in Light Mode */
html[data-theme="light"] .service-card {
  background: #ffffff;
  border-color: var(--border-color);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .service-card:hover,
html[data-theme="light"] .service-card:focus-visible {
  border-color: var(--border-glow);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08), 0 0 25px rgba(37, 99, 235, 0.15);
}

html[data-theme="light"] .service-card-tag {
  background: rgba(240, 249, 255, 0.95);
  border-color: rgba(2, 132, 199, 0.3);
  color: #0284c7;
}

html[data-theme="light"] .service-features li {
  color: #334155;
}

html[data-theme="light"] .service-card-image-wrap {
  background: #f1f5f9;
}

/* Interactive Service Modal Drawer in Light Mode */
html[data-theme="light"] .service-modal-backdrop {
  background: rgba(15, 23, 42, 0.55);
}

html[data-theme="light"] .service-modal-drawer {
  background: #ffffff;
  border-color: var(--border-color);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18), 0 0 35px rgba(37, 99, 235, 0.1);
}

html[data-theme="light"] .service-modal-close {
  background: rgba(15, 23, 42, 0.05);
  border-color: var(--border-color);
  color: #0f172a;
}

html[data-theme="light"] .service-modal-close:hover {
  background: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .service-modal-features {
  background: #f8fafc;
  border-color: var(--border-color);
}

html[data-theme="light"] .service-modal-features li {
  color: #334155;
}

/* Why Section & Law 25 in Light Mode */
html[data-theme="light"] .why-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

html[data-theme="light"] .why-law25-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .why-law25-list li {
  background: #ffffff;
  border-color: var(--border-color);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] .why-pillar-card {
  background: #ffffff;
  border-color: var(--border-color);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .why-pillar-image-wrap::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.25) 100%);
}

html[data-theme="light"] .why-pillar-icon {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--accent-primary);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .why-pillar-card:hover .why-pillar-icon {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

/* Certified Partners in Light Mode */
html[data-theme="light"] .partners-section {
  background: #f1f5f9;
}

html[data-theme="light"] .partner-logo-item {
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06) !important;
}

/* Contact Section & Form in Light Mode */
html[data-theme="light"] .contact-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

html[data-theme="light"] .contact-wrapper {
  background: #ffffff;
  border-color: var(--border-color);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .form-group label {
  color: #334155;
}

html[data-theme="light"] .form-control {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

html[data-theme="light"] select.form-control option {
  background: #ffffff;
  color: #0f172a;
}

/* Enterprise Multi-Column Footer in Light Mode */
html[data-theme="light"] .footer {
  background: #0f172a;
  border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .footer .brand-text,
html[data-theme="light"] .footer-brand .brand-text {
  color: #ffffff !important;
}

html[data-theme="light"] .footer .brand-text span,
html[data-theme="light"] .footer-brand .brand-text span {
  color: var(--accent-primary) !important;
}

html[data-theme="light"] .footer-brand p {
  color: #94a3b8;
}

html[data-theme="light"] .footer-col h4 {
  color: #f1f5f9;
}

html[data-theme="light"] .footer-col a {
  color: #94a3b8;
}

html[data-theme="light"] .footer-col a:hover {
  color: #ffffff;
}

html[data-theme="light"] .footer-bottom {
  color: #64748b;
  border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .footer-law25-badge {
  color: #94a3b8;
}

html[data-theme="light"] .footer-social-desc {
  color: #94a3b8;
}

html[data-theme="light"] .social-link {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

html[data-theme="light"] .social-link:hover {
  background: var(--accent-primary);
  color: #ffffff !important;
  border-color: var(--accent-primary);
}

html[data-theme="light"] .back-to-top-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

html[data-theme="light"] .back-to-top-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   18. Responsive Breakpoints & Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    display: block;
    padding: 110px 0 48px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual {
    max-width: 550px;
    margin: 0 auto;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-law25-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 72px;
  }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    background: #080d1a;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.75rem 1.75rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  html[dir="rtl"] .nav-links {
    transform: translateX(-100%);
  }
  html[dir="rtl"] .nav-links.open {
    transform: translateX(0);
  }
  .mobile-drawer-header {
    display: none;
  }
  .nav-links-inner {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
  }
  .nav-links-inner .nav-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color var(--transition-fast), transform var(--transition-fast);
    text-align: left;
    display: block;
  }
  html[dir="rtl"] .nav-links-inner .nav-link {
    text-align: right;
  }
  .nav-links-inner .nav-link:hover,
  .nav-links-inner .nav-link:focus {
    color: var(--accent-secondary);
    transform: translateX(6px);
  }
  html[dir="rtl"] .nav-links-inner .nav-link:hover,
  html[dir="rtl"] .nav-links-inner .nav-link:focus {
    transform: translateX(-6px);
  }
  .nav-links-inner .nav-link::after {
    display: none;
  }
  .mobile-theme-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0.5rem 0.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  html[data-theme="light"] .mobile-theme-item {
    border-top-color: rgba(15, 23, 42, 0.08);
  }
  .mobile-drawer-cta {
    display: block;
    margin-top: 1.25rem;
    padding-top: 1rem;
  }
  .mobile-drawer-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .mobile-theme-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
  }
  .mobile-drawer-theme-toggle {
    width: auto;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-full);
    gap: 8px;
  }
  .mobile-theme-text {
    font-size: 0.85rem;
    font-weight: 600;
  }
  html[data-theme="light"] .nav-links {
    background: #ffffff;
    border-top-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  }
  html[data-theme="light"] .nav-links-inner .nav-link {
    color: #0f172a;
    border-bottom-color: rgba(15, 23, 42, 0.06);
  }
  html[data-theme="light"] .nav-links-inner .nav-link:hover,
  html[data-theme="light"] .nav-links-inner .nav-link:focus {
    color: var(--accent-primary);
  }
  html[data-theme="light"] .mobile-drawer-close {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
  }
  .mobile-toggle {
    display: flex;
  }
  .lang-switcher.lang-switcher-desktop {
    display: none !important;
  }
  .nav-actions .theme-toggle-btn {
    display: none;
  }
  .mobile-lang-dropdown {
    display: block;
    transition: opacity var(--transition-fast);
  }
  .nav-open .mobile-lang-dropdown {
    opacity: 0;
    pointer-events: none;
  }
  .nav-actions {
    gap: 0.65rem;
  }
  .nav-actions .btn-quote-header {
    display: none;
  }
  .metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem;
    gap: 1.5rem 1rem;
  }
  .metric-item:nth-child(2)::after {
    display: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .why-pillars-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
  .contact-wrapper {
    padding: 2rem 1.5rem;
  }
  .service-modal-drawer {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .metrics-bar {
    grid-template-columns: 1fr;
  }
  .metric-item::after {
    display: none !important;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .nav-actions .btn-quote-header {
    display: none;
  }
  .floating-urgent-btn {
    bottom: 16px;
    right: 16px;
    padding: 0.68rem 1.1rem;
    font-size: 0.84rem;
  }
  html[dir="rtl"] .floating-urgent-btn {
    right: auto;
    left: 16px;
  }
  /* Mobile Hero Showcase */
  .hero-slides-wrapper {
    height: 380px;
  }
  .hero-preview-badge {
    bottom: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }
  .hero-preview-icon {
    width: 38px;
    height: 38px;
  }
  .hero-preview-text h4 {
    font-size: 0.92rem;
  }
  .hero-preview-text p {
    font-size: 0.78rem;
  }
  .hero-showcase-topbar {
    top: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
  }
  .hero-live-status {
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
  }
  .hero-dot {
    width: 20px;
  }
  .hero-dot.active {
    width: 32px;
  }
}

/* ==========================================================================
   21. Enterprise Micro-Interactions & Pro Animations (UI/UX Pro Max)
   ========================================================================== */

/* Top Reading Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-gradient);
  z-index: 1002;
  transition: width 0.08s linear;
  pointer-events: none;
}

html[dir="rtl"] .scroll-progress-bar {
  left: auto;
  right: 0;
}

/* Scrolled Navbar State */
@media (min-width: 769px) {
  .navbar.navbar-scrolled {
    height: 70px;
    background: rgba(8, 13, 24, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-bottom-color: rgba(37, 99, 235, 0.28);
  }
  html[data-theme="light"] .navbar.navbar-scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-bottom-color: rgba(37, 99, 235, 0.20);
  }
}

/* Scroll Reveal Engine */
.reveal-pending {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-on-scroll {
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Grid Staggers for Service Cards */
.services-grid .service-card:nth-child(1) { transition-delay: 0.04s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.12s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.16s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.20s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.24s; }

/* Grid Staggers for Pillars */
.why-pillars-grid .why-pillar-card:nth-child(1) { transition-delay: 0.05s; }
.why-pillars-grid .why-pillar-card:nth-child(2) { transition-delay: 0.10s; }
.why-pillars-grid .why-pillar-card:nth-child(3) { transition-delay: 0.15s; }

/* Interactive Spotlight & 3D Tilt for Enterprise Cards */
.service-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(37, 99, 235, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

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

html[data-theme="light"] .service-card::before {
  background: radial-gradient(380px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(37, 99, 235, 0.12), transparent 70%);
}

.why-pillar-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.why-pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(2, 132, 199, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.why-pillar-card:hover::before {
  opacity: 1;
}

html[data-theme="light"] .why-pillar-card::before {
  background: radial-gradient(320px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(2, 132, 199, 0.10), transparent 70%);
}

/* Magnetic Button Base */
.btn-magnetic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow var(--transition-fast), background var(--transition-fast);
  will-change: transform;
}

/* ==========================================================================
   22. Hero Cinematic Entrance Animation on Page Load (UI/UX Pro Max)
   ========================================================================== */

@keyframes heroEntranceFadeUp {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroEntranceVisual {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-animate-badge {
  animation: heroEntranceFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.hero-animate-title {
  animation: heroEntranceFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.hero-animate-desc {
  animation: heroEntranceFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.hero-animate-cadence {
  animation: heroEntranceFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.hero-animate-actions {
  animation: heroEntranceFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

.hero-animate-visual {
  animation: heroEntranceVisual 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress-bar {
    display: none !important;
  }
  .reveal-pending,
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .service-card,
  .why-pillar-card,
  .btn-magnetic {
    transform: none !important;
    transition: none !important;
  }
  .service-card::before,
  .why-pillar-card::before {
    display: none !important;
  }
  .hero-animate-badge,
  .hero-animate-title,
  .hero-animate-desc,
  .hero-animate-cadence,
  .hero-animate-actions,
  .hero-animate-visual {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
