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

:root {
  --primary2-color: #047aed;
  --secondary2-color: #1c3fa8;
  --dark2-color: #002240;
  --light2-color: #f4f4f4;
  --primary-color: #f4e2e2;
  --secondary-color: #dfe5eb;
  --dark-color: #766d78;
  --light-color: #fdfdfd;
  --light-text-color: #fdfdfd;
  --dark-text-color: #002240;
  --success-color: #5cb85c;
  --error-color: #d9534f;
}

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

body {
  font-family: 'Lato', sans-serif;
  color: var(--dark-text-color);
  line-height: 1.6;
}

textarea {
  font-family: 'Lato', sans-serif;
  color: var(--dark-text-color);
  line-height: 1.6;
  resize: none;
  max-lines: 10;
  background-color: var(--secondary-color);
  font-weight: normal;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: var(--dark-text-color);
}
h1,
h2 {
  font-weight: 300;
  line-height: 1.2;
  margin: 10px 0;
}

p {
  margin: 10px 0;
}

img {
  width: 100%;
}

code,
pre {
  background: var(--dark-color);;
  color: var(--light-text-color);
  padding: 10px;
}

.hidden {
  visibility: hidden;
  height: 0;
}

/* Navbar */
.navbar {
  background-color: #fff;
  color: var(--dark-text-color);
  height: 120px;
}

.navbar ul {
  display: flex;  
}

.navbar a {
  color: var(--dark-text-color);
  padding: 10px;
  margin: 0 5px;
  font-size: 20px;
  font-weight: bold;
}

.navbar-footer a {
  color: var(--ligth-text-color);
  padding: 10px;
  margin: 0 5px;
  justify-content: center;
  align-items: center;

}

.navbar ul a:hover {
  border-bottom: 2px var(--dark-color) solid;  
}

.navbar-footer ul a:hover {
  border-left: 1px var(--light-color) solid;  
}

.primary-icon{
  height: 80px;
}
.navbar .flex {
  justify-content: space-between;
}

/* Showcase */
.showcase {
  height: 400px;
  background-color: var(--primary-color); 
  color: var(--dark-text-color);
  position: relative;
}

.showcase h1 {
  font-size: 40px;
}

.showcase-form h2 {
  font-weight:bold;
}

.showcase p {
  margin: 20px 0;
}

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

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

.showcase-form {
  position: relative;
  top: 60px;
  height: 450px;
  width: 500px;
  padding: 20px;
  z-index: 100;
  justify-self: flex-end;
  animation: slideInFromRight 1s ease-in;
}

.showcase-form .form-info{
  margin: 0;    
  column-count:2;  
} 

.showcase-form .form-text{
  margin: 20px 0;
  border: 1px solid var(--secondary-color);
  width: 100%;    
  height: 100px;
} 

/*.showcase-form .form-control {  
  margin: 10px 0;
}*/

.showcase-form input[type='text'],
.showcase-form input[type='email'],
.showcase-form input[type='phone'],
.showcase-form input[type='tel'],
.showcase-form input[type='number'],
.showcase-form input[type='date'] {
  border: 0;
  border-bottom: 1px solid var(--dark-color);
  height: 40px;
  width: 100%;
  padding: 3px;  
  font-size: 16px;
  background-color: var(--secondary-color);
  font-weight: normal;
}

.showcase-form input[type=number]::-webkit-inner-spin-button, 
.showcase-form input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

.showcase-form input:focus,
.showcase-form .form-text{
  outline: none;
}

.showcase::before,
.showcase::after {
  content: '';
  position: absolute;
  height: 60px;
  bottom: -60px;
  right: 0;
  left: 0;
  background: var(--primary-color);
  transform: skewY(-3deg);
  -webkit-transform: skewY(-3deg);
  -moz-transform: skewY(-3deg);
  -ms-transform: skewY(-3deg);  
  transform-origin: left bottom;
}

/* Stats */
.stats {
  padding-top: 100px;
  animation: slideInFromBottom 1s ease-in;
}

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

.stats h3 {
  font-size: 35px;
  width: 100%;
  /*font-family: 'Oooh Baby', cursive;  
  font-family: 'Dancing Script', cursive;*/
}

.stats .grid h3 {
  font-size: 35px;
}

.stats .grid p {
  font-size: 20px;
  /*font-weight: bold;*/
}

.stats .small-img img{
  width: 100px;
}

/* Cli */
.cli .grid {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  text-align: center;  
}


/* 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);
}

/* About */
.about-head img,
.services-head img {
  width: 200px;
  justify-self: flex-end;
}

.about-sub-head img {  
  max-width: 300px;
  justify-self: flex-end;
}

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

.about-main .grid {
  padding: 30px;  
}

/*
.about-main .grid > *:first-child {
  grid-column: 1 / span 3;
}

.about-main .grid > *:nth-child(2) {
  grid-column: 1 / span 2;
}
*/

/* Services */
.services-main h3 {
  margin: 20px 0;
}

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

.services-main nav li {
  font-size: 17px;
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px var(--dark-color) solid;
}

.services-main a:hover {
  font-weight: bold;
}

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

.fa-github:hover {
  color: #000000;
}

.fa-facebook:hover {
  color: #1773EA;
}

.fa-instagram:hover {
  color: #B32E87;
}

.fa-twitter:hover {
  color: #1C9CEA;
}

/* 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: translateX(0);
  }
}

@keyframes slideInFromBottom {
  0% {
    transform: translateY(100%);
  }

  100% {
    transform: translateX(0);
  }
}
@media (max-width: 1000px){

  .showcase-form{
    width: 340px;
  }
}

/* Tablets and under */
@media (max-width: 768px) {
  .grid,
  .showcase .grid,
  .stats .grid,
  .cli .grid,
  .cloud .grid,
  .about-main .grid,
  .services-main .grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .showcase {
    height: auto;
  }

  .showcase-text {
    text-align: center;
    margin-top: 40px;
    animation: slideInFromTop 1s ease-in;
  }

  .showcase-form {
    justify-self: center;
    margin: auto;
    animation: slideInFromBottom 1s ease-in;
  }

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

  .about-head,
  .about-sub-head,
  .services-head {
    text-align: center;
  }

  .about-head img,
  .about-sub-head img,
  .services-head img {
    justify-self: center;
  }

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

  .footer-logo {
    justify-self: center;
  }

  .footer p {
    text-align: center;
  }

  .grid-1 img{
    width: 100%;
  }

  .showcase p{
    margin-top: 0;    
  }  

  .showcase-text {
    margin-bottom: 0;
  }
}

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

  .navbar .flex {
    flex-direction: column;
  }

  .navbar ul {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.1);
  }
  
  .showcase-form {
    width: 300px;    
  }

  .showcase p{
    margin-top: 0;    
  }  

  .showcase-text {
    margin-bottom: 0;
  }
}
