@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap");

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Ubuntu", sans-serif;
}
html {
  scroll-behavior: smooth;
  /* background-color: #F1F5F9; */
}
a {
  text-decoration: none;
  color: inherit;
}

li {
  list-style: none;
}
.container {
  width: 89%;
  margin: auto;
  max-width: 1044px;
}

ion-icon {
  background-color: rgb(5, 73, 5);
  padding: 7px;
  font-size: 20px;
  color: white;
  border-radius: 50px;
  margin-bottom: 10px;
}
/* NAV STYLING */

nav {
  background-color: #feefde;
  padding: 20px 0;
  transition: all 0.3s ease-in-out;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-self: center;
}

.navbar h1 {
  font-size: 30px;
  font-weight: 700;
}
.navbar span {
  color: rgb(5, 73, 5);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-menu li {
  font-weight: 500;
}
.navbar-button {
  background-color: rgb(5, 73, 5);
  padding: 7px 10px;
  border-radius: 5px;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.navbar-button:hover {
  background-color: rgba(5, 73, 5, 0.697);
}

.bar {
  background-color: rgb(5, 73, 5);
  display: block;
  width: 23px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
}
.hamburger {
  display: none;
}
.sticky-nav {
  position: fixed;
  top:0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: white;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transition: 0.3s all ease-in-out;
}

.no-scroll {
  overflow: hidden;
}

.nav-menu li.active{
  border-bottom: 2px solid rgb(5, 73, 5);

}


/* MEDIA QUERIES */

@media only screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 4.4rem;
    right: 0;
    background-color: #feefde;
    width: 100%;
    height: 100%;
    flex-direction: column;
    padding: 6rem 0;
    z-index: 10;
    transition: all 0.3s;
    gap: 5rem;
    left: -100%;
  }

  .nav-menu.active {
    left: 0;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
