/* ==========================================================================
   rankwithsameh.com - Core Premium Stylesheet & Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --primary-navy: #050C16;
  --secondary-navy: #0B192C;
  --accent-cyan: #00cc7e;
  --accent-cyan-hover: #00b36e;
  --bg-light: #050C16;
  --bg-dark-deep: #050C16;
  --text-dark: #F8FAFC;
  --text-light: #F8FAFC;
  --text-muted: #94A3B8;
  --border-light: rgba(255, 255, 255, 0.08);
  
  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-bilingual: 'Tajawal', sans-serif;
  
  /* Glassmorphism Tokens */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: 0 8px 32px 0 rgba(0, 204, 126, 0.05);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-in-out;
}

/* Global Reset & Typography */
body {
  font-family: var(--font-display);
  background-color: var(--bg-dark-deep);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-light) !important;
}

/* Apply Tajawal as primary font on Arabic language pages */
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select,
html[lang="ar"] button,
html[lang="ar"] .logo-text,
html[lang="ar"] .logo-text span,
html[lang="ar"] .main-footer,
html[lang="ar"] .faq-number,
html[lang="ar"] .custom-breadcrumbs,
html[lang="ar"] .custom-breadcrumbs .breadcrumb-item {
  font-family: var(--font-bilingual) !important;
}

.ar-text {
  font-family: var(--font-bilingual);
}

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

/* Layout Blocks */
.section {
  padding: 80px 0;
  position: relative;
}

.section-dark {
  background-color: var(--primary-navy);
  color: var(--text-light);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--text-light);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 50px auto;
  font-size: 1.1rem;
}

/* Premium Buttons & CTAs */
.btn-cyan {
  background-color: var(--accent-cyan);
  color: var(--primary-navy) !important;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 8px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 204, 126, 0.3);
  transition: var(--transition-smooth);
}

.btn-cyan:hover {
  background-color: var(--accent-cyan-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 204, 126, 0.5);
}

.btn-outline-light {
  color: var(--text-light) !important;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-outline-light:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan) !important;
  transform: translateY(-2px);
}

/* Header & Navigation */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: var(--transition-smooth);
  background-color: rgba(5, 12, 22, 0.85) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
}

@media (min-width: 992px) {
  .main-header {
    padding: 18px 0;
  }
}

body.light-mode .main-header {
  background-color: rgba(248, 250, 252, 0.85) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition-smooth);
}

body.light-mode .logo-text {
  background: linear-gradient(135deg, #0f172a 40%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  color: var(--accent-cyan) !important;
  -webkit-text-fill-color: var(--accent-cyan) !important;
}

.header-logo:hover .logo-text,
.footer-brand:hover .logo-text {
  filter: drop-shadow(0 2px 12px rgba(0, 204, 126, 0.5));
}

/* Header phone design */
.header-phone a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition-smooth);
  text-decoration: none;
}

body.light-mode .header-phone a {
  color: #334155;
  background-color: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.header-phone a:hover {
  background-color: rgba(0, 204, 126, 0.06);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan) !important;
}

body.light-mode .header-phone a:hover {
  color: var(--accent-cyan-hover) !important;
  border-color: var(--accent-cyan-hover);
  background-color: rgba(0, 204, 126, 0.04);
}

.header-phone a i {
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

body.light-mode .header-phone a i {
  color: var(--accent-cyan-hover);
}

.bg-dark-custom {
  background-color: transparent !important;
  border-top: none !important;
}

/* Navigation Links */
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: 50px;
  transition: var(--transition-smooth);
}

body.light-mode .navbar-nav .nav-link {
  color: #475569 !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-cyan) !important;
  background-color: rgba(0, 204, 126, 0.06);
}

body.light-mode .navbar-nav .nav-link:hover,
body.light-mode .navbar-nav .nav-link.active {
  color: var(--accent-cyan-hover) !important;
  background-color: rgba(0, 204, 126, 0.04);
}

/* Language Link style */
.lang-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 50px;
  transition: var(--transition-smooth);
}

body.light-mode .lang-link {
  color: #475569 !important;
}

.lang-link:hover {
  color: var(--accent-cyan) !important;
  background-color: rgba(0, 204, 126, 0.06);
}

body.light-mode .lang-link:hover {
  color: var(--accent-cyan-hover) !important;
  background-color: rgba(0, 204, 126, 0.04);
}

/* Theme Toggle Button */
.btn-theme-toggle {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition-smooth);
}

body.light-mode .btn-theme-toggle {
  color: #0f172a;
  background-color: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.btn-theme-toggle:hover {
  background-color: rgba(0, 204, 126, 0.06);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan) !important;
}

body.light-mode .btn-theme-toggle:hover {
  background-color: rgba(0, 204, 126, 0.04);
  border-color: var(--accent-cyan-hover);
  color: var(--accent-cyan-hover) !important;
}

/* Premium Contact Us CTA Button */
.btn-contact-cta {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #00b4d8 100%);
  color: #050c16 !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 204, 126, 0.25);
  position: relative;
  overflow: hidden;
}

body.light-mode .btn-contact-cta {
  background: linear-gradient(135deg, var(--accent-cyan-hover) 0%, #008f5d 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.2);
}

.btn-contact-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 204, 126, 0.4);
  color: #050c16 !important;
}

body.light-mode .btn-contact-cta:hover {
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.35);
}

.btn-contact-cta:active {
  transform: translateY(0);
}

/* Toggler for Mobile */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 6px 10px !important;
  border-radius: 8px;
  outline: none !important;
  box-shadow: none !important;
}

body.light-mode .navbar-toggler {
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
}

.navbar-toggler-icon {
  width: 1.2em !important;
  height: 1.2em !important;
}

/* Mobile-only menu overrides */
.phone-mobile-link {
  color: var(--accent-cyan) !important;
  font-weight: 700;
  background-color: rgba(0, 204, 126, 0.05);
  border: 1px dashed rgba(0, 204, 126, 0.2);
  border-radius: 50px;
}

body.light-mode .phone-mobile-link {
  color: var(--accent-cyan-hover) !important;
  background-color: rgba(0, 204, 126, 0.03);
}

.phone-mobile-link:hover {
  background-color: rgba(0, 204, 126, 0.1);
}

@media (max-width: 991px) {
  .navbar-collapse {
    background-color: rgba(5, 12, 22, 0.95);
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  body.light-mode .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }

  .navbar-nav .dropdown-menu {
    background-color: rgba(5, 12, 22, 0.4);
    border: none;
    box-shadow: none;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  body.light-mode .navbar-nav .dropdown-menu {
    background-color: rgba(15, 23, 42, 0.02);
  }
}

/* Premium Dropdown Hover & Styling */
@media (min-width: 992px) {
  .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .navbar-nav .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 0;
  }
}

.dropdown-menu {
  background-color: rgba(11, 25, 44, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 8px;
}

body.light-mode .dropdown-menu {
  background-color: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

body.light-mode .dropdown-item {
  color: #475569 !important;
}

.dropdown-item:hover,
.dropdown-item.active {
  background-color: rgba(0, 204, 126, 0.06) !important;
  color: var(--accent-cyan) !important;
}

body.light-mode .dropdown-item:hover,
body.light-mode .dropdown-item.active {
  background-color: rgba(0, 204, 126, 0.04) !important;
  color: var(--accent-cyan-hover) !important;
}

.dropdown-divider {
  border-color: rgba(255, 255, 255, 0.08);
}

body.light-mode .dropdown-divider {
  border-color: rgba(15, 23, 42, 0.08);
}

/* Hero Section */
.hero-wrapper {
  background: radial-gradient(circle at 80% 20%, rgba(0, 204, 126, 0.12) 0%, var(--bg-dark-deep) 70%),
              linear-gradient(rgba(255, 255, 255, 0.006) 1px, transparent 1px),
              linear-gradient(90deg, rgba(255, 255, 255, 0.006) 1px, transparent 1px);
  background-size: 100% 100%, 50px 50px, 50px 50px;
  padding: 140px 0 120px 0;
  color: var(--text-light);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

/* Glow Orbs */
.glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}
.glow-1 {
  top: -10%;
  left: -5%;
  background: var(--accent-cyan);
}
.glow-2 {
  bottom: -10%;
  right: 10%;
  background: #7928ca;
}

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

.hero-title {
  font-size: 3.8rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-title span {
  background: linear-gradient(135deg, #00cc7e 0%, #00ff9d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  max-width: 650px;
  line-height: 1.8;
  font-weight: 400;
}

.text-center .hero-lead {
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-mockup-wrapper {
  position: relative;
  z-index: 3;
  perspective: 1000px;
}

.hero-mockup-wrapper::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: linear-gradient(135deg, rgba(0, 204, 126, 0.25) 0%, rgba(121, 40, 202, 0.25) 100%);
  filter: blur(30px);
  opacity: 0.6;
  z-index: 1;
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.hero-mockup-wrapper:hover::before {
  opacity: 0.85;
  filter: blur(40px);
}

.hero-mockup {
  background: rgba(11, 25, 44, 0.8);
  border: 1px solid rgba(0, 204, 126, 0.2);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(15px);
  position: relative;
  z-index: 2;
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(6deg) rotateZ(0.5deg);
  transition: var(--transition-smooth);
  animation: floatEffect 6s ease-in-out infinite;
}

.hero-mockup-wrapper:hover .hero-mockup {
  transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg) scale(1.02);
  border-color: rgba(0, 204, 126, 0.4);
}

/* Problem Cards Component */
.problem-card {
  background-color: var(--text-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 40px 30px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.problem-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 30px rgba(0, 204, 126, 0.08);
}

.icon-wrapper-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 204, 126, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 25px;
  transition: var(--transition-smooth);
}

.problem-card:hover .icon-wrapper-circle {
  background: var(--accent-cyan);
  color: var(--primary-navy);
}

/* Service Home Card Component */
.service-home-card {
  background: rgba(11, 25, 44, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 35px 25px;
  transition: var(--transition-smooth);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.service-home-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 35px rgba(0, 204, 126, 0.12);
  background: rgba(11, 25, 44, 0.7);
}

.service-home-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(0, 204, 126, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.service-home-card:hover .service-home-icon {
  background: var(--accent-cyan);
  color: var(--primary-navy);
  box-shadow: 0 0 15px rgba(0, 204, 126, 0.3);
}

.service-home-card h4 {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 12px;
  font-weight: 700;
}

.service-home-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Advantage Section List */
.advantage-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition-smooth);
}

.advantage-item:hover {
  background: rgba(0, 204, 126, 0.04);
  border-color: rgba(0, 204, 126, 0.2);
  transform: translateX(-5px);
}

.advantage-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 204, 126, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.advantage-item:hover .advantage-icon-box {
  background: var(--accent-cyan);
  color: var(--primary-navy);
  box-shadow: 0 0 15px rgba(0, 204, 126, 0.4);
}

.advantage-item strong {
  color: var(--text-light);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 6px;
}

.advantage-item span {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Stat Premium Card */
.stat-premium-card {
  background: linear-gradient(135deg, rgba(11, 25, 44, 0.65) 0%, rgba(5, 12, 22, 0.85) 100%);
  border: 1px solid rgba(0, 204, 126, 0.15);
  border-radius: 24px;
  padding: 45px 35px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(10px);
}

.stat-premium-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 204, 126, 0.08) 0%, transparent 75%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.stat-premium-card:hover::before {
  opacity: 1;
}

.stat-premium-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 30px 60px rgba(0, 204, 126, 0.22);
}

.stat-value {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 15px;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #00cc7e 0%, #00ff9d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.stat-value-success {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* How It Works - Staggered Vertical Timeline */
.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0 auto;
  padding: 20px 0;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, rgba(0, 204, 126, 0) 0%, rgba(0, 204, 126, 0.3) 15%, rgba(0, 204, 126, 0.3) 85%, rgba(0, 204, 126, 0) 100%);
  transform: translateX(-50%);
}

.timeline-step {
  position: relative;
  margin-bottom: 50px;
  width: 100%;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-content-wrapper {
  position: relative;
  width: 50%;
  padding: 0 40px;
}

/* Staggering left/right */
.timeline-step:nth-child(odd) .timeline-content-wrapper {
  left: 0;
  text-align: right;
}

.timeline-step:nth-child(even) .timeline-content-wrapper {
  left: 50%;
  text-align: left;
}

.timeline-card {
  background: rgba(11, 25, 44, 0.55);
  border: 1px solid rgba(0, 204, 126, 0.15);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  display: inline-block;
  text-align: right; /* Maintain Arabic text-align right */
  width: 100%;
}

.timeline-step:nth-child(even) .timeline-card {
  text-align: right; /* Force Arabic text-align right even on the right side card */
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 40px rgba(0, 204, 126, 0.15);
  background: rgba(11, 25, 44, 0.8);
}

.timeline-icon-node {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--secondary-navy);
  border: 3px solid var(--accent-cyan);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 15px rgba(0, 204, 126, 0.2);
  transition: var(--transition-smooth);
}

.timeline-card:hover ~ .timeline-icon-node,
.timeline-step:hover .timeline-icon-node {
  background: var(--accent-cyan);
  color: var(--primary-navy);
  box-shadow: 0 0 20px rgba(0, 204, 126, 0.5);
}

.timeline-card h5 {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 12px;
  font-weight: 700;
}

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

/* Responsive adjustment for Mobile screens */
@media (max-width: 767px) {
  .process-timeline::before {
    left: 20px;
  }
  .timeline-content-wrapper {
    width: 100%;
    padding: 0 0 0 50px;
  }
  .timeline-step:nth-child(odd) .timeline-content-wrapper {
    left: 0;
    text-align: right;
  }
  .timeline-step:nth-child(even) .timeline-content-wrapper {
    left: 0;
    text-align: right;
  }
  .timeline-icon-node {
    left: 20px;
    transform: translateX(-50%);
  }
}

.meet-sameh-card {
  background: linear-gradient(135deg, rgba(11, 25, 44, 0.65) 0%, rgba(5, 12, 22, 0.9) 100%);
  border-radius: 24px;
  padding: 60px;
  border: 1px solid rgba(0, 204, 126, 0.25);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.meet-sameh-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 204, 126, 0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.avatar-frame {
  position: relative;
  display: inline-block;
  z-index: 2;
}

.avatar-frame::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px dashed rgba(0, 204, 126, 0.4);
  border-radius: 50%;
  animation: rotateDashed 20s linear infinite;
  pointer-events: none;
}

@keyframes rotateDashed {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 204, 126, 0.35);
  position: relative;
  z-index: 2;
}

.expert-quote {
  font-style: italic;
  font-size: 1.25rem;
  border-left: 4px solid var(--accent-cyan);
  padding-left: 25px;
  margin: 30px 0;
  color: rgba(255,255,255,0.95);
  line-height: 1.8;
  position: relative;
}

.profile-stat-pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.profile-stat-pill:hover {
  background: rgba(0, 204, 126, 0.06);
  border-color: rgba(0, 204, 126, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 204, 126, 0.08);
}

/* Pricing Section */
.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 45px;
}

.pricing-card {
  background: var(--text-light);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 45px 35px;
  position: relative;
  transition: var(--transition-smooth);
}

.pricing-card.popular {
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 35px rgba(0, 204, 126, 0.1);
  transform: scale(1.03);
}

.pricing-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-cyan);
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.price-box {
  margin: 30px 0;
}

.price-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.price-currency {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.pricing-features-list li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.pricing-features-list li i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

/* Testimonials / Social Proof */
.testimonial-card {
  background: var(--text-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 35px;
  height: 100%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.01);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.stars-view {
  color: #FBBF24;
  margin-bottom: 20px;
}

/* Resources & Blog Cards */
.blog-card {
  background: var(--text-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.01);
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.blog-img-box {
  height: 220px;
  background-color: var(--secondary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 3rem;
  background-image: linear-gradient(135deg, var(--secondary-navy) 0%, var(--primary-navy) 100%);
}

.blog-category-badge {
  background-color: rgba(0, 204, 126, 0.1);
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 15px;
}

/* FAQ Accordion Component */
.faq-accordion .accordion-item {
  border: 1px solid var(--border-light) !important;
  border-radius: 8px !important;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: var(--text-light);
}

.faq-accordion .accordion-button {
  background-color: var(--text-light);
  color: var(--primary-navy);
  font-weight: 600;
  padding: 20px;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(0, 204, 126, 0.04);
  color: var(--primary-navy);
  box-shadow: none;
}

.faq-accordion .accordion-button::after {
  filter: sepia(100%) hue-rotate(150deg) saturate(300%);
}

/* Professional Contact Forms */
.form-glass {
  background-color: var(--text-light);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-glass .form-control,
.form-glass .form-select {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 16px;
  transition: var(--transition-smooth);
}

.form-glass .form-control:focus,
.form-glass .form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 204, 126, 0.15);
  background-color: var(--text-light);
}

/* Main Footer */
.main-footer {
  font-family: var(--font-display);
  border-top: 1px solid rgba(0, 204, 126, 0.15);
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.4);
}

.bg-dark-navy {
  background-color: var(--secondary-navy) !important;
}

.bg-dark-deep {
  background-color: var(--bg-dark-deep);
}

.text-cyan {
  color: var(--accent-cyan) !important;
}

.footer-links a {
  color: rgba(255,255,255,0.6) !important;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan) !important;
  padding-left: 4px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.footer-social a:hover {
  background-color: var(--accent-cyan);
  color: var(--primary-navy);
  transform: translateY(-2px);
}

/* Animations */
@keyframes floatEffect {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Custom Accordion & Utilities */
.text-cyan-glow {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 204, 126, 0.4);
}

/* ==========================================================================
   B2B SaaS Dark Theme Overrides & Aesthetic Enhancements
   ========================================================================== */

/* Cohesive Dark Background for Alternate Sections */
.bg-light {
  background-color: #0B192C !important;
  color: var(--text-light) !important;
}

.bg-white {
  background-color: rgba(255, 255, 255, 0.02) !important;
  color: var(--text-light) !important;
}

/* Subtly transparent dot grid overlay for sections */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
}

/* Redesign Cards into Glassmorphic Glow Elements */
.problem-card, .step-card, .pricing-card, .testimonial-card, .blog-card {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text-light) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: var(--transition-smooth) !important;
}

.problem-card:hover, .step-card:hover, .pricing-card:hover, .testimonial-card:hover, .blog-card:hover {
  transform: translateY(-8px) !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 25px rgba(0, 204, 126, 0.25) !important;
}

/* Make popular pricing card stand out with cyan border */
.pricing-card.popular, .popular-pricing-card {
  border: 2px solid var(--accent-cyan) !important;
  background-color: rgba(0, 204, 126, 0.04) !important;
  box-shadow: 0 0 35px rgba(0, 204, 126, 0.2) !important;
}

/* Dynamic Pricing Switcher Text */
.pricing-toggle-wrapper span {
  color: var(--text-light) !important;
}

/* Headings within pricing card & text adjustments */
.pricing-card h3, .pricing-card .price-number, .pricing-card .price-currency, .blog-card h4 a {
  color: #ffffff !important;
}

/* Typography & Button overrides to match dark mode */
.text-dark {
  color: #ffffff !important;
}

.btn-outline-dark {
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  background: transparent !important;
}

.btn-outline-dark:hover {
  border-color: var(--accent-cyan) !important;
  color: var(--accent-cyan) !important;
  background-color: rgba(0, 204, 126, 0.05) !important;
}

/* Premium Badge Component */
.badge-premium {
  display: inline-block;
  background: rgba(0, 204, 126, 0.08) !important;
  color: var(--accent-cyan) !important;
  border: 1px solid rgba(0, 204, 126, 0.25) !important;
  border-radius: 30px !important;
  padding: 6px 18px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
}

/* Accordion Updates for dark mode */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 204, 126, 0.05) 0%, transparent 70%);
  top: 50%;
  left: -10%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.faq-sticky-sidebar {
  position: sticky;
  top: 100px;
  z-index: 10;
}

.faq-support-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(12px) !important;
  transition: var(--transition-smooth);
}

.faq-support-card:hover {
  border-color: rgba(0, 204, 126, 0.2) !important;
  box-shadow: 0 20px 40px rgba(0, 204, 126, 0.05) !important;
}

.faq-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.faq-accordion .accordion-item {
  background-color: rgba(11, 25, 44, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 16px !important;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.faq-accordion .accordion-item:hover {
  border-color: rgba(0, 204, 126, 0.2) !important;
  box-shadow: 0 15px 35px rgba(0, 204, 126, 0.05);
  transform: translateY(-2px);
}

.faq-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: rgba(0, 204, 126, 0.45) !important;
  background-color: rgba(11, 25, 44, 0.7) !important;
  box-shadow: 0 15px 35px rgba(0, 204, 126, 0.12) !important;
  transform: translateY(-2px);
}

.faq-accordion .accordion-button {
  background-color: transparent !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 22px 28px !important;
  box-shadow: none !important;
  transition: var(--transition-smooth);
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--accent-cyan) !important;
  background-color: rgba(0, 204, 126, 0.03) !important;
}

.faq-accordion .accordion-body {
  color: var(--text-muted) !important;
  background-color: transparent !important;
  font-size: 0.98rem;
  line-height: 1.7;
  padding: 10px 28px 25px 28px !important;
}

.faq-accordion .accordion-button:focus {
  box-shadow: none !important;
}

.faq-accordion .accordion-button::after {
  filter: invert(1) brightness(2);
}

/* Premium Final CTA Card */
.final-cta-card {
  background: radial-gradient(circle at 50% 50%, rgba(0, 204, 126, 0.12) 0%, rgba(11, 25, 44, 0.95) 100%) !important;
  border: 1px solid rgba(0, 204, 126, 0.25) !important;
  border-radius: 28px !important;
  padding: 80px 40px !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6) !important;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px) !important;
}

/* CTA Glow Circles */
.cta-glow-circle-1 {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 204, 126, 0.15) 0%, transparent 70%);
  top: -175px;
  left: -100px;
  pointer-events: none;
  z-index: 1;
}

.cta-glow-circle-2 {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 204, 126, 0.1) 0%, transparent 70%);
  bottom: -225px;
  right: -100px;
  pointer-events: none;
  z-index: 1;
}

.final-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
              linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  opacity: 0.7;
}

/* Glassmorphism E-commerce Contact & Audit Form */
.form-glass {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

.form-glass .form-control,
.form-glass .form-select {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.form-glass .form-control:focus,
.form-glass .form-select:focus {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 204, 126, 0.3) !important;
  background-color: rgba(5, 12, 22, 0.95) !important;
}

/* Inputs and Forms placeholders */
.form-glass input::placeholder, 
.form-glass textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Table Design for Dark Mode */
.table {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
  background-color: rgba(255, 255, 255, 0.01) !important;
  color: #ffffff !important;
}

.table-hover>tbody>tr:hover>* {
  background-color: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
}

/* Prevent Bootstrap light-mode specific text utility classes from forcing dark text colors */
.text-dark:not(.bg-cyan *):not(.badge *):not(.btn-cyan *):not(.avatar-img *) {
  color: #ffffff !important;
}
.text-black:not(.bg-cyan *):not(.badge *):not(.btn-cyan *):not(.avatar-img *) {
  color: #ffffff !important;
}
.text-black-50:not(.bg-cyan *):not(.badge *):not(.btn-cyan *):not(.avatar-img *) {
  color: rgba(255, 255, 255, 0.5) !important;
}
.text-muted {
  color: #94A3B8 !important;
}
.text-secondary {
  color: #CBD5E1 !important;
}
.text-dark-subtle {
  color: #CBD5E1 !important;
}
.text-body {
  color: #ffffff !important;
}
.text-body-secondary {
  color: #94A3B8 !important;
}
.text-body-tertiary {
  color: #64748B !important;
}
strong:not(.text-dark *):not(.badge *):not(.bg-cyan *):not(.btn-cyan *) {
  color: #ffffff !important;
}
p:not(.text-muted):not(.text-secondary):not(.text-dark-subtle):not(.text-body-secondary):not(.badge *):not(.bg-cyan *):not(.btn-cyan *) {
  color: #F8FAFC;
}
span:not(.text-muted):not(.text-secondary):not(.text-dark-subtle):not(.text-body-secondary):not(.badge *):not(.bg-cyan *):not(.btn-cyan *):not(.text-cyan) {
  color: inherit;
}

/* RTL Typography Override */
html[dir="rtl"] body {
  font-family: var(--font-bilingual) !important;
}

html[dir="rtl"] .section-title,
html[dir="rtl"] .section-subtitle,
html[dir="rtl"] .meet-sameh-card,
html[dir="rtl"] .pricing-card,
html[dir="rtl"] .final-cta-card {
  text-align: right !important;
}

/* Light / Dark Mode System Overrides */
.light-mode {
  --primary-navy: #F8FAFC;         /* Light background default */
  --secondary-navy: #F1F5F9;       /* Light secondary background */
  --bg-dark-deep: #F8FAFC;
  --bg-light: #F1F5F9;
  --text-dark: #0F172A;            /* Dark slate text colors */
  --text-light: #0F172A;
  --text-muted: #475569;
  --border-light: rgba(15, 23, 42, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(15, 23, 42, 0.08);
}

/* Class-specific overrides for light-mode active state */
body.light-mode {
  background-color: #F8FAFC !important;
  color: #0F172A !important;
}

body.light-mode h1, 
body.light-mode h2, 
body.light-mode h3, 
body.light-mode h4, 
body.light-mode h5, 
body.light-mode h6,
body.light-mode .section-title,
body.light-mode .navbar-brand,
body.light-mode .nav-link,
body.light-mode strong,
body.light-mode p {
  color: #0F172A !important;
}

body.light-mode .text-dark,
body.light-mode .text-black,
body.light-mode .text-dark strong,
body.light-mode .text-dark p,
body.light-mode strong.text-dark {
  color: #0F172A !important;
}

body.light-mode .text-black-50 {
  color: rgba(15, 23, 42, 0.5) !important;
}

body.light-mode .bg-dark-custom {
  background-color: transparent !important;
  border-top: none !important;
}

body.light-mode .text-muted,
body.light-mode .section-subtitle,
body.light-mode .text-body-secondary {
  color: #475569 !important;
}

body.light-mode .bg-light {
  background-color: #F1F5F9 !important;
  color: #0F172A !important;
}

body.light-mode .bg-white {
  background-color: #ffffff !important;
  color: #0F172A !important;
}

body.light-mode .navbar-toggler-icon {
  filter: invert(1);
}

body.light-mode .btn-theme-toggle {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .btn-theme-toggle i {
  color: #0F172A !important;
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
  color: var(--accent-cyan-hover) !important;
}

/* Glassmorphism containers in light mode */
body.light-mode .problem-card,
body.light-mode .step-card,
body.light-mode .pricing-card,
body.light-mode .testimonial-card,
body.light-mode .blog-card,
body.light-mode .faq-support-card,
body.light-mode .faq-accordion .accordion-item,
body.light-mode .meet-sameh-card,
body.light-mode .profile-stat-pill,
body.light-mode .stat-premium-card,
body.light-mode .advantage-item,
body.light-mode .card,
body.light-mode .bg-dark,
body.light-mode .bg-dark-deep {
  background-color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #0F172A !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
  backdrop-filter: blur(10px) !important;
}

body.light-mode .problem-card:hover,
body.light-mode .step-card:hover,
body.light-mode .pricing-card:hover,
body.light-mode .testimonial-card:hover,
body.light-mode .blog-card:hover,
body.light-mode .faq-support-card:hover,
body.light-mode .faq-accordion .accordion-item:hover,
body.light-mode .meet-sameh-card:hover,
body.light-mode .stat-premium-card:hover,
body.light-mode .advantage-item:hover,
body.light-mode .card:hover,
body.light-mode .bg-dark:hover,
body.light-mode .bg-dark-deep:hover {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 15px 35px rgba(0, 204, 126, 0.1) !important;
}

/* Ensure text-white and text-light are readable inside light containers in light mode */
body.light-mode .meet-sameh-card .text-white,
body.light-mode .meet-sameh-card .text-light,
body.light-mode .problem-card .text-white,
body.light-mode .problem-card .text-light,
body.light-mode .pricing-card .text-white,
body.light-mode .pricing-card .text-light,
body.light-mode .blog-card .text-white,
body.light-mode .blog-card .text-light,
body.light-mode .step-card .text-white,
body.light-mode .step-card .text-light,
body.light-mode .testimonial-card .text-white,
body.light-mode .testimonial-card .text-light,
body.light-mode .faq-support-card .text-white,
body.light-mode .faq-support-card .text-light,
body.light-mode .faq-accordion .accordion-item .text-white,
body.light-mode .faq-accordion .accordion-item .text-light,
body.light-mode .profile-stat-pill .text-white,
body.light-mode .profile-stat-pill .text-light,
body.light-mode .stat-premium-card .text-white,
body.light-mode .stat-premium-card .text-light,
body.light-mode .advantage-item .text-white,
body.light-mode .advantage-item .text-light,
body.light-mode .table-responsive .text-white,
body.light-mode .table-responsive .text-light,
body.light-mode .card .text-white,
body.light-mode .card .text-light,
body.light-mode .bg-dark .text-white,
body.light-mode .bg-dark .text-light,
body.light-mode .bg-dark-deep .text-white,
body.light-mode .bg-dark-deep .text-light,
body.light-mode .rich-content.text-white {
  color: #0F172A !important;
}

/* Ensure headings with text-white/text-light turn to dark slate in light mode */
body.light-mode h1.text-white,
body.light-mode h2.text-white,
body.light-mode h3.text-white,
body.light-mode h4.text-white,
body.light-mode h5.text-white,
body.light-mode h6.text-white,
body.light-mode h1.text-light,
body.light-mode h2.text-light,
body.light-mode h3.text-light,
body.light-mode h4.text-light,
body.light-mode h5.text-light,
body.light-mode h6.text-light {
  color: #0F172A !important;
}

/* FAQ accordion headers in light mode */
body.light-mode .faq-accordion .accordion-button {
  color: #0F172A !important;
}

body.light-mode .faq-accordion .accordion-button:not(.collapsed) {
  color: var(--accent-cyan-hover) !important;
  background-color: rgba(0, 204, 126, 0.06) !important;
}

body.light-mode .faq-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: var(--accent-cyan) !important;
  background-color: rgba(0, 204, 126, 0.02) !important;
  box-shadow: 0 15px 35px rgba(0, 204, 126, 0.08) !important;
}

/* Pricing popular badge */
body.light-mode .pricing-card.popular {
  border: 2px solid var(--accent-cyan) !important;
  background-color: rgba(0, 204, 126, 0.03) !important;
}

/* Final CTA Card in light mode */
body.light-mode .final-cta-card {
  background: radial-gradient(circle at 50% 50%, rgba(0, 204, 126, 0.08) 0%, rgba(241, 245, 249, 0.95) 100%) !important;
  border: 1px solid rgba(0, 204, 126, 0.15) !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.05) !important;
}

/* Footer elements light-mode */
body.light-mode .main-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .bg-dark-navy {
  background-color: #F1F5F9 !important;
  color: #0F172A !important;
}

body.light-mode .bg-dark-deep {
  background-color: #E2E8F0 !important;
}

body.light-mode .footer-links a {
  color: #475569 !important;
}

body.light-mode .footer-links a:hover {
  color: var(--accent-cyan-hover) !important;
}

body.light-mode .footer-title {
  color: #0F172A !important;
}

body.light-mode .footer-desc {
  color: #475569 !important;
}

body.light-mode .footer-contact-info a {
  color: #475569 !important;
}

body.light-mode .btn-outline-dark {
  color: #0F172A !important;
  border: 2px solid rgba(15, 23, 42, 0.15) !important;
}

body.light-mode .btn-outline-dark:hover {
  border-color: var(--accent-cyan-hover) !important;
  color: var(--accent-cyan-hover) !important;
  background-color: rgba(0, 204, 126, 0.03) !important;
}

/* Form inputs styling for light mode contact page */
body.light-mode .form-glass {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #0F172A !important;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.04) !important;
}

body.light-mode .form-glass .form-control,
body.light-mode .form-glass .form-select {
  background-color: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0F172A !important;
}

body.light-mode .form-glass .form-control:focus,
body.light-mode .form-glass .form-select:focus {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 8px rgba(0, 204, 126, 0.2) !important;
  background-color: #ffffff !important;
}

body.light-mode .form-glass input::placeholder, 
body.light-mode .form-glass textarea::placeholder {
  color: #94A3B8 !important;
}

/* --- Global Light Mode Safety Overrides & Optimizations --- */

/* Contrast safety net for text-white and text-light tags in light mode */
body.light-mode .text-white:not(.btn *, .badge *, [style*="background"] *, .alert-success *, .bg-black *, .bg-success *, .bg-danger *, .bg-warning *, .bg-info *) {
  color: #0F172A !important;
}
body.light-mode .text-light:not(.btn *, .badge *, [style*="background"] *, .alert-success *, .bg-black *, .bg-success *, .bg-danger *, .bg-warning *, .bg-info *) {
  color: #0F172A !important;
}

/* Bootstrap/Utility color fixes in light mode */
body.light-mode .text-secondary {
  color: #475569 !important;
}
body.light-mode .text-dark-subtle {
  color: #475569 !important;
}
body.light-mode .text-body {
  color: #0F172A !important;
}
body.light-mode .text-body-secondary {
  color: #475569 !important;
}
body.light-mode .text-body-tertiary {
  color: #94A3B8 !important;
}

/* Timeline/Steps containers transition to light glass */
body.light-mode .timeline-card {
  background-color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #0F172A !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
  backdrop-filter: blur(10px) !important;
}
body.light-mode .timeline-card:hover {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 15px 35px rgba(0, 204, 126, 0.1) !important;
}
body.light-mode .timeline-icon-node {
  background-color: #ffffff !important;
  border: 3px solid var(--accent-cyan) !important;
  color: var(--accent-cyan) !important;
  box-shadow: 0 0 15px rgba(0, 204, 126, 0.1) !important;
}
body.light-mode .timeline-card:hover ~ .timeline-icon-node,
body.light-mode .timeline-step:hover .timeline-icon-node {
  background-color: var(--accent-cyan) !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(0, 204, 126, 0.4) !important;
}

/* Soften dark/secondary borders globally in light mode */
body.light-mode .border-secondary,
body.light-mode .border-secondary-subtle {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

/* Timeline chart bars opacity fixes in light mode */
body.light-mode .bg-secondary.bg-opacity-30 {
  background-color: rgba(15, 23, 42, 0.15) !important;
}
body.light-mode .bg-secondary.bg-opacity-40 {
  background-color: rgba(15, 23, 42, 0.25) !important;
}
body.light-mode .bg-secondary.bg-opacity-50 {
  background-color: rgba(15, 23, 42, 0.35) !important;
}

/* Category tags & Testimonial avatars style corrections */
body.light-mode .badge.bg-secondary {
  background-color: rgba(15, 23, 42, 0.05) !important;
  color: #0F172A !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}
body.light-mode .badge.bg-dark {
  background-color: #0F172A !important;
  color: #ffffff !important;
  border: 1px solid #0F172A !important;
}
body.light-mode .client-avatar {
  background-color: rgba(15, 23, 42, 0.08) !important;
  color: #0F172A !important;
}
body.light-mode .btn-theme-toggle {
  color: #0F172A !important;
}

/* Expert Quotes color and RTL border corrections */
body.light-mode .expert-quote {
  color: #334155 !important;
}
html[dir="rtl"] .expert-quote {
  border-left: none !important;
  border-right: 4px solid var(--accent-cyan) !important;
  padding-left: 0 !important;
  padding-right: 25px !important;
  text-align: right !important;
}

/* ==========================================================================
   Featured Showcase Section
   ========================================================================== */
.featured-showcase-section {
  position: relative;
  overflow: hidden;
}

.featured-showcase-card-wrapper {
  max-width: 1050px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.featured-showcase-card {
  background: rgba(11, 25, 44, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: var(--transition-smooth);
}

.featured-showcase-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 204, 126, 0.25);
  box-shadow: 0 30px 60px rgba(0, 204, 126, 0.1);
}

/* Client Info Badge */
.client-logo-badge {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #00ff9d 100%);
  color: var(--primary-navy);
  font-weight: 800;
  font-size: 1.3rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 204, 126, 0.25);
  flex-shrink: 0;
}

.showcase-client-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-light);
}

.showcase-client-industry {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Steps (Problem, Strategy, Result) */
.showcase-step-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.showcase-step-item h5 i {
  font-size: 0.9rem;
}

.showcase-step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Right Side: Metrics Panel */
.featured-showcase-metrics {
  background: linear-gradient(135deg, #0f1c2e 0%, #050c16 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 380px;
}

/* RTL layout check for borders */
html[dir="rtl"] .featured-showcase-metrics {
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-metric-value {
  font-size: 4.8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #00ff9d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  letter-spacing: -2px;
}

.metric-highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.highlight-item:hover .metric-highlight-icon {
  background: var(--accent-cyan);
  color: var(--primary-navy);
  box-shadow: 0 0 15px rgba(0, 204, 126, 0.3);
  transform: scale(1.05);
}

/* Glow circles inside metrics panel */
.metrics-glow-circle-1,
.metrics-glow-circle-2 {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  opacity: 0.15;
  transition: var(--transition-smooth);
}

.metrics-glow-circle-1 {
  top: -50px;
  right: -50px;
  background: var(--accent-cyan);
}

.metrics-glow-circle-2 {
  bottom: -50px;
  left: -50px;
  background: #7928ca;
}

.featured-showcase-metrics:hover .metrics-glow-circle-1 {
  opacity: 0.3;
  transform: scale(1.2);
}

/* Light Mode Overrides for Showcase */
body.light-mode .featured-showcase-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
}

body.light-mode .featured-showcase-card:hover {
  border-color: rgba(0, 204, 126, 0.3);
  box-shadow: 0 30px 65px rgba(0, 204, 126, 0.08);
}

body.light-mode .showcase-client-name {
  color: #0F172A;
}

body.light-mode .showcase-client-industry {
  color: #64748b;
}

body.light-mode .showcase-step-desc {
  color: #475569;
}

body.light-mode .featured-showcase-metrics {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

html[dir="rtl"] body.light-mode .featured-showcase-metrics {
  border-left: none;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-mode .showcase-step-item h5.text-danger {
  color: #dc3545 !important;
}

body.light-mode .showcase-step-item h5.text-cyan {
  color: var(--accent-cyan-hover) !important;
}

body.light-mode .showcase-step-item h5.text-success {
  color: #198754 !important;
}

/* ==========================================================================
   Professional Experience Section
   ========================================================================== */
.experience-section {
  position: relative;
}

.experience-card {
  background: rgba(11, 25, 44, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 35px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.experience-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 45px rgba(0, 204, 126, 0.1);
}

.experience-indicator-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
  transition: var(--transition-smooth);
}

.experience-card:hover .experience-indicator-bar {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* RTL support for indicator bar */
html[dir="rtl"] .experience-indicator-bar {
  left: auto;
  right: 0;
}

.experience-job-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-light);
}

.experience-company-name {
  font-size: 1.05rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.experience-location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.experience-location i {
  color: var(--accent-cyan);
}

.experience-period-badge {
  background: rgba(0, 204, 126, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 204, 126, 0.15);
  font-weight: 700;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.experience-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.experience-highlight-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.experience-card:hover .experience-highlight-text {
  color: var(--text-light);
}

/* Light Mode Overrides for Experience Section */
body.light-mode .experience-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.03);
}

body.light-mode .experience-card:hover {
  border-color: var(--accent-cyan-hover);
  box-shadow: 0 20px 45px rgba(0, 204, 126, 0.08);
}

body.light-mode .experience-indicator-bar {
  background: rgba(15, 23, 42, 0.06);
}

body.light-mode .experience-job-title {
  color: #0F172A;
}

body.light-mode .experience-company-name {
  color: var(--accent-cyan-hover);
}

body.light-mode .experience-location {
  color: #64748b;
}

body.light-mode .experience-period-badge {
  background: rgba(0, 180, 216, 0.05);
  color: var(--accent-cyan-hover);
  border-color: rgba(0, 180, 216, 0.12);
}

body.light-mode .experience-highlight-text {
  color: #475569;
}

body.light-mode .experience-card:hover .experience-highlight-text {
  color: #0F172A;
}

/* ==========================================================================
   RTL Overrides for Staggered Process Timeline
   ========================================================================== */

@media (min-width: 768px) {
  html[dir="rtl"] .timeline-step:nth-child(odd) .timeline-content-wrapper {
    left: auto !important;
    right: 0 !important;
    text-align: left !important;
  }
  
  html[dir="rtl"] .timeline-step:nth-child(even) .timeline-content-wrapper {
    left: auto !important;
    right: 50% !important;
    text-align: right !important;
  }
  
  html[dir="rtl"] .timeline-icon-node {
    left: 50% !important;
    right: auto !important;
    transform: translateX(50%) !important;
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] .process-timeline::before {
    left: auto !important;
    right: 20px !important;
  }
  
  html[dir="rtl"] .timeline-content-wrapper {
    padding: 0 50px 0 0 !important;
  }
  
  html[dir="rtl"] .timeline-step:nth-child(odd) .timeline-content-wrapper,
  html[dir="rtl"] .timeline-step:nth-child(even) .timeline-content-wrapper {
    left: auto !important;
    right: 0 !important;
    text-align: right !important;
  }
  
  html[dir="rtl"] .timeline-icon-node {
    left: auto !important;
    right: 20px !important;
    transform: translateX(50%) !important;
  }
}