* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #2e2e2e;
  background: linear-gradient(to top, #e8f5e9, #a5d6a7);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* --- HEADER --- */
header {
  background: linear-gradient(to bottom, #81c784, #66bb6a);
  color: white;
  text-align: center;
  padding: 2rem 1rem 5rem;
  position: relative;
  overflow: hidden;
}

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

nav h1 {
  font-size: 1.8rem;
}

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

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: white;
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

.hero {
  margin-top: 3rem;
}

.hero h2 {
  font-size: 2.5rem;
}

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  background: #2e7d32;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.cta:hover {
  background: #1b5e20;
  transform: scale(1.05);
}

/* --- TREE --- */
#grow {
  position: relative;
  height: 200vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background: linear-gradient(to top, #f1f8e9, #c8e6c9);
}

#tree-container {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}

#tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform-origin: bottom center;
}

.trunk {
  width: 25px;
  height: 120px;
  background: #6d4c41;
  border-radius: 5px;
  box-shadow: inset 0 -5px 8px rgba(0,0,0,0.2);
}

.leaves {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at bottom, #66bb6a 40%, #388e3c 90%);
  border-radius: 50%;
  position: relative;
  top: -20px;
  z-index: -1;
  box-shadow: 0 0 20px rgba(56,142,60,0.4);
}

.scroll-message {
  position: fixed;
  bottom: 40px;
  font-weight: 500;
  color: #2e7d32;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- SECTIONS --- */
section {
  text-align: center;
  padding: 5rem 2rem;
}

#about {
  background: #f1f8e9;
}

#gallery {
  background: white;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#donate {
  background: #c8e6c9;
}

.donate-form {
  margin-top: 1.5rem;
}

.donate-form input {
  padding: 0.7rem;
  border-radius: 5px;
  border: 1px solid #388e3c;
  width: 180px;
  text-align: center;
}

.donate-form button {
  padding: 0.7rem 1.5rem;
  margin-left: 1rem;
  border: none;
  background: #388e3c;
  color: white;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s;
}

.donate-form button:hover {
  background: #2e7d32;
}

/* --- FOOTER --- */
footer {
  background: #2e7d32;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* --- ANIMATIONS --- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}
