﻿:root {
    --primary: #6a4a9c;
    --primary-dark: #4e357a;
    --primary-light: #9c7adc;
    --accent: #FFD700;
    --accent-alt: #ff9d5c;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 8px 30px rgba(106, 74, 156, 0.15);
}

/* اصلاحات اساسی برای z-index و موقعیت یابی */
.header-area {
    z-index: 1100;
    position: relative;
    overflow: visible !important;
}

.dropdown-menu {
    z-index: 1101;
}

.personnel-hero {
    position: relative;
    z-index: 1;
}

/* حل مشکل اصلی منوهای کشویی */
.dropdown {
    position: static;
}

.dropdown-menu {
    position: absolute;
    top: 100% !important;
    right: 0;
    transform: none !important;
    min-width: 250px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) !important;
}

/* استایل جدید برای منوی محصولات - اصلاح شده */
.products-dropdown {
    min-width: 180px;
    padding: 0;
    border-radius: 8px;
    text-align: center;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    box-shadow: 0 5px 20px rgba(106, 74, 156, 0.25);
    opacity: 0;
    visibility: hidden;
}

.dropdown:hover .products-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px) !important;
}

.products-dropdown li a {
    display: block;
    padding: 12px 15px;
    text-align: center;
    color: var(--primary-dark);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
    transition: all 0.2s;
}

.products-dropdown li:last-child a {
    border-bottom: none;
}

.products-dropdown li a:hover {
    background-color: var(--primary-light);
    color: white;
    transform: none;
    padding-right: 15px;
}

/* استایل‌های عمومی */
body {
    background: linear-gradient(135deg, #f9f7ff 0%, #f0edf7 100%);
    color: #333;
    overflow-x: hidden;
    background-attachment: fixed;
    line-height: 1.7;
    padding-top: 80px;
    font-family: Shabnam, Tahoma, sans-serif;
    scroll-behavior: smooth;
}

.section {
    padding: 100px 0;
}

.section-title {
    position: relative;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 70px;
    text-align: center;
    color: var(--primary-dark);
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -15px;
        right: 50%;
        transform: translateX(50%);
        width: 100px;
        height: 4px;
        background: linear-gradient(90deg, var(--accent), var(--accent-alt));
        border-radius: 10px;
    }

/* نویگیشن پیشرفته */
.header-area {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transition: var(--transition);
}

.header-sticky {
    padding: 10px 0;
    box-shadow: 0 5px 25px rgba(106, 74, 156, 0.2);
}

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: 50px;
        transition: var(--transition);
    }

.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    color: #7852A9;
    margin-right: 10px;
}

.nav {
    display: flex;
    list-style: none;
    gap: 5px;
}

    .nav li a {
        color: var(--primary-dark);
        text-decoration: none;
        font-weight: 600;
        padding: 12px 20px;
        border-radius: 30px;
        transition: var(--transition);
        position: relative;
        display: flex;
        align-items: center;
        font-size: 1.1rem;
    }

        .nav li a:hover,
        .nav li a.active {
            color: white;
            background: var(--primary);
        }

            .nav li a:hover::after {
                width: 100%;
            }

/* استایل‌های دراپ‌داون جدید */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: none;
}

.dropdown-toggle i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    border-radius: 0;
    background: transparent;
    color: var(--primary-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .dropdown-menu li a:hover {
        background: var(--primary-light);
        color: white;
        transform: translateX(5px);
    }

.personnel-hero {
    background: linear-gradient(135deg, var(--accent), var(--accent));
    color: white;
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #FFD700, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s infinite alternate;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.6rem;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.hero-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 70px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    flex: 0 0 200px;
    padding: 25px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

    .icon-item:hover {
        transform: translateY(-15px);
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    }

    .icon-item i {
        font-size: 3.5rem;
        margin-bottom: 20px;
        color: gold;
        animation: iconPulse 2s infinite alternate;
    }

    .icon-item span {
        font-size: 1.2rem;
        font-weight: 500;
    }

/* معرفی سیستم پیشرفته */
.system-intro {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(245,243,252,0.95) 100%);
    border-radius: 25px;
    padding: 60px;
    box-shadow: var(--shadow);
    margin-bottom: 70px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

    .system-intro:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 70px rgba(106, 74, 156, 0.25);
    }

    .system-intro::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, var(--primary-light) 0%, transparent 60%);
        opacity: 0.05;
        z-index: -1;
    }

/* کارت‌های برجسته پیشرفته */
.highlight-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(245,243,252,0.95));
    border-radius: 25px;
    padding: 45px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex: 1;
    max-width: 100%;
    border-top: 6px solid var(--primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
    margin-bottom: 30px;
}

    .highlight-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        opacity: 0;
        transition: var(--transition);
        z-index: -1;
    }

    .highlight-card:hover {
        transform: translateY(-20px) scale(1.03);
        box-shadow: 0 20px 60px rgba(106, 74, 156, 0.35);
        color: white;
    }

        .highlight-card:hover::before {
            opacity: 1;
        }

        .highlight-card:hover i,
        .highlight-card:hover h3,
        .highlight-card:hover p {
            color: white;
        }

    .highlight-card i {
        font-size: 4rem;
        color: var(--primary);
        margin-bottom: 30px;
        transition: var(--transition);
    }

    .highlight-card h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        color: var(--primary-dark);
        transition: var(--transition);
    }

    .highlight-card p {
        transition: var(--transition);
    }

/* ویژگی‌های سیستم پیشرفته */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    display: flex;
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(245,243,252,0.95));
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

    .feature-card:hover {
        transform: translateY(-15px);
        box-shadow: 0 20px 60px rgba(106, 74, 156, 0.3);
    }

.feature-icon {
    background: linear-gradient(135deg, #7852A9, var(--primary-dark));
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: white;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--accent-alt), #ff7b3d);
}

.feature-content {
    padding: 30px;
}

    .feature-content h3 {
        font-size: 1.6rem;
        margin-bottom: 15px;
        color: var(--primary-dark);
    }

    .feature-content p {
        color: #555;
    }

/* بخش یکپارچه‌سازی پیشرفته */
.integration-container {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 0 auto;
    display: grid;
    place-items: center;
}

.core-system {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
    box-shadow: 0 15px 50px rgba(106, 74, 156, 0.5);
    color: white;
    font-weight: 700;
    z-index: 3;
    animation: pulse 3s infinite alternate;
    transition: var(--transition);
    cursor: pointer;
}

    .core-system:hover {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 50px rgba(106, 74, 156, 0.7);
    }

.connected-system {
    position: absolute;
    background: linear-gradient(145deg, white, #f0edf7);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    color: var(--primary);
    font-weight: 700;
    transition: var(--transition);
    z-index: 2;
    animation: float 6s infinite ease-in-out;
    cursor: pointer;
}

    .connected-system:hover {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(106, 74, 156, 0.4);
    }

/* دکمه‌های اقدام پیشرفته */
.btn {
    padding: 18px 45px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    min-width: 220px;
    text-align: center;
    border: none;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-back {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
}

    .btn-back:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(106, 74, 156, 0.4);
    }

.btn-contact {
    background: linear-gradient(90deg, var(--primary), var(--accent-alt));
    color: white;
    z-index: 10;
}

    .btn-contact:hover {
        background: linear-gradient(90deg, var(--accent-alt), var(--primary));
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(255, 157, 92, 0.4);
    }



/* بخش آمار پیشرفته */
.stats-section {
    background: linear-gradient(135deg, #7852A9, var(--primary-dark));
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffd700;
}

.stat-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: lightgoldenrodyellow
}

/* بخش فرم درخواست دمو پیشرفته */
.demo-form-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.form-card {
    background: white;
    border-radius: 25px;
    box-shadow: var(--shadow);
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

    .form-card::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: var(--primary-light);
        opacity: 0.1;
        z-index: 0;
    }

.form-control {
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    font-family: Shabnam;
}

    .form-control:focus {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 0.25rem rgba(106, 74, 156, 0.15);
    }

/* فوتر پیشرفته */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,215,0,0.1) 0%, transparent 30%);
}

.footer-logo {
    height: 80px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

    .footer-links a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        transition: var(--transition);
        font-size: 1.1rem;
        position: relative;
        padding-bottom: 5px;
    }

        .footer-links a:hover {
            color: var(--accent);
        }

        .footer-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: var(--transition);
        }

        .footer-links a:hover::after {
            width: 100%;
        }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

    .social-icon:hover {
        background: var(--accent);
        color: var(--primary-dark);
        transform: translateY(-5px) rotate(10deg);
    }

/* دکمه بازگشت به بالا */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(106, 74, 156, 0.5);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

    .back-to-top.active {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background: var(--accent-alt);
        transform: translateY(-5px);
    }

/* استایل جدید برای هیرو سکشن */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    padding: 0;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.webp') center/cover no-repeat;
        z-index: -1; 
    }

.hero-content {
    text-align: center;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.8rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    padding: 15px 25px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: inline-block;
}

/* انیمیشن‌ها */
@keyframes titleGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    }

    100% {
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 0 50px rgba(255, 215, 0, 0.6);
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(106, 74, 156, 0.7);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 0 20px rgba(106, 74, 156, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* رسپانسیو */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .dropdown-menu {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .personnel-hero {
        padding: 150px 0 80px;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .system-intro, .form-card {
        padding: 40px;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav li a {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .dropdown-menu {
        min-width: 180px;
    }

    /* تغییرات برای نمایش صحیح در موبایل */
    .products-dropdown {
        min-width: 160px;
    }

        .products-dropdown li a {
            padding: 10px 12px;
            font-size: 0.95rem;
        }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 70px 0;
    }

    .icon-item {
        flex: 0 0 150px;
        padding: 20px 10px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .dropdown-menu {
        min-width: 160px;
    }
}
