/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Century, 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Noto Sans Arabic', 'Noto Sans', sans-serif;
}

body.ltr {
    direction: ltr;
    text-align: left;
    font-family: Century, 'Times New Roman', serif;
}

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

/* Header and Navigation */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.logo p {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

.lang-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.lang-btn:hover {
    background: #2980b9;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    padding: 4rem 0;
    text-align: center;
}

.hero-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #495057;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Arabic font styling for hero section */
body.rtl .hero-section h2 {
    font-family: 'Noto Sans Arabic', 'Noto Sans', sans-serif;
}

body.rtl .hero-section p {
    font-family: 'Noto Sans Arabic', 'Noto Sans', sans-serif;
}

/* English font styling for hero section */
body.ltr .hero-section h2 {
    font-family: Century, 'Times New Roman', serif;
}

body.ltr .hero-section p {
    font-family: Century, 'Times New Roman', serif;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn.primary {
    background: #3498db;
    color: white;
}

.btn.primary:hover {
    background: #2980b9;
    color: white;
}

.btn.secondary {
    background: transparent;
    color: #3498db;
    border-color: #3498db;
}

.btn.secondary:hover {
    background: #3498db;
    color: white;
}

/* Sections */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background: #f8f9fa;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

section p {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature p {
    margin: 0;
    font-size: 1rem;
}

/* Process Steps */
.sell-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.process-step p {
    margin: 0;
    font-size: 1rem;
}

/* Contact Section */
.contact-section {
    background: #f8f9fa;
    color: #2c3e50;
}

.contact-section h2 {
    color: #2c3e50;
}

.contact-section p {
    color: #7f8c8d;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Footer */
footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features,
    .sell-process,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .feature,
    .process-step,
    .contact-item {
        padding: 1.5rem;
    }
}

/* RTL Specific Adjustments */
body.rtl .nav-links ul {
    flex-direction: row-reverse;
}

body.rtl .cta-buttons {
    flex-direction: row-reverse;
}

body.rtl .features,
body.rtl .sell-process,
body.rtl .contact-info {
    direction: rtl;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
