/*
Theme Name: Yours Form
Theme URI: https://yoursform.com
Author: Yours Form Team
Author URI: https://yoursform.com
Description: ثيم احترافي داكن مع تأثيرات نيون بنفسجية، متوافق مع Elementor، RTL بالكامل، وسريع.
Version: 1.0.0
License: GPL v2 or later
Text Domain: yoursform
Domain Path: /languages
*/

/* ========== الأساسيات ========== */
:root {
    --dark-bg: #04010d;
    --purple: #6a00ff;
    --neon-purple: #c026ff;
    --white: #ffffff;
    --glow: 0 0 10px #c026ff, 0 0 20px #6a00ff;
    --card-bg: rgba(10, 5, 25, 0.7);
    --border-glow: 1px solid rgba(192, 38, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--white);
    font-family: 'Tajawal', 'Cairo', sans-serif;
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 90px;
}

/* ========== الهيدر الثابت ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(4, 1, 13, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(192, 38, 255, 0.2);
    padding: 10px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

/* جعل اللوغو يأخذ المساحة المتبقية في المنتصف */
.logo {
    flex: 1;
    text-align: center;
}

.logo a {
    display: inline-block;
}

.logo img {
    max-height: 120px;
    width: auto;
    vertical-align: middle;
}

/* زر القائمة (الهامبرغر) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    order: 1;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: 0.3s;
    border-radius: 3px;
}

/* زر اشتري الآن */
.btn-purple {
    background: linear-gradient(135deg, var(--purple), var(--neon-purple));
    padding: 8px 20px;
    border-radius: 40px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 0 8px var(--neon-purple);
    order: 3;
    white-space: nowrap;
}

.btn-purple:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px var(--neon-purple);
}

/* القائمة الرئيسية (سطح المكتب) */
.main-nav {
    order: 2;
    transition: all 0.4s ease;
}

.main-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-menu li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.main-menu li a:hover {
    color: var(--neon-purple);
}

/* الأزرار العامة */
.btn-outline {
    border: 2px solid var(--neon-purple);
    background: transparent;
    padding: 10px 25px;
    border-radius: 40px;
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple);
}

/* باقي الأقسام مختصرة (نفس السابق) */
section {
    padding: 80px 5%;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #fff, var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 30px 20px;
    text-align: center;
    border: var(--border-glow);
    transition: 0.3s;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
}
.feature-card i {
    font-size: 50px;
    color: var(--neon-purple);
    margin-bottom: 20px;
}
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
}
.pricing-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 30px 20px;
    width: 240px;
    text-align: center;
    border: 1px solid var(--neon-purple);
    transition: 0.3s;
    position: relative;
}
.pricing-card:hover {
    transform: scale(1.03);
    box-shadow: var(--glow);
}
.pricing-card.featured {
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
}
.badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--neon-purple);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
}
.price {
    font-size: 32px;
    font-weight: bold;
    margin: 20px 0;
    color: var(--neon-purple);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 25px;
    text-align: center;
    border: var(--border-glow);
}
.testimonial-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid var(--neon-purple);
}
.stars i { color: gold; margin: 10px 2px; }
.faq-item {
    background: rgba(10,5,25,0.8);
    margin-bottom: 15px;
    border-radius: 20px;
    padding: 0 20px;
    border: 1px solid rgba(192,38,255,0.3);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-weight: bold;
}
.faq-question i { transition: 0.3s; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.4s;
    padding: 0;
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
}
.contact-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 25px;
    width: 250px;
    text-align: center;
    border: var(--border-glow);
}
.btn-whatsapp {
    display: inline-block;
    background: #25D366;
    padding: 15px 35px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
}
footer {
    background: #020108;
    padding: 60px 5% 30px;
    border-top: 1px solid rgba(192,38,255,0.2);
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}
.social-links a {
    color: white;
    margin-left: 15px;
    font-size: 24px;
    transition: 0.3s;
}
.social-links a:hover { color: var(--neon-purple); }
.sticky-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    box-shadow: 0 0 15px #25D366;
    z-index: 99;
    transition: 0.3s;
}
.sticky-whatsapp:hover { transform: scale(1.1); }
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #04010d;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.loader::after {
    content: "";
    width: 60px;
    height: 60px;
    border: 5px solid var(--neon-purple);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== التجاوب مع الشاشات الصغيرة (الموبايل) ========== */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    .site-header {
        padding: 0px 0%;
        gap: 0px;
    }
    .logo {
        flex: 2;
    }
    .logo img {
        max-height: 200px;
        width: auto;
    }
    .menu-toggle {
        display: flex;
    }
    .btn-purple {
        padding: 6px 16px;
        font-size: 14px;
    }
    .main-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 260px;
        height: calc(100vh - 80px);
        background: rgba(4, 1, 13, 0.98);
        backdrop-filter: blur(15px);
        padding: 30px 20px;
        border-left: 1px solid var(--neon-purple);
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        transition: 0.4s;
        z-index: 1000;
    }
    .main-nav.active {
        right: 0;
    }
    .main-menu {
        flex-direction: column;
        gap: 25px;
    }
    .main-menu li a {
        font-size: 1.2rem;
        display: block;
        padding: 8px 0;
    }
    .pricing-card {
        width: 100%;
        max-width: 280px;
    }
    .footer-links ul li a {
        color: #cccccc;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    .footer-links ul li a:hover {
        color: var(--neon-purple);
    }
}

@media (min-width: 769px) {
    .main-nav {
        position: relative !important;
        right: auto !important;
        width: auto !important;
        height: auto !important;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        padding: 0;
        display: block !important;
    }
    .menu-toggle {
        display: none !important;
    }
   /*: لون الروابط السريعة في الفوتر مثل الهاتف */
.footer-links ul li a {
    color: #cccccc !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}
.footer-links ul li a:hover {
    color: #c026ff !important;
} 
    @media (min-width: 769px) {
    /* جعل النص والأزرار في وسط العمود الخاص بهم */
    .hero-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .hero-text h1,
    .hero-text p,
    .hero-text div {
        text-align: center;
        width: 100%;
    }
    /* تصغير صورة الفورم على الحاسوب فقط (ربع الحجم تقريبًا) */
@media (min-width: 769px) {
    .hero-image {
        flex: 0 0 25%;        /* عرض الصورة 25% من المساحة المتاحة */
        max-width: 250px;     /* حد أقصى للعرض 250 بكسل */
    }
    .hero-image img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }
    .hero-text {
        flex: 0 0 70%;        /* النص يأخذ باقي المساحة */
    }
    .hero-container {
        display: flex;
        align-items: center;
        gap: 5%;
    }
}
}