@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@700&family=Raleway:wght@700&display=swap');

body{
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: hsl(218, 28%, 13%);
}

/* ## Colors

### Primary

- Dark Blue (intro and email sign up background): hsl(217, 28%, 15%)
- Dark Blue (main background): hsl(218, 28%, 13%)
- Dark Blue (footer background): hsl(216, 53%, 9%)
- Dark Blue (testimonials background): hsl(219, 30%, 18%)

### Accent

- Cyan (inside call-to-action gradient): hsl(176, 68%, 64%)
- Blue (inside call-to-action gradient): hsl(198, 60%, 50%)
- Light Red (error): hsl(0, 100%, 63%)

### Neutral

- White: hsl(0, 0%, 100%) */


/* header style */


header{
    padding: 3% 5%;
    font-family: 'Raleway', sans-serif;
    background-color: hsl(217, 28%, 15%);
    background-image: url('./images/bg-curvy-desktop.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom;
}

header div:first-of-type{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header div:first-of-type img{
    height: clamp(25px,21px + 2vw,60px);
}

header ul{
    padding: auto;
}

header  li{
    display: inline-block;
    font-size: clamp(12px, 2vw ,45px);
    list-style: none;
    margin-right: max(2vw,13px);
    
}
a{
    text-decoration: none;
    color: hsl(240, 2%, 79%);
}

a:hover{
    text-decoration: underline;
    color:  hsl(0, 0%, 100%);
}

header div:last-of-type{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2em;
    padding: 3% 15%;
}

header div:last-of-type img{
    width: min(440px,100%);

}

header div:last-of-type h1{
    font-size: clamp(1.5em,2.8vw,3em);
    margin: 0;
    color:  hsl(0, 0%, 100%);
}

p{
    color: hsl(240, 2%, 79%);
}

header p{
    font-size: clamp(12px,4vw,20px);
    line-height: 1.4;
}

button{
    background-image: linear-gradient(to right ,hsl(176, 68%, 64%) ,hsl(198, 60%, 50%) 80%);
    padding: 15px 65px;
    border: none;
    border-radius: 25px;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    -ms-border-radius: 25px;
    -o-border-radius: 25px;
    color: white;
    background-color: hsl(224, 93%, 58%);
}

button:hover{
    opacity: .5;
}

::selection{
    background-color: hsl(198, 60%, 50%);
    color: hsl(216, 53%, 9%);
}

/* Main */


/* section-1 style */


main{
    padding-top: 20px;
}

.sec1{
    display: grid;
    grid-template-columns: repeat(auto-fit , minmax(20.6em,35vw));
    gap: 1em;
    justify-content: center;
}

.sec1 div{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


h3{
    font-size: clamp(1em,4vw,1.8em);
    color: hsl(0, 0%, 100%);
}
.sec1 p{
    font-size: clamp(12px,2.5vw,20px);
}

/* section-2 style */

.sec2{
    padding: 30px 11px;
    display: grid;
    grid-template-columns: repeat(auto-fit , minmax(20.6em,35vw));
    align-items: center;
    justify-content: space-evenly;
}

.sec2 img{
    display: flex;
    width: 100%;
}

h2{
    font-size: clamp(1.3em,4vw,2em);
    color: hsl(0, 0%, 100%);
}

.sec2 p{
    font-size: clamp(1em,1.5vw,20px);
}

.sec2 span{
    display: inline-block;
    color: hsl(176, 68%, 64%);
    background-image: url(./images/icon-arrow.svg);
    background-repeat: no-repeat;
    background-position: right;
    width: 178px;
    border-bottom: 1px solid hsl(176, 68%, 64%);
}

/* I create new svg file for arrow and change his fill */

.sec2 span:hover{
    color: hsl(0, 0%, 100%);
    background-image: url(./images/withe-arrow.svg);
    border-color: hsl(0, 0%, 100%);
}

/* section-3 style */

.sec3{
    display: grid;
    grid-template-columns: repeat(auto-fit , minmax(17.6em,30vw));
    align-items: center;
    justify-content: center;
    gap: 2vw;
    padding-inline: .7vw;
    margin-top: 3.5em;
    margin-bottom: 12em;
}

.sec3 > div{
    background-color: hsl(219, 30%, 18%);
    display: grid;
    padding: 27px 18px 12px 18px;
    box-shadow: 9px 7px 20px 4px hsl(217deg 28% 15%);
    border-radius: 5%;
    -webkit-border-radius: 5%;
    -moz-border-radius: 5%;
    -ms-border-radius: 5%;
    -o-border-radius: 5%;
}

.sec3 p{
    font-size: clamp(16px,1vw,20px);
}

.sec3 div div img{
    width: 40px;
    display: inline;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.sec3  div > div{
    display: flex;
}

.sec3  div img+div{
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    padding-left: 20px;
}

.sec3 span:first-of-type{
    font-size: clamp(15px,1.3vw,20px);
    color: hsl(0, 0%, 100%);
}

.sec3 span:last-of-type{
    font-size: clamp(12px,1vw,17px);
    color: hsl(240, 2%, 79%);
}

/* quotes style */

.sec3 > div:first-of-type{
    position: relative;
}

.sec3 > div:first-of-type > img{
    position: absolute;
    z-index: -1;
    top: -21%;
    left: -1%;
}


/* aside style */


aside{
    position: absolute;
    translate: 34% -48%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    background-color: hsl(217, 28%, 15%);
    width: max(60%, 220px);
    margin: auto;
    padding-bottom: 2em;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

h4{
    margin-block: 1em;
    font-size: clamp(1.4em,3vw,2.2em);
    color: hsl(0, 0%, 100%);
}

aside p{
    font-size: clamp(.75em,2.5vw,1em);
    padding-inline: 11%;
}

form{
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-inline: 20px;
}

form div{
    width: max(65%,290px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

input{
    padding-block: 14px;
    padding-left: 15px;
    width: 100%;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
}

form button{
    padding: 12px 14px;
    width: 170px;
}

#text{
    align-self: start;
    font-size: 8px;
    translate: 0% 40%;
    padding-left: 4%;
}

.invalid input:focus{
    outline :hsl(354, 100%, 66%) auto .5px ;
}

/* footer style */



footer{
    padding-top: 13em;
    padding-inline: 5%;
    background-color: hsl(216, 53%, 9%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 25px;
}

footer > img{
    align-self: flex-start;
}

footer > div{
    /* display: grid;
    grid-template-columns: repeat(auto-fit , minmax(12em,20vw));
    grid-template-rows: repeat(auto-fit , minmax(7em,7vw)); */
    display: flex;
    justify-items: start;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 8%;
}

footer p{
    font-size: 15px;
    background-image: url(./images/icon-location.svg);
    background-repeat: no-repeat;
    background-position: left top;
    padding-left: 25px;
    flex-basis: 18%;
    height: 100px;
    overflow: hidden;
}

footer ul{
    padding-left: 0;
}

footer li{
    list-style: none;
    padding-bottom: 9px;
    font-size: 12px;
}

footer ul:nth-of-type(1) li:nth-of-type(1){
    list-style: url(./images/icon-phone.svg);
}

footer ul:nth-of-type(1) li:nth-of-type(2){
    list-style: url(./images/icon-email.svg);
}

footer ul:last-of-type li{
    display: inline-block;
    padding-left: 20px;
}

svg{
    stroke: hsl(0, 0%, 100%);
    width: max(2vw , 20px);
    height: max(2vw , 20px);
    padding: 8px;
    border: 1px solid hsl(0, 0%, 100%);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

path{
    stroke: inherit;
}

svg:hover{
    border-color: hsl(176, 68%, 64%);
    fill: hsl(176, 68%, 64%);
}

footer ul:last-of-type li:last-of-type svg:hover{
    stroke: hsl(176, 68%, 64%);
    fill: none;
}