/**
 * ملف التنسيقات العامة والأنماط المخصصة والمحسنة
 * فن الخشب والحلول الذكية
 */

/* الخطوط والتنسيق العام الفاخر */
body {
    font-family: 'Almarai', 'IBM Plex Sans Arabic', sans-serif;
    letter-spacing: normal;
}

/* خط العناوين الفاخر الإبداعي - المسيري بتفاصيل حرفية راقية */
h1, h2, h3, .font-luxury {
    font-family: 'El Messiri', 'Alexandria', serif;
    letter-spacing: normal;
}

/* نمط خلفية الخشب الداكن الفاخر */
.wood-bg-pattern {
    background-color: #0f0b0a;
    background-image: 
        radial-gradient(#3a1a14 0.9px, transparent 0.9px), 
        radial-gradient(#3a1a14 0.9px, #0f0b0a 0.9px);
    background-size: 28px 28px;
    background-position: 0 0, 14px 14px;
}

/* تأثير التوهج اللطيف (Glow Effects) */
.glow-wood {
    box-shadow: 0 0 35px -5px rgba(198, 110, 59, 0.25);
}

.glow-amber {
    box-shadow: 0 0 35px -5px rgba(245, 158, 11, 0.25);
}

/* نبض زر الواتساب للفت الانتباه */
@keyframes pulse-subtle {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.whatsapp-pulse {
    animation: pulse-subtle 2.5s infinite ease-in-out;
}

/* تصفية وحركات عناصر المعرض */
.portfolio-item {
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item.item-hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.92);
}

.portfolio-item.item-visible {
    display: block !important;
    animation: galleryFade 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes galleryFade {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* تنسيقات نافذة عرض الصور المكبرة (Lightbox Modal) */
#lightboxModal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#lightboxModal.active {
    opacity: 1;
    visibility: visible;
}

#lightboxModal.inactive {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#lightboxImg {
    max-height: 85vh;
    transition: transform 0.3s ease;
}

/* تنسيق الأسئلة الشائعة (FAQ Accordion) */
.faq-content {
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.faq-item.active .faq-content {
    max-height: 400px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.3s ease;
}

/* زر الصعود للأعلى (Back to Top) */
#backToTopBtn {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTopBtn.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
}

/* شريط تمرير أنيق متناسق مع هوية الموقع */
::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #0d0a09;
}

::-webkit-scrollbar-thumb {
    background: #7a3727;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c66e3b;
}

/* تحسين تجربة التحديد بالماوس */
::selection {
    background-color: #c66e3b;
    color: #ffffff;
}

/* بطاقات زجاجية مدمجة */
.glass-card {
    background: rgba(22, 17, 15, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(198, 110, 59, 0.18);
}

.glass-card:hover {
    border-color: rgba(245, 158, 11, 0.38);
}
