@import url("./main.css");

/* ------------ main page ------------------------ */
.main__Container {
  justify-content: space-between;
  padding: 15px 0;
  width: 93%;
}
.abslute__shape--box {
  position: absolute;
  top: -51px;
  left: -75px;
  width: 276px;
  height: 228px;
  border-top-left-radius: 47px;
  background-color: var(--main-background);
  transform: rotate(128deg);
  z-index: -2;
}
.abslute__shape--circle {
  position: absolute;
  top: 188px;
  left: -54px;
  height: 140px;
  width: 140px;
  border-radius: 50%;
  background-color: rgb(146, 145, 145);
  z-index: -1;
}
nav .logo {
  color: var(--main-color);
  font-size: 1.4rem;
  letter-spacing: var(--letter-space);
  font-weight: 500;
}
nav .main__links {
  align-items: center;
  width: 100%;
}
nav ul {
  gap: 35px;
  width: 80%;
}
nav li a {
  color: #333;
}
nav ul li:last-child {
  margin-left: auto;
}
nav .singUp__link {
  padding: 5px 18px;
  border: 1px solid rgb(118, 205, 240);
  border-radius: 25px;
  font-size: 14px;
  color: rgb(118, 205, 240);
  height: -webkit-max-content;
  height: -moz-max-content;
  height: max-content;
}
nav .menu__bar {
  background: none;
  border: none;
  cursor: pointer;
  margin: 20px;
  display: none;
}
nav .menu__bar span {
  display: block;
  background-color: var(--main-background);
  margin: 5px;
  width: 30px;
  height: 3px;
}

.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
  transition: all 0.7s ease;
  width: 0;
}
.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}
/* ---------- home --------- */
.home__header {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(470px, 1fr));
  gap: 30px;
  height: calc(100vh - 81px);
  align-items: center;
}
.home__header--banner h1 {
  font-size: 3.5rem;
  width: 65%;
}
.home__header--banner p {
  color: var(--main-gray);
}
.home__header--shape {
  position: absolute;
  top: -236px;
  right: -52%;
  width: 90vh;
  height: 100vw;
  border-radius: 5rem;
  background-color: var(--main-background);
  transform: rotate(41deg);
  overflow-y: hidden;
  z-index: -1;
}
/* ---------- End of home ------- */
/* ---------- features -------- */
.features {
  max-width: 600px;
  margin: auto;
}
.features__title {
  color: var(--main-gray);
}
.features__headline {
  margin: 1rem auto 2rem;
  font-size: 1.7rem;
  font-weight: 500;
}
.features__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 90px));
  gap: 20px;
  justify-content: center;
}
.features__actions--btn button {
  border-radius: 50%;
  background: #fff;
  width: 70px;
  height: 70px;
  box-shadow: 4px 4px 8px rgb(0 0 0 / 20%);
}
.features__actions--btn button:focus {
  box-shadow: 4px 4px 8px rgb(0 0 0 / 20%);
}
.features__actions--btn img {
  width: 30px;
}
.features__actions button.active {
  background: #bacdde;
}

.feature__cases {
  background-color: var(--main-background);
  border-radius: 20px;
  padding: 1.2rem 0;
  width: 77%;
  margin: auto;
}
.feature__cases--name {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.feature__cases--name .icon {
  width: 26px;
}
.feature__cases--name p {
  letter-spacing: var(--letter-space);
}
.feature__cases--btns {
  display: flex;
  justify-content: space-evenly;
}
.feature__cases--btns button {
  background-color: #fff;
  border-radius: 10px;
  padding: 7px 15px;
  box-shadow: 1px 4px 8px 1px rgb(0 0 0 / 20%);
}
.feature__cases--btns img {
  width: 30px;
}
/* ---------- End of features ------ */
.recent__cases {
  max-width: 600px;
  margin: 3rem auto;
}
.recent__cases h3 {
  color: var(--main-background);
}
.case__boxs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}
.case__boxs .card {
  background-color: #f2efef;
  border: none;
  border-radius: 15px;
  transition: var(--main-transition);
}
.case__boxs .card:hover {
  box-shadow: 1px 6px 8px rgb(0 0 0 / 20%);
}
.case__boxs .card-body button {
  background-color: var(--main-background);
  color: #fff;
}
.case__boxs .card-body .progress-bar {
  background: #bacdde !important;
}
.case__box--create img {
  width: 15px;
}
.case__box--create img[alt="people icon"] {
  width: 19px;
}
.case__box--create span {
  font-size: 14px;
  padding-left: 8px;
}
.recent__cases #exploreBtn:hover {
  background-color: var(--main-background);
}
/* ----- media query ------ */
@media (max-width: 1200px) {
  .home__header--banner h1 {
    font-size: 2.5rem;
    width: 100%;
  }
}
@media (max-width: 800px) {
  nav {
    position: fixed;
    z-index: 10;
    width: 100%;
  }
  .conatainer {
    flex-direction: column;
    width: 100%;
    padding: 0;
  }
  .logo {
    margin: 25px 0 0 33px;
  }
  .main__links {
    align-items: unset !important;
  }
  nav ul {
    flex-direction: column;
    text-align: center;
    width: 39%;
    padding-top: 20px;
    position: fixed;
    background: #131418;
    height: 100vh;
    width: 100%;
    clip-path: circle(50px at 90% -20%);
    -webkit-clip-path: circle(50px at 90% -20%);
    transition: all 1s ease-out;
    pointer-events: none;
    gap: 55px;
    padding-top: 82px;
  }
  nav ul.open {
    clip-path: circle(1000px at 90% -10%);
    -webkit-clip-path: circle(1000px at 90% -10%);
    pointer-events: all;
  }
  nav .singUp__link {
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    margin: auto;
  }
  nav .menu__bar {
    display: block;
    position: absolute;
    cursor: pointer;
    right: 5%;
    top: 10%;
    transform: translate(-5%, -50%);
    z-index: 2;
    transition: all 0.7s ease;
  }
  .main__links ul li {
    opacity: 0;
  }
  .main__links ul li:nth-child(1) {
    transition: all 0.5s ease 0.2s;
  }
  .main__links ul li:nth-child(2) {
    transition: all 0.5s ease 0.4s;
  }
  .main__links ul li:nth-child(3) {
    transition: all 0.5s ease 0.6s;
  }
  .main__links ul li:nth-child(4) {
    transition: all 0.5s ease 0.7s;
  }
  .main__links ul li:nth-child(5) {
    transition: all 0.5s ease 0.8s;
    margin-left: unset;
  }
  .main__links ul li.fadeLinks {
    opacity: 1;
  }
  .home__header {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80vw, 1fr));
    gap: 30px;
    height: calc(100vh - 81px);
    align-items: center;
  }
}
/* ------------ end of main page ---------------- */
