body {
    padding: 0;
    margin: 0;
    background-color: var(--back);
}

html {
    scroll-behavior: smooth;
}

:root {
    --back: #f6f6f6;
    --head: #ededed;
    --text: #000000;
    --hover: #3e3e3e;
    --zard: #FFD013;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'kalameh';
    src: url(../Fonts/Kalameh-Regular.ttf) format('truetype');
}

@font-face {
    font-family: 'Yekan';
    src: url(../Fonts/BYekan+.ttf);
}

@font-face {
    font-family: 'Vazir';
    src: url(../Fonts/Vazir-Regular-FD.ttf);
}

@font-face {
    font-family: 'Ray';
    src: url(../Fonts/RAY-BOLD.TTF);
}

@font-face {
    font-family: 'Peyda';
    src: url(../Fonts/Peyda-Regular.ttf);
}

@font-face {
    font-family: 'OpenSans';
    src: url(../Fonts/OpenSans-Light.ttf);
}

.multiline-text {
    white-space: pre-line;
}

a {
    text-decoration: none;
    color: var(--text);
}

ul {
    list-style: none;
}

h1 {
    font-family: Ray;
}

header {
    position: fixed;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transition: all .5s;
    z-index: 1000;
}

    header.sticky {
        padding-top: .5rem;
        background-color: var(--head);
        border-bottom: 1px solid #d8cec5;
        height: 110px;
    }

        header.sticky a {
            color: var(--text);
        }

        header.sticky .panel {
            padding-top: 0;
        }

            header.sticky .panel button {
                color: var(--text);
            }

                header.sticky .panel button:hover {
                    color: #fff;
                    transition: all .5s;
                    border-radius: 2rem;
                    background-color: rgba(51, 51, 51, .5);
                    padding: 0.5rem;
                }

        header.sticky ul:not(:first-child) {
            background-color: var(--head)
        }

        header.sticky i {
            color: var(--text);
        }

.banner {
    position: relative;
    width: 100%;
    height: 100vh;
    /* border-radius: 0 0 8rem 8rem; */
}

    .banner img {
        width: 270px;
        margin: 0 auto;
        margin-top: 15rem;
    }

.logo {
    /*
    display: flex;
    justify-content: end;
    align-content: center;*/
    position: relative;
    transition: 0.5s all;
}

    .logo img {
        width: 50px;
        position: absolute;
        top: 1.5rem;
        left: 0;
        margin-right: 1rem;
    }

.divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* استایل‌های اصلی منو */
.custom-menu {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    position: relative;
}

    .custom-menu a {
        color: #ececec;
        font-family: Kalameh;
    }

    .custom-menu li {
        position: relative;
    }

        .custom-menu li a {
            position: relative;
        }

    .custom-menu > li {
        position: relative;
        padding: 0.5rem 0.8rem;
    }

        .custom-menu > li:first-child {
            padding-right: 0;
        }

        .custom-menu > li > .sub-menu {
            position: absolute;
            opacity: 0;
            visibility: hidden;
            top: 120%;
            /*background-color: var(--head);*/
            line-height: 3rem;
            width: 11rem;
            padding: 0 0.8rem;
            transition: all 0.5s ease;
            /*box-shadow: 0 4px 14px rgba(5, 81, 81, 0.07);*/
            border-radius: 0.4rem;
            z-index: 10;
        }

        .custom-menu > li:hover > .sub-menu {
            opacity: 1;
            visibility: visible;
        }

        .custom-menu > li > .sub-menu > li {
            position: relative;
        }

        .custom-menu > li > .sub-menu li .nested-sub-menu {
            position: absolute;
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s ease;
            right: 84%;
            top: 0;
            width: 10rem;
            padding: 0 0.8rem;
            /*box-shadow: 0 4px 14px rgba(5, 81, 81, 0.07);*/
            border-radius: 0.4rem;
            z-index: 10;
            /*background-color: var(--head);*/
        }

        .custom-menu > li > .sub-menu li:hover .nested-sub-menu {
            visibility: visible;
            opacity: 1;
        }

    .custom-menu li:hover > a {
        color: #fff;
        transition: all .5s;
        border-radius: 2rem;
        background-color: rgba(51, 51, 51, .5);
        padding: 0.2rem 0.6rem;
    }

#text-container {
    font-size: 2.5em;
    font-weight: bold;
    color: #e5e5e5;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* مخفی کردن محتوای خارج از محدوده */
    width: 100%;
    /* عرض کامل برای نمایش انیمیشن */
    height: 100vh;
}
.offcanvas {
    max-width: 70%;
}
.offcanvas-body li {
    margin: 1rem 0;
    font-size: 1.2rem;
}
.offcanvas a{
    margin-right:1rem;
}

.offcanvas-body ul{
    padding-right:0;
}

.dokmeOff {
    font-size: 3rem;
    padding-top: 20px;
}

    .dokmeOff i {
        color: #fff;
    }


.responsive-menu_header {
    background-color: #eee;
    border-bottom: 1px solid #ccc;
    height: 30px;
}

.responsive-menu_list-body {
    height: 100%;
    overflow-y: scroll;
    background-color: var(--head);
    padding:.1rem;
}

    .responsive-menu_list-body a {
        font-family: kalameh;
    }

    .responsive-menu_list-body > ul > li {
        border-bottom: 1px solid #f1f1f1;
        margin-bottom: 0.5rem;
        padding: 1rem 0.1rem;
        overflow: hidden;
    }

        .responsive-menu_list-body > ul > li:last-child {
            border-bottom: none;
        }

        .responsive-menu_list-body > ul > li > a {
            font-size: 1.1rem;
            color: #333;
        }

    .responsive-menu_list-body ul li ul {
        background-color: var(--back);
        margin-top: 20px;
        border-radius: 5px;
    }

        .responsive-menu_list-body ul li ul li {
            padding: 1rem;
        }

            .responsive-menu_list-body ul li ul li a {
                font-size: 1.08rem;
                color: #333;
            }

    .responsive-menu_list-body > ul > li i {
        height: 25px;
        width: 25px;
        color: var(--text);
        font-size: 1.3rem;
        float: left;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .responsive-menu_list-body ul li ul {
        height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: -25px;
        transition: all 0.3s ease-in-out;
    }

        .responsive-menu_list-body ul li ul.show {
            margin-top: 2rem;
            height: auto;
            opacity: 1;
        }

    .responsive-menu_list-body > ul > li i.rotate {
        transform: rotate(180deg);
    }

    .responsive-menu_list-body > ul > li ul li i {
        height: 20px;
        width: 20px;
    }

    .responsive-menu_list-body ul li ul li ul {
        padding: 10px;
        background-color: #c1c1c1;
        border-radius: 5px;
    }





#text-container h4 {
    font-family: Kalameh;
    line-height: 2.8rem;
    font-size: 20px;
}

#text-container h3 {
    font-family: Kalameh;
    line-height: 0rem;
    font-size: 1.4rem;
}

.disc {
    width: 100%;
}

.bec {
    font-family: Kalameh;
    line-height: 2.2rem;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.about :not(:first-child) {
    color: #4a4a4a
}

.about img {
    width: 400px;
    height: 600px;
}

.about a:hover {
    color: var(--text);
    transition: all .5s;
}

.aboutText {
    line-height: 2.1rem;
}

.about h1 {
    font-size: 44px;
    font-family: Ray;
}
.about p {
    font-family: Yekan;
}

.why {
    font-family: Kalameh;
    font-size: 2rem;
    margin: 3rem 0 .7rem 0;
}

.record {
    border-top: 1px solid #d8cec5;
    border-bottom: 1px solid #d8cec5;
    margin: 2rem 0;
    background-color: var(--head);
}

    .record p {
        font-family: kalameh;
        padding-top: 0.2rem;
        padding-bottom: 0.5rem;
    }

    .record h3 {
        padding-bottom: 0.2rem;
        padding-top: 0.6rem;
    }


#projects {
    scroll-margin-top: 145px;
    /* ارتفاع هدر */
}

#conenctMe {
    scroll-margin-top: 145px;
    /* ارتفاع هدر */
}

#aboutUs {
    scroll-margin-top: 127px;

    margin-bottom: 4rem;
    margin-top: 1.5rem;
}

#hamkaries {
    scroll-margin-top: 145px;
    /* ارتفاع هدر */
}

.projects img {
    width: 100%;
    transition: .3s ease all;
    opacity: 0.8;
}

.projects h4 {
    position: absolute;
    right: 0;
    top: 4rem;
    z-index: 20;
    font-family: kalameh;
    font-weight: 400;
    color: #fff;
    background-color: #4a4a4a;
    border-radius: 2rem 0 0 2rem;
    padding: .2rem .8rem;
    transition: .3s ease all;
}

.projects a {
    margin-left: 1rem;
    position: relative;
}

    .projects a:hover img {
        transform: scale(1.05);
        opacity: 1;
    }

    .projects a:hover h4 {
        right: -.7rem;
        padding-right: .7rem;
    }


.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ProjectList {
    margin-top: 5rem;
    display: flex;
    justify-content: space-evenly;
    height: 145px;
    overflow: hidden;
}

    .ProjectList img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        margin-bottom: .8rem;
    }

    .ProjectList h5 {
        width: 100%;
        text-align: center;
    }

.card {
    position: relative;
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 0 1rem;
    font-family: kalameh;
}

.moshahede {
    box-shadow: none;
    border: none;
    background-color: var(--head);
    padding-top: 5rem;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card .content {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    transition: bottom 0.3s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.card:hover .content {
    bottom: 0;
}

.ProjectSlider {
    background-color: var(--head);
    padding: 3rem;
    margin-top: 1.5rem;
    position: relative;
    border-radius: 1rem;
}

    .ProjectSlider button {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50%;
        z-index: 200;
        border: none;
        margin: 0 1.2rem;
    }

    .ProjectSlider i {
        color: var(--hover);
        transition: .3s all;
    }

    .ProjectSlider button:hover i {
        color: var(--text);
    }

    .ProjectSlider h2,
    .seeAll {
        color: var(--text);
        font-family: kalameh;
    }


.seeAll {
    margin: 0 auto;
    margin-top: 11rem;
}

.Hamkaries h1 {
    margin-bottom: 1rem;
}

.Brands {
    display: flex;
    justify-content: center;
    width: 11%;
}

    .Brands img {
        margin: 1.5rem 0;
        opacity: .75;
        transition: ease .2s;
        width: 80px;
        height: 80px;
    }

        .Brands img:hover {
            opacity: 1;
        }




.contect {
    margin-top: 2rem;
}

    .contect > div > div > div {
        text-align: center;
    }

    .contect h1 {
        margin-bottom: 2rem;
    }

    .contect h6 {
        margin: .5rem 0;
        font-family: yekan;
        font-size: 1.09rem;
    }

.id:first-child {
    margin-top: 1rem;
}

.khat {
    border-bottom: 3px solid var(--hover);
    width: 15rem;
    margin: 3rem auto;
    margin-bottom: 1.5rem;
}

.form-control {
    direction: rtl;
}

footer {
    background-color: var(--head);
    padding: 2rem 0;
}

    footer ul {
        margin-top: 2rem;
    }

    footer li a {
        color: var(--hover);
        line-height: 1.2rem;
        font-family: kalameh;
    }

    footer li i {
        color: var(--hover);
    }

.foot div {
    display: flex;
    justify-content: center;
}

footer li a:hover {
    color: var(--text);
}

.tozih {
    display: flex;
    flex-direction: column;
    border-right: .5px solid var(--hover);
    border-left: .5px solid var(--hover);
}

    .tozih h2 {
        font-family: yekan;
        text-align: center;
        margin-top: 1.4rem;
    }

footer h5 {
    font-family: kalameh;
    /* line-height: 1.9rem; */
    text-align: center;
    /* margin-top: 1.4rem; */
    padding: 1rem;
    color: var(--hover);
    font-size: 1.05rem;
}

.logoF {
    flex-direction: column;
    align-items: center;
}

    .logoF img {
        width: 100px;
        border-bottom: 1px solid var(--text);
    }

    .logoF h6 {
        line-height: 2rem;
        font-family: kalameh;
        /* font-size: 1.3rem; */
        text-align: center;
        /* margin-top: 1rem; */
        color: var(--hover);
    }

.icons i {
    font-size: 1.6rem;
    margin: 0 .6rem;
    color: var(--hover);
}

.icons a:hover > i {
    color: var(--text);
}

.projectRow h2 {
    font-family: kalameh;
    margin-bottom: 1.5rem;
}

.show-more {
    font-size: 0.8rem; /* کوچکتر */
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

    .show-more:hover {
        background-color: var(--hover);
        color: white;
    }

.panel {
    padding-top: .8rem;
    text-align: center;
    font-family: Kalameh;
    font-size: 1.1rem;
}

    .panel a, .panel button {
        color: var(--head);
    }

        .panel a:hover {
            color: #fff;
            transition: all .5s;
            border-radius: 2rem;
            background-color: rgba(51, 51, 51, .5);
            padding: 0.2rem 0.6rem;
        }

    .panel button {
        margin-top: .7rem;
    }

        .panel button:hover {
            color: #fff;
            transition: all .5s;
            border-radius: 2rem;
            background-color: rgba(51, 51, 51, .5);
            padding: 0.2rem 0.6rem;
        }
.info {
    font-family: yekan;
}
@media (max-width: 1200px) {
    .custom-menu li a {
        font-size: 17px;
    }

    .Brands {
        width: 16.6%;
    }
        .Brands img {
            width: 80px;
            height: 80px;
        }
}

@media (max-width: 992px) {
    .logo img {
        width: 50px;
        position: static;
    }

    .custom-menu li a {
        font-size: 14px;
    }

    #text-container h1 {
        font-size: 45px;
    }

    .banner img {
        margin-top: 7rem;
        width:230px;
    }
    .bec{
        font-size:1rem;
    }
    .card {
        width: 240px;
        height: 240px;
    }

    .tozih {
        border: none;
        margin-bottom: 2rem;
        border-bottom: 1px solid var(--hover);
        padding-bottom: 1rem;
    }

        .tozih h5 {
            padding: 0 8rem;
        }

        .tozih h2 {
            margin-top: 1rem;
        }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

    .loading-overlay.hidden {
        opacity: 0;
        pointer-events: none;
    }

.dot-spinner {
    --uib-size: 2.8rem;
    --uib-speed: .9s;
    --uib-color: #FFD013;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: var(--uib-size);
    width: var(--uib-size);
}

.dot-spinner__dot {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
}

    .dot-spinner__dot::before {
        content: '';
        height: 20%;
        width: 20%;
        border-radius: 50%;
        background-color: var(--uib-color);
        transform: scale(0);
        opacity: 0.5;
        animation: pulse0112 calc(var(--uib-speed) * 1.111) ease-in-out infinite;
        box-shadow: 0 0 20px rgba(18, 31, 53, 0.3);
    }

    .dot-spinner__dot:nth-child(2) {
        transform: rotate(45deg);
    }

        .dot-spinner__dot:nth-child(2)::before {
            animation-delay: calc(var(--uib-speed) * -0.875);
        }

    .dot-spinner__dot:nth-child(3) {
        transform: rotate(90deg);
    }

        .dot-spinner__dot:nth-child(3)::before {
            animation-delay: calc(var(--uib-speed) * -0.75);
        }

    .dot-spinner__dot:nth-child(4) {
        transform: rotate(135deg);
    }

        .dot-spinner__dot:nth-child(4)::before {
            animation-delay: calc(var(--uib-speed) * -0.625);
        }

    .dot-spinner__dot:nth-child(5) {
        transform: rotate(180deg);
    }

        .dot-spinner__dot:nth-child(5)::before {
            animation-delay: calc(var(--uib-speed) * -0.5);
        }

    .dot-spinner__dot:nth-child(6) {
        transform: rotate(225deg);
    }

        .dot-spinner__dot:nth-child(6)::before {
            animation-delay: calc(var(--uib-speed) * -0.375);
        }

    .dot-spinner__dot:nth-child(7) {
        transform: rotate(270deg);
    }

        .dot-spinner__dot:nth-child(7)::before {
            animation-delay: calc(var(--uib-speed) * -0.25);
        }

    .dot-spinner__dot:nth-child(8) {
        transform: rotate(315deg);
    }

        .dot-spinner__dot:nth-child(8)::before {
            animation-delay: calc(var(--uib-speed) * -0.125);
        }

.custom-tag {
    font-family: 'yekan';
}

@keyframes pulse0112 {
    0%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width:1400px) {
    .card {
        width: 200px;
        height: 200px;
    }
}

@media (min-width:1260px) {
    .sliderPicture {
        height: 500px;
    }
}

@media (max-width:1260px) {
    .sliderPicture {
        height: 380px;
    }
}

@media (max-width:1020px) {
    .sliderPicture {
        height: 200px;
    }
}
/* در حالت موبایل و تبلت، */
@media (max-width:768px) {

    .logo img {
        width: 50px;
    }

    #text-container .second-text {
        font-size: 45px;
    }

    #text-container h2 {
        font-size: 22px;
    }

    #text-container h3 {
        font-size: 17px;
    }

    .tozih h5 {
        padding: 0 6rem;
    }

    .carousel-caption p{
        display:none;
    }
    .carousel-caption h5{
        font-size: 1rem;
    }

    .seeAll {
        margin-top: 8rem
    }

    .Brands {
        width: 20%;
    }
        .Brands img {
            width: 60px;
            height: 60px;
        }
}

@media (max-width: 576px) {
    #text-container .first-text {
        font-size: 36px;
    }

    .seeAll {
        margin-top: 6rem;
    }

    .tozih h5 {
        padding: 0;
    }
}

@media (max-width: 490px) {
}
