/* تنظیمات راست‌چین و فونت فارسی */
body {
    font-family: 'Vazir', sans-serif;
    text-align: right;
    direction: rtl;
}

/* اصلاح ترازبندی عناصر */
.navbar-nav {
    padding-right: 0;
}

.single-feature, .single-table {
    text-align: right;
}

/* اصلاح فاصله‌ها */
.me-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.ms-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* اصلاح dropdown منو */
.dropdown-menu {
    text-align: right;
    left: auto;
    right: 0;
}

/* اصلاح فرم‌ها */
/* در فایل rtl.css */
.form-control, .form-select {
    text-align: right;
    direction: rtl;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 16px 12px;
}

textarea.form-control {
    min-height: 100px;
}

#contactForm .btn {
    width: 100%;
    padding: 12px;
    font-weight: bold;
}

/* اصلاح آیکون‌ها */
.lni {
    margin-left: 8px;
    margin-right: 0;
}

/* اصلاح لیست‌ها */
ul {
    padding-right: 20px;
}

/* اصلاح شماره‌گذاری */
ol {
    padding-right: 20px;
    direction: ltr;
    text-align: right;
}

/* اصلاح جداول */
table {
    direction: rtl;
}

.hero-image video {
    width: 100%;
    height: auto;
    border-radius: 20px; /* اضافه کردن گردی به گوشه‌ها */
    object-fit: cover; /* برای پر کردن فضای موجود */
}

.single-feature {
  direction: rtl;
  text-align: right;
}

.single-feature i {
  float: right;
  margin-left: 15px;
  margin-right: 0;
}

.single-feature h3,
.single-feature p {
  text-align: right;
}

#pricing {
  display: none;
}
#callme {
  display: none;
}

.rounded-image {
    border-radius: 20px; /* گوشه‌های گرد */
    overflow: hidden; /* جلوگیری از خروج تصویر از محدوده */
}

/* Custom Toast Styles */
.toast-container {
    z-index: 9999; /* Ensure it's on top of everything */
}

.toast {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.toast-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 10px 10px 0 0;
}

.toast-success .toast-header {
    background-color: #d4edda;
    color: #155724;
}

.toast-error .toast-header {
    background-color: #f8d7da;
    color: #721c24;
}

/* استایل پاپ آپ */
    .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    .popup-content {
        background-color: white;
        padding: 30px;
        border-radius: 10px;
        width: 90%;
        max-width: 500px;
        text-align: right;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .close-btn {
        position: absolute;
        top: 15px;
        left: 15px;
        font-size: 24px;
        cursor: pointer;
        color: #888;
    }

    .contact-item {
        margin-bottom: 15px;
    }

    .contact-card {
        display: flex;
        align-items: center;
        padding: 15px;
        border-radius: 8px;
        background-color: #f9f9f9;
        border: 1px solid #e0e0e0;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .contact-card:hover {
        background-color: #f0f0f0;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .contact-card i {
        margin-left: 15px;
    }

    /* استایل دکمه متریال */
    .btn-material {
        position: relative;
        padding: 12px 24px;
        font-size: 16px;
        font-weight: 500;
        color: #fff;
        background-color: #3b75fb;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 5px rgba(59, 117, 251, 0.2);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 180px;
    }

    .btn-material:hover {
        background-color: #2a65ea;
        box-shadow: 0 4px 12px rgba(59, 117, 251, 0.3);
        transform: translateY(-2px);
    }

    .btn-material:active {
        transform: translateY(0);
        box-shadow: 0 2px 5px rgba(59, 117, 251, 0.3);
    }

    .btn-material::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%, -50%);
        transform-origin: 50% 50%;
    }

    .btn-material:focus:not(:active)::after {
        animation: ripple 0.6s ease-out;
    }

    .btn-text {
        transition: all 0.3s ease;
        margin-left: 8px;
    }

    .btn-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .btn-material:hover .btn-text {
        transform: translateX(-5px);
    }

    .btn-material:hover .btn-icon {
        transform: translateX(5px);
    }

    @keyframes ripple {
        0% {
            transform: scale(0, 0);
            opacity: 0.5;
        }
        100% {
            transform: scale(20, 20);
            opacity: 0;
        }
    }
    .contact-link {
    text-decoration: none;
    color: inherit;
}

.contact-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #333;
}

.contact-card:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #3b75fb;
}

.contact-card i {
    margin-left: 15px;
}

/* استایل بخش نمونه کارها */
.portfolio.section {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.single-portfolio {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.single-portfolio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid #f1f1f1;
}

.portfolio-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.portfolio-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.portfolio-content .btn {
    padding: 8px 20px;
    font-size: 14px;
    background-color: #3b75fb;
    color: #fff;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.portfolio-content .btn:hover {
    background-color: #2a5fd6;
    transform: translateY(-3px);
}
