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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f9;
    direction: auto;
}

html[lang="ar"] body {
    direction: rtl;
    text-align: right;
}

html[lang="en"] body {
    direction: ltr;
    text-align: left;
}

header {
    background-color: #1a237e;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.language-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
}

html[lang="ar"] .language-switcher {
    left: 1rem;
    right: auto;
}

.language-switcher a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
}

.language-switcher a.active {
    font-weight: bold;
    text-decoration: underline;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    color: #1a237e;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    color: #303f9f;
    margin: 1rem 0;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('1000004512.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.hero-content h2 {
    font-size: 3rem;
    color: white;
    border: none;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Technology Section */
.technology {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.technology:last-child {
    border-bottom: none;
}

/* Features Section */
.key-features ul {
    list-style-type: none;
    padding-left: 1.5rem;
}

html[lang="ar"] .key-features ul {
    padding-right: 1.5rem;
    padding-left: 0;
}

.key-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

html[lang="ar"] .key-features li {
    padding-right: 1.5rem;
    padding-left: 0;
}

.key-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

html[lang="ar"] .key-features li:before {
    right: 0;
    left: auto;
}

/* Slogan Section */
.slogan {
    text-align: center;
    font-style: italic;
}

.slogan p {
    font-size: 1.5rem;
    color: #303f9f;
}

/* Inventor Section */
.inventor {
    text-align: center;
}

/* Footer */
footer {
    background-color: #1a237e;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1.5rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    main {
        padding: 1rem;
    }
    
    section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}
