@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansFaNum.ttf);
    font-weight: 400;
    font-display: normal;
}

* {
    box-sizing: border-box;
    font-family: iransans;
    padding: 0;
    margin: 0;
    text-align: justify;
}

a {
    text-decoration: none;
}

ul {
    list-style-type: none;
}

p,
span {
    font-size: 14px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 6;
}

main {
    margin-top: 7rem;
    overflow: hidden;
}

.headerTop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1e2139;
    color: white;
    padding: .2rem 1rem;
}

.companyNameFarsi {
    font-size: 22px;
    font-weight: 600;
}

.companyNameFarsi span {
    font-size: 22px;
    color: #ffba00;
}

.companyNameEnglish {
    display: inline-block;
    direction: ltr;
    font-size: 12px;
}

.logoContainer img {
    display: block;
    background-color: white;
    border-radius: 50%;
    width: 60px;
    margin: .3rem 0;
}

.headerNav {
    background-color: #2b3036;
}

.headerNav a {
    color: white;
    transition: .2s;
}

.headerNav a:hover {
    color: #9c9c9c;
}

.headerNav ul {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding: .6rem 0;
}

.bannerContainer {
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
    height: 400px;
}

.bannerContainer img {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
}

.bannerContainer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(30, 33, 57, .8);
}

.container {
    max-width: 1350px;
    margin: auto;
    padding: 0 1rem;
}

.headings {
    color: #575864;
    font-size: 35px;
    font-weight: 600;
    text-align: center;
}

.borderBottom {
    display: block;
    background-color: #feca3f;
    width: 180px;
    height: 4px;
    margin: .6rem auto 2rem auto;
}

.sectionContainer {
    margin-top: 5rem;
}

.termsOfServices {
    background-color: #f8f8f8;
    padding: 4rem 0;
}

.servicesImageContainer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 8rem;
}

.servicesImageContainer div {
    position: relative;
    padding-top: 33.33333%;
    overflow: hidden;
    width: 33.33333%;
}

.servicesImageHover {
    padding-top: 0 !important;
}

.servicesImageContainer img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
}

.servicesImageInner {
    position: relative;
}

.servicesImageInner:hover .servicesImageHover {
    opacity: 1;
    visibility: visible;
}

.servicesImageHover {
    transition: .5s;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: absolute !important;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 2;
    background-color: rgba(0, 0, 0, .7);
}

.servicesImageHover span {
    display: block;
    color: white;
    font-size: 20px;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.servicesImageHover img {
    position: static !important;
    transform: none !important;
    display: block;
    width: 100px;
}

.projectsContainer {
    display: flex;
    flex-wrap: wrap;
}

.project {
    width: 25%;
    margin-bottom: 1rem;
}

.project a {
    color: #2b3036;
}

.project img {
    width: 100%;
}

.projectInner {
    padding: 0 .5rem;
}

.certificatesContainer {
    display: flex;
    gap: 1rem;
    padding: 0 12rem;
}

.certificate {
    width: 33.33333%;
}

.certificate img {
    width: 100%;
}

.contactContainer {
    display: flex;
    align-items: flex-start
}

.contactFarsi,
.contactEnglish {
    width: 100%;
    padding: 0 1rem;
}

.contactFarsi {
    border-right: 4px solid #575864;
}

.contactEnglish {
    border-left: 4px solid #575864;
}

.contactBanner {
    width: 500px;
    opacity: .5;
}

.contactBanner img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

footer {
    background-image: url(../images/footer.jpg);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
}

.footerInner {
    display: flex;
    padding: 4rem 0 3rem 0;
    gap: 4rem;
}

.footerSection {
    width: 25%;
}

.borderBottomFooter {
    display: block;
    width: 900px;
    height: 2px;
    background-color: #feca3f;
    margin: auto;
}

.footerHeading {
    margin-bottom: 1rem;
}

.footerSection a {
    color: white;
}

.footerSection a:hover {
    color: #9c9c9c;
}

.footerLogo {
    opacity: .2;
}

.footerSection h3,
.footerSection li {
    text-align: center !important;
}

@media only screen and (max-width: 1000px) {
    .footerInner {
        flex-wrap: wrap
    }

    .footerSection {
        width: 100%;
    }

    .footerSection h3,
    .footerSection li {
        text-align: right !important;
    }

    .footerLogo {
        text-align: center !important;
    }

    .project {
        width: 33.33333%;
    }

    .borderBottomFooter {
        width: 85%;
    }

    .certificatesContainer,
    .servicesImageContainer {
        padding: 0 1rem;
    }

    main {
        margin-top: 6rem;
    }

    .bannerContainer {
        height: calc(100dvh - 95px);
    }

    .bannerContainer img {
        top: 0;
        left: 50%;
        transform: translateX(-50%) translateY(0);
        width: auto;
        height: 100%;
    }

    .servicesImageHover img {
        width: 60px;
    }

    .servicesImageHover span {
        font-size: 16px;
    }

    .servicesImageHover {
        gap: .5rem;
    }
}

@media only screen and (max-width: 705px) {
    .contactContainer {
        flex-wrap: wrap;
    }

    .contactFarsi,
    .contactEnglish {
        width: 100%;
    }

    .contactBanner {
        display: none;
    }

    .certificatesContainer,
    .servicesImageContainer {
        padding: 0;
    }
}

@media only screen and (max-width: 550px) {
    .project {
        width: 50%;
    }

    .servicesImageHover img {
        width: 30px;
    }

    .servicesImageHover span {
        font-size: 10px;
        font-weight: 400;
    }

    .companyNameFarsi, .companyNameFarsi span {
        font-size: 18px;
    }

    .companyNameEnglish {
        font-size: 10px;
    }

    .logoContainer img {
        width: 45px;
    }

    .headerNav ul {
        padding-top: .5rem;
    }

    .headerNav a {
        font-size: 12px;
    }
}