/* ==========================================================================
   AOSHA Platform - Modern Enterprise Landing Page Styles
   Brand Palette:
     - Dark Green: #336f2e
     - Gold: #cba321
     - Pale Yellow (Main Light): #fffad1
   Theme: HSSE (Health, Safety, Security, Environment) & LMS Ecosystem
   Direction: RTL (Arabic First)
   ========================================================================== */

:root {
  /* Brand Core Colors (Dark Theme Default) */
  --color-brand-primary: #336f2e;
  --color-brand-primary-hover: #265522;
  --color-brand-primary-light: rgba(51, 111, 46, 0.16);
  --color-brand-gold: #cba321;
  --color-brand-gold-hover: #b38e1b;
  --color-brand-gold-light: rgba(203, 163, 33, 0.14);
  --color-pale-yellow: #fffad1;

  /* Surfaces & Backgrounds (Deep Forest Green / Midnight Obsidian) */
  --color-bg-dark: #071008;
  --color-bg-alt: #0c1c0e;
  --color-bg-card: #112613;
  --color-bg-card-hover: #17341a;
  --color-brand-surface: #0e2110;
  --color-brand-border: rgba(203, 163, 33, 0.18);
  --color-brand-border-glow: rgba(203, 163, 33, 0.45);

  /* Track Theme Accents */
  --color-track-1: #4ade80; /* LMS / Training (Mint Leaf Green) */
  --color-track-1-bg: rgba(74, 222, 128, 0.12);
  --color-track-2: #22c55e; /* HSSE Management (Safety Green) */
  --color-track-2-bg: rgba(34, 197, 94, 0.12);
  --color-track-3: #eab308; /* Inspection & Audit (Amber Gold) */
  --color-track-3-bg: rgba(234, 179, 8, 0.12);
  --color-track-4: #cba321; /* Six Stars / Classification (Official Royal Gold) */
  --color-track-4-bg: rgba(203, 163, 33, 0.15);

  /* Neutral & Text Tones */
  --color-text-main: #fffad1;
  --color-text-muted: #d8d3a8;
  --color-text-dim: #999470;
  --color-white: #ffffff;

  /* Typography */
  --font-family: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow-green: 0 0 35px rgba(51, 111, 46, 0.35);
  --shadow-glow-gold: 0 0 35px rgba(203, 163, 33, 0.35);

  /* Transitions */
  --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-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1280px;
  --header-height: 84px;
}

/* ==========================================================================
   Light Mode Theme Variables
   ========================================================================== */
[data-theme="light"] {
  /* Brand Core Colors */
  --color-brand-primary: #336f2e;
  --color-brand-primary-hover: #265522;
  --color-brand-primary-light: rgba(51, 111, 46, 0.1);
  --color-brand-gold: #b38b15;
  --color-brand-gold-hover: #96740f;
  --color-brand-gold-light: rgba(179, 139, 21, 0.12);
  --color-pale-yellow: #122812; /* Crisp dark forest green for main titles in light mode */

  /* Surfaces & Backgrounds (Warm Ivory & Off-white) */
  --color-bg-dark: #faf8f0;
  --color-bg-alt: #f3eedc;
  --color-bg-card: #ffffff;
  --color-bg-card-hover: #fcfbf6;
  --color-brand-surface: #ffffff;
  --color-brand-border: rgba(51, 111, 46, 0.15);
  --color-brand-border-glow: rgba(179, 139, 21, 0.35);

  /* Track Theme Accents for Light Mode */
  --color-track-1: #1e824c;
  --color-track-1-bg: rgba(30, 130, 76, 0.1);
  --color-track-2: #2e7d32;
  --color-track-2-bg: rgba(46, 125, 50, 0.1);
  --color-track-3: #b45309;
  --color-track-3-bg: rgba(180, 83, 9, 0.1);
  --color-track-4: #b38b15;
  --color-track-4-bg: rgba(179, 139, 21, 0.12);

  /* Neutral & Text Tones */
  --color-text-main: #183317;
  --color-text-muted: #435b42;
  --color-text-dim: #6d826c;

  /* Shadows for Light Mode */
  --shadow-sm: 0 2px 8px rgba(24, 51, 23, 0.06);
  --shadow-md: 0 8px 24px rgba(24, 51, 23, 0.08);
  --shadow-lg: 0 16px 40px rgba(24, 51, 23, 0.12);
  --shadow-glow-green: 0 0 35px rgba(51, 111, 46, 0.12);
  --shadow-glow-gold: 0 0 35px rgba(179, 139, 21, 0.18);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Ambient Glows */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  right: 15%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(51, 111, 46, 0.2) 0%, rgba(7, 16, 8, 0) 70%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.3s ease;
}

body::after {
  content: '';
  position: fixed;
  bottom: 10%;
  left: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(203, 163, 33, 0.12) 0%, rgba(7, 16, 8, 0) 70%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.3s ease;
}

[data-theme="light"] body::before {
  background: radial-gradient(circle, rgba(51, 111, 46, 0.08) 0%, rgba(250, 248, 240, 0) 70%);
}

[data-theme="light"] body::after {
  background: radial-gradient(circle, rgba(179, 139, 21, 0.08) 0%, rgba(250, 248, 240, 0) 70%);
}

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

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

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

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

/* Section Common Headers */
.section {
  padding: 100px 0;
  position: relative;
  transition: background-color 0.3s ease;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--color-brand-gold-light);
  border: 1px solid var(--color-brand-border-glow);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand-gold);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-pale-yellow);
  margin-bottom: 18px;
}

.section-title span.highlight {
  background: linear-gradient(135deg, #fffad1 0%, #cba321 60%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .section-title span.highlight {
  background: linear-gradient(135deg, #122812 0%, #b38b15 50%, #336f2e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

/* ==========================================================================
   Theme Toggle Button (Light / Dark Mode Instant Switch)
   ========================================================================== */
.theme-toggle-btn {
  background: rgba(255, 250, 209, 0.08);
  border: 1px solid var(--color-brand-border);
  color: var(--color-brand-gold);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  padding: 0;
  position: relative;
}

.theme-toggle-btn:hover {
  background: var(--color-brand-gold-light);
  border-color: var(--color-brand-gold);
  transform: rotate(15deg) scale(1.05);
}

.theme-icon-sun, .theme-icon-moon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Default Dark: Moon is active / Sun hidden */
.theme-icon-sun {
  display: none;
}
.theme-icon-moon {
  display: block;
}

/* Light Theme: Sun is active / Moon hidden */
[data-theme="light"] .theme-icon-sun {
  display: block;
}
[data-theme="light"] .theme-icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle-btn {
  background: rgba(51, 111, 46, 0.08);
  border-color: rgba(51, 111, 46, 0.2);
  color: #b38b15;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #336f2e 0%, #265522 100%);
  color: #fffad1;
  border: 1px solid rgba(203, 163, 33, 0.4);
  box-shadow: 0 4px 18px rgba(51, 111, 46, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3d8337 0%, #2e662a 100%);
  border-color: var(--color-brand-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 111, 46, 0.6), var(--shadow-glow-gold);
}

.btn-gold {
  background: linear-gradient(135deg, #cba321 0%, #b38e1b 100%);
  color: #071008;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(203, 163, 33, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #ddb329 0%, #cba321 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(203, 163, 33, 0.55);
}

.btn-secondary {
  background: rgba(255, 250, 209, 0.05);
  color: var(--color-pale-yellow);
  border: 1px solid var(--color-brand-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 250, 209, 0.12);
  border-color: var(--color-brand-gold);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary {
  background: rgba(51, 111, 46, 0.06);
  color: #183317;
  border-color: rgba(51, 111, 46, 0.2);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(51, 111, 46, 0.12);
  border-color: var(--color-brand-primary);
}

.btn-outline-gold {
  background: rgba(203, 163, 33, 0.08);
  color: var(--color-brand-gold);
  border: 1px solid rgba(203, 163, 33, 0.45);
}

.btn-outline-gold:hover {
  background: rgba(203, 163, 33, 0.2);
  border-color: var(--color-brand-gold);
  transform: translateY(-2px);
  color: var(--color-pale-yellow);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(7, 16, 8, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(203, 163, 33, 0.15);
  z-index: 1000;
  transition: var(--transition-normal);
}

.header.scrolled {
  background: rgba(7, 16, 8, 0.96);
  height: 74px;
  border-bottom-color: rgba(203, 163, 33, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .header {
  background: rgba(250, 248, 240, 0.88);
  border-bottom-color: rgba(51, 111, 46, 0.12);
}

[data-theme="light"] .header.scrolled {
  background: rgba(250, 248, 240, 0.98);
  border-bottom-color: rgba(51, 111, 46, 0.2);
  box-shadow: 0 10px 30px rgba(24, 51, 23, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-pale-yellow);
  font-family: var(--font-heading);
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand-gold);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-pale-yellow);
}

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

/* Auth Actions & Dynamic Moodle Session */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Moodle Session Chip */
.moodle-user-chip {
  display: none; /* Managed by JS */
  position: relative;
}

.moodle-user-chip.is-active {
  display: block;
}

.user-badge-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(51, 111, 46, 0.25);
  border: 1px solid rgba(203, 163, 33, 0.5);
  border-radius: var(--radius-full);
  color: var(--color-pale-yellow);
  cursor: pointer;
  transition: var(--transition-fast);
}

.user-badge-btn:hover {
  background: rgba(51, 111, 46, 0.4);
  border-color: var(--color-brand-gold);
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cba321 0%, #336f2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fffad1;
  border: 2px solid rgba(255, 250, 209, 0.3);
  overflow: hidden;
}

.user-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name-text {
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

/* User Dropdown Menu */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--color-brand-surface);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1050;
  backdrop-filter: blur(12px);
}

.user-dropdown.show {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(203, 163, 33, 0.12);
  color: var(--color-brand-gold);
}

.dropdown-divider {
  height: 1px;
  background: rgba(203, 163, 33, 0.15);
  margin: 4px 0;
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-pale-yellow);
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(51, 111, 46, 0.2);
  border: 1px solid rgba(203, 163, 33, 0.35);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

[data-theme="light"] .hero-badge {
  background: rgba(51, 111, 46, 0.08);
  border-color: rgba(179, 139, 21, 0.3);
}

.hero-badge-pulse {
  width: 10px;
  height: 10px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ade80;
  animation: pulseDot 2s infinite;
}

.hero-badge-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-brand-gold);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-pale-yellow);
  margin-bottom: 24px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #fffad1 0%, #cba321 50%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title .gradient-text {
  background: linear-gradient(135deg, #122812 0%, #b38b15 50%, #336f2e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--color-brand-border);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-pale-yellow);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-stat-number span.plus {
  color: var(--color-brand-gold);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  font-weight: 600;
}

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

.dashboard-mockup {
  background: linear-gradient(145deg, #112613 0%, #0a180c 100%);
  border: 1px solid rgba(203, 163, 33, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow-green);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .dashboard-mockup {
  background: #ffffff;
  border-color: rgba(51, 111, 46, 0.18);
  box-shadow: var(--shadow-lg);
}

.dashboard-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(203, 163, 33, 0.15);
}

[data-theme="light"] .dashboard-mockup-header {
  border-bottom-color: rgba(51, 111, 46, 0.1);
}

.mockup-controls {
  display: flex;
  gap: 8px;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #cba321; }
.mockup-dot.green { background: #336f2e; }

.mockup-title {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  font-weight: 600;
}

/* Dashboard Mockup Grid Inside */
.mockup-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-metrics-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mini-metric-card {
  background: rgba(255, 250, 209, 0.03);
  border: 1px solid rgba(203, 163, 33, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .mini-metric-card {
  background: #fbf9f1;
  border-color: rgba(51, 111, 46, 0.12);
}

.mini-metric-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.mini-metric-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-pale-yellow);
  font-family: var(--font-heading);
}

.mini-badge-pill {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.pill-green { background: rgba(51, 111, 46, 0.25); color: #4ade80; }
.pill-gold { background: rgba(203, 163, 33, 0.2); color: #cba321; }

[data-theme="light"] .pill-green { background: rgba(51, 111, 46, 0.12); color: #2e7d32; }
[data-theme="light"] .pill-gold { background: rgba(179, 139, 21, 0.12); color: #b38b15; }

.mockup-track-bars {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s ease;
}

[data-theme="light"] .mockup-track-bars {
  background: #f4f0df;
}

.track-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.track-progress-bg {
  height: 8px;
  width: 100%;
  background: rgba(255, 250, 209, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

[data-theme="light"] .track-progress-bg {
  background: rgba(51, 111, 46, 0.12);
}

.track-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-in-out;
}
.fill-1 { width: 94%; background: linear-gradient(90deg, #336f2e, #4ade80); }
.fill-2 { width: 88%; background: linear-gradient(90deg, #22c55e, #86efac); }
.fill-3 { width: 96%; background: linear-gradient(90deg, #eab308, #fef08a); }
.fill-4 { width: 92%; background: linear-gradient(90deg, #cba321, #fffad1); }

/* Floating Float Badge */
.floating-badge {
  position: absolute;
  bottom: -15px;
  left: -15px;
  background: rgba(17, 38, 19, 0.95);
  border: 1px solid var(--color-brand-gold);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
}

[data-theme="light"] .floating-badge {
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.floating-badge-icon {
  color: var(--color-brand-gold);
  font-size: 1.5rem;
}

.floating-badge-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-pale-yellow);
}

.floating-badge-sub {
  font-size: 0.75rem;
  color: var(--color-brand-gold);
}

/* ==========================================================================
   Ecosystem & Value Proposition Section
   ========================================================================== */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
}

.eco-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.eco-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition-normal);
}

.eco-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-brand-gold);
  box-shadow: var(--shadow-lg), var(--shadow-glow-green);
}

.eco-card.track-1:hover::before { background: var(--color-track-1); }
.eco-card.track-2:hover::before { background: var(--color-track-2); }
.eco-card.track-3:hover::before { background: var(--color-track-3); }
.eco-card.track-4:hover::before { background: var(--color-track-4); }

.eco-card-num {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.track-1 .eco-card-num { background: var(--color-track-1-bg); color: var(--color-track-1); }
.track-2 .eco-card-num { background: var(--color-track-2-bg); color: var(--color-track-2); }
.track-3 .eco-card-num { background: var(--color-track-3-bg); color: var(--color-track-3); }
.track-4 .eco-card-num { background: var(--color-track-4-bg); color: var(--color-track-4); }

.eco-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.track-1 .eco-card-icon { background: var(--color-track-1-bg); color: var(--color-track-1); }
.track-2 .eco-card-icon { background: var(--color-track-2-bg); color: var(--color-track-2); }
.track-3 .eco-card-icon { background: var(--color-track-3-bg); color: var(--color-track-3); }
.track-4 .eco-card-icon { background: var(--color-track-4-bg); color: var(--color-track-4); }

.eco-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-pale-yellow);
  margin-bottom: 12px;
}

.eco-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Sectors Supported Banner */
.sectors-banner {
  margin-top: 50px;
  background: rgba(17, 38, 19, 0.7);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  transition: background 0.3s ease;
}

[data-theme="light"] .sectors-banner {
  background: #ffffff;
  border-color: rgba(51, 111, 46, 0.15);
  box-shadow: var(--shadow-sm);
}

.sectors-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-pale-yellow);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sectors-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sector-pill {
  padding: 6px 14px;
  background: rgba(255, 250, 209, 0.05);
  border: 1px solid rgba(203, 163, 33, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

[data-theme="light"] .sector-pill {
  background: #f4f0df;
  border-color: rgba(51, 111, 46, 0.12);
  color: #183317;
}

/* ==========================================================================
   Detailed 4 Tracks Showcase
   ========================================================================== */
.track-detail-section {
  padding: 80px 0;
  border-top: 1px solid rgba(203, 163, 33, 0.12);
}

[data-theme="light"] .track-detail-section {
  border-top-color: rgba(51, 111, 46, 0.1);
}

.track-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.track-row.reverse {
  direction: ltr;
}

.track-row.reverse > * {
  direction: rtl;
}

.track-content-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.track-content-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-pale-yellow);
  line-height: 1.35;
  margin-bottom: 18px;
}

.track-content-lead {
  font-size: 1.1rem;
  color: var(--color-brand-gold);
  font-weight: 600;
  margin-bottom: 20px;
}

.track-content-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.track-features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 32px;
}

.track-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text-main);
  background: rgba(255, 250, 209, 0.03);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--color-brand-primary);
}

[data-theme="light"] .track-feature-item {
  background: rgba(51, 111, 46, 0.04);
}

.track-feature-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Track Visual Display Box */
.track-showcase-box {
  background: linear-gradient(145deg, #112613 0%, #0a180c 100%);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .track-showcase-box {
  background: #ffffff;
  border-color: rgba(51, 111, 46, 0.16);
  box-shadow: var(--shadow-lg);
}

.track-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.track-box-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-box-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.track-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.track-subcard {
  background: rgba(255, 250, 209, 0.03);
  border: 1px solid rgba(203, 163, 33, 0.12);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition-fast);
}

.track-subcard:hover {
  background: rgba(255, 250, 209, 0.07);
  border-color: var(--color-brand-gold);
}

[data-theme="light"] .track-subcard {
  background: #fbf9f1;
  border-color: rgba(51, 111, 46, 0.12);
}

[data-theme="light"] .track-subcard:hover {
  background: #ffffff;
  border-color: var(--color-brand-gold);
  box-shadow: var(--shadow-sm);
}

.track-subcard-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-pale-yellow);
  margin-bottom: 6px;
}

.track-subcard-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Six Stars Award & Performance Section
   ========================================================================== */
.six-stars-section {
  background: radial-gradient(circle at 50% 30%, rgba(203, 163, 33, 0.12) 0%, rgba(7, 16, 8, 1) 75%);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .six-stars-section {
  background: radial-gradient(circle at 50% 30%, rgba(179, 139, 21, 0.1) 0%, rgba(250, 248, 240, 1) 75%);
}

.six-stars-badge-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.star-icon {
  color: var(--color-brand-gold);
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 10px rgba(203, 163, 33, 0.6));
  animation: floatStar 3s ease-in-out infinite;
}
.star-icon:nth-child(2) { animation-delay: 0.2s; }
.star-icon:nth-child(3) { animation-delay: 0.4s; }
.star-icon:nth-child(4) { animation-delay: 0.6s; }
.star-icon:nth-child(5) { animation-delay: 0.8s; }
.star-icon:nth-child(6) { animation-delay: 1.0s; }

.criteria-table-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(203, 163, 33, 0.4);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
  margin-top: 40px;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.criteria-item {
  background: rgba(255, 250, 209, 0.03);
  border: 1px solid rgba(203, 163, 33, 0.18);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

[data-theme="light"] .criteria-item {
  background: #fbf9f1;
  border-color: rgba(51, 111, 46, 0.12);
}

.criteria-item.gold {
  border-color: var(--color-brand-gold);
  background: rgba(203, 163, 33, 0.08);
}

.criteria-level {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-pale-yellow);
  margin-bottom: 8px;
}

.criteria-points {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-brand-gold);
  font-family: var(--font-heading);
  margin-bottom: 10px;
}

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

/* ==========================================================================
   Data & Insights Section (قوة المنصة في البيانات)
   ========================================================================== */
.data-flow-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.data-step-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: var(--transition-normal);
}

.data-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-gold);
}

.data-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-brand-primary);
  border: 1px solid var(--color-brand-gold);
  color: #fffad1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin: 0 auto 16px;
}

.data-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-pale-yellow);
  margin-bottom: 8px;
}

.data-step-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ Section (الأسئلة الشائعة)
   ========================================================================== */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: rgba(203, 163, 33, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .faq-item.active {
  border-color: var(--color-brand-gold);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: var(--color-pale-yellow);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: right;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-brand-gold);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--color-brand-gold);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  margin-right: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  padding: 0 28px;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.4s ease-in-out;
  padding-bottom: 24px;
}

/* ==========================================================================
   Trust & Security Banner
   ========================================================================== */
.trust-banner {
  background: linear-gradient(135deg, rgba(17, 38, 19, 0.9) 0%, rgba(10, 22, 11, 0.9) 100%);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  transition: background 0.3s ease;
}

[data-theme="light"] .trust-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f9f7ec 100%);
  border-color: rgba(51, 111, 46, 0.15);
}

.trust-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-pale-yellow);
  margin-bottom: 16px;
}

.trust-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.trust-badge-card {
  background: rgba(255, 250, 209, 0.03);
  border: 1px solid rgba(203, 163, 33, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

[data-theme="light"] .trust-badge-card {
  background: #fbf9f1;
  border-color: rgba(51, 111, 46, 0.12);
}

.trust-badge-icon {
  color: var(--color-brand-gold);
  font-size: 1.25rem;
}

.trust-badge-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-pale-yellow);
}

/* ==========================================================================
   CTA Section & Modal
   ========================================================================== */
.cta-section {
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(51, 111, 46, 0.25) 0%, rgba(7, 16, 8, 1) 70%);
  padding: 100px 0;
  transition: background 0.3s ease;
}

[data-theme="light"] .cta-section {
  background: radial-gradient(circle at 50% 50%, rgba(51, 111, 46, 0.12) 0%, rgba(250, 248, 240, 1) 70%);
}

.cta-box {
  max-width: 820px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-pale-yellow);
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 9, 5, 0.88);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.modal-card {
  background: var(--color-brand-surface);
  border: 1px solid var(--color-brand-border-glow);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
  animation: scaleUp 0.25s ease-out;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 250, 209, 0.08);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-pale-yellow);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(203, 163, 33, 0.3);
}

[data-theme="light"] .modal-close-btn {
  background: rgba(51, 111, 46, 0.08);
}

.modal-header {
  margin-bottom: 24px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-pale-yellow);
  margin-bottom: 8px;
}

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

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-pale-yellow);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(7, 16, 8, 0.8);
  border: 1px solid rgba(203, 163, 33, 0.25);
  border-radius: var(--radius-sm);
  color: var(--color-pale-yellow);
  outline: none;
  transition: var(--transition-fast);
}

[data-theme="light"] .form-input, 
[data-theme="light"] .form-select, 
[data-theme="light"] .form-textarea {
  background: #fbf9f1;
  color: #122812;
  border-color: rgba(51, 111, 46, 0.2);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-brand-gold);
  box-shadow: 0 0 0 3px rgba(203, 163, 33, 0.25);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #040904;
  border-top: 1px solid rgba(203, 163, 33, 0.15);
  padding: 70px 0 30px;
  color: #d8d3a8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-top: 18px;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fffad1;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: #d8d3a8;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(203, 163, 33, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .track-row, .track-row.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: rtl;
  }
  .track-row.reverse > * {
    direction: rtl;
  }
  .trust-banner {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    height: 70px;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 70px);
    background: var(--color-brand-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 20px;
    transition: var(--transition-normal);
    box-shadow: -10px 0 30px rgba(0,0,0,0.6);
    border-left: 1px solid var(--color-brand-border);
  }
  .nav-menu.open {
    right: 0;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .ecosystem-grid, .data-flow-container, .criteria-grid {
    grid-template-columns: 1fr;
  }
  .track-card-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
