/* خط عربي واضح - Cairo و Tajawal */
body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
    font-size: 16px;
    line-height: 1.8;
    color: #212529;
}

/* تطبيق الخط العربي على العناصر النصية فقط - مع استثناء الأيقونات */
*:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad) {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
}

/* التأكد من عمل أيقونات Font Awesome بشكل صحيح */
i.fa, i.fas, i.far, i.fab, i.fal, i.fad,
.fa, .fas, .far, .fab, .fal, .fad {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Hero Section with Background Image */
.hero-section {
    position: relative;
    min-height: 100vh;
    /* خلفية افتراضية بتدرج لوني في حالة عدم وجود الصورة */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #7e8ba3 50%, #2a5298 75%, #1e3c72 100%);
    /* صورة الخلفية - ستظهر فوق التدرج اللوني */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5)),
        url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(40, 167, 69, 0.1) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1,
.hero-section p,
.hero-section .btn {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Navbar Styling */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Navbar on hero page - transparent initially */
body.home-page .navbar {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

body.home-page .navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
}

body.home-page .navbar:not(.scrolled) .nav-link,
body.home-page .navbar:not(.scrolled) .navbar-brand {
    color: #ffffff !important;
}

body.home-page .navbar:not(.scrolled) .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.navbar-brand {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #28a745 !important;
}

/* Buttons */
.btn {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-neon-solid {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-neon-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-neon-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-neon-outline:hover {
    background: #ffffff;
    color: #28a745;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 2rem;
    font-weight: 700;
}

.display-3 {
    font-size: 4rem !important;
    font-weight: 800 !important;
}

.display-5 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #212529;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #6c757d;
    line-height: 1.8;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.8;
}

p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Cards */
.card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Product Cards */
.product-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-image {
    height: 250px;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Features Section */
.feature-card {
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

/* Stats Section */
.stat-card {
    padding: 2rem;
    border-radius: 15px;
    background: white;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Testimonials */
.testimonial-card {
    border-radius: 15px;
    padding: 2rem;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #28a745;
}

/* Footer */
footer {
    font-family: 'Cairo', sans-serif;
}

footer h5, footer h6 {
    font-weight: 700;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #28a745 !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        background-attachment: scroll;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Form Styling */
.form-control, .form-select {
    font-family: 'Cairo', sans-serif;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Contact Info Cards */
.contact-info-card {
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* Accordion Styling */
.accordion-button {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    background-color: #f8f9fa;
}

.accordion-button:not(.collapsed) {
    background-color: #28a745;
    color: white;
}

.accordion-body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
}
