/* تحسينات الصفحة الرئيسية - زواج نت */

/* Card Glass Effect */
.card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dark .card-glass {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* تأثيرات الخلفية المتدرجة */
.hero-gradient {
    background: linear-gradient(135deg, 
        hsl(var(--brand-primary)) 0%, 
        hsl(var(--brand-accent)) 50%, 
        hsl(var(--brand-primary)) 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts" patternUnits="userSpaceOnUse" width="20" height="20"><path d="M10 15c-2-3-4-6-4-8 0-3 2-5 4-5s4 2 4 5c0 2-2 5-4 8z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>');
    animation: float-hearts 20s linear infinite;
}

@keyframes float-hearts {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

/* تحسين البطاقات */
.feature-card,
.step-card,
.success-story-card,
.stat-card,
.trust-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::before,
.step-card::before,
.success-story-card::before,
.stat-card::before,
.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.feature-card:hover::before,
.step-card:hover::before,
.success-story-card:hover::before,
.stat-card:hover::before,
.trust-card:hover::before {
    left: 100%;
}

.feature-card:hover,
.step-card:hover,
.success-story-card:hover,
.stat-card:hover,
.trust-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* تحسين الأزرار */
.enhanced-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.enhanced-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.enhanced-button:hover::before {
    width: 300px;
    height: 300px;
}

/* تحسين الإحصائيات */

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Gradient Success */
.gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Animate Float */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Animate Fade In */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animate Slide Up */
.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Data Anim Attributes */
[data-anim="fade-in"] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

[data-anim="fade-in"].animate {
    opacity: 1;
    transform: translateY(0);
}

[data-anim="slide-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-anim="slide-up"].animate {
    opacity: 1;
    transform: translateY(0);
}
.stat-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.9) 100%);
}

/* تحسين الأسئلة الشائعة */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    position: relative;
    overflow: hidden;
}

.faq-question::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, hsl(var(--brand-primary)), hsl(var(--brand-accent)));
    transition: width 0.3s ease;
}

.faq-question:hover::after {
    width: 100%;
}

.faq-answer {
    transition: all 0.3s ease;
}

/* تحسين معرض الصور */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-item img {
    transition: all 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(2deg);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* تحسين النص */
.gradient-text {
    background: linear-gradient(135deg, 
        hsl(var(--brand-primary)) 0%, 
        hsl(var(--brand-accent)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* تحسين التمرير */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* تحسين الاستجابة */
@media (max-width: 768px) {
    .hero-gradient::before {
        animation-duration: 30s;
    }
    
    .feature-card:hover,
    .step-card:hover,
    .success-story-card:hover,
    .stat-card:hover,
    .trust-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
    
    .gallery-item:hover img {
        transform: scale(1.05);
    }
}

/* تحسين الأداء */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* تحسين إمكانية الوصول */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* تحسين الطباعة */
@media print {
    .hero-gradient::before,
    .feature-card::before,
    .step-card::before,
    .success-story-card::before,
    .stat-card::before,
    .trust-card::before,
    .enhanced-button::before,
    .gallery-item::after {
        display: none;
    }
    
    .feature-card,
    .step-card,
    .success-story-card,
    .stat-card,
    .trust-card {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* تأثيرات إضافية للتفاعل */
.interactive-element {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.interactive-element:active {
    transform: scale(0.98);
}

/* تحسين الظلال */
.enhanced-shadow {
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.enhanced-shadow:hover {
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* تحسين الألوان للوضع المظلم */
@media (prefers-color-scheme: dark) {
    .stat-card {
        background: linear-gradient(135deg, 
            rgba(31, 41, 55, 0.9) 0%, 
            rgba(17, 24, 39, 0.7) 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .stat-card:hover {
        background: linear-gradient(135deg, 
            rgba(31, 41, 55, 1) 0%, 
            rgba(17, 24, 39, 0.9) 100%);
    }
    
    .enhanced-shadow {
        box-shadow: 
            0 4px 6px -1px rgba(0, 0, 0, 0.3),
            0 2px 4px -1px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    }
    
    .enhanced-shadow:hover {
        box-shadow: 
            0 10px 15px -3px rgba(0, 0, 0, 0.3),
            0 4px 6px -2px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }
}




