@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Open+Sans&display=swap');

:root {
  --green: #4caf50;
  --dark-green: #2e7d32;
  --white: #ffffff;
  --text-color: #2c3e50;
  --fade-time: 0.8s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #e8f5e9;
  color: var(--text-color);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #ffffffee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  flex-wrap: wrap;
}

.navbar a {
  text-decoration: none;
  color: var(--dark-green);
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: var(--green);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(to right, #e8f5e9, #a5d6a7);
}

.hero-content {
  animation: fadeInUp var(--fade-time) ease forwards;
  opacity: 0;
}

.title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--dark-green);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideIn var(--fade-time) ease-out forwards;
  animation-delay: 0.3s;
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideIn var(--fade-time) ease-out forwards;
  animation-delay: 0.6s;
}

/* optional hero background */

#hero {
  height: 100vh;
  background: url('forest-hero.jpg') no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 2rem;
}


/* Section Layout */
.section {
  min-height: 100vh;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #ffffff;
  text-align: center;
}

.section:nth-child(even) {
  background-color: #f1f8e9;
}

.section-title {
  font-size: 2.5rem;
  color: var(--dark-green);
  margin-bottom: 1.5rem;
}

.section-text {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  padding: 0 1rem;
}

/* Fade-in Animation on Scroll */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: all var(--fade-time) ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 0.7rem 1rem;
  font-size: 1.2rem;
  background-color: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: none;
  z-index: 1000;
  transition: background 0.3s ease;
}

#backToTop:hover {
  background-color: var(--dark-green);
}

/* Animations */
@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-text {
    font-size: 1rem;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}


/* Accomplishments Section */
#accomplishments {
  background: #e8f5e9;
  padding: 6rem 2rem;
  text-align: center;
}

/* background: #e8f5e9; */
/* url('forest-hero.jpg') no-repeat center center/cover; */

.accomplishments-heading {
  font-size: 2.0rem;
  color: #2e7d32;
  margin-bottom: 1rem;
  font-weight: bold;
}
/* 2.5 */
.accomplishments-highlight {
  font-size: 2rem;
  color: #1b5e20;
  margin-bottom: 2rem;
  font-weight: 600;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.stat-box {
  max-width: 350px;
  transition: transform 0.3s ease;
}

/* max-width: 220px */

.stat-box:hover {
  transform: scale(1.05);
}

.stat-box img {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* width: 100% */
/* margin-bottom: 1rem */
/* border-radius: 10px */

.stat-number {
  font-size: 4rem;
  color: #2e7d32;
  font-weight: bold;
}

.stat-label {
  font-size: 1.25rem;
  color: #1b5e20;
}

.accomplishments-note {
  font-size: 1.2rem;
  color: #2e7d32;
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
}


/* progress bar */

.tree-progress {
  margin-top: 2.5rem;
  text-align: center;
}

.tree-count {
  font-size: 1.3rem;
  color: #1b5e20;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.progress-bar {
  width: 80%;
  max-width: 500px;
  height: 20px;
  background-color: #c8e6c9;
  border-radius: 10px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.progress-fill {
  height: 100%;
  background-color: #43a047;
  width: 0;
  border-radius: 10px 0 0 10px;
  transition: width 2s ease-in-out;
}


/* logo on the footer */

.footer-logo img {
  width: 120px;      /* Adjust width as needed */
  height: auto;      /* Keeps the image proportional */
  border-radius: 6px; /* Slight rounding for a smooth look */
  object-fit: cover;
  margin-top: 1rem;
}



/* Footer Styles */
footer {
  background-color: #2e7d32;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
  margin-top: auto;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

.footer-note {
  font-size: 0.95rem;
  margin-top: 1rem;
  font-style: italic;
}

.footer-copy {
  font-size: 0.9rem;
  margin-top: 2rem;
  color: #c8e6c9;
}

/* HAMBURGER STYLES */


/* Hamburger icon */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 30px;
  cursor: pointer;
  z-index: 1001;
  margin: 1rem;
  position: absolute;
  top: 0;
  left: 0;
}

.hamburger span {
  height: 4px;
  width: 30px;
  background: #000;
  border-radius: 2px;
  margin: 3px 0;
  transition: all 0.3s ease;
}

/* Animate to X */
.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(11px, -11px);
}


/* responsive menu */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    position: fixed;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 30px;
    cursor: pointer;
    z-index: 10001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -250px; /* hide menu off-screen */
    width: 250px;
    height: 100vh;
    background-color: #2e7d32;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
    z-index: 10000;
    overflow-y: auto;
  }

  .nav-links.active {
    left: 0; /* slide menu in */
  }

  .nav-links li {
    margin: 1.5rem 0;
    text-align: left;
  }

  .nav-links a {
    color: white;
    font-weight: bold;
    display: block;
    padding: 0.5rem 1rem;
  }
}
