/*
=============== 
Fonts
===============
*/
@font-face {
    font-family: "yekan";
    src: url("../fonts/yekan/YekanNewFaceD1-Regular.ttf") format("truetype"),
    url("../fonts/yekan/YekanNewFaceD1-Medium.ttf") format("truetype"),
    url("../fonts/yekan/YekanNewFaceD1-Bold.ttf") format("truetype");
}

:root {
    --clr-orange: #FF5B22;
    --clr-light-or: #FF9130;
    --clr-purple: #ffffff;
    --clr-grey-1: #afafaf;
    --clr-grey-2: #FFEAC5;
    --clr-grey-3: #222831;
    --clr-green-1: #e8e4e2;
    --clr-green-2: #D5E7B5;
    --clr-green-3: #185519;
    --clr-grey-4: #F2AE66;
    --clr-light-1: #f8d6bf;
    --clr-white: #fff;
    --ff-primary: "yekan", sans-serif;
    --transition: all 0.3s linear;
    --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-primary);
    background: var(--clr-light-or);
    color: var(--clr-grey-3);
    line-height: 1.5;
    font-size: 0.875rem;
}
ul {
    list-style-type: none;
}
a {
    text-decoration: none;
}

img {
    width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    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: 1rem;
}
h5 {
    font-size: 1rem;
}
h6 {
    font-size: 0.5rem;
}
p {
    margin-bottom: 1.25rem;
    color: var(--clr-grey-2);
}
@media screen and (min-width: 800px) {
    h1 {
        font-size: 4rem;
    }
    h2 {
        font-size: 2.5rem;
    }
    h3 {
        font-size: 1.75rem;
    }
    h4 {
        font-size: 1.25rem;
    }
    h5 {
        font-size: 1rem;
    }
    h6 {
        font-size: 0.75rem;
    }
    body {
        font-size: 1rem;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
}

/*  global classes */

.btn {
    background: var(--clr-grey-3);
    color: var(--clr-white);
    padding: 0.375rem 0.75rem;
    display: inline-block;
    transition: var(--transition);
    font-size: 0.875rem;
    font-family: var(--ff-primary);
    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-primary-1);
    background: var(--clr-primary-3);
}

.section {
    padding: 5rem 0;
}

.section-center {
    width: 90vw;
    margin: 0 auto;
    max-width: var(--max-width);
}

@media screen and (min-width: 992px) {
    .section-center {
        width: 95vw;
    }
}

.section-title {
    margin-bottom: 4rem;
    text-align: center;
    color: #222222;
}

.underline {
    width: 5rem;
    height: 0.25rem;
    background: var(--clr-grey-4);
    margin-bottom: 1.25rem;
    margin-left: auto;
    margin-right: auto;
}

.bg-grey {
    background: var(--clr-green-1);
}

/*
=============== 
Navbar
===============
*/

.nav-links {
    display: none;
}

.nav {
    background: var(--clr-white);
    height: 4.5rem;
    padding: 1rem;
    transition: var(--transition);
    z-index: 3;
}

.nav-center {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.nav-header h3 {
    font-size: 1.75rem;
}

.nav-btn {
    justify-self: end;
    background: transparent;
    border-color: transparent;
    color: var(--clr-orange);
    font-size: 2rem;
    cursor: pointer;
}

@media screen and (min-width: 768px)
{
    .nav-btn {
        display: none;
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 2rem;
        justify-items: center;
        justify-self: end;
    }

    .nav-links a {
        color: var(--clr-grey-3);
        transition: var(--transition);
    }

    .nav-links a:hover {
        color: var(--clr-light-or);
    }

    .nav-center {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
    }
}

.navbar-fixed {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: var(--clr-white);
    box-shadow: var(--light-shadow);
}

/*
=============== 
Sidebar
===============
*/

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-grey-3);
    z-index: 4;
    display: grid;
    /* justify-content: center;
    align-items: center; */
    place-content: center;
    transform: translateX(100%);
    transition: var(--transition);
}

.show-sidebar {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    background: transparent;
    border: transparent;
    color: #bb2525;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: #e66b6b;
}

.sidebar-links {
    text-align: center;
}

.sidebar-links a {
    font-size: 1.5rem;
    color: var(--clr-grey-2);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.sidebar-links a:hover {
    color: var(--clr-light-or);
    transition: var(--transition);
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-items: center;
    column-gap: 2rem;
    margin-top: 3rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--clr-grey-3);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--clr-orange);
}

/*
===============
Hero
===============
*/
.hero {
    background: var(--clr-white);
}

.hero .underline {
    margin-right: 0;
    margin-bottom: 1rem;
}

.hero-img {
    display: none;
}

.hero-center {
    min-height: calc(100vh - 4.5rem);
    display: grid;
    place-items: center;
}

.hero-info h4 {
    color: var(--clr-grey-3);
    margin-top: 2rem;
}

.hero-btn {
    margin-top: 1.25rem;
    color: #EAE4DD;
    background: #222222;
}

/*
=============== 
About
===============
*/

.about-center {
    display: grid;
    gap: 3rem;
}

.about-photo {
    max-width: 25rem;
    max-height: 30rem;
    object-fit: cover;
    border-radius: var(--radius);
    position: relative;
}

.about-img {
    justify-self: center;
}

.about-title {
    margin-bottom: 2rem;
}

.about-title .underline {
    margin-right: 0;
}

@media screen and (min-width: 992px) {
    .about-center {
        grid-template-columns: 1fr 1fr;
    }

    .about-img {
        position: relative;
    }

    .about-info {
        align-self: center;
    }
}
/*
===============
Services
===============
*/

.service {
    background: var(--clr-light-1);
    padding: 0rem 0rem;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service .underline {
    width: 3rem;
    height: 0.12rem;
    transition: var(--transition);
}

.service:hover {
    background: var(--clr-light-or);
    color: var(--clr-grey-3);
}

.service p {
    transition: var(--transition);
    color: #222222;
}

.service:hover p {
    color: var(--clr-grey-3);
}

.service:hover .underline {
    background: var(--clr-orange);
}

@media screen and (min-width: 500px) {
    .services2-center {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        column-gap: 2rem;
    }
}
@media screen and (min-width: 992px) {
    .services2-center {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }
}
@media screen and (max-width: 600px) {
    .services2-center {
        grid-template-columns: 1fr 1fr;
    }
}


/*
===============
Projects
===============
*/


/*
=============== 
Footer
===============
*/

.footer {
    padding-bottom: 2rem;
    background: #222;
    display: grid;
    place-items: center;
}

.footer .social-icons {
    margin-bottom: 2rem;
}

.footer .social-icon {
    color: var(--clr-light-or);
}

.footer .social-icon:hover {
    color: var(--clr-orange);
}

.footer p {
    font-size: 1.25rem;
}