/* التنسيقات العامة */
:root {
    --primary-color: #1E3A8A; /* أزرق ليبي داكن */
    --secondary-color: #D4A017; /* ذهبي */
    --accent-color: #14532D; /* أخضر */
    --light-color: #F8FAFC;
    --dark-color: #1E293B;
    --text-color: #334155;
    --border-color: #E2E8F0;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #FFFFFF;
    direction: rtl;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الأزرار */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

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

.btn-primary:hover {
    background-color: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-block {
    width: 100%;
    display: block;
}

/* الهيدر */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact {
    display: flex;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.contact-item i {
    color: var(--secondary-color);
}

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

.social-links a {
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* الشريط العلوي */
.navbar {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text h1 {
    color: var(--primary-color);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 5px;
}

.logo-text p {
    color: var(--text-color);
    font-size: 14px;
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* القسم الرئيسي */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #F0F4FF 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('assets/libya-pattern.png') no-repeat;
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(212, 160, 23, 0.1);
    color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 160, 23, 0.3);
}

.hero-title {
    font-size: 48px;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.highlight {
    color: var(--secondary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(212, 160, 23, 0.2);
    z-index: -1;
}

.hero-description {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background-color: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature span {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    width: 250px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h4 {
    color: var(--primary-color);
    font-size: 18px;
}

.card-header i {
    color: var(--secondary-color);
    font-size: 20px;
}

.card-body h3 {
    color: var(--secondary-color);
    font-size: 24px;
    margin: 10px 0;
}

.card-body small {
    color: #94A3B8;
    font-size: 12px;
}

/* الأقسام العامة */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-color);
    opacity: 0.8;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--secondary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon i {
    font-size: 36px;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--secondary-color);
    gap: 12px;
}

/* قسم أسعار الصرف */
.exchange-rates {
    padding: 100px 0;
    background-color: white;
}

.rates-table {
    overflow-x: auto;
    margin-bottom: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    min-width: 800px;
}

table th {
    background-color: var(--primary-color);
    color: white;
    padding: 18px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}

table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: rgba(30, 58, 138, 0.02);
}

.currency-info {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
}

.currency-flag {
    width: 40px;
    height: 30px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.change-up {
    color: var(--success-color);
    font-weight: 600;
}

.change-down {
    color: var(--danger-color);
    font-weight: 600;
}

.change-neutral {
    color: #94A3B8;
    font-weight: 600;
}

/* حاسبة التحويل */
.converter-section {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.converter-section h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.converter-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: end;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 16px;
}

.input-group input {
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 18px;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.currency-select select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    background-color: white;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
}

.currency-select select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.swap-btn button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-btn button:hover {
    background-color: var(--secondary-color);
    transform: rotate(180deg);
}

.converter-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.converter-info p {
    font-size: 18px;
    color: var(--text-color);
}

#exchange-rate {
    color: var(--secondary-color);
    font-weight: 700;
}

/* قسم الفروع */
.branches {
    padding: 100px 0;
    background-color: var(--light-color);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.branch-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.branch-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.branch-header h3 {
    font-size: 22px;
    font-weight: 700;
}

.branch-status {
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.branch-status.open {
    background-color: var(--success-color);
    color: white;
}

.branch-status.closed {
    background-color: #94A3B8;
    color: white;
}

.branch-body {
    padding: 25px;
}

.branch-body p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.branch-body i {
    color: var(--primary-color);
    width: 20px;
}

/* قسم الاتصال */
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 4fr ;
    gap: 60px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.whatsapp-icon {
    background-color: #25D366;
    color: white !important;
}

.contact-details h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-details p {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 15px;
}

.contact-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--secondary-color);
}

.whatsapp-link {
    color: #25D366 !important;
}

.contact-form {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* الفوتر */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-logo h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
}

.footer-logo p {
    opacity: 0.8;
    font-size: 14px;
}

.footer-description {
    margin-bottom: 25px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-license {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    border-right: 3px solid var(--secondary-color);
}

.footer-license i {
    color: var(--secondary-color);
    font-size: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-links a::before {
    content: '←';
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover::before {
    opacity: 1;
}

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

.contact-item i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* الأزرار السريعة */
.quick-actions {
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 25px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    min-width: 150px;
}

.whatsapp-action {
    background-color: #25D366;
}

.phone-action {
    background-color: var(--primary-color);
}

.scroll-top {
    background-color: var(--secondary-color);
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

.quick-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    min-width: 160px;
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-features {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .floating-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -30px;
    }
    
    .contact-wrapper,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .quick-action span {
        display: none;
    }
    
    .quick-action {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
        min-width: auto;
    }
    
    .quick-action:hover {
        min-width: auto;
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-contact {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background-color: white;
        box-shadow: var(--shadow);
        padding: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .converter-inputs {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .swap-btn {
        order: 3;
        display: flex;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid,
    .branches-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        left: 10px;
        bottom: 10px;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
}