/* خط Cairo من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

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

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Arabic RTL Styles */
body.rtl {
    direction: rtl;
    text-align: right;
}

/* English LTR Styles */
body.ltr {
    direction: ltr;
    text-align: left;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e5e7eb;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1f2937;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: #16a34a;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.header-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.language-switcher {
    display: flex;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 4px;
    gap: 4px;
}

.lang-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.lang-btn.active {
    background: white;
    color: #16a34a;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.lang-btn:hover {
    color: #16a34a;
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-outline:hover {
    background: #f9fafb;
}

.btn-primary {
    background: #16a34a;
    color: white;
}

.btn-primary:hover {
    background: #15803d;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
}

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

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero .highlight {
    color: #16a34a;
}

.hero p {
    font-size: 20px;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

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

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: #6b7280;
}

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

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #16a34a;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.7;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: #f9fafb;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 2px solid #e5e7eb;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.pricing-card.popular {
    border-color: #16a34a;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #16a34a;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.plan-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #16a34a;
}

.pricing-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.pricing-card .description {
    color: #6b7280;
    margin-bottom: 16px;
}

.price {
    font-size: 32px;
    font-weight: 800;
    color: #16a34a;
    margin-bottom: 24px;
}

.features-list {
    list-style: none;
    margin-bottom: 32px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.rtl .features-list li {
    text-align: right;
}

.ltr .features-list li {
    text-align: left;
}

.check-icon {
    color: #16a34a;
    font-weight: bold;
}

/* Contact Page */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-header {
    margin-bottom: 32px;
}

.contact-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
}

.contact-header p {
    color: #6b7280;
    font-size: 16px;
}

.contact-grid {
    display: grid;
    gap: 32px;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.card-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f0fdf4;
    border-radius: 8px;
    margin-bottom: 16px;
}

.contact-info.blue {
    background: #eff6ff;
}

.contact-info .icon {
    width: 20px;
    height: 20px;
    color: #16a34a;
}

.contact-info.blue .icon {
    color: #2563eb;
}

.contact-info div p:first-child {
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info div p:last-child {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: left 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-left: 40px;
}

.rtl select.form-control {
    background-position: right 12px center;
    padding-left: 16px;
    padding-right: 40px;
}

.btn-submit {
    width: 100%;
    background: #16a34a;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Cairo', sans-serif;
}

.btn-submit:hover {
    background: #15803d;
}

.btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Alert Messages */
.alert {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    border: 1px solid transparent;
}

.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 48px 0;
    margin-top: 80px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-section p,
.footer-section li {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 32px;
    text-align: center;
    color: #9ca3af;
}

/* RTL/LTR specific adjustments */
.rtl .features-list li {
    flex-direction: row;
}

.ltr .features-list li {
    flex-direction: row;
}

.rtl .contact-info {
    flex-direction: row;
}

.ltr .contact-info {
    flex-direction: row;
}

.rtl .card-header {
    flex-direction: row;
}

.ltr .card-header {
    flex-direction: row;
}

/* Icons */
.icon { 
    width: 20px; 
    height: 20px; 
    display: inline-block; 
}

.icon-lg { 
    width: 48px; 
    height: 48px; 
}

.icon-message-circle:before { content: "💬"; font-size: 20px; }
.icon-zap:before { content: "⚡"; font-size: 20px; }
.icon-shield:before { content: "🛡️"; font-size: 20px; }
.icon-clock:before { content: "⏰"; font-size: 20px; }
.icon-users:before { content: "👥"; font-size: 20px; }
.icon-bar-chart:before { content: "📊"; font-size: 20px; }
.icon-package:before { content: "📦"; font-size: 20px; }
.icon-phone:before { content: "📞"; font-size: 20px; }
.icon-message-square:before { content: "💬"; font-size: 20px; }
.icon-send:before { content: "📤"; font-size: 16px; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 16px;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .contact-container {
        padding: 20px;
    }
    
    .language-switcher {
        order: -1;
    }
}