/* --- تنظیمات پایه و ریست کردن استایل‌ها --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, #0f0c1b, #15102a);
    color: #f1f1f1;
    min-height: 100vh;
    padding: 2rem 1rem;
    direction: rtl; /* تنظیم جهت برای متون فارسی */
    overflow-x: hidden;
}

/* --- عنوان اصلی صفحات --- */
.title, .tesla_support_title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, #00f2fe, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    animation: fadeInDown 1s ease-out;
}

/* --- توضیحات زیر عنوان‌ها --- */
.describtion, .question_text {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.describtion h3, .question_text {
    font-size: 1.2rem;
    font-weight: 400;
    color: #b3b3b3;
    line-height: 1.8;
}

/* تنظیم متن ساده پشتیبانی */
.question_text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* --- بخش کارت‌های ویژگی‌ها (Grid System) --- */
.base-property {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 0 1rem;
}

/* استایل مشترک تمام کارت‌ها */
.base-property > div {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* انیمیشن هوور کارت‌ها */
.base-property > div:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: #4facfe;
    box-shadow: 0 12px 30px rgba(79, 172, 254, 0.2);
}

/* تصاویر داخل کارت‌ها */
.pimage {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.2rem;
}

/* متن زیر تصاویر کارت‌ها */
.desh3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
}

/* افکت نوری متمایز برای کارت هوش مصنوعی (AI) */
.base-property .AI:hover {
    border-color: #00f2fe;
    box-shadow: 0 12px 30px rgba(0, 242, 254, 0.25);
}

/* --- بخش اطلاعات تیم (Binary Secrets) --- */
.team_information {
    max-width: 900px;
    margin: 0 auto 2rem auto;
    background: linear-gradient(145deg, rgba(30, 25, 50, 0.9), rgba(15, 10, 25, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.team_title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
}

/* خط تزیینی زیر نام تیم */
.team_title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 2px;
}

.team_description {
    font-size: 1.1rem;
    font-weight: 400;
    color: #c7c7c7;
    line-height: 2;
    margin-bottom: 2.5rem;
    text-align: justify;
    text-align-last: center;
}

/* --- استایل دکمه‌ها و لینک‌ها --- */
.link_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

/* استایل عمومی تمامی دکمه‌ها و لینک‌های دکمه‌ای */
.orders_bot_link, .chanel_link, .link_box a[href="/support"], .support_form button {
    display: inline-block;
    width: 100%;
    max-width: 350px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    border: none;
}

/*دکمه ربات سفارش‌گیر (اصلی) */
.orders_bot_link {
    background: linear-gradient(45deg, #0072ff, #00c6ff);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
}

.orders_bot_link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.5);
}

/* دکمه کانال تسلا (ثانویه) */
.chanel_link {
    background: transparent;
    color: #00c6ff;
    border: 2px solid #0072ff !important;
}

.chanel_link:hover {
    background: rgba(0, 114, 255, 0.1);
    transform: translateY(-3px);
}

/* 🌟 تبدیل تگ a پشتیبانی به دکمه شیک و متمایز */
.link_box a[href="/support"] {
    background: linear-gradient(45deg, #e63946, #ff4d6d);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    text-transform: uppercase;
    font-size: 1rem;
}

.link_box a[href="/support"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.5);
}

/* --- استایل فرم صفحه پشتیبانی (support.html) --- */
.support_form {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* استایل فیلدهای ورودی (Inputs) */
.support_form .input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    text-align: right;
}

.support_form .input:focus {
    border-color: #00f2fe;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(0, 242, 243, 0.2);
}

/* استایل دکمه ارسال فرم پشتیبانی */
.support_form button {
    max-width: 100%;
    background: linear-gradient(45deg, #00f2fe, #4facfe);
    color: #0f0c1b;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    margin-top: 0.5rem;
}

.support_form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5);
}

/* --- انیمیشن ورود صفحه --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- بهینه‌سازی برای دستگاه‌های مختلف (Media Queries) --- */
@media (max-width: 768px) {
    .title, .tesla_support_title {
        font-size: 2.2rem;
    }
    
    .team_title {
        font-size: 1.8rem;
    }

    .base-property {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1.5rem 0.5rem;
    }

    .title, .tesla_support_title {
        font-size: 1.8rem;
    }

    .describtion h3, .question_text {
        font-size: 1rem;
    }

    .base-property {
        grid-template-columns: 1fr;
    }

    .team_information, .support_form {
        padding: 1.5rem 1rem;
    }

    .team_description {
        font-size: 1rem;
        text-align: center;
    }

    .orders_bot_link, .chanel_link, .link_box a[href="/support"], .support_form button {
        max-width: 100%;
    }
}