* {
  font-family: "Jost", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* for scroll smoth */
html.scroll-smooth {
  scroll-behavior: smooth;
}

/* Header Start */

nav {
  top: 0;
  width: 100%;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  box-shadow: 0 0 10px 0.5px black;
  position: fixed;
  background-color: white;
  z-index: 1000;
}

.listofNav {
  align-items: center;
  display: flex;
  gap: 40px;
}

.listofNav a {
  text-decoration: none;
  color: black;
  font-weight: 500;
}

.listofNav button {
  font-size: 13px;
  border: none;
  background-color: hsl(24, 100%, 50%);
  width: 130px;
  height: 50px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  border-radius: 5px;
}

.listofNav button:hover {
  border: 2px solid hsl(24, 100%, 50%);
  background-color: transparent;
  color: hsl(24, 100%, 50%);
}

@media (max-width: 900px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 20px 10px;
  }

  .listofNav {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    text-align: center;
  }

  .listofNav a {
    font-size: 14px;
  }

  .listofNav button {
    width: 100px;
    height: 40px;
    font-size: 12px;
  }
}

/* Main Section */
.main {
  display: flex;
  justify-content: space-around;
  gap: 50px;
  margin-top: 150px;
  margin-bottom: 100px;
}

.title {
  color: hsl(220, 2%, 31%);
  font-weight: 800;
  font-size: 70px;
}

.title span {
  color: hsl(24, 100%, 50%);
}

.text {
  align-content: center;
}

.text p {
  margin-top: 20px;
  color: hsl(220, 2%, 31%);
  font-size: 22px;
}

.text button {
  background-color: hsl(217, 21%, 16%);
  color: white;
  padding: 10px 20px;
  width: 130px;
  height: 50px;
  font-size: 15px;
  border-radius: 5px;
  font-weight: 500;
  margin-top: 30px;
  cursor: pointer;
}

.text button:hover {
  border: none;
  background-color: hsl(24, 100%, 50%);
}

.flower {
  position: relative;
  bottom: 20px;
  right: 480px;
}

@media (max-width: 900px) {
  .main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
  }

  .title {
    font-size: 2rem;
  }

  .text p {
    font-size: 1rem;
    padding: 10px;
  }

  .text button {
    width: 100px;
    height: 40px;
    font-size: 0.9rem;
  }

  .flower {
    display: none;
  }

  .hero .img {
    max-width: 70%;
    margin-inline: auto;
  }
  .img {
    width: 100%;
  }
  img {
    height: auto;
  }
}

/* Card Section */
.container {
  background-color: hsl(345, 20%, 96%);
}

.title1 {
  display: flex;
  justify-content: space-around;
  padding: 80px 30px;
}

.grid-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  width: 250px;
  height: 270px;
  background-color: white;
  align-content: center;
  padding-left: 25px;
}

.h2 {
  color: hsl(220, 2%, 31%);
  font-weight: 800;
  font-size: 70px;
}

.title1 span {
  color: hsl(24, 100%, 50%);
}

.title1 p {
  padding-top: 60px;
  font-size: 25px;
  font-weight: 100;
}

.card-title {
  color: black;
  text-decoration: none;
  padding-top: 40px;
}

.card p {
  line-height: 2;
}

.section-text {
  line-height: 2;
}

@media (max-width: 700px) {
  .h2 {
    font-size: 2rem;
  }

  .title1 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
  }

  .title1 p {
    font-size: 1rem;
    padding-top: 20px;
  }

  .grid-list {
    flex-direction: column;
    align-items: center;
  }

  .card {
    max-width: 90%;
    height: auto;
    padding: 20px;
    text-align: center;
  }

  .shape1 {
    display: none;
  }
}

/* About Section */
.container2 {
  display: flex;
  margin: 100px auto;
  gap: 100px;
  max-width: 1200px;
}

.title2 {
  color: hsl(220, 2%, 31%);
  font-size: 70px;
}

.about-content p {
  font-size: 15px;
  margin-top: 30px;
  margin-bottom: 30px;
  color: hsl(220, 2%, 31%);
  line-height: 2;
}

.title2 span {
  color: hsl(24, 100%, 50%);
}

.shape2 {
  position: absolute;
  left: 530px;
}
.btn2 {
  color: hsl(24, 100%, 50%);
  font-size: 17px;
  font-weight: 500;
  width: 180px;
  height: 50px;
  border: 2px solid hsl(24, 100%, 50%);
  background-color: white;
  border-radius: 5px;
}

.btn2:hover {
  background-color: hsl(24, 100%, 50%);
  color: white;
  cursor: pointer;
}

@media (max-width: 900px) {
  .container2 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 90vw;
    margin: 50px auto;
    padding: 20px;
  }

  .shape2 {
    display: none;
  }

  .title2 {
    font-size: 2rem;
  }

  .about-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .btn2 {
    width: 100%;
    max-width: 250px;
  }

  .about-banner .about-img {
    max-width: 90%;
  }
  .about-img {
    width: 100%;
  }
  img {
    height: auto;
  }
}

/* Project Section */
.container3 {
  width: 100%;
  background-color: hsl(345, 20%, 96%);
}

.title3 {
  margin: 100px 100px 0px 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-title {
  display: flex;
  justify-content: space-between;
  margin-top: 100px;
}

.project-title .btn-link {
  margin-top: 150px;
}

.project-list {
  margin-bottom: 100px;
}

.title3 a {
  margin-top: 20px;
  text-decoration: none;
  color: black;
  font-size: 18px;
}

.title3 h2 {
  font-size: 70px;
}

.title3 p {
  font-size: 20px;
  line-height: 2;
}

.title3 h2 span {
  color: hsl(24, 100%, 50%);
}

.part1,
.part2 {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.card-content {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  line-height: 1.8;
}

.card-content a {
  margin-top: 10px;
  color: black;
  font-size: 18px;
}

.card-content ion-icon {
  margin-top: 30px;
  display: inline-block;
  transform: rotate(300deg);
}

.project-card {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 390px;
  height: auto;
}

.project-card1 {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
}

.card-banner {
  width: 100%;
  height: auto;
  max-height: 391px;
  overflow: hidden;
  display: flex;
  position: relative;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.card-banner:hover .img-cover {
  transform: scale(1.1);
}

.h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 3px; /* Adds space for the underline */
}

.h3 a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px; /* Distance of underline from text */
  width: 0;
  height: 2px;
  background-color: black;
  transition: width 0.4s ease-in-out;
}

.h3 a:hover::after,
.h3 a:focus::after {
  width: 100%;
}

@media (max-width: 1024px) {
  .title3 h2 {
    font-size: 40px;
  }

  .title3 p {
    font-size: 16px;
  }

  .part1,
  .part2 {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .title3 h2 {
    font-size: 35px;
  }

  .title3 p {
    font-size: 16px;
  }

  .project-card {
    max-width: 100%;
  }

  .card-banner {
    max-height: 300px;
  }

  .card-content a {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .container3 {
    padding: 30px 10px;
  }

  .title3 h2 {
    font-size: 30px;
  }

  .title3 p {
    font-size: 14px;
    line-height: 1.5;
  }

  .part1,
  .part2 {
    flex-direction: column;
    gap: 10px;
  }

  .project-card {
    max-width: 100%;
  }

  .card-banner {
    max-height: 250px;
  }

  .card-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* blog Section*/

.container4 {
  width: 100%;
  padding: 100px 80px;
  background-color: white;
}

.title4 {
  display: flex;
  justify-content: space-between;
  margin: 30px;
  color: hsl(220, 2%, 31%);
}

.title4 a {
  margin-top: 70px;
  color: black;
  text-decoration: none;
  font-weight: 500;
}

.title4 h2 span {
  color: hsl(24, 100%, 50%);
}

.grid-list2 {
  display: flex;
  gap: 30px;
}

.meta-item1 {
  display: flex;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
  color: hsl(220, 2%, 31%);
}

.meta-item1 time {
  padding-left: 5px;
}

.meta-item1 p {
  padding-left: 5px;
}

.meta-item1 ion-icon {
  padding-left: 70px;
}

.card-content2 .h3 {
  color: hsl(220, 2%, 31%);
  font-size: 30px;
}

.btn-link {
  color: black;
  text-decoration: none;
  line-height: 2;
}

.img-cover1 {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.card-banner:hover .img-cover1 {
  transform: scale(1.1);
}

.blog-card .card-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: hsl(0, 0%, 100%);
  color: hsl(217, 21%, 16%);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  transition: 0.25s ease;
}

button {
  cursor: pointer;
  background: none;
  border-width: initial;
  border-style: none;
  border-color: initial;
  border-image: initial;
  font: inherit;
}

*,
::before,
::after {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
}

.blog-card .card-tag:hover {
  background-color: hsl(24, 100%, 50%);
  color: white;
}

/* Footer Section*/

.container5 {
  margin: 90px 90px 0px 90px;
  background-color: white;
}

.footer-top {
  display: flex;
  justify-content: space-around;
  border-top: 2px solid #ccc;
  padding: 100px 0px 100px 0px;
}

.social-list {
  display: flex;
  gap: 20px;
  list-style: none;
  text-decoration: none;
}

.footer-link {
  text-decoration: none;
  font-size: 18px;
  line-height: 2.5;
  color: hsl(220, 2%, 31%);
}

.footer-link:hover {
  color: hsl(24, 100%, 50%);
}

.social-link ion-icon {
  margin-top: 20px;
  color: black;
  width: 20px;
  height: 20px;
}

.footer-list {
  list-style: none;
}

.footer-list p {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 20px;
}
.footer-bottom {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 2px solid #ccc;
  color: hsl(220, 2%, 31%);
}

/* Mobile view (max-width: 768px) */
@media (max-width: 768px) {
  .container4 {
    padding: 50px 20px;
  }

  .title4 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px 0;
  }

  .title4 a {
    margin-top: 20px;
  }

  .grid-list2 {
    flex-direction: column;
    gap: 20px;
  }

  .meta-item1 {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .meta-item1 ion-icon {
    padding-left: 0;
    margin-top: 10px;
  }

  .card-content2 .h3 {
    font-size: 24px;
  }

  .img-cover1 {
    height: 200px;
  }

  .blog-card .card-tag {
    font-size: 12px;
    padding: 3px 8px;
  }

  .container5 {
    margin: 50px 20px 0 20px;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
    padding: 50px 0;
  }

  .social-list {
    justify-content: center;
  }

  .footer-bottom {
    height: auto;
    padding: 20px;
    text-align: center;
  }
}
