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

:root {
  --body-bg: hsl(217, 42%, 12%);
  --text-primary: hsl(0, 0%, 98%);
  --card-md-bg: hsl(231, 38%, 28%);
  --feature-bg: hsl(222, 44%, 16%);
  --text-secondary: hsl(228, 17%, 70%);
  --hero-bg: linear-gradient(115deg, rgba(18, 28, 44, 1) 78%, #9ce34e 102%);
}

[data-theme="light"]:root {
  --body-bg: hsl(0, 0%, 98%);
  --feature-bg: hsl(230, 69%, 95%);
  --card-md-bg: hsl(230, 75%, 98%);
  --text-primary: hsl(231, 35%, 27%);
  --text-secondary: hsl(231, 35%, 27%);
  --hero-bg: linear-gradient(115deg, #E9ECFB 20%, #fff 70%, #9ce34e 120%);
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  overflow: hidden auto;
  text-transform: capitalize;
  background: var(--body-bg);
  color: var(--text-primary);
  font: 400 1.6rem 'Poppins', sans-serif;
}

img {
  width: 100%;
}

h2 {
  margin-bottom: 0;
}

a {
  color: var(--color-white);
  text-decoration: none !important;
}

a:hover {
  color: var(--color-white);
}

p {
  margin-bottom: 0;
}

ul {
  padding-left: 0;
  list-style-type: none;
}
 ul.earn-list {
    margin-top: 0;
    margin-bottom: 12rem;
 }
/* ==========================
          header
========================== */
#header {
  top: 0;
  z-index: 1024;
  position: sticky;
  transition: all 0.3s ease;
}

#header.shadow {
  background-color: hsl(224 75% 20% / 1);
}

[data-theme="light"] #header.shadow {
  background-color: hsl(230, 69%, 95%);
}

.nav-bar {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  max-width: 16rem;
}

.nav-links {
  gap: 2rem;
  display: flex;
  font-weight: 400;
}

.nav-links a {
  font-size: 1.8rem;
  position: relative;
}

.nav-links a::before {
  left: 0;
  bottom: -6px;
  content: '';
  width: 100%;
  height: 1px;
  transform: scale(0);
  position: absolute;
  transition: all 0.4s ease;
  background-color: var(--text-primary);
}

.nav-links a:hover::before {
  transform: scale(1);
  transform-origin: center;
}

.btn-one {
  color: #fff;
  font-weight: 600;
  font-size: 1.6rem;
  border-radius: 6px;
  padding: 8px 3.4rem 1rem;
  transition: all 500ms ease;
  text-transform: capitalize;
  box-shadow: 3px 3px 1.4rem hsla(248, 71%, 27%, 0.25);
  background: linear-gradient(to right, #9de54f, #619e1e);
  background-size: 100%;
}

.btn-one.orange {
  background: linear-gradient(to right, #EC39EC, #EFA618);
  background-size: 100%;
}

.btn-one:hover {
  color: #fff;
  background-size: 150%;
}

.nav-toggler {
  width: 4rem;
  height: 4rem;
  display: none;
  cursor: pointer;
  margin-left: 2rem;
  font-size: 2.6rem;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

/* responsive menu toggler */
@media screen and (max-width: 991.9px) {
  .nav-toggler {
    display: flex;
  }

  .btn-one.sm {
    display: none;
  }
}

@media screen and (max-width: 991.9px) {
  .nav-links {
    top: 0;
    left: 0;
    width: 280px;
    padding: 4rem;
    height: 100vh;
    position: fixed;
    margin-left: -284px;
    flex-direction: column;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
    background: hsl(224deg 75% 25% / 60%);
  }

  [data-theme="light"] .nav-links {
    background: hsl(230 69% 90% / 1);
  }

  .nav-links a {
    width: max-content;
    color: var(--text-primary);
  }

  .nav-links.show {
    margin-left: 0;
  }

  .backdrop-filter {
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    position: fixed;
    background: hsl(216deg 77% 15% / 50%);
  }

  .backdrop-filter.show {
    opacity: 1;
    display: block;
  }
}

@media screen and (max-width: 375.9px) {
  .nav-links {
    max-width: 240px;
  }
}

/* ==========================
        hero section
========================== */
#hero {
  margin-top: -8rem;
  padding-top: 8rem;
  background: var(--hero-bg);
}

#hero .row {
  min-height: 90vh;
  align-items: center;
}

.hero-title {
  font-weight: 700;
  margin-bottom: 1.6rem;
  color: var(--text-primary);
  text-transform: capitalize;
  font-size: calc(2.65rem + 2vw);
}

.hero-title .bold {
  color: #9ce34e;
}

.hero-title~p {
  margin-bottom: 3rem;
  color: var(--text-secondary);
  font-size: calc(1.6rem + 0.3vw);
}

.coin-wrap {
  gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.coin-wrap .coin {
  max-width: 4rem;
}

.hero-btn-wrap {
  gap: 1.6rem;
  display: flex;
  margin-bottom: 4rem;
}

.hero-img {
  top: 2rem;
  position: relative;
  margin-left: auto;
  max-width: calc(20rem + 8vw);
}

/* responsive */
@media screen and (max-width: 991.9px) {

  .hero-title,
  .hero-title~p {
    text-align: center;
  }

  .coin-wrap,
  .hero-btn-wrap {
    justify-content: center;
  }

  .hero-btn-wrap {
    margin-bottom: 10rem;
  }

  .hero-img {
    top: 4rem;
    padding-bottom: 5rem;
    margin-right: auto;
  }
}

/* ==========================
      companies section
========================== */
#companies {
  margin: -5rem 0;
  padding: 10rem 0;
  background: url(https://banfaucet.com/assets/asiburYE/home/img/curved-bg.svg) center no-repeat;
  -webkit-clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
  clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
}

.company-wrap {
  gap: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.company-wrap .company {
  max-width: 14rem;
}

/* responsive company section */
@media all and (max-width: 474.9px) {
  #companies {
    padding: 8rem 0;
  }
}

/* ==========================
        how to earn
========================== */
#earn {
  overflow: hidden;
  padding-top: 6rem;
  position: relative;
  margin-top: 2.8rem;
}

.section-title {
  z-index: 1;
  font-weight: 600;
  text-align: center;
  margin-bottom: 6rem;
  color: var(--text-primary);
  text-transform: capitalize;
  font-size: calc(2.45rem + 0.4vw);
}

.section-title span {
  font-weight: 400;
  color: var(--text-secondary);
}

.earn-float {
  top: 50%;
  left: 50%;
  z-index: -2;
  position: absolute;
  width: calc(50rem + 10vw);
  transform: translate(-50%, -50%);
}

.earn-list li {
  gap: 1.8rem;
  display: flex;
  align-items: center;
}

.earn-list li:not(:last-child) {
  margin-bottom: 4rem;
}

.earn-list .icon {
  max-width: 10rem;
  filter: drop-shadow(0 8px 1rem hsl(174, 73%, 29%));
}

.earn-list p {
  color: var(--text-secondary);
}

/* responsive earn image */
@media all and (min-width: 992px) {
  .earn-img {
    top: -20%;
    left: -16%;
    z-index: -1;
    max-width: 50rem;
    position: relative;
  }
}

@media all and (max-width: 991.9px) {
  #earn {
    padding-bottom: 8rem;
  }

  .earn-img {
    max-width: 30rem;
    margin: 0 auto 5rem;
  }
}

@media all and (max-width: 575.9px) {
  .earn-list li {
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
  }

  .earn-list .icon {
    max-width: 8rem;
  }

  .earn-list p {
    padding-inline: 1rem;
  }
}

/* ==========================
        features
========================== */
#feature {
  padding: 10rem 0;
  overflow: hidden;
  background: var(--feature-bg);
  -webkit-clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 100%);
  clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 100%);
}

.card-md {
  gap: 2rem;
  display: flex;
  overflow: hidden;
  padding: 2rem 3rem;
  position: relative;
  margin-bottom: 2rem;
  align-items: center;
  border-radius: 1rem;
  background: var(--card-md-bg);
  transition: background 400ms ease;
}

[data-theme="light"] .card-md {
  box-shadow: 0 1rem 2rem #A4AFE1;
}

.card-md::before {
  top: 0;
  z-index: -1;
  left: -100%;
  width: 100%;
  content: '';
  height: 100%;
  position: absolute;
  border-radius: 1rem;
  transition: left 400ms ease;
  background: linear-gradient(to right, #9de54f, #619e1e);
}

.card-md:hover {
  background: transparent;
}

.card-md:hover::before {
  left: 0;
}

.card-md h2 {
  font-weight: 600;
}

.card-md .icon {
  font-size: 5rem;
}

/* responsive feature img */
@media all and (min-width: 992px) {
  #feature {
    margin-top: -10rem;
  }

  .feature-img {
      right: -22%;
      position: relative;
  }
}

@media all and (max-width: 991.9px) {
  .feature-img {
    max-width: 50rem;
    margin: 0 auto 4rem;
  }
}

@media all and (max-width: 440.9px) {
  .card-md {
    gap: 1rem;
    text-align: center;
    flex-direction: column;
  }

  .card-md .icon {
    font-size: 4rem;
  }
}

/* ==========================
        statistics
========================== */
#stat {
  display: grid;
  margin-top: -3.5rem;
  min-height: 30rem;
  place-items: center;
  background: url(https://banfaucet.com/assets/asiburYE/home/img/curved-bg.svg) center center no-repeat;
  -webkit-clip-path: polygon(0px 0px, 100% 10%, 100% 100%, 0px 90%);
  clip-path: polygon(0px 0px, 100% 10%, 100% 100%, 0px 90%);
}

.card-sm {
  gap: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(231, 35%, 27%);
}

.card-sm .icon {
  width: 6.5rem;
  height: 5.5rem;
  display: grid;
  color: #fff;
  font-size: 3rem;
  border-radius: 5px;
  place-items: center;
  background: #64a121;
}

.card-sm h2 {
  font-weight: 700;
}

.card-sm p {
  font-size: calc(1.4rem + 0.2vw);
}

/* responsive card sm */
@media all and (max-width: 767.9px) {
  #stat {
    min-height: 34rem;
  }

  .card-sm {
    max-width: 18rem;
    margin: 0 auto 2rem;
    justify-content: left;
  }
}

/* ==========================
          Footer
========================== */
#footer {
  color: #fff;
  margin-top: -4rem;
  padding: 12rem 0 6rem;
  background-color: hsl(231, 68%, 15%);
}

.section#footer::after {
  display: none;
}

.section#footer .row {
  height: max-content;
  align-items: flex-start;
}

.footer-desc {
  margin-top: 2rem;
  font-size: 1.7rem;
  padding-right: 1rem;
}

.social-link {
  gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
  align-items: center;
}

.social-link a {
  width: 4rem;
  color: #fff;
  display: grid;
  height: 3.5rem;
  border-radius: 6px;
  place-items: center;
  transition: transform 300ms ease;
  background: linear-gradient(to bottom, #9de54f, #619e1e);
  background-size: 100%;
}

.social-link a:hover {
  transform: scale(1.1);
}

.footer-list {
  padding-left: 0;
  margin-bottom: 0;
  list-style-type: none;
}

.footer-list .title {
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: capitalize;
}

.footer-list li:not(:last-child) {
  margin-bottom: 1.6rem;
}

.footer-list li a {
  font-weight: 300;
  font-size: 1.7rem;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}

.footer-list li a:hover {
  border-color: #fff;
}

/* ==========================
      theme toggler
========================== */
.theme-toggler {
  width: 8rem;
  height: 3rem;
  cursor: pointer;
  margin-top: 2rem;
  overflow: hidden;
  position: relative;
  border-radius: 99rem;
  background: hsl(231, 31%, 34%);
}

.theme-toggler .round {
  top: 0;
  right: 0;
  width: 5rem;
  height: 3rem;
  display: flex;
  position: absolute;
  align-items: center;
  border-radius: 99rem;
  justify-content: center;
  transition: all 300ms ease;
  background: linear-gradient(to bottom, #9de54f, #619e1e);
}

.theme-toggler .round img {
  max-width: 1.4rem;
}

.theme-toggler .round.active {
  right: initial;
}