﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}



/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
    font-family: 'Vazirmatn', sans-serif;
    color: #444444;
}

a {
    color: #47b2e4;
    text-decoration: none;
}

    a:hover {
        color: #73c5eb;
        text-decoration: none;
    }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazirmatn', sans-serif;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
    transition: all 0.5s;
    z-index: 997;
    padding: 15px 0;
    background: rgba(40, 58, 90, 0.9);
}

    #header.header-scrolled, #header.header-inner-pages {
        background: rgba(40, 58, 90, 0.9);
    }

    #header .logo {
        font-size: 30px;
        margin: 0;
        padding: 0;
        line-height: 1;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

        #header .logo a {
            color: #fff;
        }

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navbar {
    padding: 0;
}

    .navbar ul {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        align-items: center;
    }

    .navbar li {
        position: relative;
    }

    .navbar a, .navbar a:focus {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0 10px 30px;
        font-size: 15px;
        font-weight: 500;
        color: #fff;
        white-space: nowrap;
        transition: 0.3s;
    }

        .navbar a i, .navbar a:focus i {
            font-size: 12px;
            line-height: 0;
            margin-right: 5px;
        }

        .navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
            color: #47b2e4;
        }

    .navbar .getstarted, .navbar .getstarted:focus {
        padding: 8px 20px;
        margin-right: 30px;
        border-radius: 50px;
        color: #fff;
        background: #47b2e4;
        font-weight: 500;
    }

        .navbar .getstarted:hover, .navbar .getstarted:focus:hover {
            color: #fff;
            background: #31a9e1;
        }


/*--------------------------------------------------------------
# Hero Section Adjustments
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Hero Section Adjustments
--------------------------------------------------------------*/
#hero {
    width: 100%;
    min-height: 100vh;
    padding-top: 150px;
    padding-bottom: 50px;
    background: url('images/databinhome.jpg') no-repeat center center;
    background-size: contain;
    background-color: #ffffff;
    position: relative;
}

    /* لایه سفید ملایم */
    #hero::before {
        content: "";
        background: rgba(255, 255, 255, 0.1);
        position: absolute;
        bottom: 0;
        top: 0;
        left: 0;
        right: 0;
    }

    #hero .container {
        position: relative;
        z-index: 2;
    }

    /* تنظیمات تیترها و دکمه‌ها در حالت دسکتاپ */
    #hero h1 {
        color: #0a2540; /* سرمه‌ای تیره */
        font-size: 48px;
        font-weight: 700;
        text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.9);
    }

    #hero h2 {
        color: #1e3a5f;
        font-size: 20px;
        margin-bottom: 30px;
        text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.9);
    }

    #hero .btn-get-started {
        font-family: 'Vazirmatn', sans-serif;
        font-weight: 500;
        font-size: 16px;
        letter-spacing: 1px;
        display: inline-block;
        padding: 10px 28px 11px 28px;
        border-radius: 50px;
        transition: 0.5s;
        margin: 10px 0 0 10px;
        color: #fff;
        background: #47b2e4;
    }

        #hero .btn-get-started:hover {
            background: #209dd8;
        }

    #hero .btn-watch-video {
        font-size: 16px;
        display: flex;
        align-items: center;
        transition: 0.5s;
        margin: 10px 0 0 25px;
        color: #37517e;
        font-weight: 600;
    }

        #hero .btn-watch-video i {
            line-height: 0;
            margin-left: 8px;
            font-size: 32px;
            color: #47b2e4;
        }

        #hero .btn-watch-video:hover {
            color: #47b2e4;
        }

    #hero .animated {
        display: none;
    }


/*--------------------------------------------------------------
# Hero Text Animation (Floating)
--------------------------------------------------------------*/
@keyframes floatText {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

#hero h1 {
    animation: floatText 4s ease-in-out infinite;
}

#hero h2 {
    animation: floatText 4s ease-in-out infinite;
    animation-delay: 0.5s; /* تاخیر برای اینکه با هم حرکت نکنند */
}

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/

/* تنظیمات دسکتاپ (مانیتورهای بزرگتر از 992 پیکسل) */
@media (min-width: 992px) {
    #hero {
        padding-top: 280px;
        align-items: center;
    }
}

/* تنظیمات موبایل (کوچکتر از 992 پیکسل) */
@media (max-width: 991px) {
    #hero {
        /* عکس را کمی بزرگتر کردیم و پایین‌تر آوردیم */
        background-size: 90% auto;
        background-position: center 80px; /* عکس 80 پیکسل از بالا فاصله می‌گیرد */
        /* فاصله متن از بالای صفحه (ارتفاع عکس + فاصله 80px + فاصله امن) */
        padding-top: 400px;
        padding-bottom: 50px;
        min-height: auto;
    }

        #hero h1 {
            font-size: 26px;
            text-align: center;
            line-height: 1.5;
            margin-bottom: 15px;
            text-shadow: 1px 1px 5px rgba(255, 255, 255, 1);
        }

        #hero h2 {
            font-size: 16px;
            text-align: center;
            line-height: 1.6;
            margin-bottom: 25px;
            text-shadow: 1px 1px 5px rgba(255, 255, 255, 1);
        }

        /* وسط‌چین کردن دکمه‌ها در موبایل */
        #hero .d-flex {
            justify-content: center !important;
            flex-wrap: wrap;
        }

        #hero .btn-get-started {
            font-size: 14px;
            padding: 10px 20px;
            margin: 5px;
        }

        #hero .btn-watch-video {
            font-size: 14px;
            margin: 5px;
        }

            #hero .btn-watch-video i {
                font-size: 24px;
            }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
    padding: 60px 0;
    overflow: hidden;
}

.section-bg {
    background-color: #f3f5fa;
}

.section-title {
    text-align: center;
    padding-bottom: 30px;
}

    .section-title h2 {
        font-size: 32px;
        font-weight: bold;
        text-transform: uppercase;
        margin-bottom: 20px;
        padding-bottom: 20px;
        position: relative;
        color: #37517e;
    }

        .section-title h2::before {
            content: "";
            position: absolute;
            display: block;
            width: 120px;
            height: 1px;
            background: #ddd;
            bottom: 1px;
            right: calc(50% - 60px);
        }

        .section-title h2::after {
            content: "";
            position: absolute;
            display: block;
            width: 40px;
            height: 3px;
            background: #47b2e4;
            bottom: 0;
            right: calc(50% - 20px);
        }

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .content h3 {
    font-weight: 600;
    font-size: 26px;
}

.about .content ul {
    list-style: none;
    padding: 0;
}

    .about .content ul li {
        padding-right: 28px;
        position: relative;
    }

    .about .content ul i {
        position: absolute;
        right: 0;
        top: 2px;
        font-size: 20px;
        color: #47b2e4;
    }

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
    box-shadow: 0px 0 25px 0 rgba(0, 0, 0, 0.1);
    padding: 50px 30px;
    transition: all ease-in-out 0.4s;
    background: #fff;
    height: 100%;
}

    .services .icon-box .icon {
        margin-bottom: 10px;
    }

        .services .icon-box .icon i {
            color: #47b2e4;
            font-size: 36px;
        }

    .services .icon-box h4 {
        font-weight: 500;
        margin-bottom: 15px;
        font-size: 24px;
    }

        .services .icon-box h4 a {
            color: #37517e;
            transition: ease-in-out 0.3s;
        }

    .services .icon-box p {
        line-height: 24px;
        font-size: 14px;
        margin-bottom: 0;
    }

    .services .icon-box:hover {
        transform: translateY(-10px);
    }

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info {
    border-top: 3px solid #47b2e4;
    border-bottom: 3px solid #47b2e4;
    padding: 30px;
    background: #fff;
    width: 100%;
    box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.1);
}

    .contact .info i {
        font-size: 20px;
        color: #47b2e4;
        float: right;
        width: 44px;
        height: 44px;
        background: #e7f5fb;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50px;
        transition: all 0.3s ease-in-out;
    }

    .contact .info h4 {
        padding: 0 0 0 60px;
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 5px;
        color: #37517e;
    }

    .contact .info p {
        padding: 0 0 10px 60px;
        margin-bottom: 20px;
        font-size: 14px;
        color: #6182ba;
    }

.contact .php-email-form {
    width: 100%;
    border-top: 3px solid #47b2e4;
    border-bottom: 3px solid #47b2e4;
    padding: 30px;
    background: #fff;
    box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
}

    .contact .php-email-form .form-group {
        padding-bottom: 8px;
    }

    .contact .php-email-form .form-control {
        border-radius: 0;
        box-shadow: none;
        font-size: 14px;
    }

    .contact .php-email-form button[type=submit] {
        background: #47b2e4;
        border: 0;
        padding: 10px 24px;
        color: #fff;
        transition: 0.4s;
        border-radius: 50px;
    }

        .contact .php-email-form button[type=submit]:hover {
            background: #209dd8;
        }


/*--------------------------------------------------------------
# Work Process Section
--------------------------------------------------------------*/
.work-process .process-container {
    margin-top: 30px;
}

.work-process .process-step {
    text-align: center;
    padding: 20px 15px;
    margin-bottom: 30px;
}

/* استایل کادر تصویر */
.work-process .step-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px; /* ارتفاع ثابت برای یکدست شدن کادرها */
    background: #fff;
    border-radius: 15px;
    margin: 0 auto 25px;
    padding: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
    border: 2px solid #e7f5fb;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    /* تنظیمات عکس داخل کادر */
    .work-process .step-image-wrapper img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* جلوگیری از کشیدگی عکس */
        border-radius: 10px;
    }

/* استایل شماره مرحله */
.work-process .step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    background: #47b2e4;
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(71, 178, 228, 0.4);
    z-index: 2;
}

.work-process .process-step h4 {
    font-size: 18px;
    font-weight: 700;
    color: #37517e;
    margin-bottom: 12px;
}

.work-process .process-step p {
    font-size: 14px;
    line-height: 1.6;
    color: #6182ba;
    margin-bottom: 0;
}

/* افکت هاور (وقتی موس روی هر مرحله می‌رود) */
.work-process .process-step:hover .step-image-wrapper {
    border-color: #47b2e4;
    box-shadow: 0 10px 30px rgba(71, 178, 228, 0.2);
    transform: translateY(-5px);
}

/* خط اتصال دهنده بین مراحل در دسکتاپ */
@media (min-width: 992px) {
    .work-process .process-container {
        position: relative;
    }

        .work-process .process-container::before {
            content: "";
            position: absolute;
            top: 100px; /* تراز با مرکز تصاویر */
            left: 10%;
            right: 10%;
            height: 2px;
            background: #d1e6fa;
            z-index: 0;
            border-top: 2px dashed #47b2e4; /* خط نقطه‌چین */
            opacity: 0.5;
        }
}



/*--------------------------------------------------------------
# Clients Section
--------------------------------------------------------------*/
.clients .swiper-slide img {
    transition: all 0.3s ease-in-out;
    filter: grayscale(100%);
    opacity: 0.6;
    max-height: 60px; /* جلوگیری از بزرگ شدن بیش از حد لوگوها */
    object-fit: contain;
}

    .clients .swiper-slide img:hover {
        filter: grayscale(0);
        opacity: 1;
    }

/* استایل نقطه‌های پایین اسلایدر (Pagination) */
.clients .swiper-pagination {
    margin-top: 20px;
    position: relative;
}

    .clients .swiper-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background-color: #ddd;
        opacity: 1;
    }

    .clients .swiper-pagination .swiper-pagination-bullet-active {
        background-color: #47b2e4;
    }


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
    padding: 30px 0;
    color: #fff;
    background: #37517e;
}

    #footer .copyright {
        float: right;
    }

    #footer .credits {
        float: left;
        font-size: 13px;
    }
