:root {
  --home-color: hsl(219, 30%, 18%);
  --main-color: hsl(218, 28%, 13%);
  --paragraphe-size: 14px;
  --white-color: white;
  --paragraphe-color: #ddd;
  --testimonials-color: hsl(219, 30%, 18%);
  --footer-color: hsl(216, 53%, 9%);
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Open Sans", sans-serif;
  background-color: var(--home-color);
}
header,
nav {
  font-family: "Raleway", sans-serif;
}
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
h2,
h3,
h4,
h6 {
  color: var(--white-color);
}
p {
  color: var(--paragraphe-color);
  size: var(--paragraphe-size);
}
img {
  max-width: 100%;
  max-height: 100%;
}
a {
  text-decoration: none;
}
ul,
li {
  list-style: none;
}
.padding-section {
  padding-top: 50px;
  padding-bottom: 50px;
}
/*  =====  Container =======*/
.container {
  padding-left: 10px; /*=> hna madirech padding:0px 15px ~~>psq dert 0px llbottom w top w nta lazem matt7adedhomch w tkhaliham hakdek  */
  padding-right: 10px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
/* ..... small ... */
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
/* ...... medium .... */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
/* ...... Large .... */
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}
/* header */
header {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 20px;
}
header .container {
  display: flex;
  align-items: center;
}
header .container .logo {
  width: 130px;
}

header .container nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
header .container nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
}
header .container nav ul li {
  margin-left: 20px;
  padding: 5px;
}
@media (max-width: 667px) {
  header .container .logo {
    width: 70px;
  }
  header .container nav ul li {
    margin-left: 0px;
    padding: 2px 4px;
  }
}
header nav,
header a {
  color: var(--paragraphe-color);
  font-weight: normal;
}
header a:hover {
  color: var(--white-color);
  text-decoration: underline;
}

/* get-started section */
.get-started {
  position: relative;
  height: 450px;
  margin-bottom: 50px;
  max-width: 100%;
}
.get-started::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: -68px;
  left: 0px;
  z-index: -1;
  background-image: url('../images/bg-curvy-desktop.svg');
  background-size: cover;
}
@media (max-width: 371px) {
  .get-started::before {
    height: 136px;
    top: -50px;
    left: 10px;
    background-image: url('../images/bg-curvy-mobile.svg');
  }
  .get-started::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 76px;
    z-index: -2;
    background-color: var(--main-color);
  }
  .intro {
    padding-bottom: 0;
  }
}
.get-started h2 {
  font-size: 40px;
  max-width: 100%;
  margin: auto;
  width: calc(100% - 400px);
  margin-bottom: 25px;
}
.get-started p {
  width: calc(100% - 400px);
  margin: auto;
  max-width: 100%;
  margin-bottom: 50px;
}
@media (max-width: 991px) {
  .get-started h2 {
    width: 100%;
    font-size: 30px;
  }
  .get-started p {
    min-width: 100%;
  }
}
.get-started .container a {
  background-color: rgb(65, 178, 210);
  border-radius: 30px;
  color: var(--white-color);
  padding: 18px 100px;
  font-weight: bold;
}
.get-started .container a:hover {
  background-color: rgb(140, 218, 228);
}
/* boxes section */
.boxes-info {
  background-color: var(--main-color);
}

@media (min-width: 667px) {
  .boxes-info .boxes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    row-gap: 25px;
  }
  .boxes-info .boxes-container .box {
    width: calc(100% - 106px);
  }
}
@media (min-width: 992px) {
  .boxes-info .boxes-container {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }
}
.boxes-info .boxes-container .box {
  margin: 0px auto;
}
.boxes-info .boxes-container .box img {
  margin-top: 30px;
  margin-bottom: 30px;
  height: 80px;
}
.boxes-info .boxes-container .box h3 {
  margin-bottom: 20px;
}
.boxes-info .boxes-container .box p {
  line-height: 1.8;
}
/* Stay-productive Section */
.stay-productive {
  background-color: var(--main-color);
}
.stay-productive .container {
  text-align: start;
}
.stay-productive .informations-container {
  display: flex;
  flex-wrap: wrap;
}
.stay-productive .image-info {
  margin-bottom: 15px;
  flex-basis: 50%;
}
.stay-productive .text-info {
  flex-basis: 45%;
  line-height: 1.6;
  max-width: 100%;
  margin-left: 15px;
}

.stay-productive h2 {
  margin-bottom: 30px;
  max-width: 100%;
  margin-top: 90px;
}
.stay-productive .text-info .fylo-works {
  position: relative;
  display: block;
  margin-top: 20px;
  color: rgb(140, 218, 228);
}
.stay-productive .text-info .fylo-works:hover {
  color: var(--white-color);
}
.stay-productive .text-info .fylo-works:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 160px;
  height: 1px;
  background-color: rgb(140, 218, 228);
}
.stay-productive .text-info .fylo-works:hover::before {
  background-color: var(--white-color);
}
.stay-productive .text-info .fylo-works:hover .arrow-img {
  -webkit-filter: saturate(0%) brightness(121%);
  -moz-filter: saturate(0%) brightness(121%);
  -o-filter: saturate(0%) brightness(121%);
  -ms-filter: saturate(0%) brightness(121%);
  filter: saturate(0%) brightness(121%);
}
@media (max-width: 667px) {
  .stay-productive .image-info {
    flex-basis: 100%;
  }
  .stay-productive .text-info {
    flex-basis: 100%;
  }
}
/* card Boxes */
.card-boxes {
  background-color: var(--main-color);
  padding-top: 90px;
}
.card-boxes .container {
  text-align: start;
}

.card-boxes .boxes-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px 20px;
  position: relative;
}

.card-boxes .boxes-container .box {
  background-color: var(--testimonials-color);
  padding: 30px 10px 30px 25px;
  z-index: 2;
  max-width: 92%;
  -webkit-box-shadow: 5px 3px 3px 4px #38333336;
  box-shadow: 5px 3px 3px 4px #38333336;
}

.card-boxes .container .quote-image {
  position: absolute;
  top: -33px;
  left: 8px;
}
.card-boxes .boxes-container .box p {
  line-height: 1.7;
}
.card-boxes .boxes-container .box .men-profile {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
}
.card-boxes .boxes-container .box .men-profile img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 12px;
}
.card-boxes .boxes-container .box .men-profile .profile-text {
  display: flex;
  flex-direction: column;
}
.card-boxes .boxes-container .box .men-profile span {
  font-size: 7px;
  color: var(--paragraphe-color);
  margin-top: 5px;
}
/* get-acces section */
.get-access {
  position: relative;
  background-color: var(--main-color);
  height: 200px;
}
.get-access .access-space {
  transform: translateX(-50%);
  left: 50%;
  top: 111px;
  position: absolute;
  max-width: 90%;
  padding: 40px 60px 30px;
  background-color: var(--testimonials-color);
  border-radius: 6px;
  -webkit-box-shadow: 4px 8px 14px 4px rgb(0 0 0 / 33%);
  box-shadow: 4px 8px 14px 4px rgb(0 0 0 / 33%);
}
.get-access .access-space .text {
  width: calc(100% - 10px);
  max-width: 100%;
  margin: auto;
}
.get-access .access-space .text h2 {
  margin-bottom: 10px;
}
.get-access .access-space .text p {
  color: var(--paragraphe-color);
  max-width: 100%;
  max-height: 100%;
}
.get-access .access-space form {
  position: relative;
  margin: auto;
  margin-top: 27px;
  width: 700px;
  max-width: 100%;
  max-height: 100%;
}
.get-access .access-space form input {
  border-radius: 60px;
  height: 47px;
}
.get-access .access-space form input[type="email"] {
  padding: 6px 20px;
  width: calc(100% - 210px);
  font-size: 16px;
  margin-right: 30px;
  border: 1px solid var(--white-color);
}
.get-access .access-space form input[type="submit"] {
  width: 170px;
  color: var(--white-color);
  background: rgb(65, 178, 210);
  border: 1px solid rgb(65, 178, 210);
  padding: 10px 10px;
  font-size: 16px;
  cursor: pointer;
}
.get-access .access-space form .message-text {
  position: absolute;
  color: red;
  font-size: 11px;
  bottom:calc(100% - 66px);
  left: 43px;
  display: none;
}

.get-access .access-space form input[type="submit"]:hover {
  background: rgb(140, 218, 228);
  border: 1px solid rgb(140, 218, 228);
}
.get-access .access-space form   input[type="submit"]:hover + .message-text {
  display: flex;
}
.get-access .access-space form input[type="email"]:focus {
  outline: none;
}
@media (max-width: 667px) {
  .get-access .access-space {
    padding-left: 14px;
    padding-right: 14px;
  }
  .get-access .access-space form input[type="submit"] {
    width: 100%;
    margin-top: 25px;

  }
  .get-access .access-space form input[type="email"] {
    width: 100%;
  }
  .get-access .access-space form {
    padding-right: 30px;
    padding-left: 30px;
  }
}
/* Footer Section */
footer {
  background-color: var(--footer-color);
  padding-top: 300px;
  padding-bottom: 50px;
}
footer .box-container {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
footer .box-container .logo-adresse {
  max-width: 100%;
  margin-bottom: 20px;
}
footer .box-container .logo-adresse .adresse {
  margin-top: 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
footer .box-container .logo-adresse .adresse .adresse-img {
  height: 25px;
  margin-right: 16px;
}

footer .contact-info .phone-numbre,
footer .contact-info .email {
  display: flex;
  flex-direction: row;
  margin-bottom: 21px;
}
footer .contact-info img {
  height: 20px;
  margin-right: 25px;
  margin-left: 25px;
}

footer .box-container .list-one li,
footer .box-container .list-two li {
  margin-bottom: 20px;
}
footer .box-container .list-one a,
footer .box-container .list-two a {
  color: var(--paragraphe-color);
}
footer .box-container .icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
footer .box-container .icons i {
  width: 33px;
  margin-right: 11px;
  display: flex;
  height: 33px;
  justify-content: center;
  align-items: center;
  color: var(--paragraphe-color);
  border-radius: 50%;
  border: 1px solid var(--paragraphe-color);
}
footer .box-container .icons i:hover {
  cursor: pointer;
  color: rgb(65, 178, 210);
  border: 1px solid rgb(65, 178, 210);
}
@media (max-width: 347px) {
  footer .box-container .logo-adresse {
    margin-top: 75px;
  }
}
@media (max-width: 667px) {
  footer {
    padding-top: 350px;
  }
  footer .container {
    text-align: start;
  }
  footer .box-container {
    padding-left: 10px;
  }
  footer .box-container .logo-adresse {
    margin-bottom: 30px;
  }
  footer .box-container .icons {
    margin-top: 20px;
  }
  footer .box-container .contact-info {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  footer .box-container .contact-info img {
    margin-left: 0;
  }
  footer .box-container .list-one {
    margin-top: 15px;
  }
  footer .box-container .list-two {
    margin-top: 30px;
  }
}
footer .container p {
  text-align: center;
}
footer .container p a  {
  color: rgb(65, 178, 210);
}
