/* ===== General ===== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #333;
}

/* ===== Navbar ===== */
nav {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(34, 139, 34, 0.85);
  color: white;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

/* ===== Hero ===== */
.hero-section {
  height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s;
}

.hero-text.show {
  opacity: 1;
}

.hero-section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s;
  z-index: 0;
}

.hero-section-bg.show {
  opacity: 1;
}

@media (max-width: 768px) {
  .hero-section {
    height: 60vh;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
}

/* ===== Buttons ===== */
.btn {
  padding: 0.75rem 1.5rem;
  background: #228B22;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  margin-right: 1rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* ===== About ===== */
.about-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 4rem 2rem;
  gap: 2rem;
  background: #f5f9f2;
}

.about-text {
  flex: 1 1 45%;
}

.about-text h1 {
  font-size: 2.5rem;
  color: #228B22;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-images {
  flex: 1 1 45%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-images img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s;
}

.about-images img:hover {
  transform: scale(1.05);
}

/* ===== Projects ===== */
.projects-section {
  padding: 4rem 2rem;
  background: #eef6ed;
}

.projects-section h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #228B22;
  margin-bottom: 2rem;
}

.map {
  width: 100%;
  height: 400px; /* required for Leaflet */
  border-radius: 10px;
  margin-bottom: 2rem;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

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

.project-card .card-content {
  padding: 1rem;
}

.project-card h3 {
  margin: 0.5rem 0;
  color: #228B22;
}

.project-card p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: #555;
}

/* ===== AI Tool ===== */
.ai-tool-section {
  padding: 4rem 2rem;
  background: #f5f9f2;
  text-align: center;
}

.ai-tool-section h1 {
  color: #228B22;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.ai-tool-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.ai-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  margin: 0 auto 2rem auto;
  gap: 1rem;
}

.ai-form label {
  align-self: flex-start;
  font-weight: 500;
  color: #333;
}

.ai-form input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.ai-result {
  font-size: 1.2rem;
  color: #228B22;
  margin-top: 1rem;
  font-weight: 500;
}

.ai-images {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.ai-images img {
  width: 200px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s;
}

.ai-images img:hover {
  transform: scale(1.05);
}

/* ===== Community Section ===== */
.community-section {
  text-align: center;
  padding: 3rem 2rem;
  background: #f9fff9;
}

.community-section h1 {
  color: #228b22;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.community-section p {
  color: #444;
  margin-bottom: 2rem;
}

.leaderboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Community Images */
.community-images {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.community-images img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.community-images img:hover {
  transform: scale(1.05);
}
/* ===== Contact Section ===== */
.contact-section {
  text-align: center;
  padding: 3rem 2rem;
  background: #f5fff5;
}

.contact-section h1 {
  color: #228b22;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.contact-section p {
  color: #444;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 90%;
  max-width: 500px;
  margin: 0 auto 3rem auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
}

.contact-form .btn {
  background: #228b22;
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.contact-form .btn:hover {
  background: #2fa02f;
}

.contact-result {
  margin-top: 1rem;
  font-weight: bold;
  color: #228b22;
}

/* Contact Images */
.contact-images {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.contact-images img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.contact-images img:hover {
  transform: scale(1.05);
}


/* 🌍 Map Section Styling */
#map-section {
  padding: 50px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

#map-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2c7a3f;
}

#map {
  height: 70vh;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* ===== Footer ===== */
footer {
  background: rgba(34,139,34,0.9);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

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

.footer-about,
.footer-links,
.footer-contact {
  flex: 1 1 300px;
}

.footer-about h2,
.footer-links h2,
.footer-contact h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #90EE90;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-about p {
  font-size: 1rem;
  line-height: 1.7;
  color: #f0f0f0;
}

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

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

.footer-links a {
  text-decoration: none;
  color: #f0f0f0;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #90EE90;
}

.footer-contact p {
  margin: 0.4rem 0;
  color: #f0f0f0;
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 1rem;
  font-size: 0.95rem;
  color: #ddd;
}

.footer-bottom span {
  color: #90EE90;
}
