/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header styles */
header {
  background-color: #004d00;
  color: white;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    background-color: #003300;
    position: absolute;
    top: 70px;
    right: 1rem;
    padding: 1rem;
    border-radius: 8px;
  }

  .nav.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  height: 180vh;
  background-image: url("../assets/images/Logo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: white;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  margin: 0;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.0);
  z-index: 0;
}

@media (max-width: 600px) {
  .hero {
    height: 60vh;
    padding: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

/* About Page */
.about-section {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.about-section h2 {
  font-size: 2.2rem;
  color: #006400;
  margin-bottom: 1.5rem;
  text-align: center;
}

.about-block {
  margin-bottom: 2rem;
}

.about-block h3 {
  font-size: 1.5rem;
  color: #004d00;
  margin-bottom: 0.5rem;
}

.about-block p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .about-section h2 {
    font-size: 1.7rem;
  }

  .about-block h3 {
    font-size: 1.3rem;
  }

  .about-block p {
    font-size: 1rem;
  }
}

/* Contact Page */
.contact {
  padding: 4rem 1rem;
  background-color: #eefaf1;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-form h3 {
  color: #006400;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form button {
  background-color: #00994d;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #007a3d;
}

@media (max-width: 600px) {
  .contact h1 {
    font-size: 2rem;
  }

  .contact-form h3 {
    font-size: 1.3rem;
  }
}

/* Footer */
.footer {
  background-color: #004d00;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer a {
  color: #a8f0c6;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

/* COLLAPSIBLE SECTIONS */
.collapsible-section {
  margin: 2rem 0;
}

.toggle-btn {
  background-color: #006400;
  color: white;
  border: none;
  padding: 1rem;
  width: 100%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
  text-align: left;
}

.toggle-btn:hover {
  background-color: #004d00;
}

.collapsible-content {
  display: none;
  padding: 1rem 0;
}

/* Responsive Grids */
.product-grid,
.team-grid,
.metrics-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 1.5rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

.product-card,
.team-member,
.metric-box {
  background-color: #f0f0f0;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 600px) {
  .product-card,
  .team-member,
  .metric-box {
    font-size: 0.95rem;
    padding: 1rem;
  }
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 700px) {
  .team-grid {
    flex-direction: row;
    justify-content: space-between;
  }
}

.team-member {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.team-member img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
}

.learn-more-btn {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #006400;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.learn-more-btn:hover {
  background-color: #004d00;
}

.product-card img {
  width: 100%;
  height: 380px;
  object-fit: cover; /* Ensures full display without squashing or stretching */
  border-radius: 6px;
  margin-bottom: 1rem;
  background-color: #fff;
}
