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

:root {
    --navy-800: hsl(219, 30%, 18%);
    --navy-850: hsl(217, 28%, 15%);
    --navy-900: hsl(218, 28%, 13%);
    --navy-950: hsl(216, 53%, 9%);
    --teal-200: hsl(176, 68%, 64%);
    --cyan-500: hsl(198, 60%, 50%);
    --red-500: hsl(0, 100%, 63%);
    --white: hsl(0, 0%, 100%);
}


a {
    text-decoration: none;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    background-color: var(--navy-800);
    color: var(--white);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 80px 50px 80px;
    font-family: 'Raleway', sans-serif;
}

button {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

header img {
    width: 180px;
    height: auto;
}

nav ol {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 50px;
    list-style: none;
}

nav ol li a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
}

nav ol li a:active {
    text-decoration: underline;
    font-weight: 700;
}

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

.intro-flex img {
    width: 650px;
    height: auto;
    margin-top: 30px;
}

.intro-text {
    width: 720px;
    margin: 20px 0 0 0;
}


.intro-text h1 {
    font-size: 40px;
}

.intro-text h2 {
    font-weight: 300;
    margin: 20px 0;
    padding: 0 50px;
}

.intro-flex button {
    background: linear-gradient(to right, var(--teal-200), var(--cyan-500));
    color: var(--white);
    border: none;
    border-radius: 32px;
    padding: 15px 100px;
    font-size: 16px;
    margin-bottom: 130px;
    cursor: pointer;
}

.intro-flex button:active{
    background: var(--teal-200);
}

.div-bg {
    display: flex;
    justify-content: center;
}

.bg-curvy-desktop {
    position: absolute;
    top: 750px;
    width: 100%;
    height: 330px;
    z-index: -1;
}

.navy-bg {
    display: none;
}

.features {
    display: grid;
    grid-template-columns: 400px 400px;
    grid-template-rows: 300px 300px;
    background-color: var(--navy-900);
    justify-content: center;
    align-items: center;
    gap: 20px 300px;
}

.article-features {
    font-size: 20px;
    text-align: center;
}

.article-features h3 {
    font-size: 25px;
    text-align: center;
}

.article-features img {
    width: 100px;
    height: auto;
    margin-bottom: 30px;
}

.stay-productive {
    display: grid;
    grid-template-columns: 650px 500px;
    grid-auto-rows: 1fr;
    background-color: var(--navy-900);
    justify-content: center;
    align-items: center;
    padding: 100px 50px 50px 50px;
    gap: 100px;
}

.stay-productive img {
    width: 100%;
    height: auto;
}

.stay-productive-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stay-productive-text h2 {
    font-size: 40px;
}

.stay-productive-text p {
    font-size: 20px;
}

.img-how {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    cursor: pointer;
}

.img-how a {
    color: var(--teal-200);
    text-decoration: none;
}

.img-how img {
    width: 16px;
    height: auto;
}

.active {
    color: var(--white);
}

.active-arrow {
    color: var(--teal-200);
}

.active-hr-a {
    color: var(--white);
}

.active-hr {
    width: 150px;
    height: 1px;    
    margin: 0 0;
    border: none;
    background-color: var(--teal-200);
    cursor: pointer;
}

.img-how-a {
    color: var(--white);
} 

.quotes {
    position: absolute;
    top: 2493px;
    left: 290px;
    width: 50px;
    height: auto;
    z-index: 10;
}

#how-link:active {
    cursor: pointer;
    color: var(--white);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 400px);
    grid-auto-rows: auto;
    justify-content: center;
    background-color: var(--navy-900);
    gap: 60px;
    padding: 200px 100px 400px 100px;
}

.profile {
    background-color: var(--navy-800);
    padding: 40px 30px 30px 30px;
    border-radius: 8px;
    z-index: 20;
}

.fylo-txt {
    margin-bottom: 30px;
}

.profile img {
    width: 35px;
    height: auto;
    border-radius: 50%;
    margin-right: 10px;
}

.profile-text {
    display: flex;
    align-items: center;
}

.profile-d {
    display: flex;
    flex-direction: column;
}

.profile-d h4 {
    font-size: 12px;
    margin-bottom: 4px;
}

.profile-d p {
    font-size: 9px;
}

.get-started {
    background-color: var(--navy-900);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-message {
    display: flex;
    justify-content: start;
    align-items: start;
    color: var(--red-500);
    font-size: 14px;
    margin-top: 5px;
    margin-left: 140px;
}

.form {
    padding: 35px 0;
    background-color: var(--navy-850);
    width: 1000px;
    border-radius: 8px;
    position: absolute;
    top: 2960px;
    left: 470px;
}

.form h2 {
    font-size: 36px;
}

.form p {
    font-size: 16px;
    margin: 30px 60px;
    padding: 0 70px;
}

.form input {
    width: 480px;
    height: 50px;
    padding: 20px;
    border: none;
    border-radius: 32px;
    font-size: 16px;
    margin: 0 50px 20px 0;
    
}

.form button {
    background: linear-gradient(to right, var(--teal-200), var(--cyan-500));
    color: var(--white);
    border: none;
    border-radius: 32px;
    padding: 15px 50px;
    font-size: 15px;
    cursor: pointer;
}

.form button:active {
    background: var(--teal-200);
}

footer {
    background-color: var(--navy-950);
    padding-top: 230px;
}

.footer-logo {
    margin: 0 0 20px 280px;
}

.footer-text {
    display: grid;
    grid-template-columns: 300px 200px 200px 200px;
    grid-template-rows: auto;
    justify-content: center;
    gap: 150px;
    padding: 20px;
}

.links ul {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(2, 150px);
    grid-auto-rows: auto;
    gap: 15px;
}

.links ul a {
    color: var(--white);
}

.links ul a:active {
    font-weight: 700;
}

.location, .phone, .mail {
    display: flex;
    gap: 15px;
}

.location img {
    width: 20px;
    height: 20px;
    position: relative;
    top: 5px;
}

.phone {
    margin-bottom: 15px;
}

.icon-footer {
    width: 40px;
    height: auto;
    cursor: pointer;
}

.attribution { text-align: center; margin-top: 30px;}
.attribution a { color: var(--teal-200); }  

@media screen and (max-width: 1366px) {
    .stay-productive {
        gap: 60px;
    }
    .stay-productive-text h2 {
        font-size: 45px;
    }
    .stay-productive-text p {
        font-size: 16px;
    }
    .stay-productive img {
        width: 90%;
    }
    .img-how img {
        width: 16px;
    }
    .testimonials {
        gap: 30px;
    }
    .quotes {
        top: 2443px;
        left: 40px;
    }
    .form {
        top: 2930px;
        left: 185px;
    }
    .footer-text {
        gap: 100px;
    }
    .footer-logo {
        margin: 0 0 20px 80px;
    }
}

@media screen and (max-width: 1024px) {
    header {
        padding: 60px 70px 10px 70px;
    }
    header img {
        width: 150px;
    }
    nav ol {
        gap: 30px;
    }
    nav ol li a {
        font-size: 14px;
    }
    .intro-text h1 {
        font-size: 33px;
    }
    .intro-text h2 {
        font-weight: 300;
        margin: 20px 0;
        padding: 0 120px;
        font-size: 16px;
    }
    .intro-flex img {
        width: 400px;
        margin-top: 0;
    }
    .bg-curvy-desktop {
        top: 480px;
        height: auto;
    }
    .features {
        grid-template-columns: repeat(2, 400px);
        grid-template-rows: auto;
        gap: 30px 80px;
    }
    .article-features h3 {
        font-size: 20px;
        text-align: center;
    }
    .article-features {
        font-size: 15px;
    }
    .stay-productive {
        grid-template-columns: 500px 400px;
        padding: 100px 50px 0px 50px;
        gap: 10px;
    }
    .stay-productive img {
        width: 90%;
    }
    .stay-productive-text h2 {
        font-size: 30px;
    }
    .stay-productive-text p {
        font-size: 14px;
    }
    .img-how img {
        width: 16px;
    }
    .quotes {
        top: 1797px;
        left: 20px;
        z-index: 10;
    }
    .testimonials {
        grid-template-columns: repeat(3, 300px);
        justify-content: center;
        background-color: var(--navy-900);
        gap: 30px;
        padding: 150px 100px 300px 100px;
    }
    .profile {
        padding: 30px 20px 20px 20px;
    }
    .error-message {
        margin-top: 3px;
        margin-left: 70px;
    }
    .form {
        padding: 35px 0;
        width: 700px;
        top: 2170px;
        left: 160px;
    }
    .form h2 {
        font-size: 30px;
    }
    .form p {
        font-size: 14px;
        margin: 30px 0;
    }
    .form input {
        width: 380px;
        height: 45px;
        padding: 20px;
        font-size: 14px;
        margin: 0 20px 20px 0;
    }
    .form button {
        padding: 15px 30px;
        font-size: 14px;
    }
    footer {
        padding-top: 150px;
    }
    .footer-logo {
        margin: 0 0 20px 40px;
    }
    .footer-text {
        display: grid;
        grid-template-columns: 250px 150px 150px 150px;
        grid-template-rows: auto;
        justify-content: center;
        gap: 80px;
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    header img {
        width: 200px;
    }
    nav ol {
        gap: 40px;
    }
    nav ol li a {
        font-size: 20px;
    }
    .intro-flex img {
        width: 600px;
    }
    .intro-text h1 {
        font-size: 55px;
    }
    .intro-text h2 {
        font-size: 31px;
        margin: 0;
        padding: 50px;
        font-weight: 300;
    }
    .bg-curvy-desktop {
        position: absolute;
        top: 480px;
        width: 100%;
        height: 330px;
        z-index: -1;
    }
    .intro-flex button {
        padding: 28px 200px;
        font-size: 20px;
        margin-bottom: 130px;
        border-radius: 40px;
    }
    .navy-bg {
        display: block;
        position: absolute;
        top: 800px;
        width: 100%;
        height: 450px;
        background-color: var(--navy-900);
        z-index: -1;
    }
    .features {
        display: grid;
        grid-template-columns: 700px;
        grid-template-rows: auto;
        background-color: var(--navy-900);
        justify-content: center;
        align-items: center;
        gap: 80px;
    }
    .article-features {
        font-size: 20px;
        text-align: center;
        margin: 0 20px
    }
    .article-features h3 {
        font-size: 35px;
        text-align: center;
        line-height: 1.7;
    }
    .article-features img {
        width: 150px;
        height: auto;
        margin-bottom: 30px;
    }
    .stay-productive {
        display: grid;
        grid-template-columns: auto;
        grid-auto-rows: auto;
        background-color: var(--navy-900);
        justify-content: center;
        align-items: center;
        gap: 80px;
    }
    .stay-productive img {
        justify-self: center;
    }
    .stay-productive-text {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: start;
        padding: 20px;
        gap: 20px;
    }
    .stay-productive-text h2 {
        font-size: 35px;
    }
    .stay-productive-text p {
        font-size: 27px;
    }
    .img-how a {
        font-size: 25px;
    }
    .img-how img {
        width: 20px;
    }
    .active-hr {
        width: 255px;
    }
    .quotes {
        top: 3710px;
        left: 105px;
        z-index: 10;
    }
    .testimonials {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        justify-content: center;
        background-color: var(--navy-900);
        gap: 60px;
        padding-bottom: 450px;
    }
    .fylo-txt {
        font-size: 22px;
    }
    .profile {
        padding: 45px;
    }
    .profile img {
        width: 45px;
    }
    .profile-d h4 {
        font-size: 16px;
    }
    .profile-d p {
        font-size: 10px;
    }
    .error-message {
        font-size: 16px;
        margin-top: 30px;
        margin-left: 90px;
    }
    .form {
        padding: 35px 0;
        background-color: var(--navy-850);
        width: 600px;
        border-radius: 8px;
        position: absolute;
        top: 4900px;
        left: 85px;
        justify-content: center;
    }
    .form h2 {
        font-size: 34px;
    }
    .form p {
        font-size: 24px;
    }
    .form form input {
        margin: 0 0 25px 0;
        padding: 32px;
    }
    .form form button {
        padding: 22px;
    }
    .form form button, .form form input {
        width: 80%;
        font-size: 16px;
    }
    footer {
        background-color: var(--navy-950);
        padding-top: 230px;
    }
    .footer-logo {
        width: 250px;
        margin: 130px 0 0px 60px;
    }
    .footer-text {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
        margin: 80px 110px 0 60px;
    }
    .footer-text img {
        width: 25px;
        height: 25px;
    }
    .links ul {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .social-media {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    .location, .phone, .mail {
        font-size: 20px;
    }
    .location img {
        width: 25px;
        height: 25px;
    }
    .links a {
        font-size: 20px;
    }
    .social-media {
        gap: 20px;
    }
    .social-media img {
        width: 60px;
        height: 60px;
    }
}

@media screen and (max-width: 425px) {
    header {
        padding: 30px;
    }
    header img {
        width: 110px;
    }
    nav ol {
        gap: 14px;
    }
    nav ol li a {
        font-size: 15px;
    }
    .intro-flex img {
        width: 390px;
    }
    .intro-text {
        width: 98%;
    }
    .intro-text h1 {
        font-size: 26px;
        padding: 0 20px;
    }
    .intro-text h2 {
        font-size: 19px;
        margin: 0;
        padding: 20px;
        font-weight: 300;
    }
    .bg-curvy-desktop {
        top: 350px;
        height: 150px;
    }
    .intro-flex button {
        padding: 20px 80px;
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 130px;
        border-radius: 40px;
    }
    .navy-bg {
        top: 500px;
        width: 100%;
        height: 450px;
        background-color: var(--navy-900);
        z-index: -1;
    }
    .features {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        background-color: var(--navy-900);
        justify-content: center;
        align-items: center;
        gap: 80px;
    }
    .article-features {
        font-size: 18px;
        margin: 0 20px
    }
    .article-features h3 {
        font-size: 28px;
    }
    .article-features img {
        width: 100px;
        height: auto;
        margin-bottom: 30px;
    }
    .stay-productive {
        display: grid;
        grid-template-columns: auto;
        grid-auto-rows: auto;
        background-color: var(--navy-900);
        justify-content: center;
        align-items: center;
        gap: 80px;
        padding: 30px;
    }
    .stay-productive img {
        justify-self: center;
    }
    .stay-productive-text {
        padding: 0px;
    }
    .stay-productive-text h2 {
        font-size: 30px;
    }
    .stay-productive-text p {
        font-size: 20px;
    }
    .img-how a {
        font-size: 20px;
    }
    .active-hr {
        width: 210px;
    }
    .quotes {
        top: 2736px;
        left: 50px;
        width: 40px;
        z-index: 10;
    }
    .testimonials {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 30px 40px 400px 40px;
    }
    .fylo-txt {
        font-size: 17px;
    }
    .profile {
        padding: 25px;
    }
    .profile img {
        width: 40px;
    }
    .profile-d h4 {
        font-size: 13px;
    }
    .profile-d p {
        font-size: 8px;
    }
    .error-message {
        font-size: 12px;
        margin-top: 20px;
        margin-left: 60px;
    }
    .form {
        padding: 35px 0;
        width: 340px;
        top: 3730px;
        left: 43px;
    }
    .form h2 {
        font-size: 21px;
    }
    .form p {
        font-size: 15px;
        padding: 0 30px;
    }
    .form form input {
        padding: 20px;
        font-size: 14px;
    }
    .form form button {
        padding: 14px;
        font-size: 14px;
    }
    footer {
        padding-top: 100px;
    }
    .footer-logo {
        width: 170px;
        margin: 100px 0 0 30px;
    }
    .footer-text {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
        margin: 50px 110px 0 30px;
    }
    .footer-text img {
        width: 25px;
        height: 25px;
    }
    .links ul {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .social-media {
        padding-left: 80px;
        gap: 20px;
    }
    .location, .phone, .mail {
        font-size: 16px;
    }
    .location img {
        width: 25px;
        height: 25px;
    }
    .links a {
        font-size: 16px;
    }
    .social-media img {
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 375px) {
    header {
        padding: 20px;
    }
    header img {
        width: 90px;
    }
    nav ol {
        gap: 11px;
    }
    nav ol li a {
        font-size: 14px;
    }
    .intro-flex img {
        width: 340px;
    }
    .intro-text h1 {
        font-size: 23px;
    }
    .intro-text h2 {
        font-size: 17px;
    }
    .intro-flex button {
        padding: 13px 50px;
        font-size: 16px;
    }
    .bg-curvy-desktop {
        top: 290px;
    }
    .navy-bg {
        top: 440px;
    }
    .features {
        gap: 70px;
    }
    .article-features img {
        width: 80px;
        margin-bottom: 20px;
    }
    .article-features h3 {
        font-size: 23px;
    }
    .article-features {
        font-size: 16px;
        margin: 0 20px
    }
    .stay-productive {
        padding: 40px;
        gap: 50px;
    }
    .stay-productive-text h2 {
        font-size: 24px;
    }
    .stay-productive-text p {
        font-size: 14px;
    }
    .img-how a {
        font-size: 14px;
    }
    .active-hr {
        width: 155px;
    }
    .quotes {
        top: 2300px;
        left: 48px;
        width: 40px;
        z-index: 10;
    }
    .testimonials {
        padding: 30px 40px 350px 40px;
    }
    .fylo-txt {
        font-size: 14px;
    }
    .profile img {
        width: 30px;
    }
    .profile-h4 {
        font-size: 10px;
    }
    .profile-p {
        font-size: 8px;
    }
    .error-message {
        font-size: 10px;
        margin-top: 20px;
        margin-left: 50px;
    }
    .form {
        padding: 35px 0;
        width: 310px;
        top: 3150px;
        left: 34px;
    }
    .form h2 {
        font-size: 18px;
    }
    .form p {
        font-size: 14px;
        padding: 0 30px;
        margin: 20px 0;
    }
    .form form input {
        padding: 20px;
        font-size: 14px;
    }
    .form form button {
        padding: 14px;
        font-size: 14px;
    }
    footer {
        padding-top: 80px;
    }
    .footer-text {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
        margin: 30px
    }
    .social-media {
        padding-left: 8px;
    }
    .location, .phone, .mail {
        font-size: 14px;
    }
    .links a {
        font-size: 14px;
    }
    .attribution {  
        margin-top: 20px;
        font-size: 12px;
    }
    .attribution a { 
        font-size: 12px;
    }
}

@media screen and (max-width: 320px) {
    header {
        padding: 20px;
    }
    header img {
        width: 80px;
    }
    nav ol {
        gap: 10px;
    }
    nav ol li a {
        font-size: 10px;
    }
    .intro-flex img {
        width: 280px;
    }
    .intro-text h1 {
        font-size: 20px;
    }
    .intro-text h2 {
        font-size: 14px;
    }
    .intro-flex button {
        padding: 10px 40px;
        font-size: 14px;
    }
    .bg-curvy-desktop {
        top: 230px;
    }
    .navy-bg {
        top: 370px;
    }
    .quotes {
        top: 2327px;
    }
    .article-features img {
        width: 70px;
        margin-bottom: 15px;
    }
    .article-features h3 {
        font-size: 20px;
        margin-bottom: 5px;
    }
    .article-features {
        font-size: 14px;
        margin: 0 20px
    }
    .profile-h4 {
        font-size: 10px;
    }
    .profile-p {
        font-size: 8px;
    }
    .error-message {
        font-size: 8px;
        margin-top: 20px;
        margin-left: 35px;
    }
    .form {
        padding: 35px 0;
        width: 280px;
        top: 3050px;
        left: 22px;
    }
    .form h2 {
        font-size: 17px;
    }
    .form p {
        font-size: 12px;
        padding: 0 30px;
        margin: 20px 0;
    }
    .form form input {
        padding: 16px;
        font-size: 12px;
    }
    .form form button {
        padding: 13px;
        font-size: 12px;
    }
    .social-media {
        padding-left: 0px;
    }
    .location, .phone, .mail {
        font-size: 12px;
    }
    .location img, .phone img, .mail img {
        width: 20px;
        height: 20px;
    }
    .links a {
        font-size: 12px;
    }
    .links ul {
        gap: 10px;
    }

}