/* ==========================================================================
   CODEX PRO - Official Stylesheet
   Modern Tech, Glassmorphism, Responsive & Performance-Optimized
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #070a13;
  --bg-surface: #0c1222;
  --bg-card: rgba(16, 24, 44, 0.72);
  --bg-card-hover: rgba(22, 33, 62, 0.85);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(12, 18, 34, 0.82);

  /* Brand Accents */
  --color-cyan: #06b6d4;
  --color-blue: #3b82f6;
  --color-indigo: #6366f1;
  --color-purple: #a855f7;
  --color-emerald: #10b981;

  /* Gradients */
  --brand-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --brand-gradient-hover: linear-gradient(135deg, #22d3ee 0%, #60a5fa 50%, #a855f7 100%);
  --card-gradient: radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 70%);

  /* Typography */
  --font-ar: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Shadows & Glows */
  --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.35);
  --glow-brand: 0 10px 30px -10px rgba(59, 130, 246, 0.45);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.5);

  /* Layout & Transitions */
  --container-max: 1240px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
}

/* ----------------------------------------------------
   Base & Reset
---------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  background-image: 
    radial-gradient(at 15% 15%, rgba(6, 182, 212, 0.12) 0px, transparent 50%),
    radial-gradient(at 85% 20%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 85%, rgba(168, 85, 247, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
}

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

ul {
  list-style: none;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ----------------------------------------------------
   Utility Classes & Badges
---------------------------------------------------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

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

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ----------------------------------------------------
   Buttons
---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: var(--glow-brand);
}

.btn-primary:hover {
  background: var(--brand-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 35px -8px rgba(6, 182, 212, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  transform: translateY(-2px);
}

/* WhatsApp Outline Expert Button */
.btn-whatsapp-outline {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #ffffff;
}

.btn-whatsapp-outline i {
  color: #25D366;
  font-size: 1.15rem;
  transition: transform var(--transition-fast);
}

.btn-whatsapp-outline:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25D366;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
}

.btn-whatsapp-outline:hover i {
  transform: scale(1.15);
}

/* ----------------------------------------------------
   Header & Navigation
---------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(203, 213, 225, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.site-logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-fast), filter var(--transition-fast);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06));
}

.brand-logo:hover .site-logo-img {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 4px 14px rgba(2, 82, 157, 0.18));
}

.footer-logo-img {
  height: 56px;
  width: auto;
  margin-bottom: 1.25rem;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.mobile-logo-img {
  height: 42px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--brand-gradient);
  border-radius: 12px;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--glow-brand);
}

.logo-info {
  display: flex;
  flex-direction: column;
}

.logo-text {
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.logo-badge {
  color: var(--color-cyan);
  font-weight: 800;
  -webkit-text-fill-color: var(--color-cyan);
}

.logo-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--color-cyan);
  text-transform: uppercase;
  margin-top: 3px;
  white-space: nowrap;
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #02529d;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: linear-gradient(135deg, #02529d 0%, #06b6d4 100%);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

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

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

/* Language Switcher */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle-btn:hover {
  background: #e2e8f0;
  border-color: #02529d;
  color: #02529d;
}

/* Mobile Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: #0f172a;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background-color: #02529d;
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
  background-color: #02529d;
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
}

.mobile-nav-overlay.active {
  display: block;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -340px;
  width: min(320px, 86vw);
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  padding: 1.25rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 9999;
  transition: right var(--transition-normal), visibility var(--transition-normal);
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.15);
}

.mobile-nav.active {
  right: 0;
  visibility: visible;
  pointer-events: auto;
}

html[lang="ar"] .mobile-nav,
html[dir="rtl"] .mobile-nav {
  right: auto;
  left: -340px;
  border-left: none;
  border-right: 1px solid #e2e8f0;
  box-shadow: 15px 0 35px rgba(0, 0, 0, 0.15);
  transition: left var(--transition-normal), visibility var(--transition-normal);
}

html[lang="ar"] .mobile-nav.active,
html[dir="rtl"] .mobile-nav.active {
  left: 0;
  right: auto;
}

.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.mobile-nav-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-nav-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #dc2626;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: #334155;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: #02529d;
  background: #f0f9ff;
  padding-inline-start: 1rem;
}

/* ----------------------------------------------------
   Hero Section
---------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 10.5rem 0 6rem;
  overflow: hidden;
}

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

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

.hero-title {
  font-size: clamp(2.3rem, 4.2vw, 3.8rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  max-width: 580px;
  line-height: 1.75;
}

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

/* Hero Code Visual Card */
.hero-visual {
  position: relative;
}

.tech-glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.tech-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-gradient);
}

.card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.card-status-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.status-pulse {
  width: 7px;
  height: 7px;
  background: var(--color-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.code-editor {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #e2e8f0;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.code-line {
  display: flex;
  gap: 1rem;
}

.line-num {
  color: var(--text-dim);
  user-select: none;
  min-width: 20px;
}

.token-kw { color: #f43f5e; font-weight: 600; }
.token-fn { color: #38bdf8; }
.token-str { color: #34d399; }
.token-prop { color: #fbbf24; }
.token-cm { color: #64748b; font-style: italic; }

/* Floating Feature Badges around Hero Card */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  animation: floatSlow 4s ease-in-out infinite alternate;
}

.floating-badge.badge-1 {
  top: -20px;
  right: -20px;
}

.floating-badge.badge-2 {
  bottom: -25px;
  left: -20px;
  animation-delay: 2s;
}

.badge-icon {
  font-size: 1.4rem;
  color: var(--color-cyan);
}

.badge-text strong {
  display: block;
  font-size: 0.9rem;
  color: #ffffff;
}

.badge-text span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* ----------------------------------------------------
   Stats Strip
---------------------------------------------------- */
.stats-strip {
  margin-top: 5rem;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

html[lang="ar"] .stat-item:not(:last-child)::after {
  right: auto;
  left: 0;
}

.stat-number {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ----------------------------------------------------
   About Section
---------------------------------------------------- */
.about-section {
  padding: 7rem 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-info-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.about-info-lead {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.value-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-normal);
}

.value-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-4px);
}

.value-icon {
  width: 48px;
  height: 48px;
  background: rgba(6, 182, 212, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--color-cyan);
  margin-bottom: 1rem;
}

.value-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.value-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Workflow Steps */
.workflow-wrap {
  margin-top: 6rem;
}

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

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: all var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-blue);
}

.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

html[lang="ar"] .step-num {
  right: auto;
  left: 1.25rem;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ----------------------------------------------------
   Services Section
---------------------------------------------------- */
.services-section {
  padding: 7rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05), transparent 70%);
}

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

.service-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.85rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-gradient);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

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

.service-icon-box {
  width: 58px;
  height: 58px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-cyan);
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: var(--brand-gradient);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: var(--glow-cyan);
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* 4 Services Grid */
.services-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
}

.service-subtitle-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.service-card-action {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-cyan);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.btn-service-link:hover {
  color: #ffffff;
  gap: 0.75rem;
}

/* ====================================================
   Dedicated Service Pages Styles
==================================================== */
.service-page-hero {
  padding: 9.5rem 0 4rem;
  position: relative;
  background: radial-gradient(circle at 50% 10%, rgba(6, 182, 212, 0.12), transparent 70%);
}

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

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

.breadcrumb-separator {
  opacity: 0.4;
  font-size: 0.75rem;
}

.service-page-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.service-page-lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 820px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

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

/* Sub-Services Deep-Dive Section */
.sub-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.sub-service-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: all var(--transition-normal);
  position: relative;
}

.sub-service-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.sub-service-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(6, 182, 212, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.sub-service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.sub-service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Why Choose List in Dedicated Page */
.service-why-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  margin-bottom: 5rem;
}

.why-items-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

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

.why-item-point i {
  color: var(--color-emerald);
  font-size: 1.25rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.why-item-point p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Dedicated Page CTA Banner */
.dedicated-cta-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  text-align: center;
  margin-bottom: 6rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.dedicated-cta-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.dedicated-cta-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ----------------------------------------------------
   Why Us Banner
---------------------------------------------------- */
.why-banner {
  margin: 3rem 0 6rem;
  position: relative;
}

.why-banner-inner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.why-banner-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.why-banner-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 2rem;
}

/* ----------------------------------------------------
   Contact Section
---------------------------------------------------- */
.contact-section {
  padding: 6rem 0 8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Contact Info */
.contact-info-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
}

.contact-info-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #ffffff;
}

.contact-item-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

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

.contact-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.contact-detail span, .contact-detail a {
  font-size: 1rem;
  color: var(--text-primary);
}

.contact-detail a:hover {
  color: var(--color-cyan);
}

.contact-socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--brand-gradient);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--glow-brand);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
}

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

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.15rem;
  background: rgba(10, 15, 29, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-cyan);
  background: rgba(14, 21, 41, 0.95);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.form-control::placeholder {
  color: var(--text-dim);
}

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

select.form-control {
  cursor: pointer;
}

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

.honey-pot {
  display: none !important;
  visibility: hidden;
}

.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

/* Captcha Security Challenge */
.captcha-group {
  background: rgba(6, 182, 212, 0.04);
  border: 1px dashed rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.captcha-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  color: var(--color-cyan);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  user-select: none;
  white-space: nowrap;
}

.captcha-refresh-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.captcha-refresh-btn:hover {
  color: var(--color-cyan);
  transform: rotate(90deg);
}

.captcha-input {
  max-width: 170px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
}

/* ----------------------------------------------------
   Footer
---------------------------------------------------- */
.site-footer {
  background: #05080f;
  border-top: 1px solid var(--bg-card-border);
  padding: 5rem 0 2rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .brand-logo {
  margin-bottom: 1.25rem;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 320px;
}

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

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

.footer-link {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

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

html[lang="ar"] .footer-link:hover {
  transform: translateX(-4px);
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.9rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-cyan);
}

.newsletter-btn {
  padding: 0.75rem 1.4rem;
  background: var(--brand-gradient);
  border: none;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
  transition: opacity var(--transition-fast);
}

.newsletter-btn:hover {
  opacity: 0.9;
}

.newsletter-success {
  display: none;
  color: var(--color-emerald);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

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

/* Back to top floating button (stacked above WhatsApp widget in LTR) */
.back-to-top {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 46px;
  height: 46px;
  background: var(--brand-gradient);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: var(--glow-brand);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.6);
}



/* ====================================================
   Interactive WhatsApp Direct Chat Widget
   ==================================================== */
.codex-wa-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 995;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: inherit;
}

/* Radar Pulse Wave */
.wa-radar-pulse {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  z-index: 1;
  pointer-events: none;
  animation: waRadarWave 2.4s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes waRadarWave {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

/* Main Floating Action Button */
.wa-float-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2fe574 0%, #20ba5a 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  padding: 0;
}

.wa-float-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6), 0 4px 10px rgba(0, 0, 0, 0.25);
}

.wa-float-btn:active {
  transform: scale(0.96);
}

.wa-svg-icon {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.wa-float-btn:hover .wa-svg-icon {
  transform: rotate(-6deg) scale(1.05);
}

/* Notification Badge */
.wa-badge-unread {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  line-height: 18px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #070a13;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.5);
  animation: waBadgeBounce 2s infinite ease-in-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.wa-badge-unread.hidden {
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

@keyframes waBadgeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Callout Tooltip Bubble */
.wa-tooltip-bubble {
  position: absolute;
  bottom: 72px;
  right: 0;
  background: rgba(12, 18, 34, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(37, 211, 102, 0.35);
  padding: 10px 16px 10px 14px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(37, 211, 102, 0.15);
  white-space: nowrap;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: waTooltipSlide 0.4s ease-out;
}

@keyframes waTooltipSlide {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wa-tooltip-bubble.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.9);
  pointer-events: none;
}

.wa-tooltip-close {
  position: absolute;
  top: 4px;
  left: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
  transition: color 0.2s;
}

.wa-tooltip-close:hover {
  color: #ffffff;
}

.wa-tooltip-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
}

.wa-tooltip-content strong {
  font-size: 0.88rem;
  color: #ffffff;
}

.wa-tooltip-content span {
  font-size: 0.78rem;
  color: #2fe574;
}

/* Chat Popup Window */
.wa-chat-popup {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #0d1322;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(37, 211, 102, 0.2);
  overflow: hidden;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-chat-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Popup Header */
.wa-popup-header {
  background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.wa-header-avatar {
  position: relative;
  flex-shrink: 0;
}

.wa-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.wa-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  background: #25D366;
  border: 2px solid #075e54;
  border-radius: 50%;
  box-shadow: 0 0 8px #25D366;
}

.wa-header-info {
  flex-grow: 1;
  min-width: 0;
}

.wa-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1rem;
}

.wa-verified-badge {
  color: #2fe574;
  font-size: 0.9rem;
}

.wa-header-status {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2px;
}

.wa-popup-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-popup-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

/* Popup Body */
.wa-popup-body {
  padding: 16px;
  background: #080c16 url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  max-height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Message Bubble */
.wa-chat-message-bubble {
  background: #141d30;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

html[dir="rtl"] .wa-chat-message-bubble {
  border-radius: 14px 14px 4px 14px;
}

.wa-chat-sender {
  font-size: 0.74rem;
  font-weight: 700;
  color: #2fe574;
  margin-bottom: 4px;
}

.wa-chat-text {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-light);
  margin-bottom: 6px;
}

.wa-chat-time {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: right;
}

html[dir="rtl"] .wa-chat-time {
  text-align: left;
}

/* Quick Topic Chips */
.wa-quick-topics {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.wa-topic-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text-light);
  font-size: 0.82rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

html[dir="rtl"] .wa-topic-chip {
  text-align: right;
}

.wa-topic-chip i {
  color: #25D366;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.wa-topic-chip:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.4);
  color: #ffffff;
  transform: translateX(-3px);
}

html[dir="ltr"] .wa-topic-chip:hover {
  transform: translateX(3px);
}

.wa-topic-chip.active {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25D366;
  color: #ffffff;
}

/* Popup Footer */
.wa-popup-footer {
  padding: 12px 14px;
  background: #0b101d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #141b2c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 4px 6px 4px 14px;
  transition: border-color 0.2s;
}

html[dir="rtl"] .wa-input-row {
  padding: 4px 14px 4px 6px;
}

.wa-input-row:focus-within {
  border-color: #25D366;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.25);
}

.wa-custom-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.84rem;
  outline: none;
  font-family: inherit;
}

.wa-custom-input::placeholder {
  color: var(--text-muted);
}

.wa-send-input-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.wa-send-input-btn:hover {
  background: #20ba5a;
  transform: scale(1.08);
}

.wa-direct-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s;
}

.wa-direct-action-btn:hover {
  background: #20ba5a;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.wa-direct-action-btn i {
  font-size: 1.15rem;
}

/* ====================================================
   Comprehensive Responsive System (All Screens)
   ==================================================== */

@media (max-width: 1200px) {
  .hero-grid {
    gap: 3rem;
  }
}

@media (max-width: 1024px) {
  .hero-section {
    padding: 8.5rem 0 4rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .services-grid, .services-grid-4 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sub-services-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .why-items-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav, .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header {
    padding: 0.85rem 0;
  }

  .site-logo-img {
    height: 44px;
  }

  .hero-section {
    padding: 6.75rem 0 3.25rem;
  }

  /* CRITICAL: HIDE FLOATING BADGES ON SCREENS <= 768px TO PREVENT HORIZONTAL OVERFLOW */
  .floating-badge {
    display: none !important;
  }

  .tech-glass-card {
    padding: 1.5rem 1.15rem;
    max-width: 100%;
    overflow: hidden;
  }

  .code-editor {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    font-size: 0.82rem;
  }

  .stats-strip {
    margin-top: 3.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
    padding: 1.75rem 1.25rem;
  }

  /* CRITICAL: HIDE ALL VERTICAL DIVIDERS ON 2-COLUMN STATS GRID */
  .stat-item::after,
  .stat-item:not(:last-child)::after {
    display: none !important;
  }

  .stat-number {
    font-size: 2.1rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

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

  .service-page-hero {
    padding: 7.5rem 0 3rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-why-box {
    padding: 2.25rem 1.5rem;
    margin-bottom: 3.5rem;
  }

  .dedicated-cta-card {
    padding: 2.5rem 1.75rem;
    margin-bottom: 4rem;
  }

  .why-banner-inner {
    padding: 2.75rem 1.75rem;
  }

  .contact-section {
    padding: 4.5rem 0 5.5rem;
  }

  .contact-form-wrap,
  .contact-info-card {
    padding: 2.25rem 1.75rem;
  }

  .form-group-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 4rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }

  .service-hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .service-hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 0.65rem;
  }

  .newsletter-btn {
    width: 100%;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .service-title {
    font-size: 1.2rem;
  }

  .service-card-action {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    padding: 0.65rem 0;
  }

  .brand-logo {
    gap: 0.5rem;
  }

  .site-logo-img {
    height: 40px;
  }

  .footer-logo-img {
    height: 52px;
    margin-bottom: 1rem;
  }

  .mobile-logo-img {
    height: 36px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
    border-radius: 10px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  /* Hide tagline on small mobile to prevent header overflow */
  .logo-tagline {
    display: none !important;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .lang-toggle-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.35rem;
  }

  .menu-toggle {
    width: 26px;
    height: 19px;
  }

  .hero-section {
    padding: 5.85rem 0 2.25rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6.8vw, 2.2rem);
    line-height: 1.28;
    margin-bottom: 1rem;
    word-break: break-word;
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
  }

  .tech-glass-card {
    padding: 1.15rem 0.85rem;
    border-radius: 14px;
  }

  .code-editor {
    font-size: 0.74rem;
    line-height: 1.5;
  }

  .code-line {
    gap: 0.5rem;
  }

  .stats-strip {
    margin-top: 2.25rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.65rem;
    padding: 1.25rem 0.75rem;
    border-radius: 16px;
  }

  .stat-number {
    font-size: 1.65rem;
    margin-bottom: 0.2rem;
  }

  .stat-label {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .section-badge {
    font-size: 0.78rem;
    padding: 0.3rem 0.8rem;
    margin-bottom: 0.75rem;
  }

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

  .section-title {
    font-size: 1.65rem;
  }

  .section-subtitle {
    font-size: 0.92rem;
  }

  .about-section {
    padding: 3.5rem 0;
  }

  .about-info-lead {
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .about-info-text {
    font-size: 0.92rem;
  }

  .value-card {
    padding: 1.25rem 1rem;
  }

  .value-title {
    font-size: 1.02rem;
  }

  .value-desc {
    font-size: 0.84rem;
  }

  .workflow-wrap {
    margin-top: 3rem;
  }

  .step-card {
    padding: 1.35rem 1rem;
  }

  .step-num {
    font-size: 1.85rem;
  }

  .services-section {
    padding: 3.5rem 0;
  }

  .service-card {
    padding: 1.5rem 1.15rem;
    border-radius: 16px;
  }

  .service-page-hero {
    padding: 5.85rem 0 2.25rem;
  }

  .service-page-title {
    font-size: 1.75rem;
  }

  .service-page-lead {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .sub-service-card {
    padding: 1.4rem 1rem;
    border-radius: 16px;
  }

  .service-why-box {
    padding: 1.5rem 1rem;
    border-radius: 16px;
    margin-bottom: 3rem;
  }

  .dedicated-cta-card {
    padding: 2rem 1rem;
    border-radius: 16px;
    margin-bottom: 3rem;
  }

  .why-banner {
    margin: 2rem 0 4rem;
  }

  .why-banner-inner {
    padding: 2rem 1rem;
    border-radius: 16px;
  }

  .why-banner-title,
  .dedicated-cta-title {
    font-size: 1.5rem;
  }

  .why-banner-desc,
  .dedicated-cta-desc {
    font-size: 0.95rem;
  }

  .contact-section {
    padding: 3.5rem 0 4.5rem;
  }

  .contact-info-card,
  .contact-form-wrap {
    padding: 1.65rem 1rem;
    border-radius: 16px;
  }

  .contact-item-list {
    gap: 1.25rem;
    margin-bottom: 1.75rem;
  }

  .contact-detail span,
  .contact-detail a {
    font-size: 0.92rem;
    word-break: break-all;
  }

  .captcha-box {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .captcha-badge {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.55rem 0.85rem;
  }

  .captcha-input {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 1rem;
  }

  /* WhatsApp Widget Mobile Full Containment */
  .codex-wa-widget {
    bottom: 18px;
    right: 16px;
  }
  
  .wa-radar-pulse,
  .wa-float-btn {
    width: 52px;
    height: 52px;
  }

  .wa-svg-icon {
    width: 26px;
    height: 26px;
  }

  /* Tooltip hidden on mobile to guarantee zero overflow */
  .wa-tooltip-bubble {
    display: none !important;
  }

  /* Chat Popup window safely fixed within viewport bounds */
  .wa-chat-popup {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 78px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 18px !important;
    max-height: calc(100dvh - 95px);
  }

  .wa-popup-body {
    max-height: 230px;
  }

  .back-to-top {
    bottom: 78px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

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

  .site-logo-img {
    height: 34px;
  }

  .brand-logo .logo-text {
    font-size: 1.05rem;
  }

  .lang-toggle-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
}
