/* Lato Font Family */
@font-face {
    font-family: Lato;
    font-weight: 300;
    src: local('Lato Light'),
         local('Lato-Light'),
         url(../fonts/Lato-Light.ttf) format('truetype');
    font-display: swap;
}

@font-face {
    font-family: Lato;
    font-weight: 400;
    src: local('Lato Regular'),
         local('Lato-Regular'),
         url(../fonts/Lato-Regular.ttf) format('truetype');
    font-display: swap;
}

@font-face {
    font-family: Lato;
    font-weight: 700;
    src: local('Lato Bold'),
         local('Lato-Bold'),
         url(../fonts/Lato-Bold.ttf) format('truetype');
    font-display: swap;
}

/* Reset styles */

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



/*** Global styles ***/

body {
    font-family: 'Lato';
    line-height: 1.25;
    letter-spacing: .1rem;
}

a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    padding: .5rem 1rem;
}

a:hover {
    background-color: #222;
    color: #fff;
    border-radius: 5px;
}

button {
    border: none;
    border-radius: 5px;
    padding: 1rem 2rem;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: .1rem;
    text-shadow: 0 0 black;
    font-weight: bold;
}

p {
    line-height: 1.75;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: .3rem;
    overflow-wrap: break-word;
}

ul {
    list-style-type: none;
}



/*** Main Content ***/

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    gap: 1rem;
}

nav > * {
    flex: 1;
}

.logo {
    flex: unset;
}

.logo img {
    height: 50px;
    display: block;
    border-radius: 5px;
    margin: 1rem 0;
}

.slogan {
    font-size: 1.25rem;
}

.menu {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    text-align: center;
}

.hero {
    background: url(../images/web-development.webp) no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 5%;
    box-shadow: 0 0 0 2000px rgb(0, 0, 0, 30%) inset;
}

.wrapper {
    color: #fff;
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    text-shadow: 0 0 20px #000;
    font-size: 1.25rem;
}

.btn {
    background-color: rgb(255, 127, 80);
    color: #fff;
    width: 50%;
    margin: 0 auto;
    box-shadow: 0 3px 4px #222;
    position: relative;
    margin-top: 1rem;
}

.btn:hover {
    color: #fff;
    position: relative;
    top: 1px;
    box-shadow: 0 1px 4px #222;
}



/*** Media queries ***/

@media screen and (max-width: 992px) {

    /* Responsive menu */

    #burger:before {
        content: "\2716";
        font-size: 2rem;
        display: block;
        opacity: 1;
        position: fixed;
        z-index: 99;
        right: 5%;
        top: 1.5rem;
        border-radius: 5px;
        opacity: 1;
        visibility: visible;
    }

    #burger.hide:before {
        content: "\2630";
        position: absolute;
    }
    
    #burger.hide .menu {
        opacity: 0;
        visibility: hidden;
        transition: .5s ease;
    }

    .menu {
        text-transform: uppercase;
        position: fixed;
        background-color: rgb(255, 127, 80, 95%);
        width: 80%;
        right: 0;
        height: 100vh;
        z-index: 9;
        top: 0;
        justify-content: flex-start;
        box-shadow: -10px 0 10px rgb(0 0 0 / 50%);
        gap: 2rem;
        transition: .5s ease;
    }

    .menu a {
        color: #fff;
        font-size: 1.25rem;
        display: block;
        padding: 2rem;
    }

    .menu a:hover,
    .menu a:focus {
        background-color: rgb(255, 160, 122);
    }

    /* End Responsive Menu */
    
    .menu {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {

    .btn {
        width: 70%;
    }
}

@media screen and (max-width: 576px) {

    .slogan {
        flex-basis: 50%;
    }
    
    .hero {
        padding: 6rem 0;
    }

    .btn {
        width: 90%;
    }
}
