/* ============================================
   JAMHURI OS - Custom Stylesheet
   Primary: #DC143C (Crimson)
   Secondary: #094CF6 (Blue)
   ============================================ */

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

:root {
  --jamhuri-primary: #DC143C;
  --jamhuri-primary-dark: #B01030;
  --jamhuri-primary-light: #F04A6A;
  --jamhuri-secondary: #094CF6;
  --jamhuri-secondary-dark: #0739B8;
  --jamhuri-secondary-light: #3B6EF8;
  --jamhuri-accent: #f5f5f5;
  --jamhuri-dark: #1a1a2e;
  --jamhuri-light: #ffffff;
  --jamhuri-gray: #6c757d;
  --jamhuri-gray-light: #e9ecef;
  --font-primary: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-base: all 0.3s ease;
  --border-radius: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.15);
}

/* ============================================
   BASE & TYPOGRAPHY
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: #2d2d2d;
  line-height: 1.7;
  background-color: var(--jamhuri-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--jamhuri-dark);
}

a {
  color: var(--jamhuri-secondary);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--jamhuri-primary);
}

::selection {
  background-color: var(--jamhuri-primary);
  color: white;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  padding: 1rem 0;
  transition: var(--transition-base);
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.navbar.scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--jamhuri-dark) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--jamhuri-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  color: var(--jamhuri-dark) !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: 0;
  height: 2px;
  background: var(--jamhuri-primary);
  transition: var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 2rem);
}

.nav-link:hover {
  color: var(--jamhuri-primary) !important;
}
.custom-toggler {
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
}

.custom-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: invert(20%);
}
@media (max-width: 991.98px) {

  .navbar-collapse {
    background: white;
    margin-top: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
  }

}
@media (max-width: 991.98px) {

  .navbar-nav {
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
    font-size: 1rem;
    border-radius: 8px;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(220, 20, 60, 0.08);
  }

  .nav-link::after {
    display: none; /* remove underline animation */
  }

}
@media (max-width: 991.98px) {

  .nav-cta {
    margin-top: 1rem;
  }

  .nav-cta .btn {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
  }

}

/* ============================================
   ABOUT DROPDOWN MENU
   ============================================ */

/* Dropdown toggle — keep the underline animation working */
.navbar .dropdown-toggle::after {
  margin-left: 0.4em;
  vertical-align: 0.15em;
  border-top: 0.35em solid;
  border-right: 0.3em solid transparent;
  border-left: 0.3em solid transparent;
  transition: transform 0.25s ease;
}

.navbar .dropdown.show .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* The dropdown panel */
.jamhuri-dropdown {
  min-width: 260px;
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin-top: 0.5rem !important;
  background: white;
}

/* Each item */
.jamhuri-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.65rem 0.875rem;
  border-radius: 8px;
  color: var(--jamhuri-dark);
  transition: var(--transition-base);
}

.jamhuri-dropdown .dropdown-item:hover,
.jamhuri-dropdown .dropdown-item:focus {
  background: rgba(220, 20, 60, 0.06);
  color: var(--jamhuri-primary);
}

.jamhuri-dropdown .dropdown-item.active,
.jamhuri-dropdown .dropdown-item:active {
  background: rgba(220, 20, 60, 0.1);
  color: var(--jamhuri-primary);
}

/* Icon bubble */
.dropdown-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(220, 20, 60, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--jamhuri-primary);
  transition: var(--transition-base);
}

.jamhuri-dropdown .dropdown-item:hover .dropdown-item-icon {
  background: var(--jamhuri-primary);
  color: white;
}

/* Text block: name + description */
.dropdown-item-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.dropdown-item-text strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.dropdown-item-text small {
  font-size: 0.78rem;
  color: var(--jamhuri-gray);
  font-weight: 400;
}

.jamhuri-dropdown .dropdown-item:hover .dropdown-item-text small,
.jamhuri-dropdown .dropdown-item.active .dropdown-item-text small {
  color: rgba(220, 20, 60, 0.75);
}

/* ── Mobile: collapse accordion style ── */
@media (max-width: 991.98px) {
  .jamhuri-dropdown {
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(220, 20, 60, 0.2);
    border-radius: 0;
    margin: 0.25rem 0 0.5rem 0.75rem !important;
    padding: 0.25rem 0;
    background: transparent;
  }

  .jamhuri-dropdown .dropdown-item {
    padding: 0.5rem 0.75rem;
  }

  .dropdown-item-icon {
    width: 30px;
    height: 30px;
    font-size: 0.875rem;
  }
}


/* ============================================
   BUTTONS
   ============================================ */

.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition-base);
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: var(--jamhuri-primary);
  border-color: var(--jamhuri-primary);
  color: white;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--jamhuri-primary-dark);
  border-color: var(--jamhuri-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 20, 60, 0.3);
}

.btn-secondary {
  background-color: var(--jamhuri-secondary);
  border-color: var(--jamhuri-secondary);
  color: white;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--jamhuri-secondary-dark);
  border-color: var(--jamhuri-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(9, 76, 246, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--jamhuri-primary);
  color: var(--jamhuri-primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--jamhuri-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(220, 20, 60, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(9, 76, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(220, 20, 60, 0.08);
  color: var(--jamhuri-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--jamhuri-dark);
}

.hero-title .highlight {
  color: var(--jamhuri-primary);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--jamhuri-gray);
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--jamhuri-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--jamhuri-gray);
  margin-top: 0.25rem;
}

.hero-visual {
  position: relative;
}

.hero-phone-mockup {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.phone-frame {
  background: var(--jamhuri-dark);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Floating elements */
.float-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 6s ease-in-out infinite;
}

.float-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.float-card-1 {
  top: 10%;
  left: -20%;
  animation-delay: 0s;
}

.float-card-1 .float-card-icon {
  background: rgba(220, 20, 60, 0.1);
  color: var(--jamhuri-primary);
}

.float-card-2 {
  bottom: 20%;
  right: -15%;
  animation-delay: 2s;
}

.float-card-2 .float-card-icon {
  background: rgba(9, 76, 246, 0.1);
  color: var(--jamhuri-secondary);
}

.float-card-3 {
  top: 25%;
  right: -25%;
  animation-delay: 4s;
}

.float-card-3 .float-card-icon {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.phone-screen {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(9, 76, 246, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(220, 20, 60, 0.12) 0%, transparent 55%),
    linear-gradient(160deg, #0f0f1e 0%, #1a1a2e 55%, #0d0d1d 100%);
  border-radius: 32px;
  aspect-ratio: 9/19;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle grid texture for depth */
.phone-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: inherit;
  pointer-events: none;
}

/* Crimson glow ring behind the logo */
.phone-screen::after {
  content: '';
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 20, 60, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.phone-screen-logo {
  width: 72%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  position: relative; /* sits above ::before and ::after */
  z-index: 1;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.phone-screen-logo:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 0 8px rgba(220, 20, 60, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.55);
}

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

/* ============================================
   SECTION STYLES
   ============================================ */

.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  color: var(--jamhuri-primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  color: var(--jamhuri-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--jamhuri-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.feature-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  height: 100%;
  transition: var(--transition-base);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--jamhuri-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(220, 20, 60, 0.08);
  color: var(--jamhuri-primary);
}

.feature-card:nth-child(even) .feature-icon {
  background: rgba(9, 76, 246, 0.08);
  color: var(--jamhuri-secondary);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--jamhuri-dark);
}

.feature-text {
  color: var(--jamhuri-gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================
   PROBLEM / SOLUTION SECTIONS
   ============================================ */

.problem-section {
  background: var(--jamhuri-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.problem-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(220, 20, 60, 0.15) 0%, transparent 70%);
}

.problem-section .section-title,
.problem-section h3 {
  color: white;
}

.problem-section .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.problem-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.problem-list li:last-child {
  border-bottom: none;
}

.problem-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(220, 20, 60, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jamhuri-primary-light);
  font-size: 0.9rem;
}

.solution-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.solution-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  border-left: 4px solid var(--jamhuri-secondary);
}

.solution-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.solution-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--jamhuri-dark);
}

.solution-card p {
  color: var(--jamhuri-gray);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================
   MARKET OPPORTUNITY
   ============================================ */

.market-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
}

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

.market-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.market-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--jamhuri-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.market-label {
  color: var(--jamhuri-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}
/* ============================================
   FASTERCAPITAL EQUITY PILOT BANNER
   Add to styles.css or styles-additions.css
   ============================================ */

.faster-capital-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--jamhuri-secondary);
}

.faster-capital-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(26, 54, 126, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--jamhuri-secondary);
}

.faster-capital-text {
  flex: 1;
}

.faster-capital-text p {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--jamhuri-dark);
  line-height: 1.6;
}

.faster-capital-text a {
  color: var(--jamhuri-secondary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 54, 126, 0.3);
  transition: var(--transition-base);
}

.faster-capital-text a:hover {
  color: var(--jamhuri-primary);
  border-bottom-color: var(--jamhuri-primary);
}

@media (max-width: 767.98px) {
  .faster-capital-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1rem;
  }

  .faster-capital-banner .btn {
    width: 100%;
  }
}
/* ============================================
   INVESTMENT SECTION
   ============================================ */

.investment-section {
  background: linear-gradient(135deg, var(--jamhuri-primary) 0%, var(--jamhuri-primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.investment-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.investment-section .section-title,
.investment-section h3,
.investment-section h4 {
  color: white;
}

.investment-section .section-subtitle {
  color: rgba(255,255,255,0.8);
}

.fund-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
}

.fund-item-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
}

.why-invest-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  border: 1px solid rgba(255,255,255,0.15);
  height: 100%;
  transition: var(--transition-base);
}

.why-invest-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-5px);
}

.why-invest-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.why-invest-card p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-bottom: 0;
}


/* ============================================
   VISION / QUOTE
   ============================================ */

.vision-section {
  background: var(--jamhuri-dark);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vision-section::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20rem;
  color: rgba(255,255,255,0.03);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.vision-quote {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,0.9);
}

.vision-attribution {
  color: var(--jamhuri-primary-light);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--jamhuri-secondary) 0%, var(--jamhuri-secondary-dark) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section .section-title {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-section .section-subtitle {
  color: rgba(255,255,255,0.85);
}

/* ============================================
   SCREENSHOTS CAROUSEL
   ============================================ */

.screenshots-section {
  background: #f8f9fa;
}

.screenshot-item {
  padding: 1rem;
}

.screenshot-frame {
  background: white;
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow-md);
  max-width: 280px;
  margin: 0 auto;
}

.screenshot-inner {
  background: linear-gradient(180deg, var(--jamhuri-primary) 0%, var(--jamhuri-primary-dark) 100%);
  border-radius: 14px;
  aspect-ratio: 9/19;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.screenshot-inner .ss-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.screenshot-inner .ss-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.screenshot-inner .ss-desc {
  font-size: 0.8rem;
  opacity: 0.85;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--jamhuri-primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.carousel-control-prev {
  left: -25px;
}

.carousel-control-next {
  right: -25px;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--jamhuri-gray);
  border: none;
  margin: 0 5px;
}

.carousel-indicators button.active {
  background-color: var(--jamhuri-primary);
  width: 30px;
  border-radius: 5px;
}

/* ============================================
   DOWNLOAD PAGE
   ============================================ */

.download-hero {
  background: linear-gradient(135deg, var(--jamhuri-dark) 0%, #2d2d4a 100%);
  color: white;
  padding: 140px 0 80px;
  text-align: center;
}

.download-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  height: 100%;
  border: 2px solid transparent;
}

.download-card:hover {
  border-color: var(--jamhuri-primary);
  transform: translateY(-5px);
}

.download-card .device-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.download-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.download-card .version {
  color: var(--jamhuri-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.download-card .specs {
  color: var(--jamhuri-gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.notify-form {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-hero {
  background: linear-gradient(135deg, var(--jamhuri-primary) 0%, var(--jamhuri-primary-dark) 100%);
  color: white;
  padding: 140px 0 80px;
  text-align: center;
}

.contact-hero .section-title {
  color: white;
}

.contact-hero .section-subtitle {
  color: rgba(255,255,255,0.85);
}

.contact-form-wrapper {
  background: white;
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.form-label {
  font-weight: 600;
  color: var(--jamhuri-dark);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid var(--jamhuri-gray-light);
  border-radius: 10px;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  transition: var(--transition-base);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--jamhuri-primary);
  box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.1);
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  font-size: 0.85rem;
}

.contact-info-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition-base);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(220, 20, 60, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jamhuri-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.contact-info-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-info-card p {
  color: var(--jamhuri-gray);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.privacy-notice {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.25rem;
  font-size: 0.85rem;
  color: var(--jamhuri-gray);
  border-left: 4px solid var(--jamhuri-secondary);
}

/* Honeypot field - hidden from real users */
.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-hero {
  background: linear-gradient(135deg, var(--jamhuri-dark) 0%, #2d2d4a 100%);
  color: white;
  padding: 140px 0 80px;
}

.about-hero .section-title {
  color: white;
}


/* ============================================
   TEAM PAGE
   ============================================ */

/* Responsive 3-column grid (2 on tablet, 1 on mobile) */
.team-grid-improved {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

@media (max-width: 991.98px) {
  .team-grid-improved {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .team-grid-improved {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Card shell */
.team-card-improved {
  background: #ffffff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.team-card-improved:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(220, 20, 60, 0.15);
}

/* Photo area with hover overlay */
.team-card-improved .team-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--jamhuri-gray-light);
}

.team-card-improved .team-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
  display: block;
}

.team-card-improved:hover .team-image-wrapper img {
  transform: scale(1.06);
}

/* LinkedIn overlay on photo */
.team-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 46, 0.75) 0%,
    transparent 55%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card-improved:hover .team-image-overlay {
  opacity: 1;
}

.team-socials-overlay a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  color: var(--jamhuri-secondary);
  font-size: 1.05rem;
  transition: var(--transition-base);
}

.team-socials-overlay a:hover {
  background: var(--jamhuri-primary);
  color: white;
  transform: scale(1.12);
}

/* Card text body */
.team-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--jamhuri-primary);
}

.team-card-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--jamhuri-dark);
}

.team-card-body .role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--jamhuri-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
}

.team-card-body p {
  font-size: 0.9rem;
  color: var(--jamhuri-gray);
  line-height: 1.6;
  margin-bottom: 0;
  flex: 1;
}
/* ============================================
   TEAM CARDS — MOBILE FIXES
   Add to styles.css after the existing
   .team-grid-improved / .team-card-improved rules
   ============================================ */

/* Ensure images are never clipped or hidden on any screen size */
.team-card-improved .team-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: visible;          /* was: hidden — restoring to hidden but ensuring img fills correctly */
  overflow: hidden;
  background: var(--jamhuri-gray-light);
  display: block;
}

.team-card-improved .team-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;             /* removes inline baseline gap */
  transition: transform 0.45s ease;
}

/* ── Touch / mobile: always show overlay at reduced opacity ── */
@media (hover: none), (max-width: 767.98px) {

  /* Keep overlay permanently visible on touch devices */
  .team-image-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(26, 26, 46, 0.65) 0%,
      transparent 40%
    );
  }

  /* LinkedIn button always visible — no hover needed */
  .team-socials-overlay a {
    opacity: 1;
    transform: none;
  }

  /* Disable the scale on touch (can misfire on scroll) */
  .team-card-improved:hover .team-image-wrapper img {
    transform: none;
  }

  /* Disable card lift on touch */
  .team-card-improved:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  /* Portrait ratio — shows full head and shoulders */
  .team-card-improved .team-image-wrapper {
    aspect-ratio: 3 / 4;
  }

  .team-card-improved .team-image-wrapper img {
    object-position: center center;
  }
}

/* ── Single-column on very small screens ── */
@media (max-width: 575.98px) {
  .team-grid-improved {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Two-column on mid-range mobile (480px–575px) ── */
@media (min-width: 480px) and (max-width: 575.98px) {
  .team-grid-improved {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  /* Slightly tighter portrait on two-col so cards stay compact */
  .team-card-improved .team-image-wrapper {
    aspect-ratio: 2 / 3;
  }
}

/* ============================================
   PARTNERS PAGE — IMPROVED GRID
   ============================================ */

/* Auto-fitting grid — works great with 2 partners,
   scales naturally as more are added */
.partners-grid-improved {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto 4rem;
}

@media (max-width: 575.98px) {
  .partners-grid-improved {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* Partner card */
.partnership-card-improved {
  background: white;
  border-radius: var(--border-radius);
  padding: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition-base);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.partnership-card-improved:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--jamhuri-primary);
}

/* Logo area — fixed height, centred, subtle bg */
.partnership-card-improved .partner-logo-wrapper {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.partnership-card-improved .partner-logo-wrapper img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: grayscale(20%);
}

.partnership-card-improved:hover .partner-logo-wrapper img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Partner card text */
.partner-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  border-top: 3px solid var(--jamhuri-secondary);
  flex: 1;
}

.partner-card-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--jamhuri-dark);
  margin-bottom: 0.5rem;
}

.partner-card-body p {
  font-size: 0.88rem;
  color: var(--jamhuri-gray);
  line-height: 1.6;
  margin-bottom: 0;
}


/* ============================================
   PARTNER CTA BANNER
   ============================================ */

.partner-cta {
  margin-top: 1rem;
}

.partner-cta-inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background: linear-gradient(135deg, var(--jamhuri-dark) 0%, #2d2d4a 100%);
  border-radius: var(--border-radius);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-md);
}

.partner-cta-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(220, 20, 60, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jamhuri-primary-light);
  font-size: 1.75rem;
}

.partner-cta-text {
  flex: 1;
}

.partner-cta-text h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.partner-cta-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.partner-cta-inner .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .partner-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.75rem;
    gap: 1.25rem;
  }

  .partner-cta-inner .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 991.98px) {

  .team-card,
  .partnership-card {
    padding: 1.75rem;
  }

  .team-image-wrapper {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 767.98px) {

  .team-card,
  .partnership-card {
    padding: 1.5rem;
  }

  .team-card h4,
  .partnership-card h4 {
    font-size: 1.05rem;
  }

  .team-card p {
    font-size: 0.9rem;
  }

  .partner-logo-wrapper {
    height: 100px;
  }
}

@media (max-width: 575.98px) {

  .about-hero {
    padding: 120px 0 70px;
    text-align: center;
  }

  .team-image-wrapper {
    width: 110px;
    height: 110px;
  }

  .partner-logo-wrapper {
    padding: 1rem;
  }
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--jamhuri-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
}

.footer-brand {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--jamhuri-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-heading {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--jamhuri-primary-light);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--jamhuri-primary);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   404 PAGE
   ============================================ */

.error-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
}

.error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  color: var(--jamhuri-primary);
  line-height: 1;
  opacity: 0.2;
}

.error-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.bg-light-gray {
  background-color: #f8f9fa;
}

.text-primary-custom {
  color: var(--jamhuri-primary) !important;
}

.text-secondary-custom {
  color: var(--jamhuri-secondary) !important;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--jamhuri-primary);
  outline-offset: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
  .hero-section {
    padding: 100px 0 60px;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 3rem;
  }

  .float-card {
    display: none;
  }

  .section-padding {
    padding: 60px 0;
  }

  .contact-form-wrapper {
    padding: 2rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .feature-card {
    padding: 1.75rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .hero-stat {
    text-align: center;
  }
}