/* 
 * Zimforth Consultancy - Premium Soft UI Design System
 * Built on Legacy. Driven Forward.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary: #199BF1;
  --primary-rgb: 25, 155, 241;
  --primary-hover: #1084d2;
  --bg-light: #EBFAFF;
  --white: #FFFFFF;
  --text-dark: #191919;
  --text-muted: #484848;
  --border-light: rgba(25, 155, 241, 0.08);
  
  /* Soft UI & Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.6);
  --soft-shadow-sm: 0 4px 12px rgba(25, 155, 241, 0.03);
  --soft-shadow-md: 0 16px 40px rgba(25, 155, 241, 0.05);
  --soft-shadow-lg: 0 28px 64px rgba(25, 155, 241, 0.1);
  --inset-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.02), inset -2px -2px 6px rgba(255, 255, 255, 0.8);
  
  /* System Settings */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

/* Base Styles */
html {
  scroll-padding-top: 90px;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Selection highlight */
::selection {
  background-color: rgba(var(--primary-rgb), 0.2);
  color: var(--text-dark);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: rgba(var(--primary-rgb), 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(120deg, #ffffff 0%, #7cd2ff 35%, #b392ff 65%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine-text 6s linear infinite;
}

@keyframes shine-text {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Dot Matrix Background Pattern */
.dot-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(25, 155, 241, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.subtitle-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(25, 155, 241, 0.04);
  border: 1px solid rgba(25, 155, 241, 0.12);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  box-shadow: var(--soft-shadow-sm);
  margin-bottom: 1.5rem;
}

/* Navigation Bar Styles */
.navbar-custom {
  background: transparent;
  border-bottom: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px 0;
  z-index: 1030;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.navbar-custom.scrolled {
  padding: 10px 24px;
  width: calc(100% - 40px);
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(25, 155, 241, 0.1);
  border-radius: 50px;
  box-shadow: 0 20px 40px rgba(25, 155, 241, 0.06);
  top: 15px;
}

.navbar-brand img {
  height: 38px;
  transition: var(--transition-smooth);
}

.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 18px !important;
  border-radius: 50px;
  transition: var(--transition-smooth);
  position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.navbar-custom.scrolled .nav-link {
  color: var(--text-muted);
}

.navbar-custom.scrolled .nav-link:hover,
.navbar-custom.scrolled .nav-link.active {
  color: var(--primary);
  background-color: var(--white);
  box-shadow: var(--soft-shadow-sm);
}

.navbar-custom .navbar-toggler {
  border: none;
  background: var(--white);
  box-shadow: var(--soft-shadow-sm);
  border-radius: 12px;
  padding: 8px 12px;
}

/* Button UI */
.btn-soft {
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-soft-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 15px rgba(25, 155, 241, 0.2);
}

.btn-soft-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
  color: var(--white);
}

.btn-soft-secondary {
  background-color: var(--white);
  color: var(--text-dark);
  border: 1px solid rgba(25, 155, 241, 0.15);
  box-shadow: var(--soft-shadow-sm);
}

.btn-soft-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow-md);
}

/* Cards & Layout Panels (Soft UI with Spotlight Cursor Glow & Glare Sheen) */
.soft-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: var(--soft-shadow-md);
  transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.soft-card:hover {
  box-shadow: 0 30px 60px rgba(25, 155, 241, 0.12);
  border-color: rgba(25, 155, 241, 0.25);
}

.soft-card > * {
  position: relative;
  z-index: 3;
}

/* Glass Card Dark Modifier */
.soft-card.glass-card-dark {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}



.soft-card.glass-card-dark h5 {
  color: var(--white) !important;
}

.soft-card.glass-card-dark .soft-icon-box {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--primary);
  box-shadow: inset 2px 2px 6px rgba(255, 255, 255, 0.05), inset -2px -2px 6px rgba(0, 0, 0, 0.2);
}

.soft-card.glass-card-dark:hover .soft-icon-box {
  background-color: var(--primary);
  color: var(--white);
}

/* Diagonal Sheen Overlay */
.card-sheen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0) 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 3;
}

.soft-card:hover .card-sheen, .bento-card:hover .card-sheen {
  transform: translateX(100%);
}

.soft-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background-color: var(--bg-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
  box-shadow: var(--inset-shadow);
}

.soft-card:hover .soft-icon-box {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 8px 20px rgba(25, 155, 241, 0.15);
}

/* Advanced Image Showcases */
.image-showcase-container {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--soft-shadow-lg);
  transition: box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-showcase-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.image-showcase-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 80px rgba(25, 155, 241, 0.15);
}

.image-showcase-container:hover img {
  transform: scale(1.03);
}

.glass-overlay-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
  z-index: 4;
}

/* Bento Grid System for Services */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 2.8rem;
  box-shadow: var(--soft-shadow-md);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  box-shadow: 0 30px 60px rgba(25, 155, 241, 0.12);
  border-color: rgba(25, 155, 241, 0.25);
}

.bento-card > * {
  position: relative;
  z-index: 3;
}

.bento-card-large {
  grid-column: span 2;
}

/* Sections Customization */
section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

footer {
  overflow: visible;
}

/* Dark Luxury Hero Section */
.hero-section {
  min-height: 98vh;
  display: flex;
  align-items: center;
  background-color: #0b0f19;
  background-image: radial-gradient(circle at 80% 20%, rgba(25, 155, 241, 0.12) 0%, transparent 60%),
                    radial-gradient(circle at 10% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  padding-top: 160px;
  padding-bottom: 80px;
  color: var(--white);
  overflow: hidden;
}

.hero-section .dot-grid-bg {
  background-image: radial-gradient(rgba(25, 155, 241, 0.1) 1px, transparent 1px);
}

.hero-section .hero-title {
  color: var(--white);
}

.hero-section .hero-description {
  color: rgba(255, 255, 255, 0.7);
}

.hero-section .btn-soft-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.hero-section .btn-soft-secondary:hover {
  background-color: var(--white);
  color: var(--text-dark);
}

.hero-title {
  font-size: 4.2rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.8rem;
}

.hero-description {
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* Drifting Blur Background Blobs */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

.shape-1 {
  top: 10%;
  right: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(25, 155, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 50%, transparent 100%);
  animation: float-slow 20s infinite alternate;
}

.shape-2 {
  bottom: 10%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(25, 155, 241, 0.1) 60%, transparent 100%);
  animation: float-slow 25s infinite alternate-reverse;
}

.shape-3 {
  top: 40%;
  left: 40%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(25, 155, 241, 0.1) 60%, transparent 100%);
  animation: float-slow 30s infinite alternate;
}

/* Stats Counter Section */
.stat-item {
  text-align: center;
  padding: 1.8rem;
}

.stat-number {
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Strengths Section */
.strength-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 14px 28px;
  margin-bottom: 16px;
  box-shadow: var(--soft-shadow-sm);
  transition: var(--transition-smooth);
}

.strength-badge:hover {
  transform: translateX(6px);
  box-shadow: var(--soft-shadow-md);
  border-color: rgba(25, 155, 241, 0.2);
}

.strength-badge i {
  color: var(--primary);
  font-size: 1.3rem;
}

/* Methodology Steps styling */
.methodology-step {
  position: relative;
}

.methodology-number {
  font-size: 6rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(25, 155, 241, 0.18) 0%, rgba(139, 92, 246, 0.05) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
  top: 10px;
  right: 28px;
  z-index: 0;
  line-height: 1;
  user-select: none;
}

.methodology-content {
  position: relative;
  z-index: 1;
}

/* Comparison Grid */
.compare-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.compare-card {
  padding: 3rem;
  border-radius: 28px;
}

.compare-card.traditional {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--glass-border);
}

.compare-card.zimforth {
  background: linear-gradient(135deg, var(--white) 0%, rgba(235, 250, 255, 0.8) 100%);
  border: 1px solid rgba(25, 155, 241, 0.15);
  box-shadow: var(--soft-shadow-md);
  position: relative;
  overflow: hidden;
}

.compare-card.zimforth::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary);
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0 0;
}

.compare-list li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.compare-list li:last-child {
  border-bottom: none;
}

.compare-list i {
  font-size: 1.15rem;
}

.compare-list .text-success-custom i {
  color: #2ec4b6;
}

.compare-list .text-danger-custom i {
  color: #ff3366;
}

/* Accordion overrides */
.accordion-custom .accordion-item {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 20px !important;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--soft-shadow-sm);
  transition: var(--transition-smooth);
}

.accordion-custom .accordion-item:hover {
  box-shadow: var(--soft-shadow-md);
  border-color: rgba(25, 155, 241, 0.15);
}

.accordion-custom .accordion-header {
  border: none;
}

.accordion-custom .accordion-button {
  background: transparent;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 22px 28px;
  box-shadow: none;
  border: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: rgba(25, 155, 241, 0.03);
}

.accordion-custom .accordion-button::after {
  background-size: 1rem;
  transition: transform 0.3s ease;
}

.accordion-custom .accordion-body {
  padding: 10px 28px 28px 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact Cards and Form */
.contact-link-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 1.6rem;
  box-shadow: var(--soft-shadow-sm);
  transition: var(--transition-smooth);
  text-decoration: none;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.contact-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--soft-shadow-md);
  border-color: rgba(25, 155, 241, 0.2);
  color: var(--primary);
}

.contact-link-card .contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--inset-shadow);
  transition: var(--transition-smooth);
}

.contact-link-card:hover .contact-icon {
  background: var(--primary);
  color: var(--white);
}

/* Form Soft-UI Styling */
.form-soft-group {
  margin-bottom: 1.8rem;
}

.form-soft-group label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}

.form-soft-control {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px 20px;
  color: var(--text-dark);
  font-size: 0.95rem;
  box-shadow: var(--inset-shadow);
  transition: var(--transition-smooth);
  width: 100%;
}

.form-soft-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(25, 155, 241, 0.12);
}

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

/* Success Message Overlay on submission */
.form-success-overlay {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
}

.success-icon-bounce {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: rgba(46, 196, 182, 0.1);
  color: #2ec4b6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  margin-bottom: 1.8rem;
  animation: bounce-slow 2s infinite;
}

/* Animations */
@keyframes float-slow {
  0% {
    transform: translate(0px, 0px) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(30px, -50px) rotate(180deg) scale(1.1);
  }
  100% {
    transform: translate(0px, 0px) rotate(360deg) scale(1);
  }
}

@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* GSAP Scroll Reveals (Zero Conflict CSS) */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
}

.reveal.reveal-left {
  transform: translateX(-50px);
}

.reveal.reveal-right {
  transform: translateX(50px);
}

/* Floating Metrics & Widgets in Hero */
.floating-widget {
  position: absolute;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 16px 20px;
  z-index: 5;
  box-shadow: var(--soft-shadow-md);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.floating-widget:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 24px 48px rgba(25, 155, 241, 0.14);
}

.widget-progress {
  top: 30px;
  left: -40px;
}

.widget-roi {
  bottom: 190px;
  right: -30px;
}

.progress-ring-container {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.progress-ring {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-ring-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.roi-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(25, 155, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Infinite Marquee Ticker */
.marquee-ticker {
  overflow: hidden;
  white-space: nowrap;
  background: #0b0f19;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 0;
  position: relative;
  z-index: 10;
}

.marquee-track {
  display: inline-block;
  animation: marquee-scroll 35s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 0 40px;
}

.marquee-item::after {
  content: '✦';
  margin-left: 80px;
  color: var(--primary);
  opacity: 0.6;
}

[dir="rtl"] .marquee-item::after {
  margin-left: 0;
  margin-right: 80px;
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

[dir="rtl"] .marquee-track {
  animation: marquee-scroll-rtl 35s linear infinite;
}

@keyframes marquee-scroll-rtl {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(50%, 0, 0);
  }
}

/* Horizontal Scroll Methodology Framework */
.horizontal-scroll-section {
  position: relative;
  overflow: hidden;
  background-color: #0b0f19;
  color: var(--white);
  padding: 0 !important;
}

.scroll-container {
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.horizontal-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  padding: 0 10vw;
  will-change: transform;
}

.horizontal-slide {
  width: 80vw;
  max-width: 550px;
  flex-shrink: 0;
  margin-right: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.horizontal-slide.intro-slide {
  max-width: 480px;
  margin-right: 120px;
}

[dir="rtl"] .horizontal-slide {
  margin-right: 0;
  margin-left: 80px;
}

[dir="rtl"] .horizontal-slide.intro-slide {
  margin-right: 0;
  margin-left: 120px;
}

/* Interactive Canvas Background Overlay */
.canvas-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-title {
    font-size: 3.2rem;
  }
  section {
    padding: 80px 0;
  }
  .navbar-custom {
    padding: 14px 0;
  }
  .navbar-collapse {
    background: var(--white);
    border-radius: 20px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: var(--soft-shadow-md);
    border: 1px solid var(--glass-border);
  }
  /* Fix mobile expanded menu links white-on-white visibility */
  .navbar-collapse .nav-link {
    color: var(--text-muted) !important;
  }
  .navbar-collapse .nav-link:hover,
  .navbar-collapse .nav-link.active {
    color: var(--primary) !important;
    background-color: rgba(25, 155, 241, 0.05) !important;
  }
  
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .compare-container {
    gap: 24px;
  }
  
  /* Methodology vertical fallbacks */
  .horizontal-scroll-section {
    padding: 80px 0 !important;
  }
  .scroll-container {
    height: auto;
    overflow: visible;
  }
  .horizontal-track {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 15px;
  }
  .horizontal-slide {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 48px;
  }
  [dir="rtl"] .horizontal-slide {
    margin-left: 0 !important;
  }
  .horizontal-slide.intro-slide {
    max-width: 100%;
    margin-bottom: 56px;
  }
  [dir="rtl"] .horizontal-slide.intro-slide {
    margin-left: 0 !important;
  }
  .image-showcase-container {
    min-height: auto !important;
  }
  .image-showcase-container img {
    height: 220px !important;
    object-fit: cover;
  }
  .transit-network-svg {
    display: none !important;
  }
  
  /* Stack floating widgets and details card in Hero and Mobility spotlight on mobile/tablet */
  .floating-widget {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 15px 0 !important;
    width: 100% !important;
    box-shadow: var(--soft-shadow-md) !important;
  }
  .glass-overlay-card {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: 20px !important;
    width: 100% !important;
    padding: 1.5rem !important;
  }
}

@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card-large {
    grid-column: span 1;
  }
  .compare-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .btn-soft {
    width: 100%;
    justify-content: center;
  }
  /* Reduce padding on mobile screens to give content more room */
  .soft-card, .bento-card {
    padding: 1.5rem !important;
  }
}

/* ==========================================
   RTL Custom Styles (Arabic)
   ========================================== */
body.ar-font {
  font-family: 'Cairo', sans-serif;
}

body.ar-font .stat-number, 
body.ar-font .progress-ring-value,
body.ar-font .floating-widget .fs-5 {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 700 !important;
}

/* Mirror badge hover directions */
[dir="rtl"] .strength-badge:hover {
  transform: translateX(-6px);
}

/* Mirror methodology absolute positioning numbers */
[dir="rtl"] .methodology-number {
  right: auto;
  left: 28px;
}

/* ==========================================
   Methodology Widgets & Pulse Animations
   ========================================== */
.methodology-widget {
  transition: var(--transition-smooth);
}

.methodology-widget-border {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.methodology-widget .progress-bar {
  width: 0%;
  animation: fill-maturity 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
}

@keyframes fill-maturity {
  to {
    width: 85%;
  }
}

.growth-chart-svg path[stroke] {
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  animation: draw-chart-line 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.8s;
}

@keyframes draw-chart-line {
  to {
    stroke-dashoffset: 0;
  }
}

/* Roadmap timeline */
.roadmap-track {
  min-height: 52px;
}
.roadmap-line {
  border-radius: 4px;
}
.roadmap-line-active {
  border-radius: 4px;
}
.roadmap-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.roadmap-node.active {
  background: var(--primary) !important;
  color: var(--white) !important;
}

/* Venn Node Diagram */
.venn-diagram-container {
  width: 240px;
  height: 140px;
  margin: 0 auto;
  position: relative;
}
.venn-circle {
  width: 80px;
  height: 80px;
  font-size: 0.75rem;
  color: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
}
.venn-circle i {
  font-size: 0.95rem;
}
.venn-c1 {
  left: 25px;
  top: 10px;
  background: rgba(25, 155, 241, 0.15);
  border: 1px solid rgba(25, 155, 241, 0.35);
}
.venn-c2 {
  right: 25px;
  top: 10px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
}
.venn-c3 {
  left: 80px;
  top: 55px;
  background: rgba(46, 196, 182, 0.15);
  border: 1px solid rgba(46, 196, 182, 0.35);
}
.venn-core {
  width: 28px;
  height: 28px;
  z-index: 10;
  font-size: 0.7rem;
  color: var(--primary);
  left: 106px;
  top: 38px;
}
.venn-diagram-container {
  overflow: visible;
}
.venn-circle {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
}
.venn-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(25, 155, 241, 0.15);
}
.venn-core {
  animation: pulse-glow 2s infinite alternate;
}

/* Growth chart pulse */
.chart-pulse {
  animation: pulse-circle 2s infinite;
  transform-origin: center;
}

@keyframes pulse-circle {
  0% {
    r: 4.5px;
    opacity: 1;
  }
  100% {
    r: 15px;
    opacity: 0;
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 4px rgba(25, 155, 241, 0.4);
  }
  100% {
    box-shadow: 0 0 15px rgba(25, 155, 241, 0.8);
  }
}

/* SVG Transit Routes self-drawing & pulse */
.transit-path-1 {
  stroke-dasharray: 60 200;
  animation: flow-transit 5s linear infinite;
}

.transit-path-2 {
  stroke-dasharray: 40 180;
  animation: flow-transit 4s linear infinite;
  animation-delay: 1s;
}

.transit-path-3 {
  stroke-dasharray: 50 220;
  animation: flow-transit 6s linear infinite;
  animation-delay: 2s;
}

@keyframes flow-transit {
  0% {
    stroke-dashoffset: 260;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.node-pulse {
  animation: pulse-node 2.5s infinite;
  transform-origin: center;
}

@keyframes pulse-node {
  0% {
    r: 5px;
    opacity: 0.85;
  }
  50% {
    opacity: 0.45;
  }
  100% {
    r: 20px;
    opacity: 0;
  }
}

/* Comparison Matrix Table styling */
.comparison-matrix-container {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

.comparison-matrix-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-matrix-table th, .comparison-matrix-table td {
  padding: 24px 30px;
  vertical-align: middle;
  border-top: none !important;
  border-bottom: 1px solid rgba(25, 155, 241, 0.08) !important;
}

.comparison-matrix-table th {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
  background-color: rgba(25, 155, 241, 0.02);
}

.comparison-matrix-table tbody tr {
  transition: background-color 0.25s ease;
}

.comparison-matrix-table tbody tr:hover {
  background-color: rgba(25, 155, 241, 0.015);
}

.comparison-matrix-table tbody tr:last-child td {
  border-bottom: none !important;
}

.comparison-matrix-table .highlighted-column {
  background-color: rgba(25, 155, 241, 0.025);
  position: relative;
}

.comparison-matrix-table th.highlighted-column {
  background-color: rgba(25, 155, 241, 0.045);
  color: var(--primary) !important;
  border-bottom: 2px solid var(--primary) !important;
}

/* Contact chips select */
.contact-chip {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--soft-shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.contact-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow-md);
}

.contact-chip.active {
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%) !important;
  color: var(--white) !important;
  border-color: transparent !important;
  box-shadow: 0 8px 20px rgba(25, 155, 241, 0.25) !important;
}

.contact-chips-container.is-invalid-chips .contact-chip {
  border-color: #ff3366 !important;
  box-shadow: 0 0 0 1px #ff3366 !important;
}

/* RTL Mirror overrides */
[dir="rtl"] .comparison-matrix-table th, [dir="rtl"] .comparison-matrix-table td {
  text-align: right;
}
[dir="rtl"] .comparison-matrix-table th.text-center, [dir="rtl"] .comparison-matrix-table td.text-center {
  text-align: center;
}
[dir="rtl"] .roadmap-line-active {
  left: auto !important;
  right: 0 !important;
}
[dir="rtl"] .venn-c1 {
  left: auto !important;
  right: 25px !important;
}
[dir="rtl"] .venn-c2 {
  right: auto !important;
  left: 25px !important;
}
[dir="rtl"] .venn-c3 {
  left: auto !important;
  right: 80px !important;
}
[dir="rtl"] .venn-core {
  left: auto !important;
  right: 106px !important;
}
[dir="rtl"] .growth-chart-svg {
  transform: scaleX(-1);
}


