/*
===============
Fonts
===============
*/
@import url("https://fonts.googleapis.com/css?family=Open+Sans|Roboto:400,700&display=swap");

/*
===============
Variables
===============
*/

:root {
    /* dark shades of primary color*/
    --clr-primary-1: hsl(0, 92%, 5%);
    --clr-primary-2: hsl(0, 94%, 7%);
    --clr-primary-3: hsl(1, 96%, 10%);
    --clr-primary-4: hsl(0, 94%, 14%);
    /* primary/main color */
    --clr-primary-5: hsl(1, 95%, 17%);
    /* lighter shades of primary color */
    --clr-primary-6: hsl(0, 38%, 34%);
    --clr-primary-7: hsl(1, 19%, 50%);
    --clr-primary-8: hsl(0, 20%, 67%);
    --clr-primary-9: hsl(4, 20%, 83%);
    --clr-primary-10: hsl(0, 19%, 92%);
    /* secondary color */
    /* dark shades of primary color*/
    --clr-secondary-1: hsl(140, 13%, 5%);
    --clr-secondary-2: hsl(150, 13%, 6%);
    --clr-secondary-3: hsl(150, 14%, 9%);
    --clr-secondary-4: hsl(150, 13%, 12%);
    /* primary/main color */
    --clr-secondary-5: hsl(150, 14%, 15%);
    /* lighter shades of primary color */
    --clr-secondary-6: hsl(150, 5%, 32%);
    --clr-secondary-7: hsl(150, 2%, 49%);
    --clr-secondary-8: hsl(0, 20%, 67%);
    --clr-secondary-9: hsl(150, 2%, 66%);
    --clr-secondary-10: hsl(150, 2%, 83%);
    /* darkest grey - used for headings */
    --clr-grey-1: hsl(209, 61%, 16%);
    --clr-grey-2: hsl(211, 39%, 23%);
    --clr-grey-3: hsl(209, 34%, 30%);
    --clr-grey-4: hsl(209, 28%, 39%);
    /* grey used for paragraphs */
    --clr-grey-5: hsl(210, 22%, 49%);
    --clr-grey-6: hsl(209, 23%, 60%);
    --clr-grey-7: hsl(211, 27%, 70%);
    --clr-grey-8: hsl(210, 31%, 80%);
    --clr-grey-9: hsl(212, 33%, 89%);
    --clr-grey-10: hsl(210, 36%, 96%);
    --clr-white: #fff;
    --ff-primary: "Roboto", sans-serif;
    --ff-secondary: "Open Sans", sans-serif;
    --transition: all 0.3s linear;
    --spacing: 0.25rem;
    --radius: 0.5rem;
    --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --max-width: 1170px;
}
/*
===============
Global Styles
===============
*/

*,
::after,
::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--ff-secondary);
    background: var(--clr-white);
    color: var(--clr-grey-1);
    line-height: 1.5;
    font-size: 0.875rem;
}
ul {
    list-style-type: none;
}
a {
    text-decoration: none;
}
img:not(.nav-logo) {
    width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    letter-spacing: var(--spacing);
    text-transform: capitalize;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    font-family: var(--ff-primary);

}
h1 {
    font-size: 3rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.25rem;
}
h4 {
    font-size: 0.875rem;
}
p {
    margin-bottom: 1.25rem;
    color: var(--clr-grey-5);
}
@media screen and (min-width: 800px) {
    h1 {
        font-size: 4rem;
    }
    h2 {
        font-size: 2.5rem;
    }
    h3 {
        font-size: 1.75rem;
    }
    h4 {
        font-size: 1rem;
    }
    body {
        font-size: 1rem;
    }
    h1,
    h2,
    h3,
    h4 {
        line-height: 1;
    }
}
/*  global classes */

.btn {
    text-transform: uppercase;
    background: var(--clr-white);
    color: var(--clr-primary-5);
    padding: 0.375rem 0.75rem;
    letter-spacing: var(--spacing);
    display: inline-block;
    font-weight: 700;
    transition: var(--transition);
    font-size: 0.875rem;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
}
.btn:hover {
    color: var(--clr-white);
    background: var(--clr-primary-6);
}
/* section */
.section {
    padding: 5rem 0;
}

.section-center {
    width: 90vw;
    margin: 0 auto;
    max-width: 1170px;
}
@media screen and (min-width: 992px) {
    .section-center {
        width: 95vw;
    }
}



.underline{
    width: 5rem;
    height: 0.25rem;
    margin-bottom: 1.25rem;
    background: var(--clr-primary-5);
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: 4rem;
    text-align: center;
}

.bg-grey{
    background: var(--clr-grey-10);
}

/*
===============
Navbar
===============
*/

.nav-links{
    display: none /* hide the display on smaller screen */;
}

.nav{
    height: 5rem;
    padding: 1rem;
    display: grid;
    align-items: center;
    transition: var(--transition);
}

.nav-center{
    width: 100%;
    max-width: 1170px; /* doesnt go beyond this width on bigger screen */
    margin: 0 auto;
}

.nav-header{
    display: grid;
    grid-template-columns: auto 1fr;
    /* note that we set first column to auto so when we move to bigger screen nd hide the second colmn, it is space collapses. if we set 1fr 1fr the space for the hidden column is still reserved */
    align-items: center;
}

.nav-btn{
    background: transparent;
    border-color: transparent;
    color: var(--clr-primary-5);
    font-size: 2rem;
    cursor: pointer ;
    /*  justify-content: space-between; if it were flexbox */

    justify-self: end;
}
@media screen and (min-width: 768px) {
    .nav{
        background: var(--clr-grey-10);
    }
    .nav-btn{
        display: none; /* hide the bars */
    }

    .nav-links{
        display: grid;
        grid-template-columns: repeat(4,1fr);
        justify-items: center;
        -moz-column-gap: 2rem;
        column-gap: 2rem;
        justify-self: end;
    }

    .nav-links a{
        text-transform: capitalize;
        color: var(--clr-grey-1);
        font-weight: bold;
        letter-spacing: var(--spacing);
        transition: var(--transition);

    }
    .nav-links a:hover {
        color: var(--clr-primary-5);
    }

    .nav-center{
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
    }
}

/* fixed nav-bar */

.navbar-fixed{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background:  var(--clr-white);
    z-index: 2;
    box-shadow: var(--light-shadow);
}





/*
===============
Sidebar
===============
*/
.sidebar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-grey-10);
    z-index: 4;
    display: grid;
    /* align-items: center;
    justify-content: center; */
    place-items: center;
    transition: var(--transition);
    transform: translateX(-100%);
}

.show-sidebar{
    transform: translateX(0);
}



.sidebar-links a{
    font-size: 2rem;
    text-transform: capitalize;
    transition: var(--transition) ;
    color: var(--clr-grey-5);
    letter-spacing: var(--spacing);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.sidebar-links a:hover {
    color: var(--clr-primary-5);
}
.social-icons{
    display: grid;
    margin-top: 3rem;
    width: 20rem;
    grid-template-columns: repeat(5,1fr);
    justify-items: center;
}

.social-icon{
    font-size: 1.5rem;
    color: var(--clr-grey-1);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--clr-primary-5);
}

.close-btn{
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    background: transparent;
    border: transparent;
    transition: var(--transition);
    color: #bb2525;
    cursor: pointer;
}

.close-btn:hover{
    color: #e66b6b;
}



/*
===============
Footer
===============
*/
.footer{
    padding-bottom: 2rem;
    background: #222;
    display: grid;
    place-items: center;
}

.footer .social-icons{
    margin-bottom: 2rem;

}
.footer .social-icon{
    color: var(--clr-primary-6);
}

.footer .social-icon:hover{
    color: var(--clr-primary-10);
}
.footer p {
    font-size: 1.25rem;
    text-transform: capitalize;
    padding: 1rem;
    line-height: 2.5rem;
    text-align: center;
}

.footer a{
    color: white;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--clr-primary-7);

}
