@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    /* Colors  */
    /* background color  */
    --primary-color: #6AC600;

    --box-1: #0019FF;
    --box-2: #9747FF;
    --box-3: #00B5B5;

    --circle-first: linear-gradient(hsla(88, 100%, 39%, 1)
    hsla(88, 100%, 87%, 1));

    --circle-sec: linear-gradient(hsla(25, 86%, 62%, 1)
    hsla(0, 0%, 100%, 1));

    --background-award: rgba(215, 219, 255, 0.5);
    --background-edge: rgba(250, 255, 194, 0.5);
    --background-support: rgba(197, 234, 255, 0.5);
    --background-scalable: rgba(3, 80, 10, 0.5);

    /* Text color  */
    --h1-text-color: #1e1e1e;
    --h2-text-color: #4f4f4f;
    --text-white-color: #ffffff;

    /* SECTION SPACING  */
    --section-spacing: 101px;

    /* Typograpghy */
    --font-family-poppins: "Poppins", sans-serif;


    /* Font-weight  */
    --f-w: 700;
    --par-f-w: 400;
    --btn-f-w: 500;

     /* FONT SIZE  */
    --h1-font-size: 48px;
    --h2-f-s: 40px;
    --p-f-s: 20px;
    --btn-f-s: 24px
} 

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li {
    list-style: none;
    color: #000000;
}

a,img,span,button{display: block;}

a{
    text-decoration: none;
    color: #000000;
}

img{height: none;}

html {
    scroll-behavior: smooth;
    font-family: var(--font-family-poppins);
    font-size: 10px;
}

button {
    border: none;
    background-color: transparent;
    cursor: pointer;
    color: white;
    font-weight: var(--btn-f-w);
    transition: .300s;
}

.button {
    height: 48px;
    width: 154px;
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 6px;
    line-height: 24px;
}


body {
    background-color: rgba(255, 255, 255, 1);
    color: #4F4F4F;
    line-height: 28px;
    line-height: 1.8;
}

body.nav-active {overflow: hidden;}


    /* RESUABLE COMPONENT  */
.container{padding-inline: 24px}
.section {padding-block-end: var(--section-spacing);}
.title{font-weight: var(--f-w);}

    /* HEADER  */

.header {
    position: absolute;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-block: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 4;
    transition: box-shadow 0.3s, border-bottom 0.3s, backdrop-filter 0.3s;
}

.scrolled{
    backdrop-filter: blur(10px);
    box-shadow: 0px 4px 2px -2px rgba(10, 10, 10, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center; 
}

header .logo img {
    width: 160px;
}

.nav-open-btn {
    color:#000000;
    font-size: 3rem;
}

span #menu-icon{ display: none;}

.nav-open-btn.active .menu-icon,
.nav-open-btn .close-icon { display: none;}

.nav-open-btn .menu-icon,
.nav-open-btn.active .close-icon { display: block;}

.navbar{
    position: absolute;
    top: 90%;
    right: 16px;
    background-color: rgba(255, 255, 255, 0.8);
    background-color: white;
    color: #000000;
    box-shadow: 0 0px 8px rgba(0, 0, 0, 0.3);
    padding:16px 30px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: 500ms ;
    z-index: 1;
}


/* ALERT SUCCESS MESSAGE  */

.alert-success{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #f0f0f0;
    margin-top: 30px;
}


.success{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    color: #000000;
    box-shadow: 0 0px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    text-align: center;
    min-width: 450px;
    height: 50%;
    align-items: center;
    margin-inline: auto;
    padding: 30px;
    justify-content: center;
    display: none;
}
.alert{
    display: block;
    opacity: 1000;
}

.success .check {
    color: white;
    background-color: #6AC600;
    width: 80px;
    height: 80px;
    font-size: 60px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -40px;
    left: 45%;
    position: absolute;
    margin-inline: auto;
    text-align: center;
}

@media screen and (max-width: 900px) {
    .success .check {
        left: 40%;
    }
}
@media screen and (max-width: 600px) {
    .success .check {
        left: 36%;
    }
}
.success h2 {
    font-size: 20px;
    margin-block: 20px;
}
.success p {
    font-size: 14px;
}
.success .back-btn {
    color: black;
    padding: 5px;
    background-color: #6AC600;
    font-size: 20px;
    margin-block-start: 20px;
    cursor: pointer;
}



.navbar.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-15px);
}
ul > li:not(:last-child) {margin-block-end: 10px;}

.navbar-link {
    font-weight: 600;
    font-size: medium;
}
.nav-link .active-color {
    color: var(--primary-color);
    background-color: #6AC600;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    /* width: 100%; */
    -webkit-border-radius: 4px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}
.nav-link .active-color:hover{
    color: #000000;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
}

.overlay.active {
    pointer-events: all;
}

    /* HERO SSECTION  */


.hero-content{
    position: relative;
    order: 3;
    text-align: center;
}
.circle {
    position: absolute;
    width: 80px;
    left: 240px;
    top: -4px;
}


.hero-title {
    color: var(--h1-text-color);
    line-height: 30px;
    font-size: var(--p-f-s);
    align-items: center;
}

.hero-text {
    font-weight: 400;
    font-size: 10px;
    line-height: 20px;
    margin-top: 20px;
    align-items: center;
}

.btn {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    text-align: center;
    align-items: center;
}

.primary-btn {
    background-color: var(--primary-color);
}

.primary-btn:is(:hover, :focus-visible) {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.secondary-btn {
    color: #000000;
    border: 1px solid var(--h2-text-color);
}

.w-100 {
    width: 100%;
}

.hero {
    padding-block-start: 130px;
}

.hero .container {
    display: grid;
    gap: 30px;
}

.shape {
    display: none;
}

        /* How its works */

.center {
    text-align: center;
}

.work-discount {
    display: grid;
    width: 100%;
    margin-inline: auto;
}

.work-text {
    margin-block: 40px;
}

.works-bottom-container {
    text-align: center;
    margin-inline: auto;
}

.work-box {
    width: 262px;
    border-radius: 10px;
    height: 152px;
    padding: 16px 24px;
    gap: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-white-color);
    justify-content: center;
    transition: .300s;
}

.work-box:hover{
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
}

.work-box span {
    font-weight: var(--btn-f-w);
    font-size: var(--p-f-s);
    line-height: 30px;
    align-items: center;
}

.work-box h1{
    font-weight: 800;;
    font-size: 56px;
    line-height: 30px;
    align-items: center;
}
.work-box p {
    font-weight: var(--btn-f-w);
    font-size: 16px;
    line-height: 17px;
    align-items: center;
}

.earn {
    background-color: var(--box-1);
}

.enjoy {
    background-color: var(--box-2);
    margin-block: 24px;
}
.continue {
    background-color: var(--box-3);
}


    /* PRODUCT SECTION   */

.bg-color {
    background-color: #F2904C;
    padding: 40px 0px;
    color: var(--text-white-color);
}

.product-display {
    width: 70%;
    margin-inline: auto;
}

.product-display .heading {
    margin-bottom: 24px;
    font-weight: 600;
    font-size: var(--p-f-s);
    line-height: 30px;
    align-items: center;
    text-align: center;
}

.grid-list {
    display: grid;
    gap: 24px;
    text-align: center;
    justify-content: center;
}

.products .product {
    background-color: var(--text-white-color);
    color: #41463C;
    max-width: 222px;
    border-radius: 12px;
    overflow: hidden;
}

.product img {
    width: 100%;
    border-radius: 12px;
    height: 148px;
}

.product-content{
    padding: 10px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

hr{
    width: 37px;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin-block: 4px;
}

.product-content p {
    font-size: 8px;
    font-weight: var(--par-f-w);
    line-height: 13px;
}



    /* REWARD SECTION  */
.reward-center {
    width: 100%;
    display: grid;
    margin-inline: auto;
}

.reward-left-container .center-btn {
    width: 100%;
}

.reward-left-container {
    margin-block-start: 76px;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 30px;
}

.reward-left-container h2 {
    font-weight: var(--f-w);
    font-size: 20px;
    line-height: 30px;
    align-items: center;
}

.reward-left-container p {
    font-weight: var(--par-f-w);
    font-size: 10px;
    line-height: 20px;
}

.right-container {
    margin-block-start: 32px;
    display: grid;
    justify-content: center;
    margin-inline: auto;
}

.right-container > .grid-container:not(:last-child) {margin-block-end: 24px;}

.right-container .grid-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    width: 271px;
    padding-inline: 20px;
    height: 181px;
    border-radius: 20px;
    border: 1px solid #BBBBBB;
    color: #4F4F4F;
    text-align: center;
}

.grid-container img {
    width: 48px;
    height: 48px;
}

.grid-container .h3 {
    font-weight: var(--f-w);
    font-size: 16px;
}

.grid-container .reward-center p{
    font-weight: var(--par-f-w);
    font-size: 10px;
}

.reward-1 {
    background-color: rgba(215, 219, 255, 0.42);
}

.reward-2 {
    background-color: 
    rgba(197, 234, 255, 0.5);
}
.reward-3 {
    background-color: 
    rgba(250, 255, 194, 0.5);
}
.reward-4 {
    background-color: rgba(211, 255, 215, 0.5);
}

/* SIGHUP SECTION  */

.sign-up {
    background-color: var(--primary-color);
    padding: 16px 60px;
    width: 80%;
    height: 238px;
    text-align: center;
    display: grid;
    gap: 24px;
    margin-inline: auto;
    border-radius: 10px;
}


.sign-up h3 {
    color: var(--text-white-color);
    font-weight: 600px;
    font-size: 16px;
    line-height: 30px;
}

.third-btn {
    background-color: #F2904C;
    width: 100%;
    font-size: 20px;
    font-weight: 500;
}
.third-btn:hover {
    background-color: transparent;
    color: var(--text-white-color);
    border: 2px solid var(--text-white-color);
}

    /* USERS INFORMATION */

.mobile-form-container {
    width: 90%;
    margin-inline: auto;
}
label {
    font-weight: 400;
    font-size: 16px;
    color: var(--h2-text-color);
}
input {
    margin-block-end: 16px;
}
input, select {
    width: 100%;
    margin-block-start: 10px;
    padding: 8px;
    height: 64px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 300;
    border:  1px solid rgba(195, 195, 195, 1);
    color:rgb(97, 94, 94);
    outline: none;
}

input::placeholder{
    color: rgb(189, 184, 184);
}

input:hover {
    border: 1px solid var(--primary-color);
}

select option {
    color: rgb(97, 94, 94);
    padding: 60px;
}
input:is(:hover, :focus-visible) {
    border: 1px solid var(--primary-color);
    outline: none;
}

.submit-btn {
    width: 100%;
    text-transform: capitalize;
    font-weight: 500;
    font-size: 20px;
    margin-block-start: 40px;
}

    /* FOOTER SECTION  */
footer {
    background: linear-gradient(90.04deg, #6AC600 -6.72%, #F2904C 99.97%);
    padding: 24px 32px;
    text-align: center;
    display: grid;
}

.copyright {
    /* width: 65%; */
    order: 3;
    font-size: 14px;
    font-weight: 400;
    margin-inline: auto;
    color: hsla(0, 0%, 0%, 1);
}

.social-icons {
    text-align: center;
    display: flex;
    gap: 25px;
    margin-block: 16px;
    justify-content: center;
    order: 2;
}
.footer-link {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    order: 1;
    text-transform: capitalize;
    font-size: 10px;
    font-weight: 600;
    color: hsla(0, 0%, 31%, 1);
}


/* DESKTOP SIZE  */

@media screen and (min-width: 900px) {
    .navbar,
    .navbar.active{
        all: unset;
        margin-inline-start: 80px;
    }
    .nav-open-btn, .overlay {display: none;}

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 40px;
        margin-block: 0px;
    }
    ul > li:not(:last-child) {margin-block-end: 0px;}

    .navbar-link a{
        color: var(--h1-text-color);
        font-size: 20px;
        font-weight: 600;
        transition: .300s;
    }
    .navbar-link a:is(:hover, :focus-visible) {
    color: var(--primary-color);
    }

    .container{padding-inline: 100px}

    .hero .container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    .hero-img {
        order: 2;
    }

    .hero-content {
        order: 1;
        text-align: start;
    }

    .title {
        font-size: 48px;
        font-weight: 700;
        line-height: 72px;
    }
    .hero-text {
        font-weight: 600;
        font-size: 16px;
        line-height: 29px;
        margin-block: 36px;
    }

    .btn {
        display: flex;
        gap: 48px;
    }

    .button {
        font-size: 24px;
        padding: 10px 30px;
        justify-content: center;
        align-items: center;
        font-weight: 500;
        width: 190px;
    }
    .circle {
        position: absolute;
        width: 200px;
        left: 295px;
        top: -8px;
    }

    .work-title {
        font-size: 40px;
    }
    .work-text {
        font-size: 20px;
        font-weight: 400;
        line-height: 28px;
        width: 650px;;
        margin-inline: auto;
    }

    .works-bottom-container {
        display: flex;
        gap: 48px;
        justify-content: center;
        align-items: center;
    }
    .bg-color {
        padding-block: 70px;
    }

    .product-display .heading {
        font-weight: 600;
        font-size: 24px;
        line-height: 36px;
        width: 700px;
        margin-inline: auto;
    }
    .products {
        display: flex;
        gap: 40px;
    }
    .product-display {
        width: 90%;
    }
    hr {
        display: none;
    }
    .product-display h3 {
        font-weight: 600;
        font-size: 16px;
        
    }
    .product-content {
        align-items: start;
        text-align: start;
    }
    .product-content p {
        font-size: 10px;
    }

    .reward-center {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-block: 60px;
    }

    .right-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .reward-left-container {
        text-align: start;
        margin-top: 25px; 
    }
    .reward-left-container .center-btn {
        width: 244px;
    }
    .reward-left-container h2 {
        font-weight: var(--f-w);
        font-size: 32px;
        line-height: 48px;
    }
    .reward-left-container p {
        font-weight: var(--par-f-w);
        font-size: 20px;
        line-height: 30px;
    }

    .right-container .grid-container {
        display: flex;
        flex-direction: row;
        width: 394px;
        height: 143px;
        text-align: start;
    }

    .bio-infos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
    
    .sign-up  {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .sign-up h3 {
        text-align: start;
        font-size: 24px;
        line-height: 44px;
    }
    .third-btn {
        width: 250px;
    }

    footer {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
        justify-content: space-between;
        padding-inline: 50px;
        gap: 60px;
    }
    .copyright {
        order: 1;
    }
    
    .order-link {
        order: 3;
    }
    .social-icons{
        order: 2;
    }
}
@media screen and (min-width: 320px) {
    .circle {
        position: absolute;
        width: 80px;
        left: 190px;
        top: -4px;
    }

    header .logo img {
        width: 110px;
    }

    .sign-up {
    background-color: var(--primary-color);
    padding: 16px 40px;
    width: 90%;
    height: 338px;
}

}
@media screen and (min-width: 400px) {
    .circle {
        position: absolute;
        width: 80px;
        left: 205px;
        top: -4px;
    }
    header .logo img {
        width: 120px;
    }
}

@media screen and (min-width: 500px) {
    .container{padding-inline: 40px}

    .circle {
        position: absolute;
        width: 80px;
        left: 253px;
        top: -4px;
    }
}

@media screen and (min-width: 600px) {
    .circle {
        position: absolute;
        width: 80px;
        left: 279px;
        top: -4px;
    }
    @media screen and (min-width: 700px) {
        .circle {
            position: absolute;
            width: 80px;
            left: 365px;
            top: -4px;
        }
        
    }
}

@media screen and (min-width: 1280px) {
    .circle {
        position: absolute;
        width: 200px;
        left: 295px;
        top: -10px;
    }
}
@media screen and (max-width: 870px) {
    .btn {justify-content: center;
    }
}