@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  user-select: none;
}

::-webkit-scrollbar {
  height: 8px;
  scrollbar-width: thin;
}

::-webkit-scrollbar-thumb {
  background: #a3c6c9;
  border-left: 1px solid #e9d972;
  border-radius: 16px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e9d972;
}

::-webkit-scrollbar-track {
  background: #404164;
}

/* navbar */
nav {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-direction: row;
  background: #2d3047;
  padding: 15px 30px;
  border-bottom: 1px solid #92b7be;
  position: fixed;
  width: 100%;
  z-index: 100;
  height: 80px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

/* nav .heading {
  position: absolute;
  left: 42%;
} */

nav .heading h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

/* .star-btn {
  position: absolute;
  right: 5%;
  user-select: none;
  outline: none;
} */

.star-btn button {
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 16px;
  cursor: pointer;
  color: #fff;
  border: 1px solid #fff;
  background: linear-gradient(
    135deg,
    #16c47f 0%,
    #ffd65a 25%,
    #ff9d23 50%,
    #f93827 75%,
    #ffb22c 100%
  );
  background-size: 400%;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: colorAnimate 5s linear infinite;
}

@keyframes colorAnimate {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 400%;
  }
}

/* main */
.container {
  min-height: 100vh;
  width: 100%;
  background-color: #2d3047;
  padding: 140px 20px 60px 20px;
}

/* back to top button */
.back-to-top {
  right: 16px;
  bottom: 16px;
  position: fixed;
  /* display: none; */
}

.back-to-top button {
  padding: 10px 15px;
  border-radius: 50%;
  background-color: #2d3047;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
  user-select: none;
  outline: none;
}

.back-to-top i {
  color: #fff;
}

.back-to-top button:hover {
  background-color: #a799b7;
  transition: all 0.3s ease;
}

/* projects section */

.project-wrap {
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 54px;
  overflow-y: auto;
}

.project-box {
  width: 400px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #92b7be;
}

.project-box .image img {
  height: 200px;
  width: 100%;
}

.content-wrap {
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
}

.project-box .name h3 {
  color: #fff;
  margin-right: 48px;
  font-size: 20px;
  user-select: none;
}

.button-wrap {
  display: flex;
  flex-direction: row;
  margin-top: 10px;
}

.code-btn,
.live-btn {
  outline: none;
  user-select: none;
}

.code-btn button,
.live-btn button {
  color: #fff;
  background: transparent;
  outline: none;
  border: 1px solid #fff;
  padding: 4px 12px;
  border-radius: 12px;
  margin-right: 12px;
  font-size: 16px;
}

.code-btn button:hover,
.live-btn button:hover {
  background-color: #048a81;
  transition: all 0.3s ease;
  border: 1px solid #048a81;
}

/* footer */
footer {
  display: flex;
  justify-content: center;
  /* align-items: center; */
  flex-direction: column;
  padding: 38px 32px;
  border-top: 1px solid #92b7be;
  background-color: #2d3047;
}

.foot-wrap {
  display: flex;
  flex-direction: row;
  /* align-items: center; */
  justify-content: space-evenly;
  /* gap: 20px; */
}

footer .resources,
footer .more-links {
  display: flex;
  flex-direction: column;
}

.resources .heading,
.connect .heading h3,
.more-links h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.resources a,
.more-links a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  margin-bottom: 8px;
  outline: none;
  user-select: none;
}

.resources a:hover,
.more-links a:hover {
  color: #048a81;
  transition: all 0.2s ease;
  text-decoration: underline;
}

.icons {
  margin-top: -6px;
  outline: none;
  user-select: none;
}

.icons i {
  user-select: none;
  text-align: center;
  font-size: 20px;
  color: #fff;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  border: 2px solid #eef3db;
  line-height: 30px;
  margin: 8px 8px;
  transition: all 0.2s ease;
  outline: none;
}

.icons a:nth-child(1) i:hover {
  color: #2980b0;
  /* background: #fff; */
}

.icons a:nth-child(2) i:hover {
  color: #333;
  background: #fff;
}

.icons a:nth-child(3) i:hover {
  color: #e1306c;
  background: #fff;
}

.end-text {
  margin: 40px 0 0;
}

.end-text p {
  color: #fff;
  font-size: 16px;
  text-align: center;
}

/* responsiveness */

@media (max-width: 1200px) {
  /* navbar */

  /* nav .heading {
    left: 40%;
  } */
}

@media (max-width: 992px) {
  /* footer */
  footer {
    padding: 30px 20px;
  }

  /* .footer-wrap {
    gap:80px;
  } */

  .resources .heading h3, .connect .heading h3, .more-links h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .icons i {
    font-size: 18px;
    height: 28px;
    width: 28px;
    line-height: 26px;
  }

  .end-text p {
    font-size: 14px;
  }
}

@media (max-width: 900px) {

    /* navbar */

    /* nav .heading {
        left: 38%;
    } */

    /* project wrap */

    .project-wrap {
        gap: 40px;
    }
}

@media (max-width: 850px) {

    /* footer */

    footer {
        align-items: flex-start;
        padding: 40px 30px;
    }

    .foot-wrap {
        flex-direction: column;
    }

    .connect {
        align-items: flex-start;
    }

    .foot-wrap {
        gap: 30px;
    }

    .resources .heading h3,
    .connect .heading h3,
    .more-links h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .resources a,
    .more-links a {
        font-size: 16px;
    }

    .icons i {
        height: 40px;
        width: 40px;
        line-height: 38px;
        font-size: 17px;
    }

    .end-text p {
        font-size: 18px;
    }
}

@media (max-width: 800px) {

    /* navbar */

    nav .heading {
        left: 30px;
    }
}

@media (max-width: 550px) {

    /* navbar */

    nav {
        padding: 10px 20px;
        height: 70px;
    }

    nav .heading {
        left: 20px;
    }

    nav .heading h2 {
        font-size: 20px;
    }

    .star-btn {
        right: 20px;
    }

    .star-btn button {
        font-size: 15px;
        padding: 8px 12px;
    }

    /* container */

    .container {
        padding-top: 120px;
    }

    /* project wrap */

    .project-wrap {
        gap: 30px;
    }

    /* project-box */

    .project-box {
        width: 350px;
    }
}

@media (max-width: 490px) {

    .back-to-top {
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 450px) {

    /* container */

    .container {
        padding-top: 110px;
    }

    /* project-box */

    .project-box {
        width: 300px;
    }

    .project-box .image img {
        height: 160px;
    }
}

@media (max-width: 425px) {

    /* navbar */

    nav {
        padding: 8px 16px;
    }

    nav .heading {
        left: 16px;
    }

    nav .heading h2 {
        font-size: 18px;
    }

    .star-btn {
        right: 16px;
    }

    .star-btn span {
        display: none;
    }

    .star-btn button {
        font-size: 14px;
        padding: 6px 10px;
    }

    /* container */

    .container {
        padding-bottom: 40px;
    }

    /* footer */

    footer {
        padding: 30px 20px;
    }

    .foot-wrap {
        gap: 20px;
    }

    .resources .heading h3,
    .connect .heading h3,
    .more-links h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .resources a,
    .more-links a {
        font-size: 14px;
    }

    .icons i {
        height: 35px;
        width: 35px;
        line-height: 33px;
        font-size: 16px;
    }

    .end-text p {
        font-size: 16px;
    }
}

@media (max-width: 380px) {

    /* navbar */

    nav {
        padding: 6px 14px;
        height: 60px;
    }

    nav .heading {
        left: 14px;
    }

    nav .heading h2 {
        font-size: 16px;
    }

    .star-btn {
        right: 14px;
    }

    /* footer */

    .foot-wrap {
        gap: 15px;
    }

    .end-text {
        margin-top: 20px;
    }
}

@media (max-width: 350px) {

    /* container */

    .container {
        padding-top: 100px;
    }

    /* project-box */

    .project-box {
        width: 280px;
    }
}