@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap");

:root {
  --primary_color: #047aed;
  --secondry_color: #1c3fa8;
  --dark_color: #002240;
  --light_color: #f4f4f4;
  --success-color: #5cb85c;
  --error-color: #d9534f;
}

* {
  box-sizing: border-box;
  padding: 0px;
  margin: 0px;
}

body {
  font-family: "lato", sans-serif;
  color: #333;
  line-height: 1.6;
}

ul {
  list-style-type: none;
}
a {
  text-decoration: none;
  color: #333;
}

h1,
h2 {
  margin: 10px 0px;
  font-weight: 300;
  line-height: 1.2;
}

p {
  margin: 10px 0;
}

img {
  width: 100%;
}

pre,
code {
  background-color: #333;
  color: #fff;
  padding: 10px;
}
/* Navbar */
.navbar {
  background-color: var(--primary_color);
  color: #fff;
  height: 70px;
}
.navbar ul {
  display: flex;
}

.navbar a {
  color: #fff;
  padding: 10px;
  margin: 0 5px;
}

.navbar a:hover {
  border-bottom: 2px solid #fff;
}
.navbar .flex {
  justify-content: space-between;
}
/* Showcase */
.showcase {
  height: 400px;
  background-color: var(--primary_color);
  color: #fff;
  position: relative;
}
.showcase h1 {
  font-size: 40px;
}
.showcase p {
  margin: 20px 0;
}
.showcase .grid {
  grid-template-columns: 55% 45%;
  gap: 30px;
  overflow: visible;
}

.showcase_form {
  position: relative;
  top: 60px;
  height: 350px;
  width: 400px;
  padding: 40px;
  z-index: 100;
  justify-self: flex-end;
  animation: slideInFromRight 1s ease-in;
}

.showcase_text {
  animation: slideInFromLeft 1s ease-in;
}

.showcase_form .form_control {
  margin: 30px 0;
}

.showcase_form input[type="text"],
.showcase_form input[type="email"] {
  border: 0;
  border-bottom: 1px solid #b4becb;
  width: 100%;
  padding: 3px;
  font-size: 16px;
}

.showcase_form input:focus {
  outline: none;
}

.showcase::before,
.showcase::after {
  content: "";
  position: absolute;
  height: 100px;
  bottom: -70px;
  right: 0px;
  left: 0px;
  background-color: #fff;
  transform: skewY(-3deg);
  -webkit-transform: skewY(-3deg);
  -moz-transform: skewY(-3deg);
  -ms-transform: skewY(-3deg);
}
/* Stats */
.stats {
  padding-top: 100px;
}

.stats_heading {
  max-width: 500px;
  margin: auto;
}

.stats .grid h3 {
  font-size: 35px;
}
.stats .grid p {
  font-size: 20px;
  font-weight: bold;
}

/* Cli */

.cli .grid {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.cli .grid img {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}
.cli .cli_card_1,
.cli .cli_card_2 {
  transition: transform 0.2s ease-out;
}
.cli .cli_card_1:hover,
.cli .cli_card_2:hover {
  transform: scale(1.02);
}

/* Cloud */
.cloud .grid {
  grid-template-columns: 4fr 3fr;
}

/* Languages */

.languages .flex {
  flex-wrap: wrap;
}

.languages .card {
  text-align: center;
  margin: 18px 10px 40px;
  transition: transform 0.2s ease-in;
}
.languages .card h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.languages .card:hover {
  transform: translateY(-15px);
}

/* Footer */
.footer .social a {
  margin: 0 10px;
}

.footer nav li {
  margin: 10px 0;
}

/* Features */
.features_head img {
  width: 200px;
  justify-self: flex-end;
}

.features_sub_head img {
  width: 300px;
  justify-self: flex-end;
}

.features_main .card > i {
  margin-right: 20px;
}

.features_main .grid {
  padding: 30px;
}

.features_main .grid > *:first-child {
  grid-column: 1 / span 3;
}
.features_main .grid > *:nth-child(2) {
  grid-column: 1 / span 2;
  grid-row: 2;
}

/* Docs */
.docs_head img {
  width: 200px;
  justify-self: flex-end;
}
.docs_main nav a {
  color: #333;
}

.docs_main h3 {
  margin: 20px 0px;
}

.docs_main .grid {
  grid-template-columns: 1fr 2fr;
  align-items: flex-start;
}

.docs_main nav li {
  font-size: 17;
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px #ccc solid;
}

.docs_main nav a:hover {
  font-weight: bold;
}

/* Animations */

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes slideInFromBottom {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}

/* Tablets And Under */
@media (max-width: 768px) {
  .grid,
  .showcase .grid,
  .stats .grid,
  .cloud .grid,
  .cli .grid,
  .features_main .grid,
  .docs_main .grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .showcase {
    height: auto;
  }
  .showcase_text {
    text-align: center;
    margin-top: 40px;
  }
  .showcase_form {
    justify-self: center;
    margin: auto;
  }
  .cli .grid img {
    grid-column: 1;
    grid-row: 1;
  }

  .features_main .grid > *:first-child,
  .features_main .grid > *:nth-child(2) {
    grid-column: 1;
  }
}

.features_head,
.features_sub_head,
.docs_head {
  text-align: center;
}
.features_head img,
.features_sub_head img,
.docs_head img {
  justify-self: center;
}

/* Mobile */
@media (max-width: 500px) {
  .navbar {
    height: 110px;
  }

  .navbar .flex {
    flex-direction: column;
  }
  .navbar ul {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.1);
  }

  .showcase_form {
    width: 300px;
  }
}
