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

:root {
  --primary: #1a3a5c;
  --secondary: #c8a951;
  --accent: #e8f4fd;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  --light-bg: #f8f9fa;
  --border: #dee2e6;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --gradient: linear-gradient(135deg, #1a3a5c 0%, #2980b9 100%);
  --gold-gradient: linear-gradient(135deg, #c8a951 0%, #f4d03f 100%);
}

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

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  background: #f0f4f8;
  color: var(--text-dark);
  line-height: 1.7;
}

/* NAV */
.top-nav {
  background: var(--gradient);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand .logo-icon {
  width: 45px; height: 45px;
  background: var(--gold-gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
}
.nav-brand span {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.nav-brand small { font-size: 0.72rem; opacity: 0.8; font-weight: 400; }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links li a {
  display: block;
  padding: 0 1rem;
  height: 70px;
  line-height: 70px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}
.nav-links li a:hover {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
  background: rgba(255,255,255,0.05);
}

/* HERO */
.hero {
  background: var(--gradient);
  color: white;
  padding: 80px 2rem 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 140%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: var(--gold-gradient);
  color: var(--primary);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}
.hero h2 {
  font-size: 1.3rem;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 2rem;
}
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-meta-item .value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--secondary);
}
.hero-meta-item .label {
  font-size: 0.78rem;
  opacity: 0.8;
}

/* SECTIONS */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 2rem;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--secondary);
}
.section-icon {
  width: 55px; height: 55px;
  background: var(--gradient);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}
.section-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.card-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card-icon.blue { background: #e8f4fd; }
.card-icon.green { background: #eafaf1; }
.card-icon.orange { background: #fef9e7; }
.card-icon.red { background: #fef0f0; }
.card-icon.purple { background: #f4ecf7; }
.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.card ul { padding-right: 20px; margin-top: 10px; }
.card ul li { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 5px; }

/* STATS BAR */
.stats-bar {
  background: white;
  padding: 30px 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.stats-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.stat-item {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background: var(--light-bg);
}
.stat-item .num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
}
.stat-item .num span { color: var(--secondary); }
.stat-item .lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* TABLES */
.table-wrap {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 32px;
}
.table-title {
  background: var(--gradient);
  color: white;
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  background: #1a3a5c;
  color: white;
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: right;
}
tbody tr:nth-child(even) { background: #f8f9fa; }
tbody tr:hover { background: #e8f4fd; }
tbody td {
  padding: 13px 18px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
}
.td-total {
  font-weight: 800;
  color: var(--primary);
}
.td-green { color: var(--success); font-weight: 700; }
.td-red { color: var(--danger); font-weight: 700; }
.td-gold { color: #b7950b; font-weight: 800; }
.total-row {
  background: linear-gradient(135deg, #1a3a5c11, #2980b911) !important;
  font-weight: 800;
}
.total-row td { border-top: 2px solid var(--primary); }

/* SWOT */
.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.swot-box {
  border-radius: 14px;
  padding: 24px;
  border-right: 5px solid;
}
.swot-box.strength { background: #eafaf1; border-color: #27ae60; }
.swot-box.weakness { background: #fef0f0; border-color: #e74c3c; }
.swot-box.opportunity { background: #e8f4fd; border-color: #2980b9; }
.swot-box.threat { background: #fef9e7; border-color: #f39c12; }
.swot-box h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.swot-box.strength h3 { color: #1e8449; }
.swot-box.weakness h3 { color: #c0392b; }
.swot-box.opportunity h3 { color: #1a5276; }
.swot-box.threat h3 { color: #d35400; }
.swot-box ul { padding-right: 18px; }
.swot-box ul li { font-size: 0.85rem; margin-bottom: 7px; color: #333; }

/* TIMELINE */
.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline-line {
  position: absolute;
  right: 30px;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}
.timeline-item {
  position: relative;
  padding-right: 80px;
  padding-bottom: 40px;
}
.timeline-dot {
  position: absolute;
  right: 18px;
  top: 5px;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid white;
  box-shadow: 0 0 0 3px var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
}
.timeline-card {
  background: white;
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border: 1px solid var(--border);
  border-right: 4px solid var(--primary);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.timeline-phase {
  font-size: 0.72rem;
  font-weight: 800;
  color: white;
  background: var(--primary);
  padding: 3px 12px;
  border-radius: 50px;
}
.timeline-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.timeline-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}
.timeline-metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.t-metric {
  background: var(--light-bg);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.78rem;
}
.t-metric .t-label { color: var(--text-muted); display: block; }
.t-metric .t-val { font-weight: 800; color: var(--primary); }
.t-metric .t-val.green { color: var(--success); }

/* CHART BARS */
.bar-chart {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}
.bar-chart h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.bar-label {
  width: 160px;
  font-size: 0.82rem;
  color: var(--text-dark);
  font-weight: 600;
  flex-shrink: 0;
  text-align: right;
}
.bar-track {
  flex: 1;
  height: 28px;
  background: var(--light-bg);
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-right: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
  transition: width 1s ease;
}
.bar-fill.blue { background: var(--gradient); }
.bar-fill.green { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.bar-fill.gold { background: var(--gold-gradient); color: var(--primary); }

/* LEGAL */
.legal-section {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}
.legal-section h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-section p, .legal-section li {
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.85;
  margin-bottom: 8px;
}
.legal-section ul { padding-right: 20px; }
.legal-alert {
  background: #fef9e7;
  border: 2px solid var(--warning);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #7d6608;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.legal-success {
  background: #eafaf1;
  border: 2px solid var(--success);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #1e8449;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* CONTRACT BOX */
.contract-box {
  background: var(--gradient);
  color: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-top: 30px;
  box-shadow: 0 10px 40px rgba(26,58,92,0.3);
}
.contract-box h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.contract-box p { opacity: 0.85; font-size: 0.95rem; margin-bottom: 20px; }
.contract-years {
  font-size: 5rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
  display: block;
  margin: 20px 0;
}
.contract-terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 30px;
  text-align: right;
}
.contract-term {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.2);
}
.contract-term .ct-label { font-size: 0.75rem; opacity: 0.75; display: block; margin-bottom: 6px; }
.contract-term .ct-value { font-size: 1rem; font-weight: 800; color: var(--secondary); }

/* FOOTER */
footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 40px 2rem;
}
footer .footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
footer .f-logo {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 800;
}
footer p { opacity: 0.7; font-size: 0.82rem; }

/* PIE CHART (CSS) */
.donut-chart {
  width: 180px; height: 180px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto 20px;
}

/* CANVAS CHART */
.chart-container {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}
.chart-container h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

/* HORIZONTAL TIMELINE */
.h-timeline {
  position: relative;
  padding: 40px 0 60px;
  overflow-x: auto;
}
.h-timeline-track {
  display: flex;
  gap: 0;
  min-width: 900px;
  position: relative;
}
.h-timeline-track::before {
  content: '';
  position: absolute;
  top: 42px;
  right: 0; left: 0;
  height: 4px;
  background: linear-gradient(to left, var(--secondary), var(--primary));
}
.h-phase {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 10px;
}
.h-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid white;
  box-shadow: 0 0 0 3px var(--primary);
  margin: 28px auto 0;
  position: relative;
  z-index: 1;
}
.h-dot.gold { background: var(--secondary); box-shadow: 0 0 0 3px var(--secondary); }
.h-dot.green { background: var(--success); box-shadow: 0 0 0 3px var(--success); }
.h-content-top {
  margin-bottom: 10px;
}
.h-content-bottom {
  margin-top: 10px;
}
.h-phase-num {
  font-size: 0.68rem;
  font-weight: 800;
  color: white;
  background: var(--primary);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 6px;
}
.h-phase-num.gold { background: var(--secondary); color: var(--primary); }
.h-phase-num.green { background: var(--success); }
.h-phase-title { font-size: 0.82rem; font-weight: 800; color: var(--primary); }
.h-phase-date { font-size: 0.72rem; color: var(--text-muted); }
.h-phase-cost { font-size: 0.75rem; color: var(--danger); font-weight: 700; }
.h-phase-rev { font-size: 0.75rem; color: var(--success); font-weight: 700; }

/* SEPARATOR */
.sep { height: 6px; background: linear-gradient(to right, var(--primary), var(--secondary), var(--primary)); }

@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .swot-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .contract-years { font-size: 3.5rem; }
}
