* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'fasele';
    font-style: normal;
    font-weight: 200;
    font-stretch: normal;
    src: url('fonts/Farsi/Artin-Sharp-Regular.ttf') format('woff');
}

@font-face {
    font-family: 'fasele-l';
    font-style: normal;
    font-weight: 200;
    font-stretch: normal;
    src: url('fonts/Farsi/Artin-Bold.ttf') format('woff');
}

body {
    font-family: 'fasele';
    direction: rtl;
    margin: 0;
    padding: 0;
    /*background-color: #1e1e1e;*/
    background-color: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: #0031A2 #f1f1f1;
}

root {
    /*--ferst-color: #0196Ea;*/
    /*--secend-color: #017AEa;*/
    --ferst-color: #0196Ea;
    --secend-color: #017AEa;
}

img {
    max-width: 100%;
    height: auto;
}

header {
    /*background-color: #1e1e1e;    */
    background-color: #ffffff;
    border-bottom: 1px solid #0196Ea;
    padding: 10px 2rem;
    color: var(--secend-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header .logo {
    width: 50px;
    height: 50px;
}

header .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    gap: 20px;
}

nav ul li {
    display: inline;
    padding: 0;
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--secend-color);
    font-size: 18px;
}

nav .login {
    padding: 5px 15px;
    background-color: #0196Ea;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

.main {
    /*background-color: #1e1e1e;*/
    background-color: white;
    color: #0e0606;
    padding: 50px 0;
    text-align: center;
}

.hero {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.hero img {
    width: 100%;
    max-width: 500px;
}

.hero .text {
    text-align: start;
    color: var(--secend-color);
    margin-bottom: 10px;
}

.hero .text h3 {
    font-size: 16px;
    font-weight: 600;
    color: #545454;
    border-bottom: 2px solid #017AEa;
    padding: 10px 0;
    width: max-content;
}

.hero .text h1 {
    text-align: justify;
    font-size: 36px;
    margin-bottom: 10px;
    width: 50%;
}

.iran {
    color: #017AEa;
}

.home-banner-text {
    font-size: 20px;
    margin: 10px 0;
}

.type {
    color: #017AEa;
}

.services {
    margin-top: 50px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.services h2 {
    margin: 20px 0;
}

.services span {
    color: #017AEa;
}

.portfolio h2 {
    margin: 20px 0;
    color: var(--secend-color);
}

.why-trust span {
    color: #017AEa;
}

.testimonials span {
    color: #017AEa;
}

.portfolio {
    text-align: center;
}

.portfolio span {
    color: #017AEa;
}

.portfolio .testimonial-item .image {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    transition: 1.3s;
    border-radius: 12px;
}

.portfolio .testimonial-item .image:hover img {
    transform: translateY(-50px);
    transition: 1.3s;
}

.portfolio .testimonial-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: 1.3s;
}

.portfolio .product-name {
    color: #151212;
    padding: 10px 0;
}

.portfolio .testimonial-item {
    padding: 10px;
    width: 100%;
}

.service-item {
    background-color: #f1f1f1;
    padding: 20px 0;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 14px 8px #ebebeb75;
    transition: .4s;
    border-top: 0;
    position: relative;
}

.service-item:after {
    content: "";
    width: 0;
    height: 2px;
    right: 10%;
    left: 10%;
    bottom: 1px;
    position: absolute;
    background-color: #017AEa;
    border-radius: 10px;
    transition: .6s;
}

.service-item:hover:after {
    transition: .6s;
    width: 60%;
    margin: 0 auto;
}

.service-item .image {
    height: 200px;
    width: 100%;
}


.social-icons {
    border-radius: 5px;
}

.social-icons a {
    color: #fff;
    background-color: #f4f4f4;
    border-radius: 4px;
    text-decoration: none;
    position: relative;
    align-items: center;
    justify-content: center;
    text-align: center;
    display: flex;
    width: 40px;
    height: 40px;
    -o-transition: all .5s;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    transition: all .5s;
    -webkit-font-smoothing: antialiased;
    margin: 0 10px;
}

.social-icons a:hover {
    background-color: #2d4580;
}

/* pop-up text */

.social-icons a span {
    color: #666;
    position: absolute;
    font-family: sans-serif;
    bottom: 0;
    left: -25px;
    right: -25px;
    padding: 5px 7px;
    z-index: -1;
    font-size: 14px;
    border-radius: 2px;
    background: #e2e2e2;
    visibility: hidden;
    opacity: 0;
    -o-transition: all .5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -webkit-transition: all .5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -moz-transition: all .5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: all .5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* pop-up text arrow */

.social-icons a span:before {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #fff;
    position: absolute;
    bottom: -5px;
    left: 40px;
}

/* text pops up when icon is in hover state */

.social-icons a:hover span {
    bottom: 50px;
    visibility: visible;
    opacity: 1;
}


.content h2 {
    margin-top: 3rem;
    color: #151212;
    text-align: center;
}

.service-item .image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.service-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.hero .image {
    position: relative;
}

.btn a {
    background: #0a7ad7;
    padding: 10px 60px;
    border-radius: 8px;
    display: inline-block;
    color: white;
    text-align: center;
    transition: .5s;
    cursor: pointer;
}

.btn .btn-dark {
    margin: 0 10px;
}

a.btn-light:hover {
    background: rgba(13, 51, 82, 0.96);
    transition: .5s;
}

a.btn-dark:hover {
    background: rgba(13, 51, 82, 0.96);
    transition: .5s;
}

.hero .image p {
    background: rgba(255, 255, 255, 0.39);
    position: absolute;
    bottom: -24px;
    right: 25%;
    padding: 26px 106px;
    border-radius: 14px;
    border: 3px solid rgba(4, 63, 189, 0.5);
    filter: drop-shadow(2px 4px 6px #bdbdbd);
}

.about {
    /*background-color: #1e1e1e;*/
    background-color: #ffffff;
    color: var(--ferst-color);
    padding: 50px 0;
    text-align: center;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.about-content img {
    width: 150px;
    border-radius: 50%;
}

.about-content .text {
    max-width: 600px;
    text-align: right;
}

.about-content h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.about-content a {
    font-size: 20px;
    color: #4eafc1;
    text-decoration: none;
}

.why-trust {
    background-color: #ffffff;
    color: #151212;
    padding: 50px 0;
    text-align: center;
}

.why-trust h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.reasons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    /*gap: 20px;*/
}

.reason {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    text-align: center;
}

.reason h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.reason p {
    font-size: 18px;
}

.testimonials {
    /*background-color: #1e1e1e;*/
    background-color: #ffffff;
    color: #151212;
    padding: 50px 0;
    text-align: center;
}

.testimonials h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.swiper-container {
    /*width: 80%;*/
    margin: 0 auto;
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.testimonial-item {
    background-color: #f1f1f1;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    color: #151212;
    border-top: 3px solid #007aff;
    box-shadow: 0 0 14px 8px #ebebeb75;
}

.testimonials .testimonial-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.user-name {
    font-size: 20px;
    font-weight: bold;
}

.testimonial-text {
    font-size: 13px;
    line-height: 1.6;
    font-weight: 400;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background-color: rgba(1, 122, 234, 0.24);
    padding: 20px;
    border-radius: 5px;
    background-size: 10px;
}

footer {
    background-color: #f1f1f1;
    height: 2rem;
    padding: 10px;
    /*position: fixed;*/
    /*bottom: 0;*/
    width:100%;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .services {
        flex-direction: column;
        padding: 0 2rem;
    }

    .service-item {
        width: 80%;
        margin: 10px auto;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content img {
        width: 120px;
    }

    .reason {
        width: 100%;
        margin-bottom: 20px;
    }

    .swiper-slide {
        flex-direction: column;
    }

    .testimonial-item {
        max-width: 100%;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
        display: none;
    }

    nav .login {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }

    .hero img {
        width: 80%;
    }

    .hero .text h1 {
        font-size: 28px;
    }

    .main {
        padding: 30px 0;
    }

    .services {
        padding: 0 1rem;
    }

    .about-content img {
        width: 100px;
    }

    .about-content h2 {
        font-size: 24px;
    }

    .reason {
        width: 100%;
    }

    .testimonial-item {
        padding: 20px;
    }

    .testimonial-item img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 1rem;
    }

    .hero .text h1 {
        font-size: 22px;
    }

    .service-item {
        width: 100%;
        margin-bottom: 20px;
    }

    .about-content img {
        width: 80px;
    }

    .about-content h2 {
        font-size: 22px;
    }

    .reason {
        width: 100%;
        margin-bottom: 15px;
    }

    .testimonial-item img {
        width: 60px;
        height: 60px;
    }

    .portfolio h2 {
        margin: 20px 0;
        color: white;
    }

    .portfolio {
        text-align: center;
    }

    .portfolio span {
        color: #017AEa;
    }

    .portfolio .testimonial-item .image {
        width: 100%;
        height: 500px;
        position: relative;
        overflow: hidden;
        transition: 1.3s;
        border-radius: 12px;
    }

    .portfolio .testimonial-item .image:hover img {
        transform: translateY(-50px);
        transition: 1.3s;
    }

    .portfolio .testimonial-item .image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
        transition: 1.3s;
    }

    .portfolio .product-name {
        color: #151212;
        padding: 10px 0;
    }

    .portfolio .testimonial-item {
        padding: 10px;
        width: 100%;
    }
    .hero .image p {
        padding: 10px 35px;
    }
}
