/* الألوان الرئيسية */
:root {
    --primary-color: #d4af37;
    --secondary-color: #1a1a1a;
    --accent-color: #8b0000;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-color: #dee2e6;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --footer-bg: #1a1a1a;
    --hero-bg: #1a1a1a;
    --btn-hover: #c09c2c;
    --section-bg: #f9f9f9;
}

/* الوضع الليلي */
[data-theme="dark"] {
    --primary-color: #d4af37;
    --secondary-color: #121212;
    --accent-color: #a52a2a;
    --text-color: #f8f9fa;
    --light-color: #e0e0e0;
    --dark-color: #f8f9fa;
    --border-color: #444;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --footer-bg: #0a0a0a;
    --hero-bg: #0a0a0a;
    --btn-hover: #c09c2c;
    --section-bg: #1a1a1a;
}

/* الخطوط */
body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

/* القائمة العلوية */
.navbar {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand img.logo {
    height: 50px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* الأزرار */
.btn-gold {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--btn-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-gold {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* القسم الرئيسي */
.hero-section {
    padding: 150px 0 100px;
    background-color: var(--hero-bg);
    color: var(--light-color);
    position: relative;
}

.hero-section h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.hero-image {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.hero-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* عناوين الأقسام */
.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.title-line {
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 20px;
}

/* قسم من نحن */
#about {
    padding: 100px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature-item i {
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 1.2rem;
}

/* قسم الخدمات */
.service-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: var(--card-bg);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.service-card .card-title {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

/* قسم الإحصائيات */
.stats-section {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.2rem;
    font-weight: 500;
}

/* قسم الأسئلة الشائعة */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background-color: white;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 20px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.accordion-body {
    padding: 20px;
    background-color: white;
}

/* قسم شهادات العملاء */
.testimonial-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-color);
}

.testimonial-name {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.testimonial-position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

/* قسم الاتصال */
.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 1.2rem;
}

.contact-info-text h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

/* تذييل الصفحة */
.footer {
    background-color: var(--footer-bg);
    color: var(--light-color);
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.footer-links h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.copyright {
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* زر العودة للأعلى */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #c4a030;
    transform: translateY(-5px);
}

/* نافذة المحادثة المباشرة */
.chat-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

.chat-button {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-button:hover {
    background-color: #c4a030;
    transform: scale(1.1);
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: none;
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h5 {
    margin: 0;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    height: 250px;
    overflow-y: auto;
}

.chat-input {
    display: flex;
    border-top: 1px solid var(--border-color);
    padding: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
}

.chat-input button {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* تصميم متجاوب */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--secondary-color);
        padding: 15px;
        border-radius: 5px;
        margin-top: 10px;
    }
    
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 40px;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        margin-bottom: 30px;
    }
    
    #about {
        padding: 60px 0;
    }
    
    .stat-item {
        margin-bottom: 30px;
    }
}

/* روابط تحميل التطبيق */
.app-download-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 0 0 10px 10px;
    text-align: center;
}
.section-title h2 {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.title-line {
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stats-section {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.contact-form-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-info {
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--btn-hover);
    transform: translateY(-3px);
    color: white;
}

.footer-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--btn-hover);
    transform: translateY(-5px);
    color: white;
}

/* تخصيص الوضع الليلي للعناصر المختلفة */
[data-theme="dark"] .card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .accordion-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .accordion-button {
    background-color: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* تخصيص طبقة تحميل التطبيق */
.app-download-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    text-align: center;
}

/* تحسين مظهر الأقسام */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--section-bg);
}

/* تحسين مظهر الصور */
img {
    max-width: 100%;
    height: auto;
}

/* تحسين مظهر زر تبديل الوضع */
#themeToggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--light-color);
    transition: all 0.3s ease;
}

#themeToggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}

/* تحسين مظهر الأزرار في الهيرو سيكشن */
.hero-section .btn {
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
}

/* تحسين مظهر الخدمات */
.service-card {
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    border-radius: 15px;
    border-bottom: 5px solid var(--primary-color);
}

.service-card h3 {
    color: var(--primary-color);
    margin: 20px 0;
    font-weight: 600;
}

/* تحسين مظهر الإحصائيات */
.stat-item {
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

/* تحسين مظهر الأسئلة الشائعة */
.accordion-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
}

/* تحسين مظهر نموذج الاتصال */
.form-control, .form-select {
    padding: 12px 15px;
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* تحسين مظهر التذييل */
.footer {
    padding-top: 80px;
}

.footer p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* تحسين مظهر الروابط */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--btn-hover);
    text-decoration: none;
}
