@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: rgb(250,250,250);
    margin: 80px 10px;
    font-family: "Poppins", sans-serif;
}
main{
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.header-text{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}
.reliable{
    font-size: 40px;
    margin-bottom: 10px;
    color: hsl(234, 12%, 34%);
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
}
.header-text h2{
    font-size: 40px;
    margin-bottom: 15px;
}
.tech{
    font-size: 20px;
    text-align: center;
    max-width: 600px;
    margin-bottom: 100px;
}
section{
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: center;
}
.first, .second, .third, .forth{
    width: 350px;
    height: 250px;
    background-color: rgb(255,255,255);
    border-radius: 10px;
    padding: 40px;  
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    border-top: 4px solid hsl(180, 62%, 55%);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.342) ;
}
.first1{
    line-height: 1.8;
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;

}
.first img, .second img, .third img, .forth img{
    width: 70px;
    height: 70px;
    margin-top: 0;
    align-self: flex-end;
}
section p{
    font-size: 15px;
    line-height: 20px;
    width: 300px;
    color: hsl(212, 6%, 44%);
    font-weight: 400;
}
.second{
    border-top:4px solid hsl(0, 78%, 62%);
}
.third{
    border-top: 4px solid hsl(34, 97%, 64%);
}
.forth{
    border-top: 4px solid hsl(212, 86%, 64%);
}
.collective{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
    /* Phones */
@media screen and (max-width: 600px) {
  main {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .reliable {
    font-size: 1.5rem; /* smaller title */
    text-align: center;
  }

  .header-text h2 {
    font-size: 1.4rem;
  }

  .tech {
    width: 90%;
    padding: 0 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 50px;
  }

  section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
  }

  .first, .second, .third, .forth {
    width: 100%;
    max-width: 320px; 
    padding: 20px;
  }

  .first img, .second img, .third img, .forth img {
    width: 40px;
    height: 40px;
  }

  section p {
    font-size: 0.85rem;
    width: 100%;
  }
}

