* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
}

/* main nav */
.main-nav {
  margin: 1rem;
  margin-top: 4rem;
}

.hamburger-box {
  position: fixed;
  right: 3rem;
  top: 4.5rem;
}

.main-nav ul {
  width: 20rem;
  height: 4rem;
  padding: 0;
  margin: 0;
  background: #fff;
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #000;
}

/* mobile nav */
.hamburger {
  display: none;
}

.mobile-nav {
  display: none;
  position: absolute;
  left: 0;
  width: 13rem;
  height: 70vh;
  z-index: 5;
  background: #fff;
}

.mobile-nav a {
  text-decoration: none;
  list-style: none;
  color: #000;
  font-family: inherit;
}

.mobile-nav ul {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.mobile-nav li {
  font-size: 1.3rem;
  margin: 1rem 0;
}

/* header */
.main-header {
  display: flex;
  background: #44c184;
  height: 70vh;
}

.main-header-left {
  background: #44c184;
  height: 70vh;
  width: 40%;
}

.main-header-left::after {
  background: #44c184;
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 100%;
  height: 70vh;
  transform-origin: 100% 0;
  transform: skew(10deg);
  z-index: 1;
}

.main-header-left-container {
  height: 70vh;
  width: 40%;
  padding: 4rem;
  position: absolute;
  z-index: 2;
  color: white;
}

.main-header-left-container h1 {
  margin-top: 8rem;
  font-family: "Source sans pro", sans-serif;
}

.main-header-left-container-text {
  color: black;
}

.main-header-right {
  height: 70vh;
  width: 60%;
  background: #44c184 url(../images/background_header.jpg) no-repeat left;
  background-size: cover;
  display: flex;
  justify-content: flex-end;
}

.header-call-to-action {
  font-size: 1.2rem;
  background: #fff;
  border: 4px solid #000;
  border-radius: 1.5625rem;
  cursor: pointer;
  font-weight: 600;
  margin-top: 2em;
  padding: 0.5rem 1.5rem;
  position: absolute;
  text-transform: uppercase;
  transition: margin 0.3s;
  z-index: 3;
}

.header-call-to-action:hover {
  margin-top: 1.5em;
  transition: margin 0.3s;
}

/* Bar CSS */

.bar {
  background-color: #30343f;
  padding: 1rem;
}

.bar-container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.bar-item {
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bar-item img {
  height: 2.5rem;
  margin-right: 1rem;
  width: 2.5rem;
}

/* pricing container */

.pricing-item-container {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  padding-bottom: 1rem;
}

.pricing-container {
  text-align: center;
}

.pricing-container h2 {
  margin: 2rem 0 0;
}

.pricing-container hr {
  background-color: #30343f;
  height: 3px;
  margin: 1em auto;
  width: 3.125rem;
}

.pricing-item {
  box-shadow: 2px 2px 20px 1px rgba(0, 0, 0, 0.2);
  margin: 1em auto;
  transition: transform 0.5s;
  width: 30%;
}

.pricing-item:hover {
  transform: scale(1.05);
  transition: transform 0.5s;
}

.pricing-item h3,
.pricing-item p,
.pricing-item button {
  padding: 0.5rem;
}

.pricing-item h3 {
  margin: 0;
  background-color: #30343f;
  color: #fff;
}

.pricing-item:nth-child(2) h3 {
  background-color: #44c184;
  border: 4px solid #44c184;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.pricing-item:nth-child(2) {
  height: 60%;
}

.pricing-item p {
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-item button {
  background: none;
  border: 1px solid#44c184;
  border-radius: 5px;
  color: #44c184;
  cursor: pointer;
  margin: 1rem 0;
  transition: background-color 0.3s, color 0.3s;
  width: 80%;
}

.pricing-item button:hover {
  background-color: #44c184;
  color: #fff;
  transition: background-color 0.3s, color 0.3s;
}

/* Animations */
.fade-in {
  animation: fade-in;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  opacity: 0;
}

.fade-in-left {
  animation-name: fade-in-left;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  opacity: 0;
}

.bounce {
  animation-name: bounce;
  animation-duration: 1s;
}

.short-animation {
  animation-duration: 500ms;
}

.delay-1 {
  animation-delay: 400ms;
}

.delay-2 {
  animation-delay: 800ms;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translate3d(-100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes bounce {
  from,
  20%,
  53%,
  80%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -30px, 0);
  }
  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

/* footer */
.main-footer {
  background-color: #30343f;
  padding: 4em 1em;
  text-align: center;
}

.main-footer-items-container {
  display: flex;
}

.main-footer h2,
.main-footer h3 {
  font-family: "Source sans pro", sans-serif;
  font-weight: bold;
  color: #fff;
}

.main-footer hr {
  background-color: #44c184;
  border: none;
  height: 3px;
  margin: 1em auto;
  width: 3.125rem;
}

.main-footer p {
  color: #aaa;
}

.main-footer a {
  color: #44c184;
  transition: margin-left 0.5s;
  text-decoration: none;
}

.main-footer a:hover {
  margin-left: 0.625rem;
  transition: margin-left 0.5s;
}

.main-footer-item {
  margin: 2em 0;
  padding: 1em;
  transition: background-color 1s;
}

.main-footer-item:hover {
  background-color: #292c36;
  transition: background-color 1s;
}

.main-footer-item h3 {
  margin: 0.5em 0;
}

.main-footer-item i {
  color: #44c184;
  margin-left: 5px;
}

.footer-end-top {
  display: flex;
  justify-content: space-around;
}

.footer-end-top i {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0.2rem;
}

.footer-end-top a {
  text-decoration: none;
}

.footer-phone-number {
  margin-right: auto;
}

.footer-end hr {
  background-color: #aaa;
  width: 100%;
}

/* Mobile Devices media queries */
@media (max-width: 750px) {
  .hamburger {
    display: block;
  }
  .main-header-left-container {
    width: 60vw;
    padding: 1rem;
    font-size: 0.75rem;
  }

  .bar-container {
    flex-direction: column;
  }

  .header-call-to-action {
    font-size: 0.9rem;
  }

  .main-nav {
    display: none;
  }

  .main-header-left-container img {
    margin-top: 3rem;
    width: 7rem;
  }

  .bar-item {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-left: 4rem;
    align-items: center;
  }

  .pricing-item-container {
    flex-direction: column;
  }

  .pricing-item {
    width: 90%;
  }

  .main-footer-items-container {
    flex-direction: column;
  }
}
