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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #ffffff;
    color: #333;
}

/* Language Toggle */
.lang-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}
#langBtn {
    background: #1a4d8c;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}
#langBtn:hover {
    background: #ff8c00;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a4d8c;
    padding: 15px 40px;
    flex-wrap: wrap;
}
.logo h1 {
    color: white;
    font-size: 1.8rem;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
nav ul li a:hover {
    color: #ff8c00;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.pexels.com/photos/276724/pexels-photo-276724.jpeg?auto=compress&cs=tinysrgb&w=1600');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.btn {
    background: #ff8c00;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}
.btn:hover {
    background: #1a4d8c;
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: space-around;
    padding: 50px 20px;
    background: #f5f5f5;
    text-align: center;
    flex-wrap: wrap;
}
.stat-box h3 {
    font-size: 2.5rem;
    color: #1a4d8c;
}
.stat-box p {
    font-size: 1.2rem;
}

/* Projects Grid */
.featured, .projects-gallery {
    padding: 50px 20px;
    text-align: center;
}
.project-grid, .projects-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}
.project-card {
    width: 300px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.project-card:hover {
    transform: translateY(-10px);
}
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.project-card h3 {
    margin: 15px 0 5px;
    color: #1a4d8c;
}

/* Page Header */
.page-header {
    background: #1a4d8c;
    color: white;
    text-align: center;
    padding: 60px 20px;
}
.page-header h1 {
    font-size: 2.5rem;
}

/* About Page */
.about-content {
    display: flex;
    flex-wrap: wrap;
    padding: 50px;
    gap: 40px;
    align-items: center;
}
.about-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
}
.about-image {
    flex: 1;
}
.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* Contact Page */
.contact-form {
    display: flex;
    flex-wrap: wrap;
    padding: 50px;
    gap: 50px;
    justify-content: center;
}
.contact-form form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}
.contact-form button {
    background: #1a4d8c;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}
.contact-info {
    flex: 1;
    font-size: 1.2rem;
    line-height: 2;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .stats {
        flex-direction: column;
        gap: 30px;
    }
    .about-content, .contact-form {
        padding: 30px;
        flex-direction: column;
    }
}