body {
  font-family: Arial, sans-serif;
  background-color: #f5fff0;
  color: #333;
  margin: 0;
  padding: 0;
  
}
header {
  background-color: #165a0a;
  padding: 1em;
  text-align: center;
}
nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #006600;
}
main {
  padding: 20px;
}
footer {
  background-color: #eee;
  text-align: center;
  padding: 10px;
}
.gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Picha kubwa ya juu na chini */
.top-banner img
{width: 100%;
  height: 185px;
  object-fit: cover;}
 
.bottom-banner img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

/* Header yenye picha zinazotembea */
.moving-header {
  text-align: center;
  padding: 20px;
  background-color: #e8f5e9;
}

.moving-images {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  animation: moveLeft 20s linear infinite;
}

.moving-images img {
  width: 350px;
  height: 150px;
  margin: 0 10px;
  object-fit: cover;
  border-radius: 8px;
}

@keyframes moveRight {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.moving-images {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
  animation: moveRight 30s linear infinite;
}


.about-umali, .services {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.container {
  max-width: 900px;
  margin: auto;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2f612d;
}

.intro {
  font-weight: bold;
  font-size: 1.2rem;
  color: #444;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.service-box {
  background-color: #fff;
  border-left: 5px solid #3c8031;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.service-box:hover {
  transform: translateY(-5px);
}

.contact-section {
  padding: 60px 20px;
  background-color: #eaf5ea;
}

.contact-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #2f612d;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
}

.contact-form button {
  background-color: #3c8031;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #2f612d;
}

.top-navbar {
  background-color: #2e5e2e;
  padding: 10px 15px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: white;
  letter-spacing: 1px;
}

.menu a {
  text-decoration: none;
  color: #fff;
  padding: 10px 18px;
  margin: 0 5px;
  background-color: #3c8031;
  border-radius: 8px;
  transition: 0.3s ease-in-out;
  display: inline-block;
}

.menu a:hover {
  background-color: #fff;
  color: #2e5e2e;
  box-shadow: 0 0 10px #3c8031;
  transform: scale(1.05);
}

/* Ensure images resize correctly */
img {
  max-width: 100%;
  height: auto;
}

/* Ensure texts and sections adapt */
body {
  font-size: 16px;
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

/* Responsive container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Example layout responsiveness */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .hero-section {
    padding: 20px;
    text-align: center;
  }

  .services {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .service-card {
    width: 100%;
  }

  footer {
    text-align: center;
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .row {
    flex-direction: column;
  }

  .col {
    width: 100%;
  }
}

.nav-buttons {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 999;
}

.nav-buttons button {
  margin: 5px;
  padding: 10px 15px;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.nav-buttons button:hover {
  background-color: #1b5e20;
}


.nav-buttons {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
}

.nav-buttons button {
  margin: 5px;
  padding: 10px 15px;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.nav-buttons button:hover {
  background-color: #1b5e20;
}
