* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: white;
    --dark: grey;
    --light: white;
    --shadow: 0 1px 5px rgba(130, 119, 119, 0.8);
 }


@font-face {
    font-family: "futura";
    src: url(fonts/futura/Futura\ Book\ font.ttf);
 }

body a:hover {
    color: red;
}

body {
    display: grid;
    width: 100%;
    font-family: futura;
    background-color: rgb(255, 255, 255);
    

    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-auto-rows: ;
    grid-template-areas: 
                "header header header header"
                "nav nav nav nav"
                "main_text main_text main_image main_image"
                "nd_head nd_head nd_head nd_head"
                "Hardware_services Hardware_services Hardware_services Hardware_services"
                "explained_image explained_image explained_image explained_image"
                "explained_text explained_text explained_text explained_text"
                "footer footer footer footer"
}


header {
    grid-area: header;
    text-align: center;
    box-shadow: var(--shadow);
}

nav {
    grid-area: nav;
    display: flex;

    align-items: center;
    justify-content: space-around;
    box-shadow: var(--shadow);
}

nav img {
    max-width: 60%;
    width: 100%;
    padding: .7rem 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    list-style: none;
    text-decoration: none;
    color: rgb(0, 0, 0);
    padding: 0 1rem;
    margin: .3rem;
    box-shadow: var(--shadow);
}



.main_text {
    grid-area: main_text;
    margin-top: 2rem;
}

.main_text h1 {
    display: grid;

    padding: 1rem;
    color: rgb(0, 0, 0);
    font-size: 1rem;
}

.main_text p {
    padding: 1rem;
    color: rgb(0, 0, 0);
}

.main_image {
    grid-area: main_image;
    margin-top: 1rem;
}

.main_image img {
    width: 100%;
}


.nd_head {
    grid-area: nd_head;
    box-shadow: var(--shadow);
    margin: 3rem 0;
    text-align: center;
    padding: 1rem 0;
}

.nd_head a {
    text-decoration: none;
    color: black;
}


.Hardware_services {
    grid-area: Hardware_services;
    display: flex;
    justify-content: center;
}


.Hardware_services article {
    padding: 2rem 4rem;
    margin: 1rem;
    border: 2px solid rgb(0, 0, 0);
    border-radius: 7px;
}


.explained_image {
    grid-area: explained_image;
    margin: 1rem 0;
}

.explained_image img {
    width: 100%;
}

.explained_image figcaption {
    text-align: center;

}

.explained_image figcaption a {
    text-decoration: none;
    box-shadow: var(--shadow);
    padding: 0.2rem 1.5rem;
    color: black;
    font-size: .8rem;
}


.explained_text {
    grid-area: explained_text;
    margin: 2rem;
}







/* FOOTER SECTION */


footer {
    display: grid;
    grid-area: footer;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    padding: 2rem 0;
    
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-auto-rows: ;
    grid-template-areas:
                            "footer_social_links footer_info footer_info foot_logo"

    ;
}

footer ul li {
    list-style: none;
}


.footer_social_links {
    grid-area: footer_social_links;
    margin: 0rem 2rem;
    
}

.footer_social_links ul li a {
    display: flex;
    color: rgb(0, 0, 0);
    list-style: none;
    text-decoration: none;
    padding: 1rem;
}

.footer_social_links a:hover {
    color: royalblue;
}

.footer_info {
    grid-area: footer_info;
    display: grid;
    justify-content: center;
    padding: 1rem 1rem;
}

.footer_info ul li a {
    display: flex;
    color: rgb(0, 0, 0);
    list-style: none;
    text-decoration: none;
    padding: .5rem;
}

.footer_info a:hover {
    color: royalblue;
}

.foot_logo {
    grid-area: foot_logo;
    display: grid;
    justify-content: start;
    align-items: center;
}

.foot_logo img {
    max-width: 70%;
}





@media screen and (max-width: 768px) {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    :root {
        --primary: white;
        --dark: grey;
        --light: white;
        --shadow: 0 1px 5px rgba(130, 119, 119, 0.8);
     }
    
    
    @font-face {
        font-family: "futura";
        src: url(fonts/futura/Futura\ Book\ font.ttf);
     }
    
    body a:hover {
        color: red;
    }
    
    body {
        display: grid;
        width: 100%;
        font-family: futura;
    
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-auto-rows: ;
        grid-template-areas: 
                    "header header header header"
                    "nav nav nav nav"
                    "main_image main_image main_image main_image"
                    "main_text main_text main_text main_text"
                    "nd_head nd_head nd_head nd_head"
                    "Hardware_services Hardware_services Hardware_services Hardware_services"
                    "explained_image explained_image explained_image explained_image"
                    "explained_text explained_text explained_text explained_text"
                    "footer footer footer footer"
    }
    
    
    header {
        grid-area: header;
        text-align: center;
        box-shadow: var(--shadow);
        font-size: .8rem;
    }
    
    nav {
        grid-area: nav;
        display: grid;
        box-shadow: none;
        align-items: center;
        justify-content: center;
    }
    
    nav img {
        max-width: 40%;
        width: 100%;
        padding: 1rem 0;
    margin-left: 6rem;
    }
    
    nav ul {
        display: flex;
        list-style: none;
        margin: 1rem 0;
    }
    
    nav ul li a {
        list-style: none;
        text-decoration: none;
        color: rgb(0, 0, 0);
        padding: 0 1rem;
        font-size: .8rem;
        margin: .4rem;
        box-shadow: var(--shadow);
    }
    
    
    
    .main_text {
        grid-area: main_text;
    }
    
    .main_text h1 {
        display: grid;
    
        padding: .5rem .5rem;
        color: rgb(0, 0, 0);
        font-size: .8rem;
    }
    
    .main_text p {
        padding: .5rem .4rem;
        color: rgb(0, 0, 0);
        font-size: .8rem;
    }
    
    .main_image {
        grid-area: main_image;
    }
    
    .main_image img {
        width: 100%;
    }
    
    
    .nd_head {
        grid-area: nd_head;
        background-color: white;
        box-shadow: var(--shadow);
        margin: 1rem 0.5rem;
        text-align: center;
        padding: 0.3rem 0;
    }
    
    .nd_head a {
        text-decoration: none;
        color: black;
        font-size: 1.2rem;
    }
    
    
    .Hardware_services {
        grid-area: Hardware_services;
        display: flex;
        background-color: white;
        justify-content: center;
        font-size: .8rem;
    }
    
    
    .Hardware_services article {
        padding: 1rem .5rem;
        margin: .5rem;
        border: 1px solid rgb(0, 0, 0);
        border-radius: 7px;
    }
    
    
    .explained_image {
        grid-area: explained_image;
        margin: .3rem 0;
    }
    
    .explained_image img {
        width: 100%;
    }
    
    
    .explained_text {
        grid-area: explained_text;
        margin: 1rem .5rem;
    }
    
    
    
    
    
    
    
    /* FOOTER SECTION */
    
    footer {
        display: grid;
        grid-area: footer;
        box-shadow: var(--shadow);
        margin: 0rem 0;
        padding: 2rem 0;
        
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-auto-rows: ;
        grid-template-areas:
                                "foot_logo foot_logo foot_logo foot_logo"
                                "footer_social_links footer_social_links footer_info footer_info"
    
        ;
    }
    
    footer ul li {
        list-style: none;
    }
    
    
    .footer_social_links {
        grid-area: footer_social_links;
        margin: 0rem .5rem;
        
    }
    
    .footer_social_links ul li a {
        display: flex;
        color: rgb(0, 0, 0);
        list-style: none;
        text-decoration: none;
        padding: 1rem .2rem;
        font-size: .7rem;
    }
    
    .footer_social_links a:hover {
        color: royalblue;
    }
    
    .footer_info {
        grid-area: footer_info;
        display: grid;
        justify-content: center;
        padding: 1rem .1rem;
    }
    
    .footer_info ul li a {
        display: flex;
        color: rgb(0, 0, 0);
        list-style: none;
        text-decoration: none;
        padding: .5rem 0;
        font-size: .7rem;
    }
    
    .footer_info a:hover {
        color: royalblue;
    }
    
    .foot_logo {
        grid-area: foot_logo;
        display: grid;
        justify-content: start;
        align-items: center;
    }
    
    .foot_logo img {
        max-width: 70%;
    }
    
}