@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,600;1,600&family=Fraunces:ital,opsz,wght@0,9..144,700..900;1,9..144,700..900&display=swap');
* {
    padding: 0;
    margin: 0;
}
:root {
--Soft-red: hsl(7, 99%, 70%);
--Yellow: hsl(51, 100%, 49%);
--Dark-desaturated-cyan: hsl(167, 40%, 24%); /* graphic design text */
--Dark-blue: hsl(198, 62%, 26%); /* photography text */
--Dark-moderate-cyan: hsl(168, 34%, 41%); /* footer */
--Very-dark-desaturated-blue: hsl(212, 27%, 19%);
--Very-dark-grayish-blue: hsl(213, 9%, 39%);
--Dark-grayish-blue: hsl(232, 10%, 55%);
--Grayish-blue: hsl(210, 4%, 67%);
--White: hsl(0, 0%, 100%);
}

body {
    font-family: "Barlow", sans-serif;
    width: 100%;
    min-height: 100vh;
    font-size: 18px;
    color: var(--Very-dark-grayish-blue);
}
h1, h2, h3, .list-btn, span {
    font-family: "Fraunces", serif;
}
li {
    cursor: pointer;
    font-size: 18px;
    color: hsla(0, 0%, 100%, 0.85);
}
h1 {
    font-size: 55px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 10px;
    padding-bottom: 80px;
    padding-top: 20px; 
    color: var(--White);
    }
    h2 {
        line-height: 1.2;
        font-weight: 800;
        font-size: 40px;
        color: var(--Very-dark-desaturated-blue);
        padding-bottom: 30px;
    }
    h3 {
    font-size: 28px;
    color: var(--Dark-desaturated-cyan);
    font-weight: 800;
    padding-bottom: 25px;
    }
span {
    font-size: 15px;
    font-weight: 800;
    color: var(--Very-dark-desaturated-blue);
}

/* Section One*/
.first-s {
    background: url("images/desktop/image-header.jpg") no-repeat center/cover;
    display: flex;
    flex-direction: column;
    padding: 40px;
    height: 700px;
    text-align: center;
}
.header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 80px;
}
.list-btn {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: black;
    background-color: var(--White);
    padding: 15px 30px;
    border-radius: 30px;
}
.list-btn:hover {
    color: hsla(0, 0%, 100%, 0.85);
    background-color:hsl(200, 97%, 72%);
}
#list {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}
#menu{
display: none;
cursor: pointer;
}

.header figure {
    display: flex;
    align-items: center;
}
.header figure img {
    width: 170px;
}

/* Section Two*/
.second-s, .third-s, .fourth-s {
    display: flex; 
    height: 600px;
}
.box {
    width: 50%;
}
.transform, .stand-out {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: hsl(26, 100%, 99%);
    color: var(--Dark-grayish-blue);
    line-height: 1.6;
    
}
h2, p, .transform span, .stand-out span {
    width: 65%;
}
.more{
    display: inline-block;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    margin-top: 30px;
}
.egg-img{
background: url("images/desktop/image-transform.jpg") no-repeat center/cover;
}
.more::after {
    content: '';
    position: absolute;
    top: 18px;
    left: -5px;
    width: 120px;
    height: 7px;
    border-radius: 20px;
    background-color: hsl(48, 100%, 87%);
}
.more:hover::after {
    background-color: var(--Yellow);
}

/* Section Three*/
.cup-image {
    background: url("images/desktop/image-stand-out.jpg") no-repeat center/cover;
}
.third-s .more::after {
    background-color: hsl(11, 100%, 92%);
}
.third-s .more:hover::after{
    background-color: var(--Soft-red);
}
/* Section four*/
.cherry-img, .tangerine-img {
    display: flex;
    flex-direction: column;
    justify-content:end;
    align-items: center;
    text-align: center;
    padding-bottom: 80px;
    color: var(--Dark-desaturated-cyan);
    font-size: 17px;
    line-height: 1.4;
}
.tangerine-img, .tangerine-img h3 {
    color: var(--Dark-blue);
}

.cherry-img p, .tangerine-img p {
    width: 50%;
}
.cherry-img {
    background: url("images/desktop/image-graphic-design.jpg") no-repeat center/cover;
}
.tangerine-img {
    background: url("images/desktop/image-photography.jpg") no-repeat center/cover;
}

/* Section five */
.fifth-s {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 700px;
    background-color: hsl(26, 100%, 99%);
}
.fifth-s h3{
color: var(--Grayish-blue);
text-transform: uppercase;
font-size: 18px;
letter-spacing: 8px;
margin-bottom: 30px;
}
.profile-containers {
display: flex;

}
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; 
}
.profile img {
border-radius: 50%;
width: 80px;
margin-bottom: 50px;
}
.profile p {
    width: 75%;
    line-height: 1.5;
    padding-bottom: 50px;
}
.username {
    font-size: 18px;
    padding-block: 10px;
}
.job-description {
    font-family: "Barlow", sans-serif;
    color: var(--Grayish-blue);
    font-size: 14px;
}

/* Section six*/
.sixth-s {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--Dark-moderate-cyan);
    background-color: hsl(167, 44%, 70%);
}
.sixth-s ul {
    display: flex;
    gap: 40px;
    list-style: none;
}
.sixth-s li {
    color: var(--Dark-moderate-cyan);
}
.sixth-s li:hover {
    color: var(--White);
}
.four-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}
.four-images img {
    width: 100%;
}
.mobile {
    display: none;
}
.logo-container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}
.logo-container img {
    filter: invert(40%) sepia(21%) saturate(596%) hue-rotate(118deg) brightness(60%) contrast(92%);
    width: 170px;
    padding-bottom: 40px;
}
.social-icons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-block: 80px;
}
.social-icons img:hover{
filter: brightness(10%) invert();
}

    .attribution { 
        color: var(--Very-dark-desaturated-blue);
        font-size: 13px; 
        text-align: center; 
        margin-bottom: 40px;
    }
    .attribution a { 
        color: hsl(228, 45%, 44%); 
    }


    /* Media Queries*/
    @media screen and (max-width: 800px) {
        h1 {
            font-size: 50px;
        }
    /* Section Two*/
.second-s {
   flex-direction: column-reverse;
   height: auto;
}
.third-s, .fourth-s {
    flex-direction: column;
    height: auto;
}
.box {
    height: 600px;
    width: 100%;
}

/* Section five */
.fifth-s {
    height: 1100px;
}
.profile-containers {
flex-direction: column;
gap: 40px;
}

.profile img {
margin-bottom: 10px;
margin-top: 20px;
}
.profile p {
    width: 50%;
    padding-bottom: 10px;
} 
/* Section Six*/
.four-images {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
}
.four-images img {
    width: 100%;
}
    }

/* Mobile */
    @media screen and (max-width: 400px) {

        h1 {
            font-size: 40px;
            letter-spacing: 6px;
            padding-bottom: 45px;
            padding-top: 10px; 
        }
        h2 {
        font-size: 33px; 
        padding-bottom: 25px;
        }
        /* Section One*/
        .first-s {
            background: url("images/mobile/image-header.jpg") no-repeat center/cover;
            padding: 30px 20px; 
            height: 480px;
        }
        #list {
            display: none;
            flex-direction: column;
            position: absolute;
            top: 2%;
            left: 8%;
            background-color: var(--White); /**/
            padding: 2rem 1.5rem;
            width: 70%;
            text-align: center;
            z-index: 100;
           
        }
            #list::before {
                content: '';
                position: absolute;
                top: -20px;
                right: 0;
                border-left: 20px solid transparent;
                border-right: 0 solid transparent;
                border-bottom: 20px solid white; 
              }
        #list.show {
            display: flex;
          }
        #menu {
            display: block;
            z-index: 110;
        } 
        #list li {
            color: var(--Dark-grayish-blue);
          }
        
          #list .list-btn {
            background-color: var(--Yellow);
            color: black;
          }
          #list .list-btn:hover {
            background-color: hsla(51, 100%, 49%, 0.555);
          }
        .header figure img {
            width: 120px;
        }
        /* Section Two*/
        .box {
            height: 310px;
        }
        .transform, .stand-out {
         height: 450px;
         text-align: center;
        }
h2, p {
         width: 90%;
     }
        .egg-img{
        background: url("images/mobile/image-transform.jpg") no-repeat center/cover;
        }
        .more::after {
            left: 26%;
        }
        /* Section Three*/
        .cup-image {
            background: url("images/mobile/image-stand-out.jpg") no-repeat center/cover;
        }
        .stand-out p {
            width: 85%;
        }
        /* Section Four*/
        .cherry-img, .tangerine-img {
            height: 520px;
            padding-bottom: 80px;
        }     
        .cherry-img p, .tangerine-img p {
            width: 90%;
            font-size: 16px;
            line-height: 1.6;
        }
        .cherry-img {
            background: url("images/mobile/image-graphic-design.jpg") no-repeat center/cover;
        }
        .tangerine-img {
            background: url("images/mobile/image-photography.jpg") no-repeat center/cover;
        }
        /* Section Five*/
        .fifth-s {
            height: 1150px;
        }
        .fifth-s h3{
            font-size: 15px;
            letter-spacing: 5px; 
            }
        .profile-containers {
        flex-direction: column;
        gap: 40px;
        }
        .profile {
            margin-bottom: 20px;
        }
        .profile img {
            width: 70px;
            margin-bottom: 30px;
            margin-top: 0;
        }
        .profile p {
            width: 88%;
            padding-bottom: 15px;
            line-height: 1.7;
        } 
        /* Section Six*/
        .desktop {
            display: none;
        }
        .mobile {
            display: grid;
        }
    }