/* =============================================
   PortfolioAfrica — Shared Design System
   main.css  |  All pages
   ============================================= */

/* === Global & Background === */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Google Sans', 'Barlow Condensed', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background-image: url('https://res.cloudinary.com/div65qgh8/image/upload/v1771541108/4f9d749ee4b8f28e66e4c5c80517f1da_z2iujq.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Semi-transparent overlay === */
.content-overlay {
  background-color: rgba(39, 36, 36, 0.205);
  backdrop-filter: blur(5px);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* === Navbar === */
.navbar {
  background-color: transparent !important;
  padding-top: 1.2rem;
  font-family: 'Barlow Condensed', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
.navbar-brand {
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: #ffffff !important;
}
.nav-link {
  font-weight: 500;
  color: #ffffff !important;
  margin: 0 0.25rem;
  position: relative;
  padding-bottom: 4px !important;
}

/* Animated underline for hover & active nav items */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: width 0.28s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}
.navbar-toggler {
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
}

/* === Language Dropdown === */
.lang-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.lang-dropdown-btn::after {
  display: none !important;
}
.lang-dropdown-btn .bs-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 4px solid #ffffff;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}
.lang-menu {
  background: rgba(15, 30, 55, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  min-width: 160px;
  padding: 0.4rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.lang-menu .dropdown-item {
  color: #e8edf4;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  transition: background 0.18s;
}
.lang-menu .dropdown-item:hover,
.lang-menu .dropdown-item.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.lang-menu .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

/* === Utility badges === */
.register-badge {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 30px;
  padding: 0.3rem 1.3rem;
  font-size: 0.95rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.separator-dot {
  color: #ffffff;
  margin: 0 0.15rem;
}

/* === Hero Wrapper — full-height stretch layout === */
.hero-wrapper {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1.5rem 0 2rem;
  min-height: 0;
}
.hero-wrapper > .container {
  display: flex;
  flex-direction: column;
}
.hero-wrapper > .container > .row {
  flex: 1;
}
.hero-card {
  backdrop-filter: blur(8px);
  border-radius: 32px;
  padding: 2.2rem 2rem;
  box-shadow: 0 25px 40px -18px rgba(0, 0, 0, 0.3);
  width: 100%;
}

/* === Hero Typography === */
.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-align: center;
}
.hero-highlight {
  color: #6f6f70;
}
.hero-sub {
  font-size: 1.25rem;
  color: #f8f8f8;
  font-weight: 500;
  max-width: 600px;
}

/* === Stats badge (index / shared) === */
.stats-badge {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 60px;
  padding: 0.5rem 1.8rem;
  font-weight: 500;
  color: #0b1b32;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.stats-badge i {
  color: #1f8b4c;
}

/* === Input group (index hero search) === */
.input-group-custom {
  max-width: 500px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 60px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.25rem 0.25rem 0.25rem 1.8rem;
  display: flex;
  align-items: center;
}
.input-group-custom input {
  border: none;
  background: transparent;
  font-size: 1rem;
  padding: 0.7rem 0;
  outline: none;
  width: 100%;
}
.input-group-custom input::placeholder {
  color: #2b3b50;
  font-weight: 400;
  opacity: 0.8;
}
.input-group-custom button {
  border-radius: 60px;
  padding: 0.6rem 2rem;
  background-color: #0b1b32;
  border: none;
  font-weight: 600;
  white-space: nowrap;
}
.input-group-custom button:hover {
  background-color: #1f3a5f;
}

/* === Logo strip === */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.8rem 1.5rem;
  margin-top: 2.8rem;
}
.logo-item {
  font-size: 1.2rem;
  font-weight: 600;
  color: #393a3a;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-item i {
  margin-right: 8px;
  color: #a1c7ee;
}

/* === Footer === */
.footer-transparent {
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: #f2f2f3;
  margin-top: auto;
}
.footer-transparent a {
  color: #f1f2f4;
  text-decoration: none;
  font-weight: 500;
}
span.emergency-btn {
  border: 1px solid red;
  border-radius: 12px;
  padding: 10px;
  color: red;
}
a.emergency-btn-link {
  color: red;
}
.text-dark {
  color: rgb(241, 243, 245) !important;
}







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

/* ≤ 991px — mobile navbar */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(10, 22, 44, 0.88);
    backdrop-filter: blur(10px);
    padding: 1rem 1.2rem;
    border-radius: 18px;
    margin-top: 0.8rem;
  }
  .navbar-nav .nav-link::after {
    background-color: rgba(255, 255, 255, 0.7);
  }
  .d-flex.align-items-center.gap-3 {
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.3rem;
  }
}

/* ≤ 768px — tablet / mobile layout shifts */
@media (max-width: 768px) {
  .hero-wrapper {
    padding: 1rem 0 1.5rem;
    align-items: flex-start;
  }
  .hero-card {
    padding: 1.6rem 1.2rem;
    border-radius: 22px;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .stats-badge {
    font-size: 0.88rem;
    padding: 0.4rem 1.2rem;
  }
  .logo-strip {
    gap: 1rem;
    justify-content: center;
  }
  .footer-transparent .container {
    flex-direction: column;
    gap: 0.7rem;
    text-align: center;
  }
  .footer-transparent .d-flex.gap-3 {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ≤ 480px — small mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }
  .hero-card {
    padding: 1.2rem 0.8rem;
    border-radius: 18px;
  }
  .input-group-custom {
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border-radius: 18px;
    max-width: 100%;
  }
  .input-group-custom input {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0.4rem;
    padding-left: 0.5rem;
  }
  .input-group-custom button {
    width: 100%;
    border-radius: 14px;
  }
  .stats-badge {
    font-size: 0.82rem;
    padding: 0.35rem 1rem;
  }
}

