@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
:root
{


    /* colors */
    --Very-Dark-Blue: hsl(243, 87%, 12%);
    --Desaturated-Blue: hsl(238, 22%, 44%);
    --Bright-Blue: hsl(224, 93%, 58%);
    --Moderate-Cyan: hsl(170, 45%, 43%);
    --Light-Grayish-Blue: hsl(240, 75%, 98%);
    --Light-Gray: hsl(0, 0%, 75%);
    --horizontal-padding:1.5rem;
}

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

html , body
{
    height: 100%;
    width: 100%;
    font-family: 'Open Sans',sans-serif;
}

img,video,iframe
{
    max-inline-size:100%;
    block-size:auto;
}

.heading 
{
    font-family: 'Raleway',sans-serif;
}


header 
{

    padding: 2rem var(--horizontal-padding) 2rem var(--horizontal-padding);
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;


    .links a
    {
        position: relative;
    }

    .links a:hover::after
    {
        width: 100%;
    }

    .links a::after
    {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        background-color: var(--Very-Dark-Blue);
        bottom: -3px;
        left: 50%;
        transform: translateX(-50%);
        transition: all 0.4s ease-in-out;

    }
}

header img 
{
    width: 100px;
}

.links 
{
    display: flex;
    column-gap: 1.5rem;
    align-items: center;
    color: var(--Light-Gray);
}

header .links a 
{
    text-decoration: none;
    color: var(--Very-Dark-Blue);
    font-size: 1.1rem;
}


main .hero 
{
    padding: 0 var(--horizontal-padding);
    text-align: center;

}

main .hero img 
{
    margin-bottom: 1rem;
}

main .hero h1 
{
    margin-bottom: 2rem;
    font-size: 1.6rem;
    font-weight: bold;
}

main .hero p 
{
    color: var(--Very-Dark-Blue);
    font-family: 'Open Sans',sans-serif;
    font-weight: 500;
    margin-bottom: 2rem;
}

main form 
{
    display: flex;
    flex-direction: column;
    padding: 0 var(--horizontal-padding);

}

main form input 
{
    height: 6vh;
    padding-left: var(--horizontal-padding);
    margin-bottom: 1rem;
    border-radius: 5px;
    border: 1px solid black;
    position: relative;
}



main form button 
{
    height: 6vh;
    border: none;
    background-color: var(--Bright-Blue);
    color: white;
    font-weight: bold;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5rem;
}

.hero-two 
{
    padding: var(--horizontal-padding);
    text-align: center;
}


.hero-two img 
{
    margin-bottom: 1.5rem;
}


.hero-two p 
{
    color: var(--Very-Dark-Blue);
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0.5;
}

.hero-two .see-how
{
    margin: 0 auto;
    text-decoration: none;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .8rem;
    position: relative;
    margin-bottom: 3rem;
    span 
    {
        font-size: 1.3rem;
        color: var(--Moderate-Cyan);
    }
    
    
    img 
    {
        width: 30px;
        transform: translateY(50%);
    }

}

.see-how::after
{
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: var(--Moderate-Cyan);
    bottom: 0;
    left: 0;
}

.card-comment-container
{
    
    padding: 0 .5rem;
}

.card-comment 
{
    
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 2rem .7rem 1rem 2rem;
    text-align: left;

    margin-bottom: 3rem;

    svg 
    {
        margin-bottom: 1rem;
    }
    p 
    {
        color: var(--Very-Dark-Blue);
        
    }

    .horizontal 
    {
        display: flex;
        column-gap: 1rem;
        img 
        {
            width: 50px;
            border-radius: 50%;

        }

        .vertical 
        {
           h4 
           {
            color: var(--Very-Dark-Blue);
            font-weight: 400;
           }
        }
    }

}

.early-access
{
    background-color: var(--Desaturated-Blue);
    color: white;
    padding: 4rem 2rem 0 2rem;
    text-align: center;

    h2 
    {
        margin-bottom:1.2rem;
    }
    p 
    {
        color: rgb(255, 255, 255);
        margin-bottom: 2rem;
    }
}



footer 
{
    padding: 3rem 1.5rem 3rem 1.5rem;
    background-color: var(--Very-Dark-Blue);
    color: white;
}


footer .contact-info 
{
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.card-contact 
{
    display: flex;
    column-gap:1.2rem;
    align-items: center;
}


footer .links-container 
{
    display: flex;
    flex-direction: column;
    row-gap: 4rem;
    padding-top: 2rem;
}

footer .links-container .links 
{
    display: flex;
    flex-direction: column;
    align-items: start;
    row-gap: 1.5rem;
    

    a 
    {
        color: white;
        text-decoration: none;
        font-weight: bold;

    }

}

footer .social-icons 
{
    display: flex;
    justify-content: center;
    column-gap: 2rem;
    margin-top: 2rem;
}


footer .social-icons div 
{
    border: 1px solid white;
    width: 45px;
    aspect-ratio: 1;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}


input[type="email"]:invalid .error
{
    display: block;
}

@media (min-width:699px)
{

    header 
    {
        padding: 3rem 5rem;

        img 
        {
            width: 200px;
        }
    }



    main .hero 
    {
        
        padding-left: 5rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        column-gap: 10rem;
        justify-content: space-between;

        div 
        {
            width: fit-content;
            text-align: left;

            h1 
            {
                width: 70%;
            }
            p 
            {
                width: 80%;
            }


            form 
            {
                padding-left: 0;
                flex-direction: row;
                column-gap: 2rem;

                input 
                {
                    width: 50%;
                }
                button 
                {
                    width: 35%;
                }
                
            }
            
        }
        img 
        {
            order: 2;
            width: 600px;
        }
    }


    .hero-two 
    {
        padding-left: 5rem;
    }
    .grid 
    {
        display: grid;
        grid-template-columns:1.5fr 1fr;
        align-items: center;
        text-align: left;

        


        img 
        {
            order: 2;
        }

        div 
        {
            text-align: left;

            p 
            {
                width: 60%;
            }
            .see-how
            {
                margin: 2rem 0;
            }


            .card-comment-container
            {
                width: 400px;

                .card-comment
                {

                    width: 100%;
                    padding: 1rem;

                    p 
                    {
                        width: 100%;
                    }

                    img 
                    {
                        order: -1;
                    }
                }
            }
          
            p 
            {
                width: 60%;
            }
        }

        img 
        {
            width: 600px;

        }
    }

    .early-access
    {
        padding: 5rem 0 4rem 5rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items:center;
        justify-content: space-around;

        div 
        {
            text-align: left;
            p 
            {
                width: 60%;
            }
        }

        form 
        {
            order: 2;

            input 
            {
                max-width: 500px;
            }
            button 
            {
                max-width: 250px;
            }
        }
    }


    footer 
    {
        padding-left: 5rem;

        display: grid;
        grid-template-columns: repeat(3,1fr);
        align-items: center;    
    }

    footer .links-container
    {
       display: grid;
       grid-template-columns: 1fr 1fr;
    }

   
    
}