/* الألوان الرئيسية */
:root {
    --primary-color: #d4af37;
    --primary-dark: #b3941f;
    --primary-light: #e6c44d;
    --secondary-color: #1a1a1a;
    --secondary-light: #333333;
    --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: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    --section-bg: #f9f9f9;
}

/* الوضع الليلي */
[data-theme="dark"] {
    --primary-color: #d4af37;
    --primary-dark: #b3941f;
    --primary-light: #e6c44d;
    --secondary-color: #121212;
    --secondary-light: #2a2a2a;
    --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: linear-gradient(135deg, #0a0a0a 0%, #1e1e1e 100%);
    --section-bg: #1a1a1a;
}

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

/* القائمة العلوية */
.navbar {
    background-color: rgba(26, 26, 26, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

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

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

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

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 70%;
}

/* الأزرار */
.btn {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

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

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-secondary {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
    color: white;
}

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

.btn-light {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--secondary-color);
}

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

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

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjMjIyIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content .lead {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero-image {
    width: 100%;
    border-radius: 20px;
    transition: all 0.5s ease;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.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: 20px;
    border-bottom-right-radius: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.app-download-overlay p {
    color: white;
    margin-bottom: 10px;
}

/* قسم الخدمات */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 25%;
}

.section-header .lead {
    color: var(--text-color);
    font-size: 1.2rem;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-color) 100%);
}

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

.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);
    position: relative;
    z-index: 1;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

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

.payment-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--section-bg) 100%);
}

.payment-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.payment-method:hover {
    background-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-5px);
}

.payment-method i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* قسم من نحن */
.about-section {
    padding: 100px 0;
    background-color: var(--section-bg);
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    z-index: -1;
}

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

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-5px);
}

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

/* قسم الإحصائيات */
.stats-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjMjIyIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=');
    opacity: 0.1;
}

.stat-item {
    padding: 30px 20px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

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

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

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

.stat-text {
    font-size: 1.1rem;
    color: var(--light-color);
}

/* قسم الأسئلة الشائعة */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: var(--card-bg);
}

.accordion-button {
    padding: 20px;
    font-weight: 600;
    background-color: var(--card-bg);
    color: var(--text-color);
}

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

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

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d4af37'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 20px;
    line-height: 1.8;
}

/* قسم اتصل بنا */
.contact-section {
    padding: 100px 0;
    background-color: var(--section-bg);
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 15px;
    padding: 40px;
    height: 100%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.contact-info p {
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.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;
    font-size: 1.2rem;
}

.contact-form {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--primary-color);
}

.form-control, .form-select {
    padding: 12px 15px;
    border-radius: 8px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

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

.input-group-text {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 10px;
}

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

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

/* التذييل */
.footer {
    background-color: var(--footer-bg);
    color: var(--light-color);
    position: relative;
}

.footer-top {
    padding: 80px 0 40px;
}

.footer-logo {
    height: 60px;
    border-radius: 8px;
}

.footer p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-title {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -10px;
    right: 0;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(-10px);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

/* زر العودة للأعلى */
.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(--primary-dark);
    transform: translateY(-5px);
    color: white;
}

/* زر تبديل الوضع */
.theme-toggle {
    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;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}

/* تحسينات للجوال */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--secondary-color);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
    }
    
    .hero-section {
        padding: 150px 0 80px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .d-md-flex {
        justify-content: center !important;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .section-header {
        margin-bottom: 30px;
    }
    
    .service-card, .stat-item {
        margin-bottom: 20px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}

/* تأثيرات AOS */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* صفحة طرق الدفع */
.payment-page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 100px 0 50px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.payment-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjYjM5NDFmIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiNjNGEwMzAiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=');
    opacity: 0.1;
}

.payment-page-header h1 {
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.payment-page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.payment-method-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 5px solid var(--primary-color);
    margin-bottom: 30px;
}

.payment-method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.payment-method-card .payment-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--section-bg);
    border-radius: 50%;
    padding: 20px;
}

.payment-method-card .payment-logo i {
    font-size: 3rem;
    color: var(--primary-color);
}

.payment-method-card h3 {
    color: var(--primary-color);
    margin: 20px 0;
    font-weight: 600;
    text-align: center;
}

.payment-details {
    background-color: var(--section-bg);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.payment-details h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.2rem;
}

.payment-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.payment-detail-item:last-child {
    border-bottom: none;
}

.payment-detail-label {
    font-weight: 600;
    color: var(--text-color);
}

.payment-detail-value {
    color: var(--primary-color);
    font-weight: 600;
}

.payment-instructions {
    margin-top: 20px;
}

.payment-instructions ol {
    padding-right: 20px;
}

.payment-instructions li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.payment-note {
    background-color: rgba(212, 175, 55, 0.1);
    border-right: 3px solid var(--primary-color);
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.payment-note p {
    margin-bottom: 0;
}

.copy-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: var(--primary-dark);
}

.payment-contact {
    margin-top: 50px;
    text-align: center;
}

.payment-contact h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.payment-contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.payment-contact-method {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.payment-contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}
