/* ==========================================================================
   NEXUS ALPHA CONSULTING - DESIGN SYSTEM & GLOBAL STYLES
   Risk Management & Quantitative Consulting — Afrique Francophone
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Core Brand Colors */
  --color-bg-primary: #070d18;
  --color-bg-secondary: #0c1628;
  --color-bg-tertiary: #111f38;
  --color-bg-card: rgba(15, 27, 49, 0.75);
  --color-bg-card-hover: rgba(22, 38, 68, 0.85);
  --color-bg-glass: rgba(12, 22, 40, 0.82);
  
  /* Brand Navy & Blue Accents */
  --color-navy-dark: #0A192F;
  --color-navy-base: #173151;
  --color-navy-light: #20436e;
  --color-accent-blue: #38bdf8;
  --color-accent-cyan: #06b6d4;
  --color-accent-indigo: #6366f1;
  
  /* Brand Gold & Luxury Accents */
  --color-gold-primary: #d5bb76;
  --color-gold-light: #f3e5be;
  --color-gold-dark: #b08e45;
  --color-gold-gradient: linear-gradient(135deg, #f7e7be 0%, #d5bb76 50%, #a68437 100%);
  --color-gold-glow: rgba(213, 187, 118, 0.25);
  
  /* Quant & Functional Colors */
  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.2);
  --color-rose: #f43f5e;
  --color-amber: #f59e0b;
  --color-purple: #a855f7;
  
  /* Text & Neutral Hierarchy */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-gold: #e5cf8e;
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(213, 187, 118, 0.2);
  --border-gold: rgba(213, 187, 118, 0.45);
  --border-focus: #d5bb76;
  
  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 8px 30px rgba(213, 187, 118, 0.15);
  --shadow-blue: 0 8px 30px rgba(56, 189, 248, 0.15);
  
  /* Typography Scale */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Cinzel', serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Transitions & Spacing */
  --transition-fast: 0.18s 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);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Layout */
  --container-max: 1320px;
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(23, 49, 81, 0.45) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(213, 187, 118, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 75%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(56, 189, 248, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e3352;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-dark);
}

/* Selection */
::selection {
  background: rgba(213, 187, 118, 0.3);
  color: #fff;
}

/* Common Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Common Styles */
section {
  padding: 6.5rem 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(213, 187, 118, 0.1);
  border: 1px solid var(--border-medium);
  color: var(--color-gold-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-tag.blue {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--color-accent-blue);
}

.section-tag.emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--color-emerald);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.7;
}

.section-header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
}

/* Gradient Text Utilities */
.text-gradient-gold {
  background: var(--color-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 60%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  position: relative;
  white-space: nowrap;
}

.btn-gold {
  background: var(--color-gold-gradient);
  color: #08101e;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(213, 187, 118, 0.28);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(213, 187, 118, 0.4);
  filter: brightness(1.05);
}

.btn-outline-gold {
  background: rgba(213, 187, 118, 0.05);
  border-color: var(--color-gold-primary);
  color: var(--color-gold-light);
}
.btn-outline-gold:hover {
  background: rgba(213, 187, 118, 0.15);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(213, 187, 118, 0.2);
}

.btn-navy {
  background: rgba(23, 49, 81, 0.8);
  border-color: rgba(56, 189, 248, 0.3);
  color: #ffffff;
  backdrop-filter: blur(8px);
}
.btn-navy:hover {
  background: rgba(32, 67, 110, 0.9);
  border-color: var(--color-accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-gold {
  background: rgba(213, 187, 118, 0.12);
  color: var(--color-gold-light);
  border: 1px solid rgba(213, 187, 118, 0.3);
}

.badge-blue {
  background: rgba(56, 189, 248, 0.12);
  color: var(--color-accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Glassmorphism Card Basis */
.glass-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.glass-card-static {
  background: var(--color-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Grid helper utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 4.5rem 0;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .section-header-center {
    margin-bottom: 2.5rem;
  }
}

/* Animation utilities */
.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes for ambient glows */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.08); }
}

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