/* ============================================================
   SISHUP — Investor Pitch Deck
   Premium RTL Arabic Stylesheet
   ============================================================ */

/* ----------------------------------------------------------
   1. ROOT VARIABLES & RESET
   ---------------------------------------------------------- */

:root {
  /* Colors */
  --color-primary: #0a1628;
  --color-primary-dark: #060e1a;
  --color-secondary: #1e293b;
  --color-accent: #f97316;
  --color-accent-hover: #ea580c;
  --color-accent-light: rgba(249, 115, 22, 0.1);
  --color-accent-glow: rgba(249, 115, 22, 0.35);
  --color-white: #ffffff;
  --color-text-primary: #ffffff;
  --color-text-muted: #94a3b8;
  --color-text-body: #cbd5e1;
  --color-card-bg: rgba(255, 255, 255, 0.03);
  --color-card-border: rgba(255, 255, 255, 0.08);
  --color-card-border-hover: rgba(255, 255, 255, 0.15);
  --color-success: #22c55e;
  --color-error: #ef4444;
  --color-separator: rgba(255, 255, 255, 0.06);

  /* Gradients */
  --gradient-bg: linear-gradient(135deg, #0a1628 0%, #1e293b 100%);
  --gradient-accent: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
  --gradient-accent-reverse: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  --gradient-accent-vertical: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  --gradient-text: linear-gradient(135deg, #f97316, #fbbf24);
  --gradient-glow: radial-gradient(ellipse at center, rgba(249,115,22,0.15) 0%, transparent 70%);

  /* Typography */
  --font-arabic: 'Cairo', sans-serif;
  --font-english: 'Inter', sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.8;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  --section-padding: 100px;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(249, 115, 22, 0.2);
  --shadow-glow-strong: 0 0 50px rgba(249, 115, 22, 0.35);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index layers */
  --z-particles: 0;
  --z-content: 1;
  --z-nav: 1000;
  --z-overlay: 999;
  --z-modal: 1100;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}

body {
  background: var(--gradient-bg);
  background-attachment: fixed;
  font-family: var(--font-arabic);
  color: var(--color-text-primary);
  line-height: var(--line-height-base);
  direction: rtl;
  text-align: right;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Selection */
::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

::-moz-selection {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ----------------------------------------------------------
   2. TYPOGRAPHY
   ---------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-arabic);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-body);
}

.section-subtitle {
  color: var(--color-text-muted);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.8;
}

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

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

.text-english {
  font-family: var(--font-english);
  direction: ltr;
}

/* ----------------------------------------------------------
   3. LAYOUT
   ---------------------------------------------------------- */

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-xl);
  padding-right: var(--spacing-xl);
  width: 100%;
}

section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-separator) 20%,
    rgba(255, 255, 255, 0.1) 50%,
    var(--color-separator) 80%,
    transparent 100%
  );
}

section:last-of-type::after {
  display: none;
}

/* Subtle grid pattern overlay */
section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

section > .container {
  position: relative;
  z-index: var(--z-content);
}

/* ----------------------------------------------------------
   4. NAVIGATION
   ---------------------------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 1.25rem 0;
  transition: all var(--transition-base);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(10, 22, 40, 0.6);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--color-card-border);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-base);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-primary);
}

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

.nav-cta {
  background: var(--gradient-accent);
  color: var(--color-white);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: calc(var(--z-nav) + 10);
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-overlay);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-menu .nav-link {
  font-size: 1.5rem;
  color: var(--color-text-primary);
}

.mobile-menu .nav-cta {
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
}

/* ----------------------------------------------------------
   5. HERO SECTION
   ---------------------------------------------------------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: var(--gradient-bg);
  background-attachment: fixed;
  padding: 120px 0 60px 0;
  overflow: hidden;
}

.hero::after {
  display: none;
}

.hero::before {
  display: none;
}

#particles-canvas,
.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-particles);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: var(--z-content);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xl);
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease forwards;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.6s ease 0.15s both;
}

.hero-title .text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--spacing-2xl);
  line-height: 1.8;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--gradient-accent);
  color: var(--color-white);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  transition: all var(--transition-base);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.3);
  animation: fadeInUp 0.6s ease 0.45s both;
}

.hero-cta:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-strong);
}

.hero-cta:active {
  transform: scale(0.98);
}

/* Floating stat badge */
.floating-stat {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  z-index: var(--z-content);
  animation: float 6s ease-in-out infinite;
}

.floating-stat.stat-1 {
  top: 25%;
  left: 8%;
  animation-delay: 0s;
}

.floating-stat.stat-2 {
  bottom: 30%;
  right: 8%;
  animation-delay: 2s;
}

.floating-stat.stat-3 {
  top: 35%;
  right: 5%;
  animation-delay: 4s;
}

.floating-stat .stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  animation: bounce 2s infinite;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--color-text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

/* ----------------------------------------------------------
   6. SECTION HEADER (shared)
   ---------------------------------------------------------- */

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-4xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-md);
}

.section-header .section-subtitle {
  margin-top: var(--spacing-sm);
}

.section-label {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   7. PROBLEM SECTION
   ---------------------------------------------------------- */

.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.problem-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: background var(--transition-base);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.problem-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(249, 115, 22, 0.08);
  border-color: var(--color-card-border-hover);
}

.problem-card:hover::before {
  background: var(--gradient-accent);
}

.problem-card .card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  font-size: 1.5rem;
  color: var(--color-accent);
}

.problem-card-header,
.pillar-card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.problem-card .problem-card-header .card-icon,
.pillar-card .pillar-card-header .pillar-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.problem-card .problem-card-header h3,
.pillar-card .pillar-card-header h3 {
  margin-bottom: 0;
}

.problem-card h3 {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
}

.problem-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: var(--spacing-lg);
}

.problem-stat {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.problem-stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--spacing-xs);
}

/* ----------------------------------------------------------
   8. SOLUTION / PILLARS SECTION
   ---------------------------------------------------------- */

.pillars-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pillars-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.row-first .pillar-card-wrapper,
.row-second .pillar-card-wrapper {
  flex: 1 1 calc(25% - 24px);
  min-width: 250px;
}

.row-third .pillar-card-wrapper {
  flex: 1 1 calc(33.333% - 24px);
  min-width: 280px;
}

.pillar-card-wrapper {
  display: flex;
  position: relative;
}

.pillar-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  cursor: default;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible; /* السماح بالتوسع الخارجي */
  display: flex;
  flex-direction: column;
  width: 100%;
  z-index: 1;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.pillar-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.2), var(--shadow-glow);
  border-color: rgba(249, 115, 22, 0.4);
  z-index: 10; /* فوق البطاقات الباقية عند التوسع */
}

.pillar-card:hover::before {
  background: var(--gradient-accent);
}

.pillar-card .pillar-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-white);
}

.pillar-short-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 0; /* No margin because features will slide down on hover */
  transition: margin 0.3s ease;
}

.pillar-card:hover .pillar-short-desc,
.pillar-card.active .pillar-short-desc {
  margin-bottom: var(--spacing-md);
}

.pillar-card .features {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.pillar-card:hover .features,
.pillar-card.active .features {
  max-height: 500px;
  opacity: 1;
  margin-top: auto;
}

.pillar-card .features ul {
  border-top: 1px solid var(--color-card-border);
  padding-top: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.pillar-card .features li {
  position: relative;
  padding-right: 1.25rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-text-body);
  line-height: 1.5;
}

.pillar-card .features li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Explore Link inside pillars */
.explore-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-base);
}

.explore-link:hover {
  background: var(--gradient-accent);
  color: var(--color-white);
  border-color: transparent;
}

/* Alert badge for news icon */
.news-alert-badge {
  position: absolute;
  top: -2px;
  left: -2px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  animation: pulse 2s infinite;
}



/* ----------------------------------------------------------
   9. BUSINESS MODEL
   ---------------------------------------------------------- */

.revenue-cards {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: stretch;
}

.revenue-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* حافة علوية ملونة حسب العمود */
.revenue-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

/* العمود 1: الشراكة الوطنية (ذهبي) */
.card-partnership-national::before {
  background: #eab308;
}
.card-partnership-national:hover {
  border-color: rgba(234, 179, 8, 0.4);
  box-shadow: 0 10px 30px rgba(234, 179, 8, 0.1), var(--shadow-glow);
}

/* العمود 2: للمصانع (برتقالي) */
.card-partnership-factories::before {
  background: #f97316;
}
.card-partnership-factories:hover {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.1), var(--shadow-glow);
}

/* العمود 3: للجميع (أخضر) */
.card-partnership-tech::before {
  background: #22c55e;
}
.card-partnership-tech:hover {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.1), var(--shadow-glow);
}

.revenue-icon-wrapper {
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.revenue-card h3 {
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
  font-weight: 700;
  border-bottom: 1px solid var(--color-card-border);
  padding-bottom: var(--spacing-sm);
}

/* الشراكة الوطنية - القوائم والترتيب */
.partnership-box, .package-box, .tech-box {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  flex-grow: 1;
}

.partner-role {
  margin-bottom: var(--spacing-md);
}

.partner-role h4 {
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.partner-role ul, .tech-box ul {
  padding-right: 0.5rem;
}

.partner-role li, .tech-box li {
  font-size: 0.85rem;
  color: var(--color-text-body);
  position: relative;
  padding-right: 1.25rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.partner-role li::before, .tech-box li::before {
  content: '•';
  position: absolute;
  right: 0;
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1.2rem;
  top: -2px;
}

.card-footer-note {
  margin-top: var(--spacing-lg);
  font-size: 0.9rem;
  color: #cbd5e1;
  border-top: 1px dashed var(--color-card-border);
  padding-top: var(--spacing-md);
  line-height: 1.6;
}

/* باقات المصانع */
.package-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: var(--spacing-sm);
}

.package-item:last-child {
  border-bottom: none;
}

.package-item h4 {
  font-size: 0.95rem;
  color: var(--color-accent);
  margin-bottom: 2px;
  font-weight: 600;
}

.package-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0;
}

/* الخدمات التقنية */
.tech-box h4 {
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.tech-government-free {
  margin-top: var(--spacing-lg);
  padding: 0.75rem;
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-sm);
  color: #22c55e;
  font-weight: 700;
  text-align: center;
  font-size: 0.95rem;
}

/* ----------------------------------------------------------
   10. MARKET SECTION
   ---------------------------------------------------------- */

.market-funnel {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  direction: ltr; /* Force left-to-right flow for cards and arrow sequence */
}

.market-funnel .stat-card {
  flex: 1;
  direction: rtl; /* Reset internal card content to RTL */
}

.market-funnel-arrow {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #f97316;
  transform: scaleX(1); /* Forces standard LTR rightward pointing (→) */
}

.market-secondary-stats {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  margin-top: 24px;
}

.market-secondary-stats .stat-card {
  flex: 1;
  max-width: calc(50% - 12px);
}

@media (max-width: 1024px) {
  /* Tablet: 2 cards + 1 card below (2 rows). Keep arrow 1. */
  .market-funnel {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
  }
  .market-funnel-arrow:nth-child(4) {
    display: none; /* Hide the second arrow */
  }
  .market-funnel .stat-card:nth-child(5) {
    grid-column: span 3; /* Stretch the third card across the grid width */
  }
}

@media (max-width: 768px) {
  /* Mobile: 1 card per row */
  .market-funnel {
    grid-template-columns: 1fr;
  }
  .market-funnel-arrow {
    display: none; /* Hide all arrows on mobile */
  }
  .market-funnel .stat-card:nth-child(5) {
    grid-column: span 1;
  }
  .market-secondary-stats {
    flex-direction: column;
  }
  .market-secondary-stats .stat-card {
    max-width: 100%;
  }
}

.stat-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem; /* Compact padding */
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-card-border-hover);
  box-shadow: var(--shadow-md);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--spacing-xs);
  line-height: 1.2;
}

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

/* ----------------------------------------------------------
   11. COMPETITIVE ADVANTAGE
   ---------------------------------------------------------- */

.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--spacing-2xl);
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 700px;
}

.comparison-table thead th {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 2px solid var(--color-card-border);
}

.comparison-table thead th.highlight {
  background: var(--gradient-accent);
  color: var(--color-white);
}

.comparison-table tbody td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-card-border);
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-body);
  transition: background var(--transition-fast);
}

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

.comparison-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody td:first-child {
  text-align: right;
  font-weight: 600;
  color: var(--color-text-primary);
}

.comparison-table tbody td.highlight {
  background: rgba(249, 115, 22, 0.06);
  color: var(--color-accent);
  font-weight: 600;
}

.comparison-table .check {
  color: var(--color-success);
  font-size: 1.2rem;
  font-weight: 700;
}

.comparison-table .cross {
  color: var(--color-text-muted);
  font-size: 1.2rem;
  opacity: 0.5;
}

.feature-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: var(--spacing-sm);
}

/* ----------------------------------------------------------
   12. ROADMAP
   ---------------------------------------------------------- */

.roadmap .timeline {
  position: relative;
  padding: var(--spacing-3xl) 0;
}

/* Desktop: horizontal */
.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  direction: rtl; /* Align items correctly for RTL */
}

.timeline-line {
  position: absolute;
  top: 10px; /* Run line through the center of the 20px dots at the top */
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #f97316, #22c55e, #94a3b8); /* RTL flow gradient: blue (left) to gray (right) */
  z-index: 0;
}

.timeline-item {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timeline-item:nth-child(even) {
  flex-direction: column; /* Disable vertical alternation */
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  animation: pulse 3s infinite;
}

.timeline-content {
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  margin: var(--spacing-md) 0;
  max-width: 260px; /* Slightly wider for the list items */
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.timeline-content:hover {
  border-color: var(--color-card-border-hover);
  box-shadow: var(--shadow-md);
}

.timeline-date {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Stage-specific Colors */
/* Stage 0: Gray */
.stage-0 .timeline-dot {
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.2);
}
.stage-0 .timeline-date {
  color: #94a3b8;
}
.stage-0 .timeline-content {
  border-top: 3px solid #94a3b8;
}

/* Stage 1: Green */
.stage-1 .timeline-dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}
.stage-1 .timeline-date {
  color: #22c55e;
}
.stage-1 .timeline-content {
  border-top: 3px solid #22c55e;
}

/* Stage 2: Orange */
.stage-2 .timeline-dot {
  background: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}
.stage-2 .timeline-date {
  color: #f97316;
}
.stage-2 .timeline-content {
  border-top: 3px solid #f97316;
}

/* Stage 3: Blue */
.stage-3 .timeline-dot {
  background: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}
.stage-3 .timeline-date {
  color: #3b82f6;
}
.stage-3 .timeline-content {
  border-top: 3px solid #3b82f6;
}

/* ----------------------------------------------------------
   13. TEAM
   ---------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
}

.team-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border-color: rgba(249, 115, 22, 0.2);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto var(--spacing-lg);
  overflow: hidden;
  position: relative;
  background: var(--gradient-accent);
  padding: 3px;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--color-primary);
}

.team-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
}

.team-role {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.team-bio {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   14. INVESTMENT
   ---------------------------------------------------------- */

.investment-amount {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.investment-amount-label {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-3xl);
}

.investment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-2xl);
  align-items: start;
}

.investment-chart {
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.investment-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.breakdown-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

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

.breakdown-item-label {
  font-size: 0.95rem;
  color: var(--color-text-body);
  font-weight: 500;
}

.breakdown-percentage {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
}

.breakdown-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.breakdown-bar-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

/* ----------------------------------------------------------
   15. CONTACT
   ---------------------------------------------------------- */

.contact-form {
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-body);
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 1rem;
  transition: all var(--transition-base);
  direction: rtl;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

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

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--gradient-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.25);
}

.form-submit:hover {
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-2px);
}

.form-submit:active {
  transform: translateY(0);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-2xl);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0.75rem 1.5rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  color: var(--color-text-body);
  font-size: 0.95rem;
  transition: all var(--transition-base);
}

.contact-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
}

.contact-link i,
.contact-link svg {
  font-size: 1.1rem;
}

/* ----------------------------------------------------------
   16. FOOTER
   ---------------------------------------------------------- */

footer,
.footer {
  background: var(--color-primary-dark);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  position: relative;
  border-top: 1px solid var(--color-card-border);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-xl);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 300px;
  margin-top: var(--spacing-sm);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  border-top: 1px solid var(--color-card-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ----------------------------------------------------------
   17. ANIMATIONS & KEYFRAMES
   ---------------------------------------------------------- */

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

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

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(249, 115, 22, 0);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    transform: scale(1);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-12px);
  }
  60% {
    transform: translateX(-50%) translateY(-6px);
  }
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Animation utility class */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-fade-in-up.visible {
  opacity: 1;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease forwards;
  opacity: 0;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
  opacity: 0;
}

/* Staggered delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ----------------------------------------------------------
   18. UTILITY CLASSES
   ---------------------------------------------------------- */

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.d-flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.position-relative { position: relative; }

/* ----------------------------------------------------------
   19. SPECIAL EFFECTS
   ---------------------------------------------------------- */

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

/* Glow effect */
.glow-effect {
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.2),
              0 0 60px rgba(249, 115, 22, 0.1);
}

.glow-effect-hover:hover {
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.25),
              0 0 60px rgba(249, 115, 22, 0.15);
}

/* Gradient border using pseudo-element */
.gradient-border {
  position: relative;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient-accent);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gradient-border:hover::before {
  opacity: 1;
}

/* Section glow background */
.section-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: var(--gradient-glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ----------------------------------------------------------
   20. SCROLLBAR STYLING
   ---------------------------------------------------------- */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-primary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-hover);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-primary-dark);
}

/* ----------------------------------------------------------
   21. RESPONSIVE DESIGN
   ---------------------------------------------------------- */

/* ---- Tablets / Small Desktops (max 1024px) ---- */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  section {
    padding: 80px 0;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .problem-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .row-first .pillar-card-wrapper,
  .row-second .pillar-card-wrapper,
  .row-third .pillar-card-wrapper {
    flex: 1 1 calc(33.333% - 24px);
    min-width: 200px;
  }

  .market-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .investment-grid {
    grid-template-columns: 1fr;
  }

  .floating-stat {
    display: none;
  }
}

/* ---- Tablets Portrait (max 768px) ---- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  p {
    font-size: 1rem;
  }

  section {
    padding: 60px 0;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Navigation */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-cta {
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }

  .investment-amount {
    font-size: 2.5rem;
  }

  .problem-cards,
  .revenue-cards,
  .market-stats,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .row-first .pillar-card-wrapper,
  .row-second .pillar-card-wrapper,
  .row-third .pillar-card-wrapper {
    flex: 1 1 calc(50% - 24px);
    min-width: 140px;
  }

  /* Timeline → vertical */
  .timeline {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 2rem;
  }

  .timeline-line {
    top: 0;
    bottom: 0;
    right: 9px; /* Align vertical line to the center of the dots */
    left: auto;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #94a3b8, #22c55e, #f97316, #3b82f6); /* Vertical stage gradient */
    transform: none;
  }

  .timeline-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: right;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
  }

  .timeline-item:nth-child(even) {
    flex-direction: row;
  }

  .timeline-dot {
    flex-shrink: 0;
    margin-top: 0.5rem;
  }

  .timeline-content {
    max-width: 100%;
    margin: 0;
  }

  /* Table scrollable */
  .comparison-table-wrapper {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 0 1.25rem;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-desc {
    max-width: 100%;
  }
}

/* ---- Small Phones (max 480px) ---- */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  section {
    padding: 48px 0;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .row-first .pillar-card-wrapper,
  .row-second .pillar-card-wrapper,
  .row-third .pillar-card-wrapper {
    flex: 1 1 100%;
  }

  .hero {
    min-height: 100vh;
    padding: 100px 0 50px 0;
  }

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

  .hero-badge {
    font-size: 0.78rem;
    padding: 0.4rem 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-cta {
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
  }

  .investment-amount {
    font-size: 2rem;
  }

  .problem-card,
  .revenue-card {
    padding: 1.75rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .section-header {
    margin-bottom: var(--spacing-2xl);
  }

  .contact-form {
    padding: 1.5rem;
  }

  .scroll-indicator {
    transform: translateX(-50%) scale(0.8);
    bottom: 1rem;
  }

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

/* ---- Preference: reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .floating-stat {
    animation: none;
  }

  .scroll-indicator {
    animation: none;
  }

  .timeline-dot {
    animation: none;
  }
}

/* ---- Print styles ---- */
@media print {
  body {
    background: white;
    color: black;
  }

  .navbar,
  .scroll-indicator,
  .particles-canvas,
  #particles-canvas,
  .hamburger,
  .mobile-menu {
    display: none !important;
  }

  section {
    page-break-inside: avoid;
    padding: 2rem 0;
  }

  section::before,
  section::after {
    display: none;
  }

  .glass,
  .glass-strong,
  .problem-card,
  .pillar-card,
  .revenue-card,
  .stat-card,
  .team-card,
  .timeline-content,
  .contact-form {
    background: white;
    border: 1px solid #ddd;
    backdrop-filter: none;
  }

  h1, h2, h3, h4 {
    color: black;
  }

  p, .stat-label, .team-bio, .problem-card p {
    color: #333;
  }

  .text-gradient,
  .stat-value,
  .revenue-number,
  .investment-amount,
  .problem-stat {
    background: none;
    -webkit-text-fill-color: #f97316;
    color: #f97316;
  }
}

/* ============================================================
   ADDITIONAL STYLES — HTML ELEMENT COVERAGE
   ============================================================ */

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
  margin-right: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Badge dot (hero) */
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

/* Revenue detail / pricing */
.revenue-detail {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-card-border);
}

.revenue-price {
  font-family: var(--font-english);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  direction: ltr;
  display: inline-block;
}

.revenue-period {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Stat description */
.stat-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--spacing-sm);
  line-height: 1.6;
}

/* Chart title */
.chart-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

/* Partial marker in comparison table */
.comparison-table .partial {
  color: #fbbf24;
  font-size: 1.2rem;
  opacity: 0.7;
}

/* Competitive highlight callout */
.competitive-highlight {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-2xl);
  padding: 1.25rem 1.75rem;
  background: var(--color-accent-light);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-lg);
  color: var(--color-text-body);
  font-size: 1rem;
  line-height: 1.7;
}

.competitive-highlight svg {
  flex-shrink: 0;
}

.competitive-highlight strong {
  color: var(--color-accent);
}

/* Breakdown dot */
.breakdown-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

/* Breakdown description */
.breakdown-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: var(--spacing-xs);
}

/* Investment amount label */
.investment-amount-label {
  display: block;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Footer links */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
}

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

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

/* Mobile menu integration */
@media (max-width: 768px) {
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: var(--z-overlay);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu .nav-link {
    font-size: 1.4rem;
    color: var(--color-text-primary);
    padding: 0.5rem;
  }

  .mobile-menu .nav-cta {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
  }

  .competitive-highlight {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .revenue-detail {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .contact-links {
    flex-direction: column;
  }
}

/* ============================================================
   LOGO STYLES
   ============================================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 64px !important;
  width: 64px !important;
  max-width: 120px !important;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

/* إذا كان اللوغو يحتوي على نص */
.logo-text {
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* Typewriter Cursor */
.typewriter-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  color: var(--color-accent);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
