/* Free Nuclear Power – Decolonize Africa
   Inspired by Space420 design language: clean, modern, Bootstrap 5, Inter + Playfair
   Colour system: deep navy / electric blue / gold accents
*/

:root {
  --navy: #0a1628;
  --navy-mid: #12253d;
  --blue: #1e4d8c;
  --blue-bright: #2b6cb0;
  --gold: #d4a84b;
  --gold-light: #e8c87a;
  --cream: #f7f5f0;
  --text: #1a1a1a;
  --muted: #5a6577;
  --success: #0d9488;
  --card-bg: #ffffff;
  --border: #e5e0d8;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Playfair Display', Georgia, serif;
}

/* HUD top bar */
.hud-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  padding: 0.4rem 0;
  letter-spacing: 0.02em;
}
.hud-bar .status-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hud-bar .sep { margin: 0 0.6rem; opacity: 0.5; }

/* Navbar */
.navbar-da {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.brand-mark {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  background: var(--navy);
  color: var(--gold);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 0.5rem;
}
.navbar-brand {
  font-weight: 600;
  color: var(--navy) !important;
  font-size: 1.25rem;
}
.brand-gold { color: var(--gold); }
.nav-link {
  color: var(--navy-mid) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
}
.nav-link:hover, .nav-link.active {
  color: var(--blue-bright) !important;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
}
.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  padding: 0.6rem 1.3rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
}

/* Hero */
.hero-banner {
  background: linear-gradient(165deg, #0a1628 0%, #12253d 45%, #1e4d8c 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(212,168,75,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.hero-banner h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-banner .lead {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 560px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
}
.hero-stat .num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}
.hero-stat .label {
  font-size: 0.85rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sections */
.section-pad { padding: 4.5rem 0; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* Cards */
.card-da {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  height: 100%;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card-da:hover {
  box-shadow: 0 12px 32px rgba(10,22,40,0.08);
  transform: translateY(-3px);
}
.card-da .icon-wrap {
  width: 48px; height: 48px;
  background: rgba(30,77,140,0.1);
  color: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card-da h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--navy);
}
.card-da p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Country grid */
.country-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  height: 100%;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.country-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(30,77,140,0.12);
  transform: translateY(-2px);
}
.country-card .region-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.country-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.country-card .meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.country-card .status-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-weight: 600;
  margin-top: 0.6rem;
}
.status-pilot { background: #dcfce7; color: #166534; }
.status-planning { background: #dbeafe; color: #1e40af; }
.status-concept { background: #f3f4f6; color: #4b5563; }
.status-operating { background: #fef3c7; color: #92400e; }
.status-resource { background: #ede9fe; color: #5b21b6; }

/* Detail page */
.detail-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  padding: 3.5rem 0 2.5rem;
}
.detail-hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.detail-meta { opacity: 0.85; font-size: 0.95rem; }
.detail-section {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.detail-section h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.detail-section h3 i { color: var(--blue); }

/* Timeline / Plan */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
  border-left: 2px solid var(--border);
}
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item h4 { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.3rem; }
.timeline-item .year { color: var(--gold); font-weight: 700; font-size: 0.9rem; }

/* Footer */
.footer-da {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-da a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-da a:hover { color: var(--gold); }
.footer-brand { font-size: 1.3rem; font-weight: 700; color: #fff; }
.footer-da h6 { color: #fff; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-da hr { border-color: rgba(255,255,255,0.1); }

/* Utilities */
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.bg-navy { background: var(--navy) !important; }
.fade-up { animation: fadeUp 0.6s ease forwards; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-banner { padding: 3.5rem 0 3rem; }
  .hero-stats { gap: 1.25rem; }
  .section-pad { padding: 3rem 0; }
}
/* ========== NUCLEAR THEMED ANIMATIONS ========== */

/* Atom icon animation */
.atom-spin {
  display: inline-block;
  position: relative;
  width: 48px;
  height: 48px;
}
.atom-spin .nucleus {
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold), 0 0 24px rgba(212,168,75,0.5);
  animation: nucleus-pulse 2s ease-in-out infinite;
}
.atom-spin .orbit {
  position: absolute;
  top: 50%; left: 50%;
  border: 1.5px solid rgba(43,108,176,0.6);
  border-radius: 50%;
  animation: orbit-spin 4s linear infinite;
}
.atom-spin .orbit-1 { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.atom-spin .orbit-2 { width: 42px; height: 42px; margin: -21px 0 0 -21px; animation-duration: 6s; animation-direction: reverse; border-color: rgba(212,168,75,0.45); }
.atom-spin .electron {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--blue-bright);
  border-radius: 50%;
  top: -3px; left: 50%;
  margin-left: -3px;
  box-shadow: 0 0 6px var(--blue-bright);
}
@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes nucleus-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px var(--gold), 0 0 24px rgba(212,168,75,0.4); }
  50% { transform: scale(1.15); box-shadow: 0 0 18px var(--gold), 0 0 36px rgba(212,168,75,0.6); }
}

/* Energy glow pulse on cards */
.card-da.nuclear-glow:hover {
  box-shadow: 0 0 0 1px rgba(43,108,176,0.3), 0 12px 40px rgba(30,77,140,0.15), 0 0 30px rgba(212,168,75,0.12);
}
.energy-bar {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--blue-bright), var(--gold), transparent);
  background-size: 200% 100%;
  animation: energy-flow 3s linear infinite;
  border-radius: 2px;
  margin: 1rem 0;
}
@keyframes energy-flow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Floating particles / radiation dots in hero */
.hero-banner.nuclear-hero {
  position: relative;
  overflow: hidden;
}
.nuclear-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.nuclear-particles span {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(212,168,75,0.5);
  border-radius: 50%;
  animation: float-up 12s linear infinite;
  box-shadow: 0 0 6px rgba(212,168,75,0.6);
}
.nuclear-particles span:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 14s; }
.nuclear-particles span:nth-child(2) { left: 25%; animation-delay: 2s; animation-duration: 11s; width: 3px; height: 3px; }
.nuclear-particles span:nth-child(3) { left: 40%; animation-delay: 4s; animation-duration: 16s; }
.nuclear-particles span:nth-child(4) { left: 55%; animation-delay: 1s; animation-duration: 13s; width: 5px; height: 5px; }
.nuclear-particles span:nth-child(5) { left: 70%; animation-delay: 3s; animation-duration: 10s; }
.nuclear-particles span:nth-child(6) { left: 85%; animation-delay: 5s; animation-duration: 15s; }
.nuclear-particles span:nth-child(7) { left: 15%; animation-delay: 6s; animation-duration: 12s; background: rgba(43,108,176,0.5); }
.nuclear-particles span:nth-child(8) { left: 60%; animation-delay: 7s; animation-duration: 14s; background: rgba(43,108,176,0.4); }
@keyframes float-up {
  0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-20vh) scale(1.2); opacity: 0; }
}

/* Radiation / hazard subtle ring */
.rad-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(212,168,75,0.4);
  position: relative;
  animation: rad-pulse 3s ease-in-out infinite;
}
.rad-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(212,168,75,0.2);
  animation: rad-pulse 3s ease-in-out infinite 0.5s;
}
@keyframes rad-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,75,0.3); }
  50% { box-shadow: 0 0 0 10px rgba(212,168,75,0); }
}

/* Reactor core visual */
.reactor-visual {
  width: 120px; height: 120px;
  margin: 0 auto;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #1e4d8c, #0a1628);
  box-shadow: 0 0 40px rgba(43,108,176,0.4), inset 0 0 30px rgba(212,168,75,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reactor-visual .core {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--gold), 0 0 40px rgba(212,168,75,0.5);
  animation: nucleus-pulse 1.8s ease-in-out infinite;
}
.reactor-visual .ring {
  position: absolute;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  animation: orbit-spin 8s linear infinite;
}
.reactor-visual .ring-a { width: 70px; height: 70px; }
.reactor-visual .ring-b { width: 95px; height: 95px; animation-duration: 12s; animation-direction: reverse; border-color: rgba(212,168,75,0.3); }

/* Location map placeholder card */
.location-visual {
  background: linear-gradient(145deg, #0a1628 0%, #1e4d8c 100%);
  border-radius: 12px;
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.location-visual::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(212,168,75,0.2) 0%, transparent 70%);
  animation: nucleus-pulse 4s ease-in-out infinite;
}
.location-visual .coords-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: monospace;
}
.location-visual h4 {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.location-visual p {
  position: relative;
  z-index: 1;
  opacity: 0.85;
  font-size: 0.9rem;
  margin: 0;
}

/* Stat tiles with glow */
.stat-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s;
}
.stat-tile:hover {
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(30,77,140,0.12);
}
.stat-tile .val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
}
.stat-tile .lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* Detail section icons glow */
.detail-section h3 i {
  animation: icon-glow 3s ease-in-out infinite;
}
@keyframes icon-glow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 6px rgba(43,108,176,0.5)); }
}

/* Bootstrap image placeholders / icon cards */
.icon-hero {
  width: 80px; height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30,77,140,0.15), rgba(212,168,75,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 1rem;
  position: relative;
}
.icon-hero::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 1px solid rgba(43,108,176,0.2);
  animation: rad-pulse 4s ease-in-out infinite;
}

/* Page load fade */
.fade-in-up {
  animation: fadeUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Sticky side panel glow */
.side-panel-glow {
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(10,22,40,0.06);
}
.side-panel-glow:hover {
  box-shadow: 0 8px 32px rgba(30,77,140,0.12);
}

/* Status badge pulse for pilot */
.status-pilot {
  animation: badge-pulse 2.5s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,101,52,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(22,101,52,0); }
}

/* Plant images */
.country-card img {
  transition: transform 0.4s ease;
}
.country-card:hover img {
  transform: scale(1.05);
}
.plant-hero-img {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(10,22,40,0.15);
}

/* Donations extras */
.donate-amount-btn {
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  color: var(--navy);
  width: 100%;
}
.donate-amount-btn:hover, .donate-amount-btn.active {
  border-color: var(--gold);
  background: rgba(212,168,75,0.12);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(212,168,75,0.2);
}
.donate-amount-btn .amt {
  font-size: 1.4rem;
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  display: block;
}
.paypal-box {
  background: linear-gradient(135deg, #0a1628, #1e4d8c);
  border-radius: 16px;
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.paypal-box::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(212,168,75,0.25) 0%, transparent 70%);
  animation: nucleus-pulse 4s ease-in-out infinite;
}
.impact-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(30,77,140,0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.counter-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.counter-box .big {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
}
