/* 
* WhatsApp Line API - Main Stylesheet
* متوافق مع جميع المتصفحات الرئيسية
* متجاوب مع جميع أحجام الشاشات
*/

/* ===== متغيرات CSS ===== */
:root {
    /* الألوان الأساسية */
    --primary-color: #25D366;
    --secondary-color: #128C7E;
    --dark-color: #075E54;
    --light-color: #DCF8C6;
    --white-color: #ffffff;
    --black-color: #111111;
    --gray-color: #f5f5f5;
    --dark-gray: #444444;
    
    /* الخطوط */
    --main-font: 'Tajawal', sans-serif;
    
    /* الظلال */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== إعادة تعيين CSS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--main-font);
    line-height: 1.6;
    color: var(--black-color);
    background-color: var(--white-color);
    overflow-x: hidden;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== الطبقات المساعدة ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-description {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

/* ===== الأزرار ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.btn i {
    margin-left: 8px;
}

/* ===== الهيدر ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-link {
    margin: 0 15px;
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.register {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 8px 20px;
    border-radius: 50px;
}

.nav-link.register:hover {
    background-color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* ===== القسم الرئيسي (Hero Section) ===== */
.hero-section {
    padding: 150px 0 80px;
    background-color: var(--gray-color);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-left: 30px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

.hero-contact {
    display: flex;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-left: 8px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ===== قسم الدعوة للعمل ===== */
.cta-section {
    padding: 30px 0;
    background-color: var(--white-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ===== قسم المميزات ===== */
.features-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-description {
    color: var(--dark-gray);
}

/* ===== قسم اجعل الاتصال سهلاً ===== */
.easy-connect-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white-color);
}

.easy-connect-section .section-title {
    color: var(--white-color);
}

.easy-connect-section .section-title::after {
    background-color: var(--white-color);
}

.easy-connect-section .section-description {
    color: var(--white-color);
    opacity: 0.9;
}

/* ===== قسم توليد رمز الاستجابة السريعة ===== */
.qr-section {
    padding: 80px 0;
    background-color: var(--gray-color);
}

.qr-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qr-text {
    flex: 1;
    padding-left: 50px;
}

.qr-image {
    flex: 1;
    text-align: center;
}

.qr-image img {
    max-width: 300px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* ===== قسم ميزة Advance Bot ===== */
.advance-bot-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.advance-bot-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.advance-bot-image {
    flex: 1;
    text-align: center;
}

.advance-bot-text {
    flex: 1;
    padding-right: 50px;
}

/* ===== قسم إدارة الحملة ===== */
.campaign-section {
    padding: 80px 0;
    background-color: var(--gray-color);
}

.campaign-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.campaign-text {
    flex: 1;
    padding-left: 50px;
}

.campaign-text p {
    margin-bottom: 30px;
}

.campaign-image {
    flex: 1;
    text-align: center;
}

/* ===== قسم الأسعار ===== */
.pricing-section {
    padding: 80px 0;
    background-color: var(--gray-color);
}

.pricing-cards {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
    position: relative;
    margin: 0 auto;
}

/* عرض أفقي على الشاشات الكبيرة */
@media (min-width: 992px) {
    .pricing-cards {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .pricing-card {
        flex: 1;
        margin: 0;
    }
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom-left-radius: 10px;
}

.pricing-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.pricing-price {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
    margin-left: 5px;
    color: var(--dark-gray);
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-right: 5px;
}

.pricing-features {
    padding: 30px;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.pricing-features i {
    margin-left: 10px;
    font-size: 1rem;
}

.pricing-features .fa-check {
    color: var(--primary-color);
}

.pricing-features .fa-times {
    color: #dc3545;
}

.pricing-footer {
    padding: 0 30px 30px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== قسم آراء العملاء ===== */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
    opacity: 0.7;
    transform: scale(0.95);
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    opacity: 1;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    color: var(--dark-gray);
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    margin-left: 15px;
}

.testimonial-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.testimonial-position {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* ===== قسم الأسئلة المتكررة ===== */
.faq-section {
    padding: 80px 0;
    background-color: var(--gray-color);
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background-color: var(--white-color);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(37, 211, 102, 0.05);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark-color);
    cursor: default;
}

.faq-toggle {
    transition: all 0.3s ease;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 20px;
    max-height: 1000px;
}

.faq-answer p {
    margin: 0;
    color: var(--dark-gray);
}

/* ===== قسم الدعوة للعمل النهائي ===== */
.final-cta-section {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

.final-cta-section .section-title {
    color: var(--white-color);
}

.final-cta-section .section-title::after {
    background-color: var(--white-color);
}

.final-cta-section .section-description {
    color: var(--white-color);
    opacity: 0.9;
    margin-bottom: 40px;
}

/* ===== الفوتر ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-menu li, .footer-contact li {
    margin-bottom: 12px;
}

.footer-menu a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-left: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== التجاوب مع الأجهزة المختلفة ===== */

/* الأجهزة الكبيرة (أجهزة الكمبيوتر المكتبية، 1200px وما فوق) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
}

/* الأجهزة المتوسطة (أجهزة الكمبيوتر المحمولة، 992px وما فوق) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero-content, .qr-content, .advance-bot-content, .campaign-content {
        flex-direction: column;
    }
    
    .hero-text, .qr-text, .advance-bot-text, .campaign-text {
        padding: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-contact {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* الأجهزة الصغيرة (الأجهزة اللوحية، 768px وما فوق) */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: var(--white-color);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        flex-direction: column;
        align-items: center;
        z-index: 1000;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list li {
        margin: 10px 0;
    }
    
    .nav-link {
        margin: 0;
        padding: 10px 20px;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

/* الأجهزة الصغيرة جداً (الهواتف المحمولة، 576px وما فوق) */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}
