/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  --title-color: #fff;
  --text-color: hsl(235, 20%, 57%);
  --shape-gradient: linear-gradient(90deg, 
                    hsl(300, 76%, 60%),
                    hsl(214, 81%, 60%));
  --container-color: hsl(235, 32%, 10%);
  
  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 2.25rem;
  --normal-font-size: 1.25rem;
}

/*=============== bridge ===============*/
.bridge {
  padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
}
.bridge h2{
    color: var(--title-color);
    font-size: 4rem;
}
/*=============== CARD ===============*/
.card {
  display: grid;
  place-items: center;
  padding-block: 4.5rem;
}

.card-container {
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2rem;
  padding: 2rem;
}

.card-article {
  position: relative;
  background-color: var(--container-color);
  padding: 2.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 20px 24px hsla(235, 32%, 15%, .2);
  overflow: hidden;
  opacity: 0;

}

.card-img {
  width: 250px;
  margin-bottom: 1rem;
  animation: float-img 2.5s ease-in-out infinite;
}

.card-title {
  color: var(--title-color);
  font-size: var(--biggest-font-size);
  line-height: 100%;
  margin-bottom: 1rem;
}

.card-description {
  font-size: var(--normal-font-size);
  color: #c9c9c9;
}

.card-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.card-shapes {
  display: grid;
  justify-items: center;
  row-gap: 2.5rem;
  position: absolute;
  inset: 0;
  top: -3.5rem;
  z-index: 1;
}

.card-shape {
  display: block;
  width: 260px;
  height: 40px;
  background: var(--shape-gradient);
  border-radius: 4rem;
  transform: rotate(-24deg);
  opacity: 0;
}

.card-shape:nth-child(1) {
  animation-delay: .1s;
}

.card-shape:nth-child(2) {
  animation-delay: .2s;
}

.card-shape:nth-child(3) {
  animation-delay: .3s;
}

.card-shape:nth-child(4) {
  animation-delay: .4s;
}

.card-shape:nth-child(5) {
  animation-delay: .5s;
}

.card-shape:nth-child(6) {
  animation-delay: .6s;
}

.card-shape:nth-child(7) {
  animation-delay: .7s;
}

.card-shape:nth-child(8) {
  animation-delay: .8s;
}



/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px){
  .card-container {
    margin-inline: 1rem;
  }
  .card-article {
    padding: 1.5rem;
  }
  .card-img {
    width: 160px;
  }
  .card-title {
    font-size: 2rem;
  }
  .bridge h2{
    font-size: 2.5rem;
}
}

/* For medium devices */
@media screen and (min-width: 440px) {
  .card-container{
    grid-template-columns: 328px;
  }
}

@media screen and (min-width: 768px) {
  .card-container{
    grid-template-columns: repeat(2, 328px);
    column-gap: 2rem;
  }
}
/* For large devices */
@media screen and (min-width: 1000px) {
  .card-container{
    grid-template-columns: repeat(3, 328px);
  }
}