:root{
    --soft-blue: hsl(231, 69%, 60%);
    --soft-red: hsl(0, 94%, 66%);
    --grayish-blue: hsl(229, 8%, 60%);
    --very-dark-blue: hsl(229, 31%, 21%);
    --white: #fff;
    --black: #000;
}

*{
    font-family: "Rubik", serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 18px;
}

body{
    overflow-x: hidden;
}

a{
    text-decoration: none;
}

li{
    list-style: none;
}

.btn{
    padding: 8px 30px;
    border: 1px solid var(--soft-blue);
    border-radius: 5px;
    background-color: var(--soft-blue);
    color: var(--white);
    cursor: pointer;
    font-size: 14px;
    transition: 0.25s all ease-in-out;
}

.btn:hover{
    color: var(--soft-blue);
    background-color: var(--white);
}

.main-header{
    padding: 1rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.desktop-nav{
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.desktop-menu{
    display: flex;
    align-items: center;
}

.desktop-menu li{
    padding: 0 1rem;
}

.desktop-menu li a{
    color: var(--grayish-blue);
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.25s all ease-in-out;
}

.desktop-menu li a:hover{
    color: var(--soft-red);
}

.login-btn{
    background-color: var(--soft-red);
    border: 1px solid var(--soft-red);
    text-transform: uppercase;
    transition: 0.25s all ease-in-out;
}

.login-btn:hover{
    background-color: var(--white);
    color: var(--soft-red);
}

.mobile-nav{
    display: none;
}

.nav-outline{
    display: none;
}

.intro{
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.intro-content{
    padding-left:5rem;
}

.intro-content button{
    margin-right: 10px;
}

.intro .intro-content h1{
    font-size: 2.5rem;
    color: var(--very-dark-blue);
}

.intro .intro-content p{
    color: var(--grayish-blue);
    padding: 1rem 0;
    width: 90%;
}

.intro .intro-image{
    position: relative;
    width: 100%;
}

.intro .intro-image .bg{
    position: absolute;
    width: 60%;
    height: 20vw;
    background-color: var(--soft-blue);
    bottom: 0;
    right: 0;
    z-index: 0;
    border-bottom-left-radius: 40%;
}

.intro .intro-image img{
    position: relative;
    width: 100%;
    z-index: 2;
    padding-right:1rem;
}

/* features */

.features{
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.features h2{
    font-size: 1.5rem;
    padding-bottom: 1rem;
    color: var(--very-dark-blue);
    font-weight: 500;
}

.features p{
    color: var(--grayish-blue);
    line-height: 1.5rem;
    margin-bottom: 2rem;
}

.bookmark{
    width: 100%;
}

.bookmark .bookmark-list{
    display: flex;
    justify-content: center;
    margin-bottom: 70px;
}

.bookmark .bookmark-list li{
    padding: 20px 30px;
    border-bottom: 1px solid var(--grayish-blue);
}

.bookmark .bookmark-list li.active{
    border-bottom: 4px solid var(--soft-red);
}

.bookmark .bookmark-list li.active a{
    color: var(--very-dark-blue);
}

.bookmark .bookmark-list li a{
    color: var(--grayish-blue);
}

.bookmark .bookmark-list li a:hover{
    color: var(--soft-red);
}

.feature{
    display: flex;
    align-items: center;
    width: 80%;
    margin-inline: auto;
    position: absolute;
    left: -80%;
    opacity: 0;
    visibility: hidden;
    margin-bottom: 150px;
    transition: 0.5s all ease-in;
}

.feature.active{
    visibility: visible;
    opacity: 1;
    display: flex;
    position: relative;
    transform: translateX(100%);
}

.feature img{
    width: 100%;
}

.feature .content{
    padding: 70px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.feature .content h2{
    font-size: 1.25rem;
    color: var(--very-dark-blue);
    font-weight: 500;
}

.feature .content p{
    color: var(--grayish-blue);

    line-height: 1.5rem;
}

/* download */
.download{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.download .content{
    text-align: center;
}

.download .content h2{
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--very-dark-blue);
}

.download .content p{
    color: var(--grayish-blue);
    max-width: 500px;
    line-height: 1.7rem;
    margin: 1rem 0;
}

.download .download-cards{
    display: flex;
    gap: 30px;
}

.card{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center; 
    text-align: center;
    padding-block: 50px 25px;
    height: 350px;
    border-radius: 10px;
    box-shadow: 0px 7px 5px 5px #dde;
}

.card h3{
    font-weight: 500;
    line-height: 2rem;
}

.card p{
    color: var(--grayish-blue);
    font-size: 14px;
}

.card:nth-of-type(2){
    margin-top: 45px;
}

.card:nth-of-type(3){
    margin-top: 90px;
}

.card .card-footer{
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* FAQ */

.faq{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 600px;
    margin-inline: auto;
    margin-block: 5rem;
}

.faq h2{
    color: var(--very-dark-blue);
    font-weight: 500;
    margin-block: 1rem;
    font-size: 1.5rem;
}

.faq p{
    text-align: center;
    color: var(--grayish-blue);
}

.questions{
    margin-block: 40px;
}

.question-el{
    padding: 15px 0px;
    border-bottom: 1.5px solid var(--grayish-blue);
}

.question-el:first-of-type{
    border-top: 1.5px solid var(--grayish-blue);
}

.question-el a{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    color: var(--very-dark-blue);
}

.question-el a:hover{
    color: var(--soft-red);
}

.question-el a img{
    padding: 0 10px;
}

.question-el p{
    text-align: start;
    padding: 15px 0;
    line-height: 32px;
    font-size: 16px;
}

.faq .question-el .answer{
    display: none;
}

.faq .question-el .answer.active {
    display: block;
}

/* contact */
.contact{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--soft-blue);
    padding-block: 3rem;
    color: var(--white);
    gap: 2rem;
}

.contact p{
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 14px;
}

.contact h3{
    font-weight: 500;
    font-size: 1.5rem;
    width: 400px;
    text-align: center;
}

.contact form{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}

.contact form .email-error{
    position: relative;
}

.contact form .email{
    height: 32px;
}

.contact .btn{
    background-color: var(--soft-red);
    border: 1px solid var(--soft-red);
    transition: 0.25s all ease-in-out;
}

.contact .btn:hover{
    background-color: var(--white);
    color: var(--soft-red);
}

.contact .email{
    border-radius: 3px;
    outline: none;
    border: none;
    padding-left: 5px;
    width: 250px;
    z-index: 10;
    position: relative;
}

.contact .email.error{
    border: 2px solid var(--soft-red);
}

.email-error{
    font-size: 10px;
    font-style: italic;
    background-color: var(--soft-red);
    padding: 3px;
    border-radius: 2px;
    position: absolute;
    bottom: 3px;
    width: 250px;
    height: 20px;
    display: none;
    z-index: 5;
}

.email-error.active{
    display: block;
}

.email-form{
    position: relative;
}

.error-img{
    position: absolute;
    right: 7px;
    top: 7px;
    width: 18px;
    z-index: 15;
    display: none;
}

.error-img.active{
    display: block;
}

.main-footer{
    background-color: var(--very-dark-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 150px;
}


.footer-nav .footer-list{
    display: flex;
    gap: 25px;
    align-items: center;
}

.footer-nav .footer-list li a{
    color: var(--white);
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.25s all ease-in-out;
}

.footer-nav .footer-list li a:hover{
    color: var(--soft-red);
}

.main-footer .social{
    display: flex;
    gap: 25px;
}

@media(max-width: 1000px){
        /* features */
        .features h2{
            font-size: 1.25rem;
        }
        .features p{
            padding: 0 2rem;
        }
    
        .feature{
            flex-direction: column;
            width: 100%;
            left: -100%;
        }
        .feature img{
            width: 80%;
            margin: 0 auto;
        }
    
        .feature .content{
            padding: 2rem 4rem;
            justify-content: center;
            align-items: center;
        }
        .bookmark-list{
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 300px;
            margin: 0 auto;
        }
        .bookmark-list li{
            width: 100%;
            text-align: center;
        }
}

@media(max-width: 800px){
    .main-header{
        padding: 1rem 2rem;
    }
    .desktop-nav{
        display: none;
    }
    .mobile-nav{
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
    .main-header .mobile-nav .open-menu{
        padding: 0;
    }

    .nav-outline{
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background: var(--very-dark-blue);
        opacity: 0.99;
        z-index: 10;
    }
    .nav-outline.active{
        display: block;
        padding: 1rem 2rem;
    }
    .mobile-menu{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 5rem;
    }
    .mobile-menu li{
        padding: 1rem 0;
        width: 250px;
        display: flex;
        justify-content: center;
        border-bottom: 1px solid var(--grayish-blue);
    }

    .mobile-menu li:first-of-type{
        border-top: 1px solid var(--grayish-blue);;
    }

    .mobile-menu li:last-of-type{
        border-bottom: none;
    }

    .mobile-menu li a{
        color: var(--white);
    }

    .open-menu{
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 5rem;
    }

    .mobile-menu .btn{
        background-color: transparent;
        border: 2px solid var(--white);
        width: 250px;
    }
    .mobile-menu .btn:hover{
        background-color: var(--white);
        color: var(--very-dark-blue);
    }
    .intro{
        flex-direction: column-reverse;
        padding: 2rem 0;
    }
    .intro .intro-image .bg{
        position: absolute;
        width: 60%;
        height: 35vw;
        background-color: var(--soft-blue);
        bottom: 0;
        right: 0;
        z-index: 0;
        border-bottom-left-radius: 40%;
    }
    .intro .intro-image{
        padding: 0 50px;
    }
    .intro .intro-content{
        padding: 2rem 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .intro .intro-content h1{
        text-align: center;
        width: 100%;
        font-size: 1.5rem;
    }
    .intro .intro-content p{
        width: 100%;
        text-align: center;
    }



    /* Download */
    .download .content h2{
        font-size: 1.25rem;
    }
    .download .content p{
        padding: 0 2rem;
    }
    .download-cards{
        flex-direction: column;
    }
    .card{
        width: 350px;
    }
    .card:nth-of-type(2){
        margin-top: 0px;
    }
    
    .card:nth-of-type(3){
        margin-top: 0px;
    }
    

    /* FAQ */
    .faq{
        max-width: 350px;
    }

    .faq h2{
        font-size: 1.25rem;
        text-align: center;
    }
    
    /* contact */
    .contact form{
        flex-direction: column;
    }    

    .contact form .email{
        height: 34px;
        width: 350px;
    }

    .contact form .btn{
        width: 100%;
    }

    .contact form .email-error{
        width: 350px;
    }

    /* footer */
    .main-footer{
        padding: 40px;
        flex-direction: column;
        gap: 40px;
    }
    .footer-list{
        flex-direction: column;
    }
}