@font-face {
    font-family: "vazir";
    src: url("../fonts/vazir-font-v16.1.0/Vazir-Medium.ttf");
    font-style: normal;
    font-weight: normal;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li {
    margin: 0;
    padding: 0;
    list-style: none;
}

body {
    font-family: "vazir";
    font-size: 1rem;
}

/* Header styles */
header a {
    color: inherit;
}

header .header_menu {
    border-bottom: 3px solid #a0138e;
    color: #333;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    position: fixed;
    z-index: 1;
}

/* Social media icons */

header .header_menu .bi {
    font-size: 25px;
    color: #333;
    transition: color 0.3s, transform 0.3s;
}

header .header_menu .bi:hover {
    color: #6d6d6d;
    transform: scale(1.2);
}

/* Navigation styles */

header .menu-list li {
    cursor: pointer;
    position: relative;
    padding: 5px 0;
}

.menu-list li a {
    color: #333;
    text-decoration: none;
    padding: 6px 18px;
    transition: all 0.3s;
    border-radius: 5px;
}

header li a:hover {
    color: #6d6d6d;
}

/* Add underline effect */
.menu-list li a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #6d6d6d;
    transition: width 0.3s, left 0.3s;
}

.menu-list li a:hover::after {
    width: 80%;
    left: 10%;
}

/* Logo styles */
header .logo img {
    max-width: 180px;
    transition: transform 0.3s;
}

header .logo:last-of-type img {
    max-width: 130px !important;
}

header .logo img:hover {
    transform: scale(1.1);
    /* Scale logo on hover */
}

header .header-bg img {
    width: 100%;
    height: 110vh;
    object-fit: cover;
}

/* mobile menu toggle button */
.menu-toggle {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 20px;
    margin: 16px 8px;
    z-index: 4;
}

.menu-toggle span {
    margin: 0 auto;
    position: relative;
    top: 12px;
    transition-duration: .8s;
    transition-delay: .5s;
    transition: background-color 0.3s;
    background-color: #000;
}

.menu-toggle span:before,
.menu-toggle span:after {
    position: absolute;
    content: '';
}

.menu-toggle span,
.menu-toggle span:before,
.menu-toggle span:after {
    width: 35px;
    height: 3px;
    background-color: #000;
    display: block;
    opacity: 1;
}

.menu-toggle span:before {
    margin-top: -12px;
    transition-property: margin, transform;
    transition-duration: .2s;
    transition-delay: .2s, 0;
}

.menu-toggle span:after {
    margin-top: 12px;
    transition-property: margin, transform;
    transition-duration: .2s;
    transition-delay: .2s, 0;
}

.menu-toggle-active span {
    background-color: rgba(0, 0, 0, 0);
    transition: 0.3s background-color;
}

.menu-toggle-active span:before {
    margin-top: 0;
    transform: rotate(-45deg);
    transition-delay: 0, .2s;
}

.menu-toggle-active span:after {
    margin-top: 0;
    transform: rotate(45deg);
    transition-delay: 0, .2s;
}


.device_mobile_menu {
    position: absolute;
    top: 0;
    right: -500px;
    height: 100vh;
    width: 100%;
    max-width: 480px;
    z-index: 2;
    transition: all 0.5s ease;
    background-image: linear-gradient(90deg, #e2e9f7 0%, #ffffff 100%);
    overflow-y: auto;
    padding-top: 15px;
}

.effect {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 100%;
    bottom: 0;
    background-color: white;
    opacity: 0.8;
    transition: all 0.8s ease-out;
    z-index: 2;
}

.expanded .device_mobile_menu {
    right: 0;
}

.expanded .effect {
    left: 0;
    transition: all 0.8s ease-out;
}

.story_container {
    max-width: 90%;
    height: 70px;
    white-space: nowrap;
    overflow: auto hidden;
}

.story_container::-webkit-scrollbar {
    display: none;
}

.story_container .stories {
    display: grid;
    grid-auto-flow: column;
    grid-gap: 1rem;
}

.story_container .stories .story_item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    padding: 3px;
    cursor: pointer;
    transition: all .3s ease-in;
}

.full_width_story {
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, .6);
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: .2s;
    visibility: hidden;
    opacity: 0;
}

.full_width_story.show {
    visibility: visible;
    opacity: 1;
}

.full_width_story .story {
    width: 80%;
    height: 80%;
    position: relative;
    background-color: #fff;
    border-radius: 2px;
}

.full_width_story .story img,
.full_width_story .story video {
    object-fit: cover;
    object-position: center;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    overflow: hidden;
}


.loader svg {
    fill: none;
    stroke: #a0138e;
    stroke-width: 4px;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    stroke-linecap: round;
}

.loader svg.animated {
    animation: loading 4500ms ease-in-out 1 alternate;
}

@keyframes loading {
    100% {
        stroke: #cd476b;
        stroke-dasharray: 10;
        transform: rotate(200deg);
    }
}


/* header_end */
.services_card .card_extention,
.services_card .card_tinting,
.services_card .card_lifting {
    width: 310px;
    height: fit-content;
}

.card_extention img,
.card_tinting img,
.card_lifting img {
    width: 100%;
    height: 100%;
}

.card_extention p,
.card_tinting p,
.card_lifting p {
    font-size: 14px;
    width: 200px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: rgb(48, 48, 48);
}

.card_extention a.book_btn span,
.card_lifting a.book_btn span,
.card_tinting a.book_btn span {
    font-size: 13px;
}

/* end Services */


.layer_page_1,
.layer_page_2 {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.layer_page_1 {
    background-image: url('../images/7f3544_9fa63c16265447ea94d976603962fc0b~mv2.avif');
    background-position-y: 60px;
}

.layer_page_2 {
    background-image: url('../images/7f3544_45ec318a94214e31b49c9a6f49951094~mv2.avif');
    background-attachment: fixed;
    margin-top: 18px;
}

.swiper {
    z-index: 0 !important;
}

.swiper-button-prev {
    right: 70px !important;
    color: #000 !important;
    transition: color .3s;
}

.swiper-button-next {
    left: 70px !important;
    color: #000 !important;
    transition: color .3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #6d6d6d !important;
}

.swiper-slide * p {
    font-size: 1rem;
    width: 400px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    color: #6d6d6d;
    line-height: 2rem;
}

.swiper-slide * span {
    font-size: 1rem;
    padding-inline: 10px;
    border-right: 1px solid #6d6d6d;
    border-left: 1px solid #6d6d6d;
}


/* animation */

.bgLayers_comp {
    width: 100%;
    height: 300px;
    background-color: black;
}

.fadeInDown,
.fadeInUp {
    text-align: center;
}

.fadeInUp {
    margin: 88px 0px 18px calc((100% - 980px)* 0.5);
}

.fadeInDown h1 {
    font-size: 122px;
    line-height: 1.4em;
    text-align: center;
    white-space: nowrap;
}

.fadeInUp p {
    line-height: 1.6em;
    text-align: center;
    font-size: 16px;
}

.bounceInLeft h2 {
    line-height: 1.4em;
    font-size: 32px;
}

/* galley */

.gallery .portfolio_text h2 {
    color: #fff;
}

.gallery .portfolio_text h6 {
    font-size: 30px;
    color: #fff !important;
    white-space: nowrap;
}

div.gallery_wrap {
    width: 992px;
    margin: auto;
}

.img-wrapper {
    position: relative;

    img {
        width: 100%;
    }
}

.img-overlay {
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    cursor: pointer;

    i {
        color: #fff;
        font-size: 3em;
    }
}

#overlay {
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    img {
        cursor: pointer;
        margin: 0;
        width: 80%;
        height: auto;
        object-fit: contain;
        padding: 5%;

        @media screen and (min-width: 768px) {
            width: 60%;
        }

        @media screen and (min-width: 1200px) {
            width: 50%;
        }
    }
}

#nextButton {
    color: #fff;
    font-size: 2em;
    transition: opacity 0.5s;

    &:hover {
        opacity: 0.7;
    }

    @media screen and (min-width: 768px) {
        font-size: 3em;
    }
}

#prevButton {
    color: #fff;
    font-size: 2em;
    transition: opacity 0.5s;

    &:hover {
        opacity: 0.7;
    }

    @media screen and (min-width: 768px) {
        font-size: 3em;
    }
}

#exitButton {
    color: #fff;
    font-size: 2em;
    transition: opacity 0.5s;
    position: absolute;
    top: 15px;
    right: 15px;

    &:hover {
        opacity: 0.7;
    }

    @media screen and (min-width: 768px) {
        font-size: 3em;
    }
}

footer img.footer-logo {
    max-width: 170px;
    transition: transform 0.3s;
    cursor: pointer;
}

footer img.footer-logo:hover {
    transform: scale(1.1);
}

footer nav.footer-menu a .bi {
    transition: color .3s;
}

footer nav.footer-menu a:hover .bi {
    color: #6d6d6d;
}

@media screen and (min-width:375px) and (max-width:768px) {
    .fadeInDown h1 {
        font-size: 43px;
    }

    .fadeInUp {
        margin: 2.5rem 0;
    }

    .layer_page_1 {
        background-image: url("../images/7f3544_9fa63c16265447ea94d976603962fc0b~mv2 (2).avif");
    }

    .swiper-button-prev {
        visibility: hidden;
    }

    .swiper-button-next {
        visibility: hidden;
    }

    .swiper-slide * p {
        font-size: .9rem;
        width: 80%;
        margin-inline: auto;
    }

    div.gallery_wrap {
        width: 100%;
    }

    footer img.footer-logo {
        width: 140px;
    }

}


@media screen and (min-width:768px) and (max-width:1024px) {
    .bgLayers_comp {
        transform: translateY(-4px);
    }

    .fadeInDown h1 {
        font-size: 60px;
    }

    .fadeInUp {
        margin: 3.5rem 0;
    }

    footer img.footer-logo {
        width: 160px;
    }
}