/* Arabic Letters Background Styles */
.arabic-letters-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    opacity: 0.03;
}

.arabic-letter {
    position: absolute;
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color, #007bff);
    font-family: 'Amiri', 'Scheherazade', 'Noto Sans Arabic', sans-serif;
    opacity: 0.1;
    animation: floatArabic 20s infinite ease-in-out;
    user-select: none;
    pointer-events: none;
}

/* Arabic Letters Positioning */
.arabic-letter-1 { top: 10%; left: 5%; animation-delay: 0s; }
.arabic-letter-2 { top: 15%; right: 10%; animation-delay: 1s; }
.arabic-letter-3 { top: 25%; left: 15%; animation-delay: 2s; }
.arabic-letter-4 { top: 35%; right: 20%; animation-delay: 3s; }
.arabic-letter-5 { top: 45%; left: 8%; animation-delay: 4s; }
.arabic-letter-6 { top: 50%; right: 15%; animation-delay: 5s; }
.arabic-letter-7 { top: 30%; left: 25%; animation-delay: 6s; }
.arabic-letter-8 { top: 30%; right: 5%; animation-delay: 7s; }
.arabic-letter-9 { top: 0%; left: 35%; animation-delay: 8s; }
.arabic-letter-10 { top: 40%; right: 30%; animation-delay: 9s; }
.arabic-letter-11 { top: 60%; left: 40%; animation-delay: 10s; }
.arabic-letter-12 { top: 80%; right: 30%; animation-delay: 11s; }
.arabic-letter-13 { top: 30%; left: 50%; animation-delay: 12s; }
.arabic-letter-14 { top: 50%; right: 50%; animation-delay: 13s; }
.arabic-letter-15 { top: 70%; left: 55%; animation-delay: 14s; }
.arabic-letter-16 { top: 10%; right: 60%; animation-delay: 15s; }
.arabic-letter-17 { top: 30%; left: 65%; animation-delay: 16s; }
.arabic-letter-18 { top: 50%; right: 65%; animation-delay: 17s; }
.arabic-letter-19 { top: 70%; left: 70%; animation-delay: 18s; }
.arabic-letter-20 { top: 90%; right: 70%; animation-delay: 19s; }
.arabic-letter-21 { top: 5%; left: 75%; animation-delay: 20s; }
.arabic-letter-22 { top: 25%; right: 75%; animation-delay: 21s; }
.arabic-letter-23 { top: 45%; left: 80%; animation-delay: 22s; }
.arabic-letter-24 { top: 65%; right: 80%; animation-delay: 23s; }
.arabic-letter-25 { top: 85%; left: 85%; animation-delay: 24s; }
.arabic-letter-26 { top: 15%; right: 85%; animation-delay: 25s; }
.arabic-letter-27 { top: 35%; left: 90%; animation-delay: 26s; }
.arabic-letter-28 { top: 55%; right: 90%; animation-delay: 27s; }

/* Arabic Letters Animation */
@keyframes floatArabic {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
        opacity: 0.12;
    }
}

/* Responsive Arabic Letters */
@media (max-width: 1200px) {
    .arabic-letter {
        font-size: 6rem;
    }
}

@media (max-width: 992px) {
    .arabic-letter {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .arabic-letter {
        font-size: 3rem;
    }
    
    .arabic-letters-background {
        opacity: 0.02;
    }
}

@media (max-width: 576px) {
    .arabic-letter {
        font-size: 2rem;
    }
    
    .arabic-letters-background {
        opacity: 0.01;
    }
}

/* Arabic Pattern Overlay for Sections */
.arabic-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(0, 123, 255, 0.03) 0%, transparent 50%);
    z-index: 1;
}

/* Arabic Calligraphy Style Elements */
.arabic-calligraphy-element {
    position: relative;
    display: inline-block;
    font-family: 'Amiri', 'Scheherazade', 'Noto Sans Arabic', sans-serif;
    font-size: 2rem;
    color: var(--primary-color, #007bff);
    opacity: 0.1;
    transform: rotate(-15deg);
    animation: calligraphyFloat 15s infinite ease-in-out;
}

@keyframes calligraphyFloat {
    0%, 100% {
        transform: rotate(-15deg) translateY(0px);
    }
    50% {
        transform: rotate(-15deg) translateY(-10px);
    }
}

/* Arabic Text Decoration */
.arabic-text-decoration {
    position: relative;
}

.arabic-text-decoration::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color, #007bff), transparent);
    opacity: 0.3;
}

.arabic-text-decoration::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color, #007bff), transparent);
    opacity: 0.2;
}
