:root {
  /* ### Primary */

  --Blue-950: hsl(233, 26%, 24%);
  --Green-500: hsl(136, 64%, 51%);
  --Cyan-400: hsl(192, 69%, 51%);

  /* ### Neutral */

  --Gray-600: hsl(233, 8%, 62%);
  --Gray-100: hsl(220, 16%, 96%);
  --Gray-50: hsl(0, 0%, 98%);
  --White: hsl(0, 100%, 100%);
  --gradient: linear-gradient(
    5deg,
    rgba(42, 123, 155, 1) 5%,
    rgba(87, 199, 133, 1) 50%
  );
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-family: "public sans";
}
nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 80px;
  box-shadow: 0px 7px 7px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 999;
  background-color: var(--White);
}
nav ul {
  display: flex;
  padding: 0;
  list-style: none;
  color: var(--Gray-600);
  gap: 2rem;
}
nav ul li {
  cursor: pointer;
  transition: 0.1s ease;
}
nav ul li:hover {
  border-bottom: 2px solid var(--Green-500);
}
.btn {
  border: none;
  background: #2a7b9b;
  background: var(--gradient);
  padding: 13px 20px;
  max-width: 170px;
  width: 100%;
  border-radius: 20px;
  color: var(--White);
  font-weight: 700;
  transition: 0.4s ease-in-out;
  cursor: pointer;
}
.btn:active {
  opacity: 0.7;
}

.heroSec {
  display: flex;
  background: url("images/bg-intro-desktop.svg");
  background-position: right -170px top;
  background-size: 900px;
  background-repeat: no-repeat;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}
.heroTxt {
  padding: 80px;
  z-index: 1;
  max-width: 600px;
}
.heroTxt h1 {
  width: 90%;
  font-size: 3rem;
  font-weight: 400;
}
.heroTxt p {
  color: var(--Gray-600);
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 30px;
}
.bigImg img {
  position: absolute;
  top: 0;
  right: -100px;
}
.p {
  color: var(--Gray-600);
  line-height: 1.5;
  font-weight: 600;
}

/* section 2 why we use  */
.reasons {
  padding: 100px 80px;
  background-color: var(--Gray-100);
}
.reasons h1 {
  font-weight: 500;
}
.reasons p {
  max-width: 600px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  overflow: hidden;
}
.cards div {
  min-height: 400px;
  background: var(--White);
  padding: 20px;
  border-radius: 20px;
}
.cards div p {
  line-height: 1.9;
}
/* articles section */
.articles {
  padding: 80px;
}
h1 {
  color: var(--Blue-950);
}
h2 {
  color: var(--Blue-950);
}
.articles h1 {
  font-weight: 500;
}
.articles .cards div img {
  object-fit: cover;
  width: 100%;
}
.articles h2 {
  font-size: 1.1rem;
  font-weight: 300;
  cursor: pointer;
}
.articles h2:hover {
  color: var(--Green-500);
}
.articles h5 {
  color: var(--Gray-600);
}
.articles p {
  font-size: 0.9rem;
}
/* footer */
footer {
  background-color: var(--Blue-950);
  height: 100%;
  display: flex;
  align-items: center;
  padding: 50px 80px;
  justify-content: space-between;
}
footer ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  color: var(--White);
}
footer li {
  margin-bottom: 10px;
  padding-top: 10px;
}
.icons {
  display: flex;
  gap: 1rem;
  margin-top: 20px;
}
.Hmenu,
.Cmenu {
  border: none;
  background-color: transparent;
  display: none;
}
.attribution span {
  color: var(--Gray-600);
}
.attribution a {
  color: var(--Green-500);
}
@media (max-width: 780px) {
  nav ul {
    flex-direction: column;
    position: absolute;
    background-color: var(--White);
    top: 65px;
    right: 5px;
    padding: 30px 60px;
    display: none;
    transition: 0.5s ease;
  }
  nav .btn {
    display: none;
  }
  main {
    overflow: hidden;
  }
  .heroSec {
    flex-direction: column-reverse;
    overflow: hidden;
  }
  .heroSec img {
    position: relative;
  }
  .Hmenu {
    display: block;
  }
  .hidden {
    display: none;
  }
  footer {
    flex-direction: column;
  }
  footer ul {
    grid-template-columns: 1fr;
  }
}
