/* ========================================
   Partners, App, CTA, FAQ Styles
   ======================================== */

/* ----------------------------------------
   Partners Section
   ---------------------------------------- */
.partners-section {
    padding: 60px 0;
    background-color: var(--background-light);
    overflow: hidden;
}

.partners-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.partners-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    animation: scroll 20s linear infinite;
}

.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

.partner-item {
    flex: 0 0 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.partner-item img {
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ----------------------------------------
   App Download Section
   ---------------------------------------- */
.app-download {
    background: var(--gradient-primary);
    border-radius: 24px;
    padding: 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.3);
}
/*
body[data-lang="ar"] .app-download {
    flex-direction: row-reverse;
}*/

.app-download::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.app-content {
    flex: 1;
    position: relative;
    z-index: 1;
    color: white;
}

.app-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.app-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.app-stores {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
/*
body[data-lang="ar"] .app-stores {
    flex-direction: row-reverse;
}*/

.app-store-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-store-link:hover {
    transform: translateY(-5px);
}

.app-store-img {
    height: 60px;
    width: auto;
}

.app-mockup {
    flex: 0 0 300px;
    position: relative;
    z-index: 1;
}

.mockup-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* ----------------------------------------
   CTA Section
   ---------------------------------------- */
.cta {
    background: var(--gradient-primary);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: white;
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ----------------------------------------
   FAQ Section
   ---------------------------------------- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 24px 30px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}
/*
body[data-lang="ar"] .faq-question {
    flex-direction: row-reverse;
}*/

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 30px 24px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ----------------------------------------
   Responsive Styles
   ---------------------------------------- */
@media (max-width: 1024px) {
    .app-download {
        flex-direction: column;
        padding: 60px 40px;
        text-align: center;
    }
/*
    body[data-lang="ar"] .app-download {
        flex-direction: column;
    }*/

    .app-mockup {
        flex: 0 0 250px;
    }
}

@media (max-width: 768px) {
    .partners-track {
        animation: scroll 15s linear infinite;
    }

    .partners-section {
        padding: 40px 0;
    }

    .app-download {
        padding: 50px 30px;
    }
    
    .app-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .app-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .app-stores {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .app-store-link {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .app-store-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-3px);
    }
    
    .app-store-img {
        height: 45px;
        width: auto;
    }
    
    .app-mockup {
        margin-top: 30px;
    }
    
    .mockup-image {
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }

    .cta {
        padding: 40px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .app-download {
        padding: 40px 20px;
    }
    
    .app-title {
        font-size: 1.7rem;
    }
    
    .app-description {
        font-size: 0.95rem;
    }
    
    .app-stores {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 280px;
    }
    
    .app-store-link {
        padding: 12px 20px;
    }
    
    .app-store-img {
        height: 100px;
    }
}
