/* التنسيقات الأساسية */
body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
}

/* Header Styles */
.header {
    padding: 15px 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.navbar .nav-link {
    color: #333;
    font-weight: 500;
    padding: 8px 15px;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #007bff;
}

.request-btn {
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 5px;
    margin-right: 15px;
}

.request-btn:hover {
    background-color: #0056b3;
    color: #fff !important;
}

/* تنسيق الهيدر */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .logo {
    max-height: 60px;
}

/* تنسيقات الهيدر */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.navbar-brand {
    padding: 0;
}

.logo {
    height: 50px;
    width: auto;
}

.nav-link {
    color: #333 !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff !important;
}

.request-btn {
    color: #fff !important;
    background-color: #007bff;
    border-radius: 5px;
    padding: 0.5rem 1.5rem !important;
    margin-right: 1rem;
}

.request-btn:hover {
    background-color: #0056b3;
    color: #fff !important;
}

/* تحسين تنسيق القوائم والروابط */
.navbar-nav {
    align-items: center;
}

.nav-link {
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.request-btn {
    background-color: #007bff;
    color: #fff !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 4px;
    margin: 0 0.5rem;
}

.request-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* تحسين تنسيق الصفحات */
.page-content {
    padding-top: 2rem;
    min-height: calc(100vh - 300px);
}

/* تحسين تنسيق العناوين والمحتوى */
.terms-section,
.return-policy-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin: 2rem 0;
}

.terms-section h3,
.return-policy-section h3 {
    color: #333;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    padding-right: 1rem;
    border-right: 4px solid #007bff;
    line-height: 1.4;
}

.terms-section ul,
.return-policy-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.terms-section li,
.return-policy-section li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: #555;
}

.terms-section li:before,
.return-policy-section li:before {
    content: "•";
    color: #007bff;
    position: absolute;
    right: 0;
    top: 0;
}

.page-title {
    color: #333;
    font-size: 2rem;
    text-align: center;
    margin: 2rem 0;
    padding-bottom: 1rem;
    position: relative;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #007bff;
}

/* تحسين تنسيق الهيدر */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

/* تحسين تنسيق الفوتر */
.footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

/* تنسيقات القائمة في الهاتف */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%;
        right: 1rem;
        left: 1rem;
        z-index: 1000;
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .request-btn {
        margin: 1rem 0;
        display: inline-block;
    }

    .navbar-toggler {
        padding: 4px 8px;
        border: 1px solid #ddd;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
}

/* قسم الترحيب */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
    color: #fff;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-section .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.hero-section .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.hero-section .btn-outline-primary {
    color: #fff;
    border-color: #fff;
}

.hero-section .btn-outline-primary:hover {
    background-color: #fff;
    color: #007bff;
}

.hero-section img {
    max-height: 350px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-section img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hero-section video {
    max-height: 350px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: brightness(0.7); /* يجعل الفيديو أغمق */
}

.hero-section video:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    filter: brightness(0.8); /* يصبح أفتح قليلاً عند التحويم */
}

.hero-section .btn {
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.hero-section .btn-primary:hover,
.hero-section .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
    }
}

/* قسم الخدمات */
.services-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.service-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
    background: white;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* قسم المميزات */
.features-section {
    padding: 80px 0;
    background-color: #fff;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #1f73b9;
    margin-bottom: 20px;
}

/* قسم الإحصائيات */
.stats-section {
    background-color: #1f73b9;
    color: white;
    padding: 60px 0;
}

.stats-container {
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    transition: transform 0.3s ease;
    height: 100%;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-item i {
    font-size: 2.5rem;
    color: #1f73b9;
    margin-bottom: 1rem;
    display: inline-block;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item i {
        font-size: 2rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 1rem;
    }
}

/* قسم آراء العملاء */
.testimonials-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-info i {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 50%;
    color: #666;
    font-size: 20px;
}

.stars {
    color: #ffd700;
    margin: 10px 0;
}

/* قسم معرض الأعمال */
.gallery-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.gallery-section .card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-section .card:hover {
    transform: translateY(-5px);
}

.gallery-section .card-img-top {
    height: 250px;
    object-fit: cover;
}

.gallery-section .card-body {
    padding: 1.5rem;
}

.gallery-section .card-title {
    color: #1f73b9;
    margin-bottom: 0.5rem;
}

.gallery-section .card-text {
    color: #666;
    font-size: 0.9rem;
}

/* الأزرار */
.btn-primary, .btn-outline-primary, .btn-light, .btn-order {
    background-color: #1f73b9;
    color: white;
    border: 2px solid #1f73b9;
    transition: all 0.3s ease;
    padding: 10px 30px;
    font-weight: 600;
}

.btn-primary:hover, .btn-outline-primary:hover, .btn-light:hover, .btn-order:hover {
    background-color: white;
    color: #1f73b9;
    border-color: #1f73b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(31, 115, 185, 0.3);
}

/* شريط الأخبار */
.news-ticker {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    color: white;
}

.ticker-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
}

.ticker-title {
    font-weight: bold;
    background-color: rgba(255,255,255,0.15);
    padding: 5px 15px;
    color: #ffffff;
    border-radius: 20px;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

.ticker-content-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-content span {
    display: inline-block;
    padding: 0 30px;
    color: white;
}

@keyframes ticker {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

/* قسم الاتصال */
.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-form {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* قسم الأسئلة الشائعة */
.faq-section .accordion-button:not(.collapsed) {
    background-color: #1f73b9;
    color: white;
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: #1f73b9;
}

/* القائمة الرئيسية */
.main-nav {
    margin-left: 20px;
}

.navbar-toggler {
    border: none;
    background: none;
    padding: 10px;
    font-size: 1.5rem;
    color: #1f73b9;
    display: none;
}

.main-nav .nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav .nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    transition: color 0.3s;
}

.main-nav .nav-link:hover {
    color: #1f73b9;
}

.request-btn {
    white-space: nowrap;
}

.navbar-collapse {
    display: block !important;
}

/* تصميم متجاوب */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: white;
        padding: 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    .main-nav .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 8px 15px;
        width: 100%;
    }
    
    .nav-link:hover {
        background-color: #f8f9fa;
    }
    
    .header .container {
        position: relative;
    }
}

/* قسم الاقتراحات */
.features-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #1f73b9;
    margin-bottom: 20px;
}

/* قسم الخدمات */
.services-section {
    padding: 80px 0;
}

.service-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
    margin-bottom: 30px;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* قسم الاقتراحات */
.cta-section {
    background-color: #1f73b9;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-top: 80px;
}

/* الفوتر */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.social-links {
    font-size: 1.5rem;
}

.social-links a {
    color: white;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #1f73b9;
}

/* تأثيرات الحركة */
[data-aos] {
    visibility: hidden;
}

.aos-animate {
    visibility: visible;
}

/* تخطيط عام */
.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* تنسيق النموذج */
.form-control {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: #1f73b9;
    box-shadow: 0 0 0 0.2rem rgba(31, 115, 185, 0.25);
}

/* تنسيق القائمة */
.navbar-nav .nav-link {
    color: #333;
    font-weight: 600;
    padding: 10px 20px;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #1f73b9;
}

/* تنسيق الصور في المعرض */
.gallery-item {
    margin-bottom: 30px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* قسم الاقتراحات */
.features-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #1f73b9;
    margin-bottom: 20px;
}

/* قسم الخدمات */
.services-section {
    padding: 80px 0;
}

.service-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
    margin-bottom: 30px;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* قسم الاقتراحات */
.cta-section {
    background-color: #1f73b9;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-top: 80px;
}

/* الفوتر */
.footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
}

.social-links {
    font-size: 1.5rem;
}

.social-links a {
    color: white;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #1f73b9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .feature-card {
        margin-bottom: 30px;
    }
}

/* تنسيقات قسم من نحن */
.about-section {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,123,255,0.05) 0%, rgba(0,123,255,0) 100%);
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-section h2 {
    color: #333;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}

.about-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.about-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-content p.lead {
    color: #333;
    font-size: 1.15rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .about-content {
        padding: 1.5rem;
    }
    
    .about-section h2 {
        font-size: 1.8rem;
    }
}

/* تنسيقات صفحات الشروط والسياسات */
.terms-section,
.return-policy-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.terms-section h3,
.return-policy-section h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
    border-right: 4px solid #007bff;
    padding-right: 15px;
}

.terms-section ul,
.return-policy-section ul {
    padding-right: 20px;
    margin-bottom: 25px;
}

.terms-section li,
.return-policy-section li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555;
}

/* تعديل المسافات للهيدر والفوتر */
.header {
    margin-bottom: 30px;
}

.footer {
    margin-top: 50px;
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

/* تنسيق العناوين الرئيسية */
.page-title {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background-color: #007bff;
}
