@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

.sub-heading {
  font-size: 25px;
  font-weight: 600;
  margin: 0rem 16rem;
  /* margin: 0; */
  /* background-color: palegoldenrod; */
}

.projects-separator {
  width: 40%;
  display: flex;
  margin: 2rem auto;
}

.card1 {
  margin: 2rem 8rem;
  /* margin: 2rem 0; */
  display: flex;
}

.project-thumbnial {
  width: 500px;
  height: 301px;
  border-radius: 1rem;
  margin-right: 3rem;
  -webkit-box-shadow: 3px 5px 16px 5px rgba(0, 0, 0, 0.24);
  box-shadow: 3px 5px 16px 5px rgba(0, 0, 0, 0.24);
  object-fit: cover;
}

.number {
  font-family: "Raleway", system-ui;
  font-size: 38px;
  font-weight: 500;
  display: inline-block;
  color: var(--secondary-color);
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 1px;
}

.project-details > h2 {
  margin: 0;
  font-weight: 500;
  font-size: 32px;
  color: var(--black-primary);
}

.project-details-list > li {
  display: block;
}

.project-details-list {
  padding-inline-start: 0;
  margin: 0.7rem 0 1.5rem 0;
}

.project-bullets {
  margin-right: 10px;
  color: var(--secondary-color);
}

.btns {
  display: flex;
}

.btn-live {
  display: flex;
  align-items: center;
  margin-right: 16px;
  border: 2px solid #e85832;
  color: #e85832;
}

.live {
  height: 12px;
  width: 12px;
  border-radius: 100%;
  background: #e85832;
  margin-right: 10px;
}

.github {
  margin-left: 8px;
}

.sub-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-top: 12px;
}

/* tada */
/* tadaaaaaaaaaa */
/* tadaaaaaaaaaaaaaaaaaaaaaaa */

@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-weight: 400;
  font-style: normal;
}

section {
  a {
    display: inline-block;
    text-decoration: none;
  }

  .container {
    margin: 3rem auto 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 82%;

    .card-minor {
      width: 365px;
      margin-bottom: 2rem;

      .card-inner .box .icon .iconBox {
        background: var(--secondary-color);
      }

      ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.625rem;

        li {
          background: var(--clr-tag);
          color: #282828;
          font-weight: 600;
          font-size: 0.8rem;
          padding: 0.375rem 0.625rem;
          border-radius: 0.188rem;
        }

        .tag {
          background-color: rgba(90, 163, 197, 0.183);
          color: rgb(16, 122, 171);
        }

        .branding {
          color: darken(#d3b19a, 40%);
        }
      }

      .content {
        padding: 0.938rem 0.625rem;

        div {
          display: flex;
          align-items: center;
          h3 {
            text-transform: capitalize;
            margin-right: 0.5rem;
          }
          .project_icons {
            color: var(--secondary-color);
            font-size: 1.2rem;
          }
        }

        p {
          margin: 0.625rem 0 1.25rem;
          color: #565656;
        }
      }
    }

    .card-inner {
      position: relative;
      width: inherit;
      /* height: 18.75rem; */
      height: 15rem;
      background: var(--clr);
      border-radius: 1.25rem;
      border-bottom-right-radius: 0;
      overflow: hidden;

      .box {
        width: 100%;
        height: 100%;
        background: #fff;
        border-radius: 1.25rem;
        overflow: hidden;

        .imgBox {
          position: absolute;
          inset: 0;

          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }

        .icon {
          position: absolute;
          bottom: -0.375rem;
          right: -0.375rem;
          width: 6rem;
          height: 6rem;
          background: var(--clr);
          border-top-left-radius: 50%;

          &:hover .iconBox {
            transform: scale(1.1);
          }

          &::before {
            position: absolute;
            content: "";
            bottom: 0.375rem;
            left: -1.25rem;
            background: transparent;
            width: 1.25rem;
            height: 1.25rem;
            border-bottom-right-radius: 1.25rem;
            box-shadow: 0.313rem 0.313rem 0 0.313rem #fff;
          }

          &::after {
            position: absolute;
            content: "";
            top: -1.25rem;
            right: 0.375rem;
            background: transparent;
            width: 1.25rem;
            height: 1.25rem;
            border-bottom-right-radius: 1.25rem;
            box-shadow: 0.313rem 0.313rem 0 0.313rem var(--clr);
          }

          .iconBox {
            position: absolute;
            inset: 0.625rem;
            background: #282828;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: 0.3s;

            span {
              color: #fff;
              font-size: 1.5rem;
            }
          }
        }
      }
    }
  }
}

.freelance-projects .imgBox {
  position: relative;
  overflow: hidden;
}

.freelance-projects .imgBox::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}

@media only screen and (max-width: 770px) {
  .sub-heading {
    font-size: 22px;
    margin: 0rem 1.2rem;
  }

  .projects-separator {
    width: 90%;
    margin: -3rem 1rem 2rem 1rem;
  }

  .card1 {
    margin: 2rem 0;
    flex-direction: column;
  }

  .project-thumbnial {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    margin-right: 0;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
      rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
  }

  .number {
    font-size: 32px;
  }

  .project-details {
    margin-top: 2rem;
  }

  .project-details > h2 {
    margin: 0;
    font-size: 26px;
  }

  .btn-live {
    border: 1px solid #e85832;
  }

  section {
    .container {
      margin: 3rem 0 0 0;
      width: 100%;

      .card-minor {
        width: 100%;
        margin-bottom: 2rem;
      }
    }
  }
}

@media only screen and (min-width: 1600px) {
  .sub-heading {
    /* margin: 0rem 27rem; */
  }
}
