@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fraunces', serif;
}
:root {
    --red-400: hsl(7, 99%, 70%);
    --yellow-500: hsl(51, 100%, 49%);
    --green-800: hsl(167, 40%, 24%); /*graphic design text*/
    --green-500: hsl(167, 34%, 41%);
    --blue-800: hsl(198, 62%, 26%); /*photography text*/
    --grey-950: hsl(212, 27%, 19%);
    --grey-600: hsl(213, 9%, 39%);
    --grey-550: hsl(232, 10%, 55%);
    --grey-400: hsl(210, 4%, 67%);
    --white: hsl(0, 100%, 100%);
    --width: 375px;
    --width-lg: 1350px;
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--grey-950);
    font-family: 'Fraunces', serif;
}

.txt_arrow {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.header_txt {
    color: var(--white);
    font-size: 3.5rem;
    margin-top: 4rem;
    text-align: center;
}
.arrow {
    margin-top: 3rem;
    transition: all .5s ease-in-out;
}
.arrow.active {
    transform: rotate(180deg);
}

.article {
background-color: var(--white);
padding: 3rem 2rem;
}
.article h1 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--grey-950);
    margin-bottom: 1.5rem;
}
.article p {
    font-size: 1.1rem;
    color: var(--grey-600);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}
.article a {
    font-size: 1.1rem;
    color: var(--red-400);
    text-decoration: none;
    font-weight: 700;
    transition: color .3s ease-in-out;
}
.article a:hover {
    color: var(--grey-950);
    text-decoration: underline;
    text-decoration-color: var(--red-400);
}
.article .yellow_link {
    color: var(--yellow-500);
}
.article .yellow_link:hover {
    color: var(--grey-950);
    text-decoration: underline;
    text-decoration-color: var(--yellow-500);
    cursor: pointer;
}

.img_article h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 270px;
    margin-bottom: 1.5rem;
}
.img_article p {
    font-size: 1.1rem;
}
.green {
    background-image: url('./images/mobile/image-graphic-design.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--green-800);
}
.blue {
    background-image: url('./images/mobile/image-photography.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--blue-800);
}

.footer {
    width: var(--width);
    background-color: var(--green-500);
    padding: 3rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    font-size: 1.1rem;
    font-weight: 700;
}
.footer img {
    filter: brightness(0) saturate(100%) invert(16%) sepia(35%) saturate(1190%) hue-rotate(136deg);
}
.footer .logo {
    transform: scale(1.5);
    margin-bottom: .5rem;
}
.footer ul {
    list-style-type: none;
    display: flex;
}
.media_links {
    gap: 2rem;
}
.media img:hover {
    transition: all .3s ease-in-out;
    transform: scale(1.2);
    filter: brightness(0) saturate(100%) invert(16%) sepia(35%) saturate(1190%) hue-rotate(136deg);filter: brightness(0) saturate(100%) invert(100%)
}
.links_list {
    margin-bottom: 2rem;
    gap: 3.5rem;
}
.list_item a {
    transition: color .3s ease-in-out;
    color: var(--green-800);
    text-decoration: none;
}
.list_item a:hover {
    color: var(--white);
    text-decoration: underline var(--green-800);
}

.testimonials {
background-color: var(--white);
padding: 3rem 1.5rem;
}
.testimonials h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--grey-550);
    text-align: center;
}
.client {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.client img {
    width: 80px;
    border: 2px solid var(--grey-950);
    border-radius: 50%;
    margin: 3rem 0 2rem;
}
.client p {
    color: var(--grey-600);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 2rem;
}
.client h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--grey-950);
    margin-bottom: 1rem;
}
.client span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--grey-400);
}

@media (max-width: 500px) {
    .desktop {
        display: none;
    }
    .header_container {
    background-image: url('./images/mobile/image-header.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    width: var(--width);
    height: 540px;
    padding: 1.6rem 1.2rem 0;
    }
    .logo_menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    }
    .menu:hover {
    cursor: pointer;
    }
    .main_container {
       width: var(--width);
    }
    .img_gallery {
    width: var(--width);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    }
    .img_gallery img {
    width: calc(var(--width) / 2);
    height: auto;
    }
    .img_article {
    width: var(--width);
    padding: 3rem 1.5rem;
    height: 500px;
    text-align: center;
    }
    .nav_bar {
    position: absolute;
    top: 5rem;
    left: 1rem;
    right: 1rem;
    opacity: 0;
    display: none;
    z-index: 100;
    transform: translate(-900px);
    }
    .nav_bar.active {
        transition: all .3s ease-in-out;
        animation: Toggle .3s forwards;
    }
    @keyframes Toggle {
        0% {
            transform: translate(-20px, 20px) scale(.05);
        }
        100% {
            opacity: 1;
            transform: translate(0, 0) scale(1);
        }
    }
    .nav_list {
        list-style-type: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: .5rem;
        background-color: var(--white);
        width: calc(var(--width) - 32px);
        padding: 1.5rem;
    }
    .nav_item {
        font-size: 1rem;
        font-weight: 700;
        color: var(--grey-550);
        padding: .3rem .5rem;
        transition: background-color .4s ease-in-out;
    }
    .nav_item:hover {
        border: none;
        border-radius: 20px;
        background-color: var(--grey-400);
        color: var(--white);
        cursor: pointer;
        transform: scale(1.05);
    }
    .nav_item.active {
        background-color: var(--yellow-500);
        color: var(--grey-950);
        border: none;
        border-radius: 20px;
        padding: .6rem 1.4rem;
        transform: scale(1.2);
        margin-top: 1rem;
        transition: color .2s ease-in-out;
    }
    .nav_item.active:hover {
        color: var(--white);
        background-color: var(--grey-600);
        text-decoration: underline;
        text-decoration-color: var(--white);
    }
    .img_gallery img {
        width: calc(var(--width) / 2);
        height: 100%;
    }

    .grid_container img {
        width: var(--width);
        height: 100%;
    }
}

@media (min-width: 800px) {
    .footer {
        width: var(--width-lg);
    }
    .img_article {
        width: calc(var(--width-lg) / 2);
        padding: 3rem 4rem;
        height: 400px;
        text-align: center;
    }
    .blue {
        background-image: url('./images/desktop/image-photography.jpg');
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    .green {
        background-image: url('./images/desktop/image-graphic-design.jpg');
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    .main_container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 0;
    }
    .grid_container {
        width: var(--width-lg);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .grid_container img {
        width: calc(var(--width-lg) / 2);
        height: 100%;
    }
    .img_gallery {
        width: var(--width-lg);
        display: flex;
    }
    .img_gallery img {
        width: calc(var(--width-lg) / 4);
        height: 100%;
    }
    .article {
        padding: 8rem;
        padding-top: 10rem;
        text-align: left;
        width: calc(var(--width-lg) / 2);
    }
    .article  h1 {
        font-size: 1.8rem;
        margin-bottom: 3rem;
        padding-right: 4rem;
    }
    .article p {
        font-size: .9rem;
        margin-bottom: 1.5rem;
    }
    .mobile {
        display: none;
    }
    .img_article {
        width: calc(var(--width-lg) / 2);
        padding: 3rem 8rem;
        height: 500px;
        text-align: center;
    }
    .img_article h1 {
        font-size: 2.8rem;
        margin: 18rem 0 2rem;
        font-size: 1.5rem;
    }
    .img_article p {
        font-size: 1rem;
    }
    .testimonials {
        width: var(--width-lg);
    }
    .clients {
        display: flex;
        gap: 1rem;
    }
    .client {
        padding: 1rem;
    }
    .client img {
    width: 50px;
    border: 2px solid var(--grey-950);
    margin: 2rem 0 2.5rem;
    }
    .client p {
        font-size: .8rem;
        margin-bottom: 2.5rem;
    }
    .client h2 {
        font-size: 1.4rem;
        margin-bottom: .5rem;
    }
    .client span {
        font-size: .8rem;
    }
    #menu {
        display: none;
    }
    .header_container {
        background-image: url('./images/desktop/image-header.jpg');
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        width: var(--width-lg);
        height: 540px;
        padding: 1.6rem 2rem 0;
    }
    .header_txt {
        font-size: 3rem;
        margin-top: 4rem;
    }
    .arrow {
        margin-top: 2.9rem;
        transform: scale(.6);
    }
    .logo_menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav_list {
        display: flex;
        gap: .5rem;
        list-style-type: none;
    }
    .nav_item {
        font-size: .9rem;
        font-weight: 700;
        color: var(--white);
        transition: background-color .4s ease-in-out;
        padding: .6rem 1rem;
    }
    .nav_item:hover {
        border: none;
        border-radius: 20px;
        background-color: rgba(255, 255, 255, 0.3);
        color: var(--white);
        cursor: pointer;
        transform: scale(1.05);
        padding: .6rem 1rem;
    }
    .nav_item.active {
        border: none;
        border-radius: 20px;
        background-color: rgba(255, 255, 255, 0.8);
        color: var(--grey-950);
        transform: scale(1.05);
        padding: .6rem 1rem;
    }
}