* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  font-family: "Poppins", sans-serif;
  color: #333;
  overflow-x: hidden;
}

/* ---------------- Navbar Styling----------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 25px 5px 25px;
  position: fixed;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px); /* Glassy effect */
  /* background-color: rgba(255, 255, 255, 0.2); */
  background-color: #fff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  width: 100%;
}
.navbar .logo {
  display: flex;
  height: 100%;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links li a {
  text-decoration: none;
  color: #000000;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #00c853;
}
.nav-links li a.active {
  color: #00c853;
  font-weight: bold;
  position: relative;
}

.nav-links li a.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #00c853;
  position: absolute;
  bottom: -5px;
  left: 0;
  animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.nav-links li .buy-credit-button {
  color: white;
  background-color: #000000;
  border: none;
  border-radius: 5px;
  padding: 10px 30px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: ease-in-out 0.5s;
}

.nav-links li .buy-credit-button:hover {
  background-color: #00c853;
  color: #000000;
}

/* Menu Toggle Button */
.menu-bar {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-bar .bar {
  width: 25px;
  height: 3px;
  background-color: #009624;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

/* Animation for Menu Bar Toggle */
.menu-bar.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-bar.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-bar.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* -----------------Header section------------------ */

header {
  background: url("/assets/pexels-brett-sayles-2896891.jpg") no-repeat center
    center/cover;
  color: white;
  height: 98vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

header h1 {
  font-size: 3rem;
  font-weight: bold;
  z-index: 2;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

header p {
  font-size: 1.5rem;
  margin: 20px 0;
  z-index: 2;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

header .cta {
  z-index: 2;
  margin-top: 20px;
}

header .cta a {
  text-decoration: none;
  color: white;
  background: #27ae60;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  transition: transform 0.3s ease, background 0.3s ease;
}

header .cta a:hover {
  background: #1e8749;
  transform: scale(1.1);
}

/* Particle Canvas */
#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* -----------------About section------------------ */

#about {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #27ae60, #145a32);
  color: white;
}

#about::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
  animation: glow 6s infinite ease-in-out;
  z-index: 0;
}

#about h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

#about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
}

#about .glow-effect {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
  animation: pulse 8s infinite ease-in-out;
  z-index: 1;
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.2);
  }
}

/* ---------Vision-missions cards section------------ */

.vision-mission {
  padding: 100px 20px;
  background: linear-gradient(to bottom, #eff7f9, #ffffff);
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

/* Card Styling */
.card {
  width: 300px;
  height: 400px;
  background: linear-gradient(135deg, #ffffff, #e0f7fa);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(0);
  transition: transform 1s ease, box-shadow 0.5s ease;
}

.card:hover {
  transform: rotateY(15deg) rotateX(-10deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  transform: translateZ(30px);
}

.card h3 {
  font-size: 2rem;
  color: #00796b;
  margin-bottom: 15px;
}

.card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Vision and Mission Card Colors */
.card-vision {
  background: linear-gradient(135deg, #a7ffeb, #64ffda);
}

.card-mission {
  background: linear-gradient(135deg, #80d8ff, #40c4ff);
}

/* ----------------Service Styling---------------- */
.services {
  text-align: center;
  padding: 50px 20px;
}

.services-heading {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #004d00;
}

.service-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 0 10px;
}

.service-card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
  animation: fadeIn 1s ease-out;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.service-card h3 {
  font-size: 1.6rem;
  margin: 15px 0;
  color: #90ee90;
}

.service-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Video Section */
.video-section {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  background: #f4f4f4;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ngo-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-overlay {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  text-align: center;
  animation: fadeIn 1.5s ease-out;
}

.video-overlay h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.video-overlay p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.video-overlay .btn-learn-more {
  text-decoration: none;
  color: white;
  background: #27ae60;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.video-overlay .btn-learn-more:hover {
  background: #1e8749;
  transform: scale(1.1);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------Impact Metrics Styling---------------- */

#impact-metrics {
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 50px 0;
  background-color: #f4f4f4;
}

.tree-structure {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 40px;
}

.tree-trunk {
  width: 10px;
  height: 200px;
  background-color: #8b4513;
  margin: 0 20px;
}

.canopy {
  display: inline-block;
  width: 150px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: appear 1s ease-in-out forwards;
}

.canopy-1 {
  animation-delay: 0.5s;
}

.canopy-2 {
  animation-delay: 1s;
}

.canopy-3 {
  animation-delay: 1.5s;
}

.canopy-4 {
  animation-delay: 2s;
}

.metric {
  font-size: 18px;
  color: #333;
}

.metric h3 {
  font-size: 20px;
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 10px;
}

.metric-value {
  font-size: 36px;
  font-weight: 700;
  color: #4caf50;
  opacity: 0;
  transform: scale(0.8);
  animation: animateValue 2s ease-out forwards;
}

/* Animation for Canopy */
@keyframes appear {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation for values */
@keyframes animateValue {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ----------------Footer  Styling---------------- */
.footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 40px 20px;
  text-align: left;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-section {
  flex: 1 1 200px;
  margin-bottom: 20px;
}

.footer-section h3 {
  color: #27ae60;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ecf0f1;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.footer-section p {
  margin-bottom: 10px;
}

.footer-section form {
  display: flex;
  gap: 10px;
}

.footer-section form input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px;
}

.footer-section form button {
  background-color: #27ae60;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.footer-section form button:hover {
  background-color: #1e874b;
}

.social-media {
  margin-top: 15px;
}

.social-media a {
  color: #ecf0f1;
  font-size: 1.5rem;
  margin-right: 10px;
  text-decoration: none;
}

.social-media a:hover {
  color: #27ae60;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #34495e;
  padding-top: 20px;
  margin-top: 20px;
}

.footer-bottom p {
  font-size: 0.9rem;
}

/* -------------------------Responsive Design-------------------------- */

@media (max-width: 768px) {
  /* ---------Navbar Reponsive------------ */
  .navbar {
    padding: 12px 12px 12px 12px;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 20px;
    margin: 6px;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }
  .logo img {
    width: 200px;
  }
  .menu-bar {
    display: flex;
  }

  .logo {
    order: -1;
  }

  .menu-bar {
    order: 1;
  }

  /* ---------Cards Reponsive------------ */

  .container {
    flex-direction: column;
    gap: 20px;
  }
  .card {
    width: 100%;
    height: auto;
  }

  /* ---------Services Reponsive------------ */

  .services-heading {
    font-size: 2rem;
  }
  .services {
    text-align: center;
    /* padding: 50px 20px; */
  }

  .service-card h3 {
    font-size: 1.5rem;
  }
  .tree-trunk {
    display: none;
  }
  .tree-structure {
    flex-direction: column;
    gap: 40px;
  }
  .metric-value {
    font-size: 25px;
  }
  /* ---------Footer Reponsive------------ */

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-section {
    width: 100%;
    flex: 0 0;
    margin-bottom: 20px;
  }
  .social-media {
    text-align: center;
  }
  .footer-bottom {
    margin-top: 0;
  }
}
