/* Partners Section Premium Styles */
:root {
    --partners-primary: #DEA401;
    --partners-primary-dark: #c89401;
    --partners-primary-light: #f4d03f;
    --partners-light: #F1F8FF;
    --partners-dark: #0F172B;
    --partners-gradient-1: linear-gradient(135deg, #DEA401 0%, #f4d03f 50%, #DEA401 100%);
    --partners-gradient-2: linear-gradient(135deg, rgba(222, 164, 1, 0.1) 0%, rgba(244, 208, 63, 0.05) 100%);
    --gradient-1: linear-gradient(135deg, #DEA401 0%, #f4d03f 50%, #DEA401 100%);
}

/* Partners Section - Premium Design */
.partners-section-premium {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Animated Background Elements */
.partners-section-premium::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(222, 164, 1, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: partners-pulse 8s ease-in-out infinite;
}

.partners-section-premium::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(222, 164, 1, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: partners-pulse 10s ease-in-out infinite reverse;
}

@keyframes partners-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.4; }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--partners-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 15s infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

[dir="ltr"] .particle {
    animation-name: float-particle-ltr;
}

@keyframes float-particle-ltr {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(-50px);
        opacity: 0;
    }
}

/* Section Header */
.section-header-premium {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-block;
    background: var(--partners-gradient-1);
    color: var(--partners-dark);
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(222, 164, 1, 0.3);
    animation: fadeInDown 1s ease-out;
}

.section-title-premium {
    font-size: 1.3rem;
    color: var(--partners-primary);
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInDown 1s ease-out 0.2s both;
}

.section-heading-premium {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--partners-dark);
    margin-bottom: 25px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--partners-dark) 0%, var(--partners-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.section-description-premium {
    font-size: 1.15rem;
    color: #6c757d;
    margin: 0 auto 50px;
    max-width: 750px;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Partners Grid */
.partners-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 70px;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.partner-card-premium {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex-direction: column;
}

.partner-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.partner-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--partners-gradient-2);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.partner-card-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(222, 164, 1, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

[dir="ltr"] .partner-card-premium::after {
    transform: translate(-50%, -50%);
}

.partner-card-premium:hover::after {
    width: 300px;
    height: 300px;
}

.partner-card-premium:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(222, 164, 1, 0.25);
    border-color: var(--partners-primary);
}

.partner-card-premium:hover::before {
    opacity: 1;
}

.partner-logo-premium {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.partner-card-premium:hover .partner-logo-premium {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
}

/* Partner Name Styling */
.partner-name-premium {
    font-size: 1rem;
    font-weight: 700;
    color: var(--partners-dark);
    margin: 0;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    line-height: 1.4;
    word-wrap: break-word;
    max-width: 100%;
    padding: 0 10px;
}

.partner-card-premium:hover .partner-name-premium {
    color: var(--partners-primary);
    transform: translateY(-3px);
}

/* Premium Logo Placeholder */
.logo-placeholder-premium {
    width: 140px;
    height: 70px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 2rem;
    text-align: center;
    padding: 12px;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.logo-placeholder-premium i {
    font-size: 2.5rem;
    color: #adb5bd;
    transition: all 0.3s ease;
}

.partner-card-premium:hover .logo-placeholder-premium {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-color: var(--partners-primary);
    transform: scale(1.1);
}

.partner-card-premium:hover .logo-placeholder-premium i {
    color: var(--partners-primary-dark);
    transform: scale(1.2);
}

/* Premium CTA Section */
.cta-section-premium {
    text-align: center;
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.cta-wrapper {
    display: inline-block;
    position: relative;
}

.cta-button-premium {
    background: var(--gradient-1);
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 22px 60px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 40px rgba(222, 164, 1, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

/* Button Ripple Effect - RTL (Arabic) */
.cta-button-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

/* Button Ripple Effect - LTR (English) */
[dir="ltr"] .cta-button-premium::before {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Button Overlay Gradient - RTL (Arabic) */
.cta-button-premium::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Button Overlay Gradient - LTR (English) */
[dir="ltr"] .cta-button-premium::after {
    right: auto;
    left: 0;
}

.cta-button-premium:hover::before {
    width: 400px;
    height: 400px;
}

.cta-button-premium:hover::after {
    opacity: 1;
}

/* Button Hover Effect - Unified for both RTL and LTR */
.cta-button-premium:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(222, 164, 1, 0.5);
    color: var(--dark);
}

/* Button Active State - Unified for both RTL and LTR */
.cta-button-premium:active {
    transform: translateY(-2px) scale(1.02);
}

.cta-button-premium i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

[dir="rtl"] .cta-button-premium:hover i {
    transform: translateX(-8px);
}

[dir="ltr"] .cta-button-premium:hover i {
    transform: translateX(8px);
}

/* Glow Effect - RTL (Arabic) */
.cta-glow {
    position: absolute;
    top: 50%;
    right: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(222, 164, 1, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    filter: blur(20px);
    animation: glow-pulse-rtl 3s ease-in-out infinite;
    pointer-events: none;
}

/* Glow Effect - LTR (English) */
[dir="ltr"] .cta-glow {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-name: glow-pulse-ltr;
}

/* Glow Pulse Animation - RTL (Arabic) */
@keyframes glow-pulse-rtl {
    0%, 100% {
        transform: translate(50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

/* Glow Pulse Animation - LTR (English) */
@keyframes glow-pulse-ltr {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

/* Premium Contact Form */
.contact-form-premium {
    background: linear-gradient(135deg, #474747 0%, #2c2c2c 100%);
    color: white;
    padding: 100px 0;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.contact-form-premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(222, 164, 1, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-form-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(222, 164, 1, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

[dir="ltr"] .contact-form-premium::before {
    right: auto;
    left: 0;
}

[dir="ltr"] .contact-form-premium::after {
    left: auto;
    right: 0;
}

.form-container-premium {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.form-container-premium .form-control {
    transition: all 0.3s ease;
}

.form-container-premium .form-control:focus {
    border-color: var(--partners-primary);
    box-shadow: 0 0 0 0.2rem rgba(222, 164, 1, 0.25);
}

/* Scroll Animation */
.partners-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.partners-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-heading-premium {
        font-size: 2.5rem;
    }

    .partners-grid-premium {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .partners-section-premium {
        padding: 60px 0;
    }

    .section-heading-premium {
        font-size: 2rem;
    }

    .section-description-premium {
        font-size: 1rem;
    }

    .partners-grid-premium {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .partner-card-premium {
        padding: 25px 15px;
        min-height: 150px;
    }

    .partner-name-premium {
        font-size: 0.9rem;
    }

    .cta-button-premium {
        padding: 18px 45px;
        font-size: 1rem;
    }
}
