/* Design System - Sawwikly React SPA */

:root {
  /* Color Tokens */
  --bg-dark: #061a3f;
  --bg-darker: #030c1d;
  --bg-card: rgba(10, 25, 60, 0.45);
  --bg-card-hover: rgba(15, 35, 80, 0.65);
  
  --primary: #e86b24;       /* Burnt Orange */
  --primary-rgb: 232, 107, 36;
  --primary-glow: rgba(232, 107, 36, 0.25);
  --primary-hover: #d65a18;
  
  --accent: #1d63ed;        /* Royal Blue */
  --accent-rgb: 29, 99, 237;
  --accent-glow: rgba(29, 99, 237, 0.25);
  
  --text-main: hsl(215, 20%, 85%);
  --text-muted: hsl(215, 15%, 65%);
  --text-light: hsl(0, 0%, 100%);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(232, 107, 36, 0.4);
  --nav-bg: rgba(3, 12, 29, 0.85);
  
  --success: hsl(142, 76%, 45%);
  --error: hsl(350, 84%, 56%);
  
  /* Fonts */
  --font-en: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-ar: 'Tajawal', 'Cairo', system-ui, sans-serif;
  
  /* Common properties */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 25px var(--primary-glow);
  --shadow-accent: 0 0 25px var(--accent-glow);
  --glass-blur: blur(20px) saturate(190%);
  
  scroll-behavior: smooth;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at 10% 10%, #082354 0%, #030c1d 60%, #3a1c0d 100%) no-repeat fixed;
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 102, 0, 0.3);
  border-radius: 5px;
  border: 2px solid var(--bg-darker);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Text Selection */
::selection {
  background-color: var(--primary-glow);
  color: var(--text-light);
}

/* Page Layout Container */
.app-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Font and Alignment classes */
.lang-en {
  font-family: var(--font-en);
  text-align: left;
}
.lang-ar {
  font-family: var(--font-ar);
  text-align: right;
  letter-spacing: 0;
}

/* Background Glowing Bubbles */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-glow-bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  mix-blend-mode: screen;
}

.bubble-1 {
  top: -10%;
  left: 10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation: float-slow 25s infinite ease-in-out alternate;
}

.bubble-2 {
  bottom: 10%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  animation: float-slow 20s infinite ease-in-out alternate-reverse;
}

.bubble-3 {
  top: 40%;
  left: 50%;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, hsl(280, 80%, 40%) 0%, transparent 70%);
  opacity: 0.1;
  animation: float-medium 18s infinite ease-in-out;
}

/* Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1000;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--accent), var(--primary));
  width: 0%;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

/* Typography & Visual Accents */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-light);
  font-weight: 700;
  line-height: 1.25;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-light) 30%, var(--primary) 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navbar */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  background: var(--nav-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  transition: padding var(--transition-normal), background var(--transition-normal);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding var(--transition-normal);
}

.navbar-header.scrolled .navbar-container {
  padding: 0.7rem 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

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

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--text-light);
}

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

.nav-link.active {
  color: var(--text-light);
}
.nav-link.active::after {
  width: 100%;
}

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

/* Language Toggle Button */
.btn-lang-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.btn-lang-toggle:hover {
  background: rgba(255, 102, 0, 0.1);
  border-color: var(--primary);
  color: var(--text-light);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
}

/* Mobile Menu Button */
.btn-menu-mobile {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
}

/* Hero Section */
.hero-section {
  padding: 10rem 2rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  min-height: 90vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 102, 0, 0.08);
  border: 1px solid rgba(255, 102, 0, 0.25);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

/* Premium Buttons */
.btn-premium {
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-premium.primary {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(15, 100%, 50%) 100%);
  border: none;
  color: var(--text-light);
  box-shadow: 0 4px 20px rgba(255, 102, 0, 0.3);
}

.btn-premium.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.5);
}

.btn-premium.secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-light);
}

.btn-premium.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Hero Visual Assets (Premium interactive widget) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 450px;
}

.visual-glow-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.25;
  filter: blur(40px);
  z-index: 1;
}

.visual-card-main {
  position: relative;
  width: 320px;
  height: 380px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.visual-card-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,102,0,0.1) 0%, transparent 60%);
  pointer-events: none;
}

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

.visual-card-badge {
  background: var(--primary-glow);
  border: 1px solid rgba(255, 102, 0, 0.3);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.visual-card-graph {
  height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.graph-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent) 0%, var(--primary) 100%);
  border-radius: 6px 6px 0 0;
  width: 100%;
  min-height: 10px;
  transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.graph-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #fff;
}

.visual-card-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

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

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

/* floating visual cards */
.floating-widget {
  position: absolute;
  background: rgba(15, 9, 31, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.floating-widget.w1 {
  top: 12%;
  right: 5%;
  animation: float-widget-y 5s infinite ease-in-out alternate;
  border-left: 3px solid var(--primary);
}

.floating-widget.w2 {
  bottom: 15%;
  left: 5%;
  animation: float-widget-y 6s infinite ease-in-out alternate-reverse;
  border-left: 3px solid var(--accent);
}

.widget-icon {
  width: 1.8rem;
  height: 1.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.floating-widget.w2 .widget-icon {
  color: var(--accent);
}

.widget-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.widget-text p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Sections Common Structure */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
}

.section-title {
  font-size: 2.75rem;
  letter-spacing: -1px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Glass Card Component */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translate3d(0, -5px, 0);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 102, 0, 0.1);
}

/* Services Section */
#services {
  padding-top: 3rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  background: rgba(255, 102, 0, 0.08);
  border: 1px solid rgba(255, 102, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: var(--primary);
  color: var(--text-light);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: scale(1.08) rotate(5deg);
}

.service-card.purple-theme:hover .service-icon-box {
  background: var(--accent);
  color: var(--text-light);
  box-shadow: 0 0 20px var(--accent-glow);
}

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

.service-text {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Stats Element in SEO Service */
.service-stats {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-num.accent-num {
  color: var(--accent);
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-stat-card {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.about-stat-card.offset {
  transform: translateY(2rem);
}

.about-stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
}

.about-stat-card:nth-child(even) .about-stat-number {
  color: var(--accent);
  text-shadow: 0 0 15px var(--accent-glow);
}

.about-stat-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
}

.about-stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-heading {
  font-size: 2.25rem;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.about-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.about-item-icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.about-item-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.about-item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Ecosystem Section */
.ecosystem-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.eco-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.eco-badge {
  background: rgba(170, 85, 255, 0.08);
  border: 1px solid rgba(170, 85, 255, 0.2);
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  align-self: flex-start;
}

.eco-card:nth-child(even) .eco-badge {
  background: rgba(255, 102, 0, 0.08);
  border: 1px solid rgba(255, 102, 0, 0.2);
  color: var(--primary);
}

.eco-title {
  font-size: 1.25rem;
}

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

/* Ecosystem Connective Network Panel (Beautiful SVG Illustration) */
.ecosystem-network-panel {
  width: 100%;
  height: 200px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.network-svg {
  width: 100%;
  height: 100%;
}

.network-node {
  animation: pulse-slow 3s infinite ease-in-out;
}

.network-line {
  stroke: var(--border-color);
  stroke-dasharray: 8 4;
  animation: dash 30s linear infinite;
}

.network-line-active {
  stroke: var(--primary);
  stroke-width: 2;
  stroke-dasharray: 8 4;
  animation: dash 15s linear infinite;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-title {
  font-size: 2rem;
}

.contact-info-desc {
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-method-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 102, 0, 0.08);
  border: 1px solid rgba(255, 102, 0, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.contact-method-card:hover .contact-method-icon {
  background: var(--primary);
  color: var(--text-light);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: scale(1.05);
}

.contact-method-text h4 {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.contact-method-text a, .contact-method-text p {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.form-input, .form-textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  font-family: inherit;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  width: 100%;
}

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

.form-input:focus, .form-textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.15);
}

.form-input.has-error, .form-textarea.has-error {
  border-color: var(--error);
}

.form-error-msg {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 0.1rem;
  position: absolute;
  bottom: -1.25rem;
}

.lang-en .form-error-msg {
  left: 0.2rem;
}

.lang-ar .form-error-msg {
  right: 0.2rem;
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

/* Toast Success Message */
.toast-success {
  position: fixed;
  bottom: 2rem;
  background: rgba(15, 9, 31, 0.9);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--success);
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-success.show {
  transform: translateY(0);
}

.lang-en .toast-success {
  right: 2rem;
}
.lang-ar .toast-success {
  left: 2rem;
}

.toast-icon {
  color: var(--success);
  width: 1.5rem;
  height: 1.5rem;
}

.toast-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.toast-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer Section */
.footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-darker);
  padding: 4rem 2rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text-light);
}

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

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

.footer-links-col h4 {
  font-size: 1rem;
  font-weight: 700;
}

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

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

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

.footer-social-links {
  display: flex;
  gap: 1rem;
}

.social-icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.social-icon-btn:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

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

/* Animations */
@keyframes float-slow {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(5%, 8%) scale(1.05) rotate(180deg);
  }
  100% {
    transform: translate(-5%, -5%) scale(0.95) rotate(360deg);
  }
}

@keyframes float-medium {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-8%, 5%) scale(1.1);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes float-widget-y {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-slow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255,102,0,0.6));
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile responsive fixes */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding-top: 8rem;
    min-height: auto;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-tagline {
    align-self: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .about-visual {
    order: 2;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 1rem;
  }
  
  .btn-menu-mobile {
    display: block;
    z-index: 999;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-darker);
    border-inline-start: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    align-items: stretch;
    gap: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 950;
  }
  
  /* LTR transitions */
  .lang-en .nav-links {
    right: 0;
    transform: translateX(100%);
  }
  .lang-en .nav-links.open {
    transform: translateX(0);
  }
  
  /* RTL transitions */
  .lang-ar .nav-links {
    left: 0;
    transform: translateX(-100%);
  }
  .lang-ar .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }
  
  .nav-actions {
    margin-inline-start: auto;
    margin-inline-end: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-visual {
    height: 380px;
  }
  
  .visual-card-main {
    width: 280px;
    height: 320px;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Select Option Dark Styling */
.form-input option {
  background-color: var(--bg-darker);
  color: var(--text-main);
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-card);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
}

.blog-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 102, 0, 0.1);
}

.blog-img-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-img {
  transform: scale(1.08);
}

.blog-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-card-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid rgba(255, 102, 0, 0.25);
  width: fit-content;
  text-transform: uppercase;
}

.blog-card:nth-child(even) .blog-card-tag {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: rgba(170, 85, 255, 0.25);
}

.blog-card-title {
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card-title {
  color: var(--primary);
}

.blog-card-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.blog-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
  cursor: pointer;
  margin-top: 0.5rem;
}

.blog-card-link:hover {
  color: var(--primary);
}

/* Admin Panel Dashboard Styles */
.admin-container {
  min-height: 100vh;
  background-color: var(--bg-darker);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

.admin-header {
  padding: 1.25rem 2rem;
  background: var(--nav-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.35rem;
}

.btn-back-site {
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
}

.admin-dashboard {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 75px);
}

.admin-sidebar {
  background: hsl(255, 45%, 4%);
  border-right: 1px solid var(--border-color);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  transition: all var(--transition-fast);
}

.sidebar-tab:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-light);
}

.sidebar-tab.active {
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(255, 102, 0, 0.25);
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.1);
}

.admin-main {
  padding: 2.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 75px);
  background: var(--bg-dark);
}

.admin-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeIn 0.4s ease-out;
}

.admin-tab-panel h2 {
  font-size: 1.85rem;
  letter-spacing: -0.5px;
}

.admin-panel-tip {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

.admin-form-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-form-section h3 {
  font-size: 1.15rem;
  color: var(--primary);
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}

.admin-form-section h4 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

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

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.admin-posts-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.admin-post-item-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-post-item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.admin-post-item-card-header h4 {
  font-size: 1.15rem;
  color: var(--text-light);
}

.btn-delete-post {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: hsl(350, 84%, 60%) !important;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
}

.btn-delete-post:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2) !important;
}

.admin-export-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.admin-action-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
}

.admin-action-card h3 {
  font-size: 1.25rem;
  color: var(--text-light);
}

.admin-action-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-export {
  align-self: flex-start;
  width: 100%;
}

.admin-help-box {
  background: rgba(255, 102, 0, 0.03);
  border: 1px solid rgba(255, 102, 0, 0.15);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.admin-help-box h4 {
  font-size: 0.95rem;
  color: var(--primary);
}

.admin-help-box ol {
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-help-box code {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  color: var(--text-light);
}

.admin-file-upload-box {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 3rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.01);
  transition: border-color var(--transition-fast);
}

.admin-file-upload-box:hover {
  border-color: var(--accent);
}

.btn-file-label {
  cursor: pointer;
}

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

@media (max-width: 1024px) {
  .admin-dashboard {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .sidebar-tab {
    white-space: nowrap;
  }
  .admin-export-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom overrides for service card clickability and ecosystem animations */
.service-card {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease !important;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(255, 74, 26, 0.4) !important;
  box-shadow: 0 20px 40px rgba(255, 74, 26, 0.15), 0 0 20px rgba(181, 23, 158, 0.1) !important;
}

@keyframes rotate-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes rotate-ring-reverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}
@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}
.rotating-ring {
  transform-origin: 500px 100px;
  animation: rotate-ring 12s linear infinite;
}
.rotating-ring-reverse {
  transform-origin: 500px 100px;
  animation: rotate-ring-reverse 16s linear infinite;
}
.pulsing-ring {
  transform-origin: center;
  animation: pulse-ring 3s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}
circle[cx="150"] { transform-origin: 150px 100px; }
circle[cx="380"] { transform-origin: 380px 100px; }
circle[cx="620"] { transform-origin: 620px 100px; }
circle[cx="850"] { transform-origin: 850px 100px; }

.network-line-active {
  stroke-dasharray: 8 6;
  animation: laser-dash 10s linear infinite;
}
@keyframes laser-dash {
  to {
    stroke-dashoffset: -100;
  }
}

/* Interactivity and design improvements for Ecosystem Section */
.eco-card {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease !important;
}

.eco-card:hover, .eco-card.active-highlight {
  transform: translateY(-8px) scale(1.03) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 25px var(--primary-glow) !important;
}

.ecosystem-node-group {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ecosystem-node-group:hover, .ecosystem-node-group.node-active-highlight {
  transform: translateY(-3px);
}

.ecosystem-node-group:hover .node-dot, .ecosystem-node-group.node-active-highlight .node-dot {
  filter: drop-shadow(0 0 12px var(--accent));
  r: 12px;
}

.ecosystem-node-group:hover .node-label, .ecosystem-node-group.node-active-highlight .node-label {
  fill: var(--text-light);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(170, 85, 255, 0.6);
}

.node-label {
  fill: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all var(--transition-fast);
}

.ecosystem-hub-group {
  transition: transform 0.3s ease;
}

.ecosystem-hub-group:hover {
  transform: scale(1.05);
}

.ecosystem-hub-group:hover .hub-dot {
  filter: drop-shadow(0 0 15px var(--primary));
}

.hub-label {
  fill: var(--text-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

.network-line {
  transition: stroke var(--transition-normal), stroke-width var(--transition-normal), filter var(--transition-normal);
}

.network-line-highlighted {
  stroke: var(--primary) !important;
  stroke-width: 3px !important;
  stroke-dasharray: none !important;
  filter: drop-shadow(0 0 8px rgba(255, 102, 0, 0.5)) !important;
}

/* Header Social Links (Desktop) */
.header-socials {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-inline-end: 0.8rem;
}

.header-social-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  padding: 0.25rem;
}

.header-social-link:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.header-social-link svg {
  display: block;
}

/* Mobile Drawer Language & Social Layouts */
.mobile-only-nav-item {
  display: none;
}

@media (max-width: 768px) {
  .header-socials {
    display: none;
  }
  
  .mobile-only-nav-item {
    display: block;
  }
  
  .mobile-lang-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: color var(--transition-fast);
  }
  
  .mobile-lang-link:hover {
    color: var(--primary);
  }
  
  .mobile-socials {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
    justify-content: center;
  }
}

/* Globe Icon Color and Glow styling in Header */
.btn-lang-toggle .lang-icon, .mobile-lang-link .lang-icon {
  color: var(--primary) !important;
  filter: drop-shadow(0 0 5px var(--primary-glow));
  transition: transform var(--transition-fast);
}

.btn-lang-toggle:hover .lang-icon {
  transform: rotate(20deg) scale(1.1);
}

.desktop-only {
  display: inline;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline !important;
  }
  
  .btn-lang-toggle {
    padding: 0.45rem 0.75rem !important;
    gap: 0.35rem !important;
    border-radius: 30px !important;
    border-color: rgba(255, 102, 0, 0.25) !important;
    background: rgba(255, 102, 0, 0.05) !important;
    font-size: 0.75rem !important;
    height: auto !important;
  }
}

/* ==========================================================================
   VERSION 2 DESIGN UPGRADES
   ========================================================================== */

/* 1. High-Tech Grid Mesh Background */
.hero-section::before,
#ecosystem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 102, 0, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}
.hero-section, #ecosystem {
  position: relative;
}
.hero-content, .hero-visual, .section-header, .ecosystem-grid, .ecosystem-network-panel {
  position: relative;
  z-index: 2;
}



/* 3. SVG Laser Flow Animation */
.laser-path {
  stroke: url(#laserGradient) !important;
  stroke-width: 3.5px !important;
  stroke-linecap: round;
  stroke-dasharray: 80 220;
  animation: laser-flow-dash 5s linear infinite;
  filter: drop-shadow(0 0 8px var(--primary));
  opacity: 0.85;
}

@keyframes laser-flow-dash {
  from {
    stroke-dashoffset: 600;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* 4. Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }
.reveal-delay-500 { transition-delay: 500ms; }
.reveal-delay-600 { transition-delay: 600ms; }

/* 5. Magnetic Button styling */
.magnetic-wrap {
  display: inline-block;
  position: relative;
}

.btn-magnetic {
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   VERSION 3 DESIGN UPGRADES: GEOMETRIC ARCS, CASE STUDIES, TIMELINES
   ========================================================================== */

/* 1. Geometric Background Arcs */
.bg-geometry-arcs-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-geometry-arcs {
  width: 100%;
  height: 100%;
  opacity: 0.65;
}

/* 2. Growth Case Study Section */
.case-study-section {
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem;
}

.case-study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 950px;
  margin: 3rem auto 0;
}

.comparison-card {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.comparison-card:hover {
  transform: translate3d(0, -8px, 0);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(232, 107, 36, 0.15);
}

.card-before {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-after {
  border: 2px solid var(--primary);
  box-shadow: 0 15px 45px rgba(232, 107, 36, 0.15);
}

.card-body-white {
  background: #ffffff;
  padding: 3rem 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  color: #0f172a;
}

.card-badge {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
}

.badge-before {
  background: #f1f5f9;
  color: #64748b;
  border: 1.5px solid #cbd5e1;
}

.card-header-accent {
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: 1.25rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 26px 26px 0 0;
}

.card-footer-accent {
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0 0 26px 26px;
}

/* Donut Chart Styling */
.circular-chart-box {
  position: relative;
  width: 160px;
  height: 160px;
}

.donut-chart {
  width: 100%;
  height: 100%;
}

.donut-ring {
  stroke: #f1f5f9;
}

.donut-segment {
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dasharray 1s ease-in-out;
}

.donut-before .donut-segment {
  stroke: #94a3b8;
}

.donut-after .donut-segment {
  stroke: #7c3aed; /* Violet chart matching Graphic 1 */
}

.chart-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.chart-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #334155;
  line-height: 1;
}

.chart-number-large {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(124, 58, 237, 0.15);
}

.chart-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 2px;
}

.growth-banner {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: #7c3aed;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.growth-icon {
  animation: bounce-up-right 1.5s infinite alternate;
}

@keyframes bounce-up-right {
  0% { transform: translate(0, 0); }
  100% { transform: translate(3px, -3px); }
}

.case-stats-list {
  width: 100%;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.5rem;
}

.case-stats-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 500;
}

.case-stats-list .stat-label {
  color: #64748b;
}

.stat-value-bad {
  color: #ef4444;
  font-weight: 700;
}

.stat-value-good {
  color: #10b981;
  font-weight: 700;
}

/* 3. Customer Journey Timeline */
.journey-section {
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 3rem;
}

.journey-timeline-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 4rem auto 0;
  height: 800px;
}

.journey-svg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.journey-line-svg {
  width: 100%;
  height: 100%;
}
.lang-ar .journey-line-svg {
  transform: scaleX(-1);
}

.journey-path-active {
  stroke-dashoffset: 0;
  animation: timeline-dash 30s linear infinite;
}

@keyframes timeline-dash {
  to {
    stroke-dashoffset: -1000;
  }
}

.journey-node-wrap {
  position: absolute;
  width: 320px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: transform 0.3s ease;
}

.journey-node-wrap:hover {
  transform: scale(1.03);
}

.journey-circle-node {
  width: 3.5rem;
  height: 3.5rem;
  background: #ffffff;
  border: 4px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 0 20px rgba(232, 107, 36, 0.4), inset 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  transition: background 0.3s ease, color 0.3s ease;
}

.journey-node-wrap:hover .journey-circle-node {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(232, 107, 36, 0.7);
}

.journey-card-content {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.journey-node-wrap:hover .journey-card-content {
  border-color: rgba(232, 107, 36, 0.35);
  box-shadow: 0 15px 30px rgba(232, 107, 36, 0.1);
}

.node-number {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

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

.node-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Position nodes absolute-positioned on the curve */
/* LTR placement */
.node-step-1 { top: 0px; right: 57.5%; left: auto; }
.node-step-1 .journey-circle-node { right: -1.75rem; left: auto; top: 50%; transform: translateY(-50%); }
.node-step-1 .journey-card-content { padding-right: 2rem; text-align: right; }

.node-step-2 { top: 130px; left: 57.5%; right: auto; }
.node-step-2 .journey-circle-node { left: -1.75rem; right: auto; top: 50%; transform: translateY(-50%); }
.node-step-2 .journey-card-content { padding-left: 2rem; text-align: left; }

.node-step-3 { top: 260px; right: 57.5%; left: auto; }
.node-step-3 .journey-circle-node { right: -1.75rem; left: auto; top: 50%; transform: translateY(-50%); }
.node-step-3 .journey-card-content { padding-right: 2rem; text-align: right; }

.node-step-4 { top: 390px; left: 57.5%; right: auto; }
.node-step-4 .journey-circle-node { left: -1.75rem; right: auto; top: 50%; transform: translateY(-50%); }
.node-step-4 .journey-card-content { padding-left: 2rem; text-align: left; }

.node-step-5 { top: 520px; right: 57.5%; left: auto; }
.node-step-5 .journey-circle-node { right: -1.75rem; left: auto; top: 50%; transform: translateY(-50%); }
.node-step-5 .journey-card-content { padding-right: 2rem; text-align: right; }

.node-step-6 { top: 650px; left: 57.5%; right: auto; }
.node-step-6 .journey-circle-node { left: -1.75rem; right: auto; top: 50%; transform: translateY(-50%); }
.node-step-6 .journey-card-content { padding-left: 2rem; text-align: left; }

/* Mirror positions for Arabic (RTL) */
.lang-ar .node-step-1 { left: 57.5%; right: auto; }
.lang-ar .node-step-1 .journey-circle-node { left: -1.75rem; right: auto; }
.lang-ar .node-step-1 .journey-card-content { padding-left: 2rem; padding-right: 1.75rem; text-align: right; }

.lang-ar .node-step-2 { right: 57.5%; left: auto; }
.lang-ar .node-step-2 .journey-circle-node { right: -1.75rem; left: auto; }
.lang-ar .node-step-2 .journey-card-content { padding-right: 2rem; padding-left: 1.75rem; text-align: left; }

.lang-ar .node-step-3 { left: 57.5%; right: auto; }
.lang-ar .node-step-3 .journey-circle-node { left: -1.75rem; right: auto; }
.lang-ar .node-step-3 .journey-card-content { padding-left: 2rem; padding-right: 1.75rem; text-align: right; }

.lang-ar .node-step-4 { right: 57.5%; left: auto; }
.lang-ar .node-step-4 .journey-circle-node { right: -1.75rem; left: auto; }
.lang-ar .node-step-4 .journey-card-content { padding-right: 2rem; padding-left: 1.75rem; text-align: left; }

.lang-ar .node-step-5 { left: 57.5%; right: auto; }
.lang-ar .node-step-5 .journey-circle-node { left: -1.75rem; right: auto; }
.lang-ar .node-step-5 .journey-card-content { padding-left: 2rem; padding-right: 1.75rem; text-align: right; }

.lang-ar .node-step-6 { right: 57.5%; left: auto; }
.lang-ar .node-step-6 .journey-circle-node { right: -1.75rem; left: auto; }
.lang-ar .node-step-6 .journey-card-content { padding-right: 2rem; padding-left: 1.75rem; text-align: left; }

/* Responsive adjustments */
@media (max-width: 991px) {
  .case-study-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .journey-timeline-container {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 3.5rem;
    position: relative;
  }
  
  .lang-ar .journey-timeline-container {
    padding-left: 0;
    padding-right: 3.5rem;
  }

  .journey-svg-wrap {
    left: 1rem;
    width: 4px;
    height: 100%;
  }
  
  .lang-ar .journey-svg-wrap {
    left: auto;
    right: 1rem;
  }

  .journey-line-svg {
    display: none; /* Hide curve, use clean vertical line in css */
  }
  
  .journey-svg-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary) 70%, rgba(255,255,255,0.05));
    border-radius: 5px;
  }

  .journey-node-wrap {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    text-align: left !important;
    align-items: flex-start !important;
  }
  
  .lang-ar .journey-node-wrap {
    text-align: right !important;
    align-items: flex-end !important;
  }

  .journey-circle-node {
    position: absolute;
    left: -3rem !important;
    right: auto !important;
    top: 1.5rem !important;
    transform: translateY(-50%) !important;
    width: 2.5rem;
    height: 2.5rem;
    border-width: 3px;
  }
  
  .journey-circle-node svg {
    width: 14px;
    height: 14px;
  }

  .lang-ar .journey-circle-node {
    left: auto !important;
    right: -3rem !important;
  }

  .journey-card-content {
    padding: 1.25rem !important;
    margin: 0 !important;
    text-align: left !important;
  }
  
  .lang-ar .journey-card-content {
    text-align: right !important;
  }
}

/* Arabic Typography Overrides to prevent text overlapping */
.lang-ar h1,
.lang-ar h2,
.lang-ar h3,
.lang-ar h4,
.lang-ar h5,
.lang-ar h6 {
  line-height: 1.5 !important;
}

.lang-ar .hero-title {
  line-height: 1.4 !important;
}

.lang-ar .blog-card-title {
  line-height: 1.5 !important;
}



