

/* تأثيرات الخلفية المتحركة */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.light {
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-200%);
    animation: light-effect 8s infinite;
}

@keyframes light-effect {
    0% { transform: translateX(-200%) skewX(-45deg); }
    100% { transform: translateX(200%) skewX(-45deg); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(100px, 100px) rotate(360deg);
        opacity: 0;
    }
}

/* رأس الصفحة */

/* بطاقات الخدمات */
.services-section {
    padding: 80px 0;
    background: var(--background-color);
}

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px;
}

.service-card {
    perspective: 1000px;
    height: 400px;
}

.service-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.service-front, .service-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.service-front {
    background: var(--light-color);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-back {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    transform: rotateY(180deg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* أيقونة الخدمة وتأثيراتها */
.service-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
}

.service-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.service-icon i {
    font-size: 35px;
    color: var(--light-color);
}

.icon-rings .ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0.3;
    animation: ring-pulse 2s infinite;
}

.ring1 { width: 100%; height: 100%; animation-delay: 0s; }
.ring2 { width: 80%; height: 80%; animation-delay: 0.3s; }
.ring3 { width: 60%; height: 60%; animation-delay: 0.6s; }

@keyframes ring-pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

/* تأثيرات النص والأزرار */
.service-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 20px 0;
    position: relative;
}

.service-hover-text {
    color: var(--primary-color);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.service-card:hover .service-hover-text {
    opacity: 1;
    transform: translateY(0);
}

.service-features {
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateX(-20px);
    animation: feature-slide 0.5s forwards;
}

@keyframes feature-slide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-icon {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--light-color);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 30px;
    border: 2px solid var(--light-color);
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-link:hover {
    background: var(--light-color);
    color: var(--primary-color);
}



/* الأشكال الهندسية في الخلفية */
.geometric-shapes .shape {
    position: absolute;
    opacity: 0.1;
}

.shape1 {
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border: 3px solid var(--light-color);
    transform: rotate(45deg);
}

.shape2 {
    bottom: 40px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border-radius: 50%;
}

.shape3 {
    top: 50%;
    right: 40px;
    width: 30px;
    height: 30px;
    border: 3px solid var(--light-color);
    border-radius: 50%;
}

/* تأثيرات التحويم والحركة */
.service-card:hover .service-inner {
    transform: rotateY(180deg);
}

.service-card:hover .service-icon {
    animation: icon-bounce 0.5s ease;
}

@keyframes icon-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}


/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .cta-section {
        padding: 80px 0;
    }

    .glowing-text {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .floating-elements > div {
        display: none;
    }
}
