/* Import fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Roboto:wght@400;500&display=swap');


:root {
  /* 🌱 Primary (Agriculture / Nature) */
  --green-primary: rgb(46, 125, 50);     /* Main green */
  --green-light: rgb(129, 199, 132);     /* Light green highlights */

  /* 🔹 Secondary (Technology / IoT) */
  --blue-primary: rgb(21, 101, 192);     /* Main blue */
  --blue-light: rgb(100, 181, 246);      /* Accent sky blue */

  /* ⚪ Neutral / Professional */
  --white: rgb(255, 255, 255);           /* Background */
  --gray-light: rgb(245, 245, 245);      /* Section backgrounds */
  --gray-dark: rgb(33, 33, 33);          /* Text, navbar, footer */

  /* 🟠 Accent / Alerts */
  --orange: rgb(251, 140, 0);            /* Warnings, feed alerts */
  --red: rgb(229, 57, 53); 

  /* 🎨 Font Variables */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Roboto', sans-serif;

  /* 🔠 Font Sizes */
  --font-size-small: 0.9rem;   /* Small text */
  --font-size-base: 1rem;      /* Default body text */
  --font-size-medium: 1.25rem; /* Subheadings */
  --font-size-large: 2rem;     /* Main headings */
  --font-size-xlarge: 2.5rem;  /* Hero titles */
}

html {
  scroll-behavior: smooth;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  color: var(--gray-dark);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-size: 0.9375rem;
}


.page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  min-height: 100vh;
  max-width: 1400px;
}

main {
  /* so that even when the page contains little number of items everything is going to show just the way we want it with nav sticking to the top of the page*/
  min-height: 80vh;
}

h1 {
  text-transform: uppercase;
  color: var(--green-primary);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
}

.nav-bar {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: var(--green-primary);
  padding: 0.75rem 2rem;
}

.logo {
  flex: 1;
  /* align-items: ; */
}

.logo-link {
  color: var(--white);
  text-decoration: none;
}

.hamburger-menu {
  transition: all 1s ease-in;
  position: unset;
}

.hamburger-btn {
  background-color: transparent;
  /* background-color: red; */
  outline: none;
  border: none;
  border-radius: 0.3rem;
  padding: 0.7rem;
  /* z-index: 999; */
  cursor: pointer;
  /* transition: all .2s ease; */
}

.hamburger-bar {
  background-color: var(--white);
  width: 1.3rem;
  height: 0.2rem;
  border-radius: 0.3rem;
  transition: all 0.4s ease;
}

.hamburger-middle {
  margin: 0.2rem 0;
}

.nav-links-wrap {
  display: none;
  flex: 10;
  list-style: none;
  justify-content: space-around;
  align-items: center;
}

/* .each-nav-link-wrap {
  transform: translateX(3000px);
  opacity: 0;
} */

.nav-links {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  font-family: var(--font-body);
  transition: color 0.3s ease;
  position: relative;
  
  transform: translateX(3000px);
  /* opacity: 0; */
}

/* pseudo element for underlining */
.nav-links::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: var(--green-light);
  transition: width 0.3s ease;
}

.current-page,
.nav-links:hover {
  color: var(--green-light);
}

/* appear on hover */
.nav-links:hover::after {
  width: 100%;
}

/* =================== HAMBURGER MENU ============== */

body.menu-open {
  /* overflow: hidden; */
}

.menu-open {
  background-color: var(--green-primary);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 999;
}

.menu-open .nav-links,
.menu-open .hamburger-bar {
  transition: transform 1s ease, opacity 0.5s ease;
}

.menu-open .nav-links-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-evenly;
}

.menu-open .hamburger-btn {
  transition: none;
  position: fixed;
  right: 0;
  top: 0;
  padding: 1.4rem;/* not necessary, but just to position it and make it more easily clickable */
}

.menu-open .hamburger-top {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-open .hamburger-middle {
  transform: translateX(50px);
}

.menu-open .hamburger-bottom {
  transform: rotate(-45deg) translate(5px, -5px);
}


.menu-open .nav-links:nth-child(1) { transition-delay: 0.5s; }
.menu-open .nav-links:nth-child(2) { transition-delay: 0.9s; }
.menu-open .nav-links:nth-child(3) { transition-delay: 1.3s; }
.menu-open .nav-links:nth-child(4) { transition-delay: 1.7s; }
.menu-open .nav-links:nth-child(5) { transition-delay: 2.1s; }

.menu-open .nav-links {
  transform: translateX(0);
  opacity: 1;
}


.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background-color: var(--gray-light); /* soft contrast with rest of site */

}

.about-typography {
  flex: 1;
}

.about-typography h1 {
  font-family: var(--font-heading);
  font-size: var(--font-size-large);
  color: var(--green-primary);
  margin-bottom: 1rem;
}

.about-description {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--gray-dark);
  line-height: 1.6;
  max-width: 600px;
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-img img {
  max-width: 100%;
  height: auto;
  border-radius: 0.8rem;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.team {
  text-align: center;
}

.team h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-large);
  color: var(--green-primary);
  margin-bottom: 0.5rem;
}

.team-intro {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--gray-dark);
  margin-bottom: 2rem;
}

.team-members-wrap {
  display: flex;
  flex-direction: column; /* mobile first = vertical stack */
  gap: 1.5rem;
}

.team-member {
  background-color: var(--white);
  border-radius: 0.8rem;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.team-member-avatar {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background-color: var(--blue-light); /* placeholder color */
  background-size: cover;
  background-position: center;
}

.team-member h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-medium);
  margin-bottom: 0.25rem;
  color: var(--gray-dark);
}

.team-member p {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  color: var(--gray-dark);
  opacity: 0.8;
}

.team-member p:first-of-type {
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--blue-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.team-bio {
  font-size: var(--font-size-small);
  color: var(--gray-dark);
  opacity: 0.85;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.team-member-more-info {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: var(--font-size-small);
  color: var(--blue-primary);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease, text-decoration 0.3s ease;
}

.team-member-more-info:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer, .section {
  padding: 4rem 2rem;
}


.footer {
  text-align: center;
}


@media (min-width: 768px) {

  .about {
    flex-direction: row;
    /* text-align: center; */
  }

  .nav-links-wrap {
    gap: 1.5rem;
    display: flex;
  }
  
  .nav-links {
    opacity: 1;
  }

/*  */
  .about-typography h1 {
    /* font-size: var(--font-size-medium); */
  }
/*  */
  .hero-img {
    /* margin-top: 1.5rem; */
  }
  .hamburger-btn {
    display: none;
  }



  .team-members-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns, then wrap */
    gap: 2rem;
  }

}

