:root {
  --main-color: #12022F;
  --light-gray: #F8FAFC;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}

nav {
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: absolute;
  z-index: 100;
}

nav img#logo {
  width: 100px;
}

nav ul {
  display: flex;
}

nav ul li {
  list-style: none;
  padding: 5px 20px;
  cursor: pointer;
}

nav ul li:hover {
  color: rgba(255, 255, 255, 0.7);
}

#home {
  position: relative;
  width: 100%;
  height: 850px;
  background-color: var(--main-color);
  color: #fff;
  border-bottom-left-radius: 200px;
  overflow: hidden;
}

#home div#main-box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  margin-left: 10%;
  z-index: 50;
}

#home div#main-box h1 {
  font-size: 70px;
  line-height: 1;
  margin-bottom: 15px;
}

#home div#main-box h2 {
  font-size: 18px;
  font-weight: 400;
  max-width: 800px;
}

#home img#main-img {
  position: absolute;
  right: 0px;
  bottom: 0px;
  max-width: 60%;
  height: 88%;
  object-fit: cover;
  z-index: 10;
  border-top-left-radius: 80px;
}

#home img#shapes {
  position: absolute;
  left: -200px;
  bottom: 0px;
  height: 110%;
  object-fit: cover;
  z-index: 1;
  opacity: .5;
}

@media (max-width: 1000px)
{
  #home {
    height: 600px;
    border-bottom-left-radius: 150px;
  }
  #home div#main-box {
    margin-left: 5%;
    margin-right: 5%;
  }
  #home div#main-box h1 {
    font-size: 50px;
    text-align: center;
  }
  #home div#main-box h2 {
    text-align: center;
  }
  img#main-img {
    display: none;
  }
}

@media (max-width: 840px)
{
  #home {
    border-bottom-left-radius: 100px;
  }
  #home div#main-box h1 {
    font-size: 40px;
    text-align: center;
  }
  #home div#main-box h2 {
    font-size: 16px;
  }
}

@media (max-width: 680px)
{
  #home div#main-box h1 {
    font-size: 30px;
    text-align: center;
  }
  #home div#main-box h2 {
    font-size: 14px;
  }
}

/* ------ section 2 ------ */

#solutions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8% 12%;
  background-color: var(--light-gray);
}

#solutions #header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 0px 20px 50px 20px;
}

#solutions #header button {
  width: 140px;
  padding: 15px;
  border-radius: 5px;
  border: none;
  color: #fff;
  background-color: var(--main-color);
  margin-left: 16px;
}

#solutions h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

#solutions h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0px;
}

#solutions div#cards {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#solutions a.card {
  max-width: 360px;
  padding: 40px;
  border: solid 1px #e9e9e9;
  border-radius: 30px;
  background-color: #fff;
  margin: 20px;
}

#solutions a.card:hover {
  cursor: pointer;
  box-shadow: 0px 0px 64px 0px rgba(0, 0, 0, 0.1);
}

#solutions a.card h5 {
  font-size: 24px;
  margin-bottom: 10px;
}

#solutions a.card p {
  font-size: 16px;
}

#solutions div.circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: solid 1px #e9e9e9;
}

#solutions div.circle img {
  width: 30px;
  height: 30px;
}

@media (max-width: 1400px)
{
  #solutions {
    padding: 6% 6%;
  }
  #solutions h1 {
    font-size: 30px;
  }
}

@media (max-width: 1100px)
{
  #solutions #header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #solutions #header button {
    width: 200px;
    margin-top: 32px;
  }
  #solutions h1 {
    text-align: center;
  }
  
  #solutions h2 {
    text-align: center;
  }
  #solutions div#cards {
    flex-direction: column;
  }
  #solutions a.card {
    max-width: 100%;
  }
  #solutions h2 {
    font-size: 14px;
  }
}

/* ------ section 3 ------ */

#cases {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8% 12%;
  background-color: #FFF;
  position: relative;
  z-index: 100;
}

#cases h1 {
  font-size: 40px;
  margin-bottom: 6px;
  text-align: center;
}

#cases h2 {
  font-size: 18px;
  font-weight: 400;
  text-align: center;
}

#cases button {
  width: 140px;
  padding: 15px;
  border-radius: 5px;
  border: none;
  color: #fff;
  background-color: var(--main-color);
  margin: 24px 0px;
}

#cases div#cards {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#cases .case-card {
  max-width: 300px;
  padding: 20px;
  border: solid 1px #e9e9e9;
  border-radius: 30px;
  background-color: #fff;
  margin: 20px;
}

#cases .case-card .card-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

#cases .case-card .card-header img {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  margin-right: 16px;
}

#cases .case-card .card-header h5 {
  font-size: 15px;
  margin: 0px;
  font-weight: 600;
}

#cases .case-card .card-header h6 {
  font-size: 15px;
  margin: 0px;
  font-weight: 500;
  color: #9c9c9c;
}

#cases .case-card .card-header p {
  font-size: 15px;
  margin: 0px;
  font-weight: 500;
  color: #868686;
}

@media (max-width: 1400px)
{
  #cases {
    padding: 6% 6%;
  }
  #cases h1 {
    font-size: 30px;
    line-height: 1;
  }
}

@media (max-width: 1100px)
{
  #cases div#cards {
    flex-direction: column;
  }
  #cases .case-card {
    max-width: 100%;
  }
}

/* ------ section 4 ------ */

footer {
  background-color: var(--light-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4% 6%;
}

footer h1 {
  font-size: 40px;
  line-height: 1;
  text-align: center;
  margin-bottom: 50px;
}

footer #map-and-form {
  display: flex;
}

footer #map-and-form iframe {
  width: 500px;
  height: 450px;
  margin: 0px 10px;
}

footer #map-and-form form {
  margin: 0px 10px;
  padding: 20px;
  border-radius: 20px;
  background-color: #FFF;
  box-shadow: 0px 0px 32px -15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  width: 400px;
}

footer #map-and-form form input {
  border: solid 1px #b8b8b8;
  border-radius: 8px;
  width: 100%;
  height: 40px;
  padding: 10px;
  box-sizing: border-box;
  margin-bottom: 20px;
}

footer #map-and-form form textarea {
  border: solid 1px #b8b8b8;
  border-radius: 8px;
  width: 100%;
  height: 220px;
  padding: 10px;
  box-sizing: border-box;
  margin-bottom: 20px;
}

footer #map-and-form form button {
  width: 100%;
  padding: 15px;
  border-radius: 5px;
  border: none;
  color: #fff;
  background-color: var(--main-color);
}

footer div#contacts {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

footer .contact-card {
  width: 200px;
  padding: 20px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #FFF;
  margin: 10px;
  box-shadow: 0px 0px 32px -15px rgba(0, 0, 0, 0.1);
}

footer .contact-card .circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--main-color);
}

footer .contact-card p {
  text-align: center;
  font-size: 15px;
}

@media (max-width: 1140px)
{
  footer h1 {
    font-size: 30px;
    line-height: 1;
  }
  footer #map-and-form iframe {
    width: 300px;
  }
  footer #map-and-form form {
    width: 300px;
  }
}

@media (max-width: 910px)
{
  footer #map-and-form {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }
  footer #map-and-form iframe {
    width: 400px;
  }
  footer #map-and-form form {
    width: 400px;
    margin-bottom: 20px;
  }
}

@media (max-width: 550px)
{
  footer #map-and-form iframe {
    width: 300px;
  }
  footer #map-and-form form {
    width: 300px;
  }
}

@media (max-width: 410px)
{
  footer #map-and-form iframe {
    width: 250px;
  }
  footer #map-and-form form {
    width: 250px;
  }
}

