/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styling */
body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(270deg, #f2f9f6, #e3f0ea, #d0e6d8, #f2f9f6);
  background-size: 800% 800%;
  animation: backgroundShift 25s ease infinite; /* slightly slower */
  color: #333;
  padding: 2rem 1rem;
  line-height: 1.75; /* a bit more breathing room */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s ease; /* smooth color transitions on dynamic changes */
}

/* Background gradient animation */
@keyframes backgroundShift {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* Header */
header {
  text-align: center;
  margin-bottom: 2.5rem; /* more space */
  position: relative;
  overflow: visible;
  padding: 0 1rem;
}

header h1 {
  font-family: 'Playfair Display', serif; /* elegant serif */
  font-size: 3.4rem; /* slightly bigger */
  color: #2c9773;
  font-weight: 700;
  text-shadow: 0 3px 7px rgba(44, 151, 115, 0.5); /* a bit stronger shadow */
  animation: fadeInScale 1.5s ease forwards;
  line-height: 1.1;
}

.subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: #3a6f5b;
  margin-top: 0.75rem; /* a bit more margin */
  opacity: 0;
  animation: fadeUp 2s ease forwards;
  animation-delay: 1.5s;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

nav a {
  text-decoration: none;
  color: #2c9773;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.25s ease;
  box-shadow: inset 0 0 0 0 transparent;
  outline-offset: 2px;
  font-size: 1.05rem;
  user-select: none;
}

nav a:hover,
nav a:focus-visible,
nav a.active {
  background-color: #c3f1e6;
  color: #1d6f57;
  box-shadow: inset 0 0 10px #00c799bb;
  outline: none;
  transform: scale(1.07); /* a slightly more noticeable zoom */
}

/* Main Content */
main {
  max-width: 840px; /* a touch wider */
  margin: 0 auto;
  padding: 0 1rem;
}

main section {
  background: #ffffffee;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  padding: 2.25rem 2rem;
  margin-bottom: 2.5rem;
  animation: fadeIn 1.3s ease forwards;
  transition: box-shadow 0.3s ease;
}

main section:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

main h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
  color: #2c9773;
  font-weight: 700;
  text-shadow: 0 3px 7px rgba(44, 151, 115, 0.35);
  animation: fadeInScale 1.8s ease forwards;
  letter-spacing: 0.01em;
}

main ul {
  padding-left: 1.4rem;
  list-style-type: none;
}

main li {
  padding-left: 1.9rem;
  margin-bottom: 0.9rem;
  position: relative;
  font-size: 1.15rem;
  color: #444;
  transition: transform 0.35s ease, color 0.35s ease;
  cursor: default;
  line-height: 1.45;
}

main li::before {
  content: '🌿'; /* thematic leaf */
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 1.4rem;
  line-height: 1;
}

main li:hover {
  transform: translateX(10px) scale(1.07);
  color: #1d6f57;
  text-shadow: 0 1px 3px rgba(29, 111, 87, 0.5);
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background-color: #00c799;
  color: white;
  padding: 0.9rem 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 14px;
  margin-top: 1.25rem;
  text-decoration: none;
  transition: background-color 0.35s ease, box-shadow 0.45s ease, transform 0.35s ease;
  box-shadow: 0 7px 18px rgba(0, 199, 153, 0.45);
  user-select: none;
}

.cta-button:hover,
.cta-button:focus-visible {
  background-color: #00a983;
  box-shadow: 0 12px 28px rgba(0, 199, 153, 0.75);
  outline: none;
  cursor: pointer;
  transform: scale(1.07) translateY(-3px);
}

/* Floating leaf animation container */
.leaf-container {
  position: fixed;
  bottom: -50px;
  left: 50%;
  pointer-events: none;
  z-index: 1000;
  animation: floatUp 16s linear infinite;
  user-select: none;
}

.leaf {
  width: 28px;
  height: 28px;
  background-image: url('leaf.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.85;
  filter: drop-shadow(0 1.5px 1.5px rgba(0,0,0,0.15));
}

/* Animations */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatUp {
  0% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(-50% + 160px)) translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Footer */
footer {
  text-align: center;
  margin-top: 4.5rem;
  font-size: 1rem;
  color: #666;
  padding: 0 1rem;
}

footer a {
  color: #00a983;
  text-decoration: underline;
  transition: color 0.3s ease;
  cursor: pointer;
}

footer a:hover,
footer a:focus-visible {
  color: #007f65;
  outline: none;
}

/* Responsive Design */
@media (max-width: 600px) {
  body {
    padding: 1.25rem 0.75rem;
  }

  header h1 {
    font-size: 2.6rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  nav {
    flex-direction: column;
    align-items: center;
  }

  main {
    padding: 0;
  }

  main section {
    padding: 1.5rem 1.25rem;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }
}
