/* ====================================================
   NEW MOON - MAIN STYLES
   ==================================================== */

/* ====== RESET & BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main, 'Cairo', sans-serif);
    background: var(--light-bg, #F5F7FA);
    color: var(--dark-blue, #081226);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ====== TRUST BAR ====== */
.trust-bar {
    background: #fff;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    color: #081226;
}

.trust-item i {
    color: #D4AF37;
    font-size: 1.5rem;
}

/* ====== STATS SECTION ====== */
.stats-section {
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: #fff;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.stat-icon-wrapper i {
    font-size: 2.5rem;
    color: #081226;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #081226;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    color: #6B7280;
    font-weight: 600;
}

/* ====== CLIENTS SECTION ====== */
.clients-section {
    background: #F5F7FA;
    overflow: hidden;
}

.clients-carousel {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.clients-track {
    display: flex;
    justify-content: flex-end; /* نخليهم ناحية اليمين */
    gap: 1.5rem; /* مسافة بين الخمس لوجوهات */
    width: 100%;
}

/* إيقاف أي أنيميشن قديم على مسار العملاء */

.client-logo {
    background: #fff;
    padding: 1.5rem 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* نخلي الشعارات واضحة بدون جري سكيل بشكل افتراضي */
.client-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    opacity: 1;
    transition: all 0.3s ease;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ====== CTA SECTION ====== */
.cta-section {
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #081226;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    color: #081226;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====== 404 PAGE STYLES ====== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #081226 0%, #1E3A5F 100%);
    text-align: center;
    padding: 2rem;
}

.error-content h1 {
    font-size: 10rem;
    font-weight: 800;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.error-content h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.error-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* ====== BREADCRUMBS ====== */
.breadcrumbs {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 2rem;
}

.breadcrumbs-list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs-list a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs-list a:hover {
    color: #D4AF37;
}

.breadcrumbs-list li:not(:last-child)::after {
    content: '/';
    color: #9CA3AF;
}

.breadcrumbs-list li:last-child {
    color: #D4AF37;
    font-weight: 600;
}

/* ====================================================
   HOME PAGE LAYOUT TWEAKS (Trust + Stats)
   ==================================================== */

/* نقلل المساحة الرأسية تحت الهيرو */
.trust-bar, .stats-section {
    padding: 2rem 1.5rem; /* كان 4rem 2rem من animations.css */
}

/* تصغير الكروت شوية عشان ما ياخدوش ارتفاع كبير */
.stats-grid .stat-card {
    padding: 1.5rem 1.5rem;
}

/* تصغير الأيقونات والأرقام نسبياً */
.stats-grid .stat-number {
    font-size: 2.4rem;
}

.stats-grid .stat-label {
    font-size: 1rem;
}

/* ====== RESPONSIVE UTILITIES ====== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .trust-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .trust-item {
        flex-direction: column;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .stat-icon-wrapper i {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .clients-track {
        gap: 2rem;
    }
    
    .client-logo {
        min-width: 150px;
        padding: 1rem 2rem;
    }
    
    .client-logo img {
        height: 45px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .error-content h1 {
        font-size: 6rem;
    }
}

@media (max-width: 480px) {
    .trust-items {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .error-content h1 {
        font-size: 4rem;
    }
}

/* ====================================================
   INDEX PAGE TWEAKS (Hero, Stats, Trust Bar, Clients)
   ==================================================== */

/* Hero adjustments */
.hero-section {
    min-height: 85vh !important; /* كان 100vh */
}

/* Stats improvements */
.stat-icon-wrapper {
    width: 70px !important; /* كان 100px */
    height: 70px !important;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.stat-icon-wrapper i {
    font-size: 1.8rem !important; /* كان 3rem */
    color: #081226;
}

/* Trust Bar improvements */
.trust-item i {
    font-size: 1.2rem !important; /* كان أكبر */
    color: #D4AF37;
    margin-left: 8px;
}

/* تخفيف ارتفاع أقسام الثقة والإحصائيات لتقليل المساحة الفارغة */
.trust-bar {
    padding: 1.5rem 2rem 0.5rem;
}

.stats-section {
    padding: 1.5rem 2rem 2.5rem;
}

.stats-grid {
    gap: 2rem;
}

/* Clients Section - 5 شعارات ثابتة بعرض الصفحة */
.clients-carousel {
    overflow: visible;
    padding: 2rem 0;
}

.clients-track {
    display: flex;
    justify-content: flex-end; /* نخليهم لازقين ناحية يمين الصفحة */
    gap: 1.5rem; /* نقلل المسافة بينهم شوية */
    width: 100%;
}

/* نخلي شعارات العملاء أقرب فعلياً لحافة الصفحة من اليمين */
.clients-section .container {
    padding-right: 0;
}

.client-logo {
    flex-shrink: 0;
    width: 110px;   /* عرض أصغر عشان نعرض لوجوهات أكتر فى السطر */
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* نجعل الشعارات أوضح بشكل افتراضي */
    filter: none;
    opacity: 1;
    transition: all 0.5s ease;
}

.client-logo:hover img {
    /* تأثير بسيط عند الـ Hover فقط */
    transform: scale(1.03);
}

/* تحسين زر "شاهد جميع الشركاء" داخل قسم العملاء */
.clients-section .text-center .btn-outline {
    background: #fff;
    color: #081226;
    border-color: #081226;
}

.clients-section .text-center .btn-outline:hover {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #081226;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh !important;
    }
    
    .stat-icon-wrapper {
        width: 60px !important;
        height: 60px !important;
    }
    
    .stat-icon-wrapper i {
        font-size: 1.5rem !important;
    }
}