/**
 * تأثيرات بصرية لكل قسم في الصفحة الرئيسية
 */

/* ========== قسم المميزات (Features) ========== */
.section-features .section-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    pointer-events: none;
    animation: sectionGlowFloat 8s ease-in-out infinite;
}
.section-features .section-glow-1 {
    top: -100px;
    right: -100px;
    background: var(--primary-color);
}
.section-features .section-glow-2 {
    bottom: -80px;
    left: -80px;
    background: var(--accent-color);
    animation-delay: -4s;
}
.section-features .section-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: sectionShapeFloat 6s ease-in-out infinite;
}
.section-features .section-shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 5%;
    background: var(--secondary-color);
}
.section-features .section-shape-2 {
    width: 120px;
    height: 120px;
    bottom: 30%;
    right: 10%;
    background: var(--accent-color);
    animation-delay: -2s;
}
.section-features .section-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color), transparent);
    opacity: 0.4;
}

/* ========== قسم الإحصائيات (Statistics) ========== */
.section-stats .section-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    pointer-events: none;
    animation: sectionGlowFloat 10s ease-in-out infinite;
}
.section-stats .section-glow-1 {
    top: 10%;
    left: 10%;
    background: rgba(255,255,255,0.3);
}
.section-stats .section-glow-2 {
    bottom: 10%;
    right: 15%;
    background: rgba(255,255,255,0.2);
    animation-delay: -5s;
}
.section-stats .section-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ========== قسم الخدمات (Services) ========== */
.section-services .section-blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.1;
    animation: sectionBlobMorph 12s ease-in-out infinite;
}
.section-services .section-blob-1 {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -60px;
    background: var(--primary-color);
}
.section-services .section-blob-2 {
    width: 180px;
    height: 180px;
    bottom: -40px;
    left: -40px;
    background: var(--secondary-color);
    animation-delay: -6s;
}
.section-services .section-accent-line {
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), var(--accent-color));
    opacity: 0.35;
    border-radius: 0 0 4px 4px;
}
[dir="rtl"] .section-services .section-accent-line {
    right: auto;
    left: 0;
}

/* ========== قسم المنتجات (Products) ========== */
.section-products .section-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    animation: sectionOrbPulse 5s ease-in-out infinite;
}
.section-products .section-orb-1 {
    width: 250px;
    height: 250px;
    top: 15%;
    left: -80px;
    background: var(--secondary-color);
}
.section-products .section-orb-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: -60px;
    background: var(--primary-color);
    animation-delay: -2.5s;
}
.section-products .section-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--primary-color) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.06;
    pointer-events: none;
}

/* ========== قسم المدونة (Blog) ========== */
.section-blog .section-bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    animation: sectionShapeFloat 7s ease-in-out infinite;
}
.section-blog .section-bg-shape-1 {
    width: 320px;
    height: 320px;
    top: -100px;
    left: -100px;
    background: var(--primary-color);
}
.section-blog .section-bg-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 5%;
    background: var(--accent-color);
    animation-delay: -3s;
}
.section-blog .section-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
    opacity: 0.5;
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 50%);
}

/* ========== قسم CTA (تواصل معنا) ========== */
.section-cta .section-cta-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    pointer-events: none;
    animation: sectionCtaOrb 6s ease-in-out infinite;
}
.section-cta .section-cta-orb-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 15%;
}
.section-cta .section-cta-orb-2 {
    width: 100px;
    height: 100px;
    bottom: 25%;
    right: 20%;
    animation-delay: -3s;
}
.section-cta .section-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: sectionShine 4s ease-in-out infinite;
}

/* ========== أنيميشنز مشتركة ========== */
@keyframes sectionGlowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    50% { transform: translate(20px, -15px) scale(1.05); opacity: 0.25; }
}
@keyframes sectionShapeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes sectionBlobMorph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    33% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    66% { border-radius: 50% 60% 30% 70% / 50% 40% 60% 50%; }
}
@keyframes sectionOrbPulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.22; }
}
@keyframes sectionCtaOrb {
    0%, 100% { transform: translate(0, 0); opacity: 0.1; }
    50% { transform: translate(15px, -10px); opacity: 0.18; }
}
@keyframes sectionShine {
    0% { left: -100%; }
    60%, 100% { left: 150%; }
}
