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

:root {
  --primary-color: #047aed;
  --secondary-color: #1c3fa8;
  --dark-color: #002240;
  --light-color: #f4f4f4;
}

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

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

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: #333;
}

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

p {
  margin: 10, 0;
}

img {
  width: 100%;
}

/* Navbar styling */
.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;
}

/* Showcase */
.showcase {
  height: 400px;
  color: #fff;
  background-color: var(--primary-color);
  position: relative;
}
.showcase h1 {
  font-size: 40px;
}

.showcase p {
  margin: 20px 0;
}

.showcase .grid {
  overflow: visible;
  grid-template-columns: 55% auto;
  gap: 30px;
}

.showcase-form {
  position: relative;
  top: 60px;
  height: 350px;
  width: 400px;
  padding: 0 40px;
  z-index: 100;
}

.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: 0;
  left: 0;
  background: #fff;
  transform: skewY(-3deg);
  -webkit-transform: skewY(-3deg);
  -moz-transform: skewY(-3deg);
  -ms-transform: skewY(-3deg);
}

.navbar .flex {
  justify-content: space-between;
}

/* \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: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.cli .grid > *:first-child {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

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

.languages .flex {
  /* flex-wrap: wrap; */
  justify-content: center;
  margin: auto;
  padding: 30px 0;
}
.languages .card {
  text-align: center;
  margin: 0 10px;
  transition: transform 0.2s ease-in;
  width: 200px;
  height: 200px;
}

.languages .card h4 {
  font-size: 20px;
  margin: 10px;
}

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

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

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

/* Tablet and under */
@media (max-width: 768px) {
  .grid,
  .showcase .grid,
  .stats .grid,
  .cli .grid,
  .cloud .grid {
    display: block;
    /* 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;
    width: auto;
  }

  .cli .grid > *:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .navbar {
    height: 110px;
  }
  .navbar .flex {
    flex-direction: column;
  }

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

  .languages .flex {
  width: 90dvw;
    flex-wrap: wrap;
  }

  .languages .card {
    text-align: center;
    margin: 30px 10px;
    transition: transform 0.2s ease-in;
    width: 150px;
    height: 200px;
  }
}

@media screen and (max-width: 500px) {
  .languages .flex {
   flex-wrap: wrap;    
  }
  
}

@media screen and (max-width: 480px) {
    .languages .card {       
        margin: 30px 10px;        
        width: 150px;
      
      }
    
  }
