/* **************** Header *************** */
.home-header {
  height: 400px;
  background-color: var(--primary-color);
  color: #fff;
  position: relative;
}

.home-header .grid {
  overflow: visible;
  grid-template-columns: 62% auto;
  gap: 20px;
}

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

.home-header-text h1 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.6;
}

.home-header-text p {
  margin: 40px 0;
  font-style: italic;
}

.home-header-image {
  position: relative;
  top: 60px;
  height: 370px;
  width: 400px;
  padding: 10px 10px 0px 10px;
  z-index: 100;
  justify-self: flex-end;
  animation: slideInFromRight 1s ease-in;
}
div.home-header-image {
    display: flex;
    align-items: center;
    justify-content: center }
div.home-header-image p {
    margin: 0 }


.home-header::before,
.home-header::after {
  content: "";
  position: absolute;
  height: 100px;
  bottom: -70px;
  right: 0;
  left: 0;
  background: #fff;
  /* background-image: url("../images/background-rombos.png"); */
  transform: skewY(-3deg);
  -webkit-transform: skewY(-3deg);
  -moz-transform: skewY(-3deg);
  -ms-transform: skewY(-3deg);
}
/* **************** Header *************** */

/* **************** Intro *************** */
.intro {
  margin: 1.5rem 0;
  padding-top: 50px;
  /* animation: slideInFromBottom 1s ease-in; */
}

.intro .grid {
  padding: 30px;
}

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

.intro h4 {
  line-height: 1.3em;
}

.intro p {
  font-size: 16px;
  color: #002240;
  font-weight: 300;
}

.intro .fas {
  color: var(--dark-color);
  margin-right: 20px;
}

.intro a:hover {
  text-decoration: underline;
}
/* **************** Intro *************** */

/* **************** Description *************** */
/* .description h2 {
  font-size: 2rem;
  text-align: center;
  margin: 1.5rem 0;
} */

.description p {
  text-align: justify;
  text-indent: 60px;
}

.description .flex {
  align-items: stretch;
}

.description .card {
  margin: 18px 10px 40px;
  transition: transform 0.2s ease-in;
}

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

.description .card h4 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.description .card p {
  text-indent: 0px;
  text-align: center;
}
/* **************** Description *************** */

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

/* **************** RESPONSIVE *************** */
/* Resizing header */
@media (max-width: 1055px) {
  .home-header .grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 0px;
  }

  .home-header {
    height: auto;
  }

  .home-header-text {
    text-align: center;
    margin-top: 10px;
    animation: slideInFromTop 1s ease-in;
  }

  .home-header-text p {
    margin-bottom: 0px;
  }

  .home-header-image {
    justify-self: center;
    margin: auto;
    animation: slideInFromBottom 1s ease-in;
  }
}

/* Tablets and under */
@media (max-width: 768px) {
  .intro .grid,
  .description-header .grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

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

  .description {
    padding: 10px;
  }

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

  .description p {
    text-indent: 20px;
  }
}

/* Mobile */
@media (max-width: 500px) {
  .home-header .container {
    padding: 10px;
  }

  .home-header-image {
    width: auto;
    height: inherit;
  }
}
/* **************** RESPONSIVE *************** */
