/*=============== 
Fonts
===============
*/
@font-face {
    font-family: "vazir";
    src: url("../fonts/vazir/Vazir-Medium-FD-WOL.woff") format("woff2"),
        url("../fonts/vazir/Vazir-Medium-FD-WOL.woff") format("woff"),
        url("../fonts/vazir/Vazir-Medium-FD-WOL.ttf") format("truetype");
}
/*

/*
=============== 
Variables
===============
*/

:root {
    --clr-primary-1: #483CB0;
    --clr-primary-2: #FFCC00;
    --clr-primary-3: #483CB0;
    --clr-grey-1: #102a42;
    --clr-grey-2: #617d98;
    --clr-grey-3: #9eb2c7;
    --clr-grey-4: #f1f5f8;
    --clr-white: #fff;
    --clr-footer: #10002b;
    --ff-primary: "vazir", sans-serif;
    --transition: all 0.3s linear;
    --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/*
=============== 
Global Styles
===============
*/

* {    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--ff-primary);
    line-height: 1.5;
    font-size: 0.875rem;
    background: #1A1A1A;
    color: #EEEEEE ;
    
}
ul {
    list-style-type: none;
}
a {
    text-decoration: none;
}
img {
    width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    line-height: 1.25;
    margin-bottom: 0.75rem;
}
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-2);
}
@media screen and (min-width: 800px) {
    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;
    }
}

.btn {
    background: var(--clr-primary-2);
    color: #000;
    padding: 0.375rem 0.75rem;
    display: inline-block;
    transition: var(--transition);
    font-size: 0.875rem;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    color: #fff;
    background: var(--clr-primary-3);
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title span {
    color: var(--clr-primary-2);
}

.section-center {
    width: 90vw;
    margin: 0 auto;
}

@media screen and (min-width: 992px) {
    .section-center {
        width: 95vw;
        max-width: 1170px;
    }
}

/*
=============== 
Navbr
===============
*/

.navbar {
    position: fixed;
    top: 0;
    right: 0;
    background: var(--clr-white);
    width: 100%;
    box-shadow: var(--dark-shadow);
    z-index: 2;
}

.navbar-center {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
}

.nav-icons {
    display: none;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-header h3 {
    margin-bottom: 0;
}

.nav-toggle {
    background: transparent;
    border: transparent;
    color: #000;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
}

.nav-toggle:hover {
    transform: scale(1.2);
}

.nav-link {
    display: block;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    color: var(--clr-grey-1);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--clr-primary-1);
    background: var(--clr-primary-3);
    padding-right: 2.25rem;
}

.nav-links {
    height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.show-links {
    height: 280px;
}

@media screen and (min-width: 992px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .nav-toggle {
        display: none;
    }

    .navbar-center {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        height: auto;
        display: flex;
    }

    .nav-header {
        padding: 0 0;
    }

    .nav-link {
        padding: 0 0;
        margin-right: 0.75rem;
    }

    .nav-link:hover {
        padding: 0;
        color: var(--clr-primary-2);
        background: transparent;
    }

    .nav-icons {
        display: flex;
    }

    .nav-icon {
        color: var(--clr-primary-2);
        font-size: 1.2rem;
        margin-right: 0.75rem;
    }

    .nav-icon:hover {
        color: var(--clr-primary-3);
    }
}

/*
=============== 
Hero
===============
*/
.hero {
    min-height: 110vh;
    background-color: var(--clr-primary-2);
    display: flex;
    justify-content: center;
    align-items: center;
            background: linear-gradient(rgba(0,102,255,0.7), rgba(0, 0, 0, 0.7)),
            url("../f1/bac.jpg") center/cover no-repeat;
}

.hero-banner {
    padding: 0 3rem;
    text-align: center;
}
.hero-banner h1 {
    color: var(--clr-white);
    margin-bottom: 3rem;
}

.hero-banner p {
    max-width: 35rem;
    color: var(--clr-white);
    margin-bottom: 2rem;
}

.btn-hero {
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    background:rgba(102,102,102,0.68);
    color: var(--clr-primary-2);
    border: 1px solid #000;
}

.btn-hero:hover {
    background: transparent;
    color: var(--clr-white);
    border-color: var(--clr-white);
}

@media screen and (min-width: 768px) {
    .hero {
        background: linear-gradient(rgba(0,102,255,0.7), rgba(0, 0, 0, 0.7)),
            url("../f1/bac.jpg") center/cover no-repeat;
    }

    .hero-banner {
        padding: 0;
    }

    .hero-banner p {
        max-width: 45rem;
    }
}

/*
=============== 
About
===============
*/

.about-img {
    margin-bottom: 2rem;
}

@media screen and (min-width: 992px) {
    .about-center {
        display: flex;
        justify-content: space-between;
    }

    .about-img {
        margin-bottom: 0;
    }

    .about-img,
    .about-info {
        flex: 0 0 calc(50% - 2rem);
        align-self: center;
    }
}

@media screen and (min-width: 1170px) {
    .about-img {
        position: relative;
    }

    .about-img::before {
        content: "";
        border: 0.5rem solid var(--clr-primary-2);
        width: 100%;
        height: 100%;
        position: absolute;
        box-sizing: border-box;
        top: -1rem;
        right: -1rem;
        z-index: -1;
    }
}

/*
=============== 
Services
===============
*/

.services {
    background: var(--clr-grey-4);
}

.service {
    text-align: center;
    margin-bottom: 3rem;
}

.service-icon {
    background: var(--clr-primary-2);
    color: var(--clr-white);
    font-size: 2rem;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-text {
    max-width: 20rem;
    margin: 0 auto;
    text-align:justify;
}

@media screen and (min-width: 576px) {
    .services-center {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .service {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media screen and (min-width: 992px) {
    .service {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

@media screen and (min-width: 1170px) {
    .service {
        display: flex;
        text-align: right;
    }

    .service-info {
        padding-right: 0.75rem;
    }

    .service-icon {
        align-self: start;
    }

    .service-title {
        margin-bottom: 0.5rem;
    }
}

/*
=============== 
Articles
===============
*/

.article-card {
    background: var(--clr-grey-4);
    margin-bottom: 2rem;
    box-shadow: var(--light-shadow);
    transition: var(--transition);
}

.article-card:hover {
    box-shadow: var(--dark-shadow);
    transform: scale(1.02);
}

.article-img-container {
    position: relative;
}

.article-img {
    height: 15rem;
    object-fit: cover;
}

.article-category {
    position: absolute;
    right: 0;
    bottom: 0;
    background:#ffcc00;
    color:#000;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0;
}

.article-info {
    padding: 1.25rem 1.5rem;
}

.article-title {
    display: flex;
    justify-content: space-between;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-footer p {
    margin-bottom: 0;
    color:#F02F32;
}

.article-footer a {
  color:#F02F32;
}

.article-btn {
    text-align: center;
}

@media screen and (min-width: 768px) {
    .articles-center {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .article-card {
        flex: 0 0 calc(50% - 2rem);
    }
}

@media screen and (min-width: 1170px) {
    .article-card {
        flex: 0 0 calc(33.333% - 2rem);
    }
}

/*
=============== 
Contact
===============
*/

.contact {
    background: var(--clr-primary-2);
}

.contact-title,
.contact-title p {
    color: var(--clr-white);
}

.contact-form {
    display: flex;
}

.form-control {
    flex: 1 1 auto;
    color: var(--clr-grey-2);
}

.form-control,
.btn-submit {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border: transparent;
}

.form-control::placeholder {
    font-family: var(--ff-primary);
    color: inherit;
}

.btn-submit {
    font-family: var(--ff-primary);
    background: var(--clr-primary-3);
    color: var(--clr-white);
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--clr-primary-1);
}

@media screen and (min-width: 992px) {
    .contact-center {
        display: flex;
        /* justify-content: space-between; */
        gap: 2rem;
    }

    .contact-form {
        align-self: flex-start;
        flex: 1 1 auto;
    }
}

/*
=============== 
Gallery
===============
*/

.gallery-img-container {
    position: relative;
    background: var(--clr-primary-2);
}


.gallery-img {
    width: 100%;
    height: auto;
    object-fit: unset;
}


.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    color: var(--clr-white);
    font-size: 2rem;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition);
}

.gallery-img-container:hover .gallery-img {
    opacity: 0.5;
}

.gallery-img-container:hover .gallery-icon {
    opacity: 1;
}

@media screen and (min-width: 768px) {
    .gallery-center {
        display: flex;
        flex-wrap: wrap;
    }

    .gallery-img-container {
        flex: 0 0 50%;
    }
}

@media screen and (min-width: 992px) {
    .gallery-img-container {
        flex: 0 0 25%;
    }
}

/*
=============== 
Footer
===============
*/

.footer {
    background: var(--clr-footer);
    text-align: center;
    padding-left: 2rem;
    padding-right: 2rem;
}

.footer-links,
.footer-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: var(--clr-white);
    font-size: 1rem;
    margin-right: 1rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--clr-primary-2);
}

.footer-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--clr-primary-3);
    transition: var(--transition);
}

.footer-icon:hover {
    color: var(--clr-primary-2);
}

.copyright {
    color: var(--clr-white);
}


.center-image {
    display: block;
    margin: 0 auto 2rem auto;
    width: 200px;
    border-radius: 100%;
    margin-top: 80px;
}