/* =================================================================
   RS PROD AND EVENTS - Services & Partners Styles
   أنماط الخدمات والشركاء مع تأثيرات ذهبية فاخرة
   ================================================================= */

/* =================================================================
   SERVICES SECTION - قسم الخدمات
   ================================================================= */
.services-section {
    background: var(--rich-black);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

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

/* Service Card */
.service-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(26, 26, 26, 0.95));
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
    animation: serviceGlow 3s ease-in-out infinite;
}

@keyframes serviceGlow {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 20px);
    }
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(212, 175, 55, 0.3);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-gold), var(--light-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--rich-black);
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    transition: all 0.4s ease;
    position: relative;
    z-index: 10;
}

.service-icon i {
    position: relative;
    z-index: 20;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

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

.service-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--rich-black);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

/* =================================================================
   SERVICE MODAL - نافذة تفاصيل الخدمة
   ================================================================= */
.service-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.service-modal-container {
    position: relative;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 30px;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.8),
        0 0 0 2px rgba(212, 175, 55, 0.3);
}

.service-modal-overlay.active .service-modal-container {
    transform: scale(1);
    opacity: 1;
}

.service-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #D4AF37;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #D4AF37;
    transition: all 0.3s ease;
}

.service-modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.service-modal-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 60px 40px 40px;
}

.service-modal-content::-webkit-scrollbar {
    width: 8px;
}

.service-modal-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.service-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4AF37, #B8860B);
    border-radius: 10px;
}

.service-modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.service-modal-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-gold), var(--light-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--rich-black);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.5);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 20px 60px rgba(212, 175, 55, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 25px 70px rgba(212, 175, 55, 0.7);
    }
}

.service-modal-header h2 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.service-modal-subtitle {
    font-size: 1.3rem;
    color: var(--primary-gold);
    font-style: italic;
}

.service-modal-body {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.1rem;
}

.service-modal-body h3 {
    color: var(--primary-gold);
    font-size: 1.8rem;
    margin: 30px 0 20px;
}

.service-modal-body h4 {
    color: var(--light-gold);
    font-size: 1.4rem;
    margin: 25px 0 15px;
}

.service-modal-body ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-modal-body li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.service-modal-body strong {
    color: var(--primary-gold);
}

.service-modal-highlights {
    margin-top: 40px;
    padding: 30px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(-5px);
}

.highlight-item i {
    color: var(--primary-gold);
    font-size: 1.5rem;
}

.highlight-item span {
    color: var(--text-white);
    font-weight: 600;
}

/* =================================================================
   PARTNERS SECTION - قسم الشركاء
   ================================================================= */
.partners-section {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

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

/* Partner Card */
.partner-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03), rgba(26, 26, 26, 0.98));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Golden rotating border animation */
.partner-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(
        transparent 0deg,
        transparent 60deg,
        #D4AF37 90deg,
        #FFD700 180deg,
        #D4AF37 270deg,
        transparent 300deg,
        transparent 360deg
    );
    border-radius: 25px;
    animation: partnerBorderRotate 4s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

@keyframes partnerBorderRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Golden glow behind card */
.partner-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: partnerGlowPulse 3s ease-in-out infinite;
    z-index: -2;
}

@keyframes partnerGlowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.partner-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-gold);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(212, 175, 55, 0.4);
}

.partner-continent {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--rich-black);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.partner-logo-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.partner-card:hover .partner-logo-wrapper {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.3));
}

.partner-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
    line-height: 1.4;
}

.partner-location {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.partner-location i {
    color: var(--primary-gold);
    margin-left: 8px;
}

.partner-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    margin-top: 10px;
}

.partner-link:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* =================================================================
   SOCIAL MEDIA LINKS - روابط وسائل التواصل
   ================================================================= */
.social-media-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(26, 26, 26, 0.95)) !important;
    border: 2px solid rgba(212, 175, 55, 0.3) !important;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.social-link {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: var(--primary-gold);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--social-color);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover i {
    color: white;
    transform: scale(1.2) rotate(360deg);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--social-color);
}

/* =================================================================
   RESPONSIVE DESIGN - التصميم المتجاوب
   ================================================================= */
@media (max-width: 1024px) {
    .services-grid,
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-section,
    .partners-section {
        padding: 60px 0;
    }
    
    .services-grid,
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-modal-container {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    
    .service-modal-content {
        padding: 50px 25px 25px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .service-modal-header h2 {
        font-size: 1.8rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-logo-wrapper {
        width: 150px;
        height: 150px;
    }
}
