/* Base Styles */
body {
  font-family: 'Arial', sans-serif;
  background-color: #FCFCEB; /* Light background */
  color: #000000;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Header */
header {
  background-color: #474D22; /* Dark header for contrast */
  color: #FCFCEB; /* Light text */
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero h1 {
  font-size: 3rem;
  margin: 0;
  font-weight: bold; /* Bolder text */
}

.hero p {
  font-size: 1.2rem;
  margin: 10px 0;
  font-style: italic; /* Italicized for a playful feel */
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Headings */
h1, h2 {
  color: #8B9635; /* Primary color for headings */
  margin: 20px 0;
  padding: 10px;
  text-align: center;
}

/* Section Styles */
.features, .how-it-works, .download, .repository {
  margin: 40px 0;
  background-color: #f0f3da; /* Light section background */
  padding: 20px;
  border-radius: 15px; /* Rounded corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.features:hover, .how-it-works:hover, .download:hover, .repository:hover {
  transform: translateY(-5px); /* Lift effect on hover */
}

/* Feature List */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.feature-item {
  flex: 1 1 calc(30% - 20px);
  background-color: #FCFCEB; /* Light background for feature items */
  border: 1px solid #8B9635; /* Consistent border */
  padding: 20px;
  border-radius: 10px; /* Rounded corners */
  margin: 10px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
  transform: scale(1.05); /* Slight scaling on hover */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Shadow effect */
}

/* FAQ Section */
#faq {
  max-width: 800px;
  width: 100%;
  padding: 20px;
  background-color: #FCFCEB; /* Light background for FAQ */
  border-radius: 15px; /* Rounded corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 2rem auto;
}

.faq-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}

.faq-item {
  margin-bottom: 20px;
  padding: 15px; /* Increased padding for better readability */
  border-radius: 10px;
  border: 2px solid #8B9635; /* Consistent border */
  background-color: #f0f3da; /* Light background for FAQ items */
  transition: background-color 0.3s ease-in-out, transform 0.3s; /* Added transform transition */
}

.faq-item h3 {
  color: #8B9635;
  margin-bottom: 10px;
  font-size: 1.5em;
}

.faq-item p {
  color: #000000;
  font-size: 1.1em;
  line-height: 1.6;
}

.faq-item:hover {
  background-color: #d1e0b6; /* Lighter background on hover */
  transform: translateY(-6px) scale(1.05); /* Lift and slightly enlarge effect */
}

/* Image Resizing in How It Works Section */
.how-it-works img {
  max-width: 100%; /* Ensure images fit within their parent */
  height: auto; /* Maintain aspect ratio */
  margin: 20px auto; /* Center the image and add spacing */
  display: block; /* Make the image a block element to center */
}

/* Download Button */
.download {
  text-align: center;
  padding-bottom: 1em;
}

.download-button, .repo-button {
  background-color: #8B9635; /* Primary button color */
  color: #FCFCEB;
  padding: 15px 30px;
  margin: 1em;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, transform 0.2s;
}

.download-button:hover, .repo-button:hover {
  background-color: #6E7629; /* Darker button color on hover */
  transform: translateY(-2px); /* Lift effect */
}

/* Footer */
footer {
  background-color: #474D22; /* Dark footer */
  color: #FCFCEB; /* Light footer text */
  padding: 20px;
  text-align: center;
  width: 100%;
}

/* Repository Section */
.repository {
  text-align: center;
  padding: 40px 20px;
  background-color: #f0f3da; /* Light background for repository section */
  margin: 40px 0;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.repository p {
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .feature-list {
    flex-direction: column;
    align-items: center;
  }

  .feature-item {
    flex: 1 1 100%;
    margin: 10px 0;
  }

  .faq-item h3 {
    font-size: 1.2em;
  }

  .faq-item p {
    font-size: 1em;
  }

  .download-button, .repo-button {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  h1, h2 {
    font-size: 1.5rem;
  }

  .faq-item h3 {
    font-size: 1.1em;
  }

  .faq-item p {
    font-size: 0.9em;
  }

  .download-button, .repo-button {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}
