/* ----------------- General Reset & Base ----------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 80px; /* prevent sticky navbar overlap */
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ----------------- Navbar ----------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #1c1c1c;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  backdrop-filter: blur(5px);
}

.navbar .logo a {
  color: #fff;
  font-weight: 700;
  font-size: 1.6rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  color: #fff;
  font-weight: 600;
  padding: 8px 12px;
  transition: color 0.3s, transform 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #1abc9c;
  transform: scale(1.05);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background: linear-gradient(135deg, #1abc9c, #0073e6);
}

nav .logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

/* Desktop Navbar Links */
.nav-links li a {
  font-weight: 600;
  padding: 8px 12px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 3px;
  left: 0;
  bottom: -4px;
  background: linear-gradient(90deg, #1abc9c, #0073e6);
  transition: 0.3s;
  border-radius: 2px;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #0073e6;
}
/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 300;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff; /* white bars like M-PESA */
  border-radius: 3px;
  transition: all 0.4s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Fullscreen Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1abc9c, #8e44ad); /* M-PESA gradient */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  z-index: 250;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-overlay ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.nav-overlay ul li {
  margin: 20px 0;
}

.nav-overlay ul li a {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.nav-overlay ul li a:hover {
  transform: scale(1.1);
}

/* Close Button */
.overlay-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
}

@media(max-width:768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
}

/* ----------------- Hero Section ----------------- */
.hero {
  background: linear-gradient(rgba(26,188,156,0.7), rgba(142,68,173,0.7)),
              url("IMG-20240527-WA0167.jpg") center/cover no-repeat;
  color: #fff;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 1px 2px 6px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: auto;
  margin-bottom: 25px;
  text-shadow: 1px 2px 6px rgba(0,0,0,0.3);
}

/* ----------------- Buttons ----------------- */
.btn-section {
  display: inline-block;
  background: linear-gradient(135deg,#1abc9c,#8e44ad);
  color: #fff;
  padding: 14px 30px;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease-in-out, transform 0.3s ease;
  text-align: center;
}

.btn-section:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  background: linear-gradient(135deg,#e74c3c,#8e44ad);
}

/* ----------------- Section Styling ----------------- */
.section {
  padding: 4rem 1rem;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  color: #1abc9c;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section p {
  max-width: 800px;
  margin: 0 auto 1rem auto;
  text-align: center;
  line-height: 1.7;
  color: #555;
}

/* ----------------- Cards Grid ----------------- */
.cards-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background:#fff;
  border-radius:12px;
  box-shadow:0 4px 15px rgba(0,0,0,0.1);
  overflow:hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  transform:translateY(-5px);
  box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

.card img {
  width:100%;
  height:200px;
  object-fit:cover;
}

.card h3 {
  padding:0.5rem 1rem;
  font-size:1.3rem;
  color:#1abc9c;
}

.card p {
  padding:0 1rem 1rem 1rem;
  color:#555;
}

/* ----------------- Director Message ----------------- */
#director-message {
  background:#f9f9f9;
  text-align:center;
  padding:4rem 1rem;
  border-radius:12px;
}

#director-message p {
  font-size:1.1rem;
  line-height:1.8;
  max-width:900px;
  margin: 1rem auto;
  color:#333;
}

/* ----------------- Impact Section ----------------- */
.impact-tagline {
  font-size:1.3rem;
  margin:0 auto 30px;
  max-width:700px;
  font-style:italic;
  text-align:center;
  position:relative;
  display:inline-block;
  padding-bottom:8px;
}

.impact-tagline::after {
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:80%;
  height:3px;
  border-radius:2px;
  background: linear-gradient(90deg, #1abc9c, #8e44ad);
}

.impact-stats {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:30px;
  text-align:center;
}

.stat i {
  font-size:2.5rem;
  color:#1abc9c;
  margin-bottom:10px;
}

.stat h3 {
  font-size:2.2rem;
  color:#8e44ad;
  margin:0;
  font-weight:bold;
  background: linear-gradient(90deg, #1abc9c, #8e44ad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat p {
  margin-top:5px;
  font-weight:600;
  color:#444;
}

/* Footer Container */
footer {
  background: linear-gradient(135deg, #1abc9c, #0073e6); /* Colorful gradient */
  color: #fff;
  padding: 4rem 2rem 2rem;
  font-family: 'Poppins', sans-serif;
  text-align: left;
  position: relative;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: space-between;
}

.footer-container h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.footer-container h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #f0f0f0;
}

.footer-about p,
.footer-links ul li a,
.footer-partner ul li a {
  font-size: 0.95rem;
  color: #f0f0f0;
  line-height: 1.6;
}

.footer-about p {
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-links ul,
.footer-partner ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-partner ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a:hover,
.footer-partner ul li a:hover {
  color: #ffeb3b; /* Highlight hover */
  transition: 0.3s;
}

/* Social Media */
.footer-social {
  text-align: center;
  margin-top: 1rem;
}

.footer-social h4 {
  margin-bottom: 0.5rem;
}

.footer-social a {
  display: inline-block;
  margin: 0 8px;
  font-size: 1.8rem;
  color: #fff;
  background: rgba(255,255,255,0.15);
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: #1abc9c;
  transform: scale(1.2);
  background: rgba(255,255,255,0.25);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links, .footer-partner {
    margin-top: 1.5rem;
  }
}
