@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
  --primary-green: #27ae60;
  --secondary-green: #2ecc71;
  --light-green: #d5f5e3;
  --dark-green: #2f502c;
  --dark-color: #28343d;
  --light-color: #ecf0f1;
  --w09: rgba(255, 255, 255, 0.9);
  --title: "Caveat", "Georgia";
  --body-text: "Inter", sans-serif;
}

.section-anim {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.section-anim.show {
  opacity: 1;
  transform: translateY(0);
}

body {
  font-size: 16px;
  font-family: var(--body-text);
  transition: background 0.3s, color 0.3s;
}

#footer {
  background: linear-gradient(to bottom, var(--primary-green), var(--dark-green));
  color: var(--light-color);
  padding: 3rem 0 1rem;
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--light-color);
  clip-path: polygon(0 0, 100% 0, 100% 20%, 50% 100%, 0 20%);
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-green);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.footer-title:hover {
  color: var(--light-color);
  transform: translateY(-2px);
}

.footer-title:hover::after {
  width: 100%;
  background-color: var(--light-color);
}

.footer-input {
  border: none;
  border-radius: 25px;
  background: var(--w09);
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.footer-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.5);
}

.footer-btn {
  border: none;
  border-radius: 25px;
  background-color: var(--primary-green);
  color: var(--light-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-btn:hover {
  background-color: var(--secondary-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-link {
  color: var(--w09);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-link:hover {
  color: var(--light-color);
  padding-left: 10px;
}

.footer-link::before {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-link:hover::before {
  left: 0;
  opacity: 1;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.social-icon:hover {
  background: var(--secondary-green);
  transform: translateY(-5px) scale(1.1);
}

.footer-line {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
  margin: 0 auto 1.5rem;
  max-width: 80%;
}

.leaf-decoration {
  position: absolute;
  opacity: 0.1;
  z-index: 0;
}

.leaf-1 {
  top: 20%;
  left: 5%;
  font-size: 80px;
  transform: rotate(-30deg);
}

.leaf-2 {
  bottom: 15%;
  right: 5%;
  font-size: 100px;
  transform: rotate(20deg);
}

.environment-icon {
  font-size: 1.5rem;
  margin-right: 10px;
  vertical-align: middle;
  transition: all 0.3s ease;
}

.footer-title:hover .environment-icon {
  transform: rotate(15deg) scale(1.2);
  color: var(--light-color);
}

.animate-footer {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-footer.visible {
  opacity: 1;
  transform: translateY(0);
}
