/* styles.css */
:root {
  --primary-color: #00a86b;
  --secondary-color: #1a1a1a;
  --text-color: #333;
  --background-color: #f4f4f4;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap");

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  height: calc(100vh - 58px);
}

/* Basic Header Styling */
header {
  background-color: var(--secondary-color);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  color: var(--background-color);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

/* Navigation Styling */
nav {
  display: flex;
  align-items: center;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--background-color);
  font-weight: 600;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: var(--background-color);
  transition: all 0.3s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease; /* Added for smooth transition */
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--secondary-color);
    padding: 1rem;
    text-align: center;
    gap: 1rem;

    /* Set initial hidden state for animation */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }

  .nav-links.show {
    max-height: 300px;
    opacity: 1;
    display: flex;
    top: 55px;
  }

  .burger {
    display: flex;
  }

  /* Burger Menu Animation */
  .burger.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger.toggle span:nth-child(2) {
    opacity: 0;
  }
  .burger.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

nav ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  text-align: center;
  padding: 2rem 0;
}

.hero h1 {
  font-size: 3rem;
  color: var(--primary-color);
}

.features {
  margin-top: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.cta {
  text-align: center;
  margin-top: 4rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #008c5a;
}

footer {
  background-color: var(--secondary-color);
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 4rem;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* About Us Page Styles */
.about-us {
  max-width: 800px;
  margin: 0 auto;
}

.about-us h1,
.about-us h2 {
  color: var(--primary-color);
}

.about-us ul {
  padding-left: 1.5rem;
}

/* Contact Us Page Styles */
.contact-us {
  max-width: 600px;
  margin: 0 auto;
}

#contact-form {
  display: grid;
  gap: 1rem;
}

#contact-form label {
  font-weight: bold;
}

#contact-form input,
#contact-form textarea {
  width: 96%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#contact-form button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact-form button:hover {
  background-color: #008c5a;
}

.contact-info {
  margin-top: 2rem;
}
