/* 
================================
            Fonts
================================
*/

@font-face {
    font-family: "vazir";
    src: url("../fonts/vazir/Vazir-Bold-FD-WOL.woff") format("woff"),
         url("../fonts/vazir/Vazir-Bold-FD-WOL.woff2") format("woff2"),
         url("../fonts/vazir/Vazir-Bold-FD-WOL.ttf") format("truetype");
}

/* 
================================
            Variables
================================
*/

:root{
    --clr-primary-1: #5a189a;
    --clr-primary-2: #7b2cbf;
    --clr-primary-3: #9d4edd;
    --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);
    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 {
    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: var(--clr-white);
    padding: 0.375rem 0.75rem;
    display: inline-block;
    transition: var(--transition);
    font-size: 0.875rem;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    border-radius: 0.4rem;
}
.btn:hover{
    color: var(--clr-white);
    background: var(--clr-primary-3);
    /* transform: scaleX(1.2); */
    border-radius: 1rem;
}

.section{
    padding: 5rem 0;
}

.section-title{
    text-align: center;
    margin-bottom: 2rem;
}
.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;
    }
}

/* 
================================
            navbar
================================
*/

.navbar{
    position: fixed;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    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-header h3 a{
    color: black;
    transition: var(--transition);
}
.nav-header h3 a:hover{
    color: var(--clr-primary-2);
}
.nav-toggle{
    font-size: 1.5rem;
    background: transparent;
    border: transparent;
    color: var(--clr-primary-2);
    cursor: pointer;
    transition: var(--transition);
}
.nav-toggle:hover{
    transform: scale(1.3);
}
.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-white);
    background-color: var(--clr-primary-3);
    padding-right: 2.5rem;
}
.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;
        transition: var(--transition);
    }
    .nav-icon:hover{
        color: orange;
    }
}
/* 
================================
            hero
================================
*/

.hero {
    min-height: 100vh;
    background: linear-gradient( to top right, var(--clr-grey-2), var(--clr-primary-2), var(--clr-primary-3));
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-banner {
    padding: 0 3rem;
    text-align: center;
}
.hero-banner h1 {
    color: yellow;
    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: var(--clr-white);
    color: var(--clr-primary-2);
}

.btn-hero:hover {
    background: transparent;
    color: var(--clr-white);
    border-color: var(--clr-white);
}

@media screen and (min-width: 768px) {
    .hero {
        background: linear-gradient(rgb(199, 125, 255, 0.7), rgba(0, 0, 0, 0.7)),
            url("../images/main.jpg") center/cover no-repeat;
    }

    .hero-banner {
        padding: 0;
    }

    .hero-banner p {
        max-width: 45rem;
    }
}

/* 
================================
            About
================================
*/

.about-img{
    margin-bottom: 2rem;
}
.vasatchin{
    text-align: center;
}
@media screen and (min-width: 768px) {
    .about-center{
        display: flex;
        justify-content: space-between;
    }
    .about-img{
        margin-bottom: 0;
        position: relative;
    }
    .img-border{
        transition: all 0.4s linear;
    }
    .img-border:hover{
        border-radius: 0.5rem;
        transform: translate(0.75rem, -0.75rem);
    }
    .about-img::before{
        content: "";
        border: 0.25rem solid var(--clr-primary-2);
        border-radius: 0.5rem;        
        width: 100%;
        height: 100%;
        position: absolute;
        box-sizing: border-box;
        top: -0.75rem;
        right: -0.75rem;
        z-index: -1;
    }
    .about-img img{
        border-radius: 0.5rem;
    }
    .about-img, .about-info{
        flex: 0 0 calc(50% - 2rem);
        align-self: center;
    }
}

/* 
================================
            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;
    border-radius: 0.5rem;
}
.service-text{
    max-width: 20rem;
    margin: 0 auto;
}
@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.3% - 1rem);
    }
}
@media screen and (min-width: 1170px) {
    .service{
        display: flex;
        text-align: right;
    }
    .service-info{
        padding-right: 1rem;
    }
    .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);
    border-radius: 0.5rem;
}
.article-card:hover{
    box-shadow: var(--dark-shadow);
    transform: scale(1.02);
}
.article-img-container img{
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
.article-img{
    height: 15rem;
    object-fit: cover;
}
.article-img-container{
    position: relative;
}
.article-category{
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--clr-primary-3);
    color: var(--clr-white);
    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,a{
    color: var(--clr-primary-2);
    margin-bottom: 0;
}
.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% - 1.5rem);
    }
}
@media screen and (min-width: 1170px) {
    .article-card{
        flex: 0 0 calc(33.33% - 1.5rem);
    }
}

/* 
================================
            Contact
================================
*/

.contact{
    background: linear-gradient( to top right, var(--clr-grey-2), var(--clr-primary-2), var(--clr-primary-3));
}
.contact-title, .contact-title p{
    color: var(--clr-white);
}
.contact-title{
    text-align: center;
}
.contact-form{
    display: flex;
}
.form-control{
    flex: 1 1 auto;
    color: var(--clr-primary-1);
    transition: var(--transition);
}
.form-control:hover{
    box-shadow: 5px 5px 10px #472a5f;
}
.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);
    cursor: pointer;
    background: var(--clr-primary-3);
    color: white;
    transition: var(--transition);
}
.btn-submit:hover{
    background: var(--clr-primary-1);
}
@media screen and (min-width: 992px) {    
    .contact-center{
        display: flex;
        gap: 2rem;
    }
    .contact-form{
        align-self: flex-start;
        display: flex;
        flex: 1 1 auto;
    }
}

/* 
================================
            Gallery
================================
*/

.gallery-img-container{
    position: relative;
    background: var(--clr-primary-3);
}
.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-icon{
    opacity: 1;
}
.gallery-img-container:hover .gallery-img{
    opacity: 0.7;
    border-radius: 2rem;
    transform: scale(0.98);
    box-shadow: 0px 0px 5px #472a5f;
}
.gallery-img{
    transition: var(--transition);
    height: 17rem;
    object-fit: cover;
    border-radius: 0.5rem;
}
@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-right: 2rem;
    padding-left: 2rem;
}

.footer-links, .footer-icons{
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.footer-link{
    color: var(--clr-white);
    font-size: 1rem;
    margin-right: 1rem;
    transition: var(--transition);
}
.footer-link:hover{
    color: var(--clr-primary-2);
    font-size: 1.2rem;
}
.footer-icon{
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--clr-primary-3);
    transition: var(--transition);
}
.footer-icon:hover{
    color: orange;
}
.copyright{
    color: #916f31;
}
.copyright a{
    color: orange;
    font-size: 1rem;
    transition: var(--transition);
}
.copyright a:hover{
    color: var(--clr-primary-3);
}