/* Importing Google Fonts for Roboto Slab and Raleway */
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:100,300,400,700');
@import url('https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i');

/* Resetting box model for all elements */
*{
  box-sizing: border-box;
}

/* Styling for the body and html elements */
body, html {
  font-family: 'Roboto Slab', serif;
  margin: 0;
  width: 100%;
  height: 100%;
  padding: 0;
}

/* Styling for the container of the cards */
.cards-container {
  display: flex;
  display: -webkit-flex;
  -webkit-justify-content: center;
  -webkit-align-items: center;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 50px;
  margin-bottom: 50px;
}

/* Styling for the title of the projects section */
.projects-title {
  display:flex;
  width: 100%;
  padding: 10px;
  justify-content: center; /* Center the content horizontally */
  align-items: center; /* Center the content vertically */
}

/* Styling for the grid layout of the cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  grid-gap: 20px; /* Adjust the gap based on your design */
  width: 100%;
  max-width: 95vw;
}


/* Styling for the common properties of card images */
.card__img {
  visibility: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 235px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Styling for the hover state of card images */
.card__img--hover {
  transition: 0.2s all ease-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  position: absolute;
  height: 235px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  top: 0;
}

/* Styling for the common properties of cards */
.card {
  margin-right: 25px;
  transition: all .4s cubic-bezier(0.175, 0.885, 0, 1);
  background-color: #fff;
  width: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 13px 10px -7px rgba(0, 0, 0,0.1);
}

/* Styling for the hover state of cards */
.card:hover {
  box-shadow: 0px 30px 18px -8px rgba(0, 0, 0,0.1);
  transform: scale(1, 1);
}

/* Styling for the information section of the card */
.card__info {
  z-index: 2;
  background-color: #fff;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 16px 24px 24px 24px;
}

/* Styling for the category of the card */
.card__category {
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: 500;
  color: #868686;
}

/* Styling for the title of the card */
.card__title {
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 16px;
  font-family: 'Roboto Slab', serif;
}

/* Styling for the web link in the card */
.card__web_link {
  font-size: 16px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  text-decoration: none;
  color: #AD7D52;
}

/* Styling for the hover effect on card images */
.card:hover .card__img--hover {
  height: 100%;
  opacity: 0.3;
}

/* Styling for the hover state of the card information section */
.card:hover .card__info {
  background-color: transparent;
  position: relative;
}

/* Styling for the media query for screens up to 768px */
@media only screen and (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 80%; /* Adjust the width for mobile */
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
  }
   
  .card:hover {
    box-shadow: 0px 30px 18px -8px rgba(0, 0, 0,0.1);
    transform: scale(0.99, 0.99);
  }

  /* Adjusting height for mobile view */
  .card__img,
  .card__img--hover {
    height: 200px;
  }

  /* Removing border radius for mobile view */
  .card__info {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}
