/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    direction: rtl; /* Right-to-left for Arabic */
    text-align: right;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header */
header {
    background: #333;
    color: #fff;
    padding-top: 20px;
    min-height: 70px;
    border-bottom: #77aaff 3px solid;
}

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

header .logo img {
    height: 50px;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    padding: 0 15px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header nav ul li a:hover {
    color: #77aaff;
    font-weight: bold;
}

/* Hero Section */
#hero {
    min-height: 400px;
    background: #555 url('https://via.placeholder.com/1500x400?text=Technology+Background') no-repeat center center/cover;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons .btn {
    display: inline-block;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.hero-buttons .btn.primary {
    background-color: #77aaff;
}

.hero-buttons .btn.primary:hover {
    background-color: #5588dd;
}

.hero-buttons .btn.secondary {
    background-color: #333;
    border: 1px solid #77aaff;
}

.hero-buttons .btn.secondary:hover {
    background-color: #444;
}

/* Features Section */
#features, #about, #services, #contact {
    padding: 40px 0;
    background: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

#features h2, #about h2, #services h2, #contact h2 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
}

#features ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#features ul li {
    background: #eee;
    margin: 10px;
    padding: 20px;
    border-radius: 8px;
    flex: 1 1 calc(33% - 40px); /* Three columns, responsive */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 250px;
}

/* About Us Section */
#about p, #about h3 {
    margin-bottom: 20px;
    text-align: justify;
}

#about h3 {
    color: #77aaff;
    font-size: 1.8em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 30px;
}

/* Services Section */
.service-item {
    background: #eee;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-item h3 {
    color: #77aaff;
    margin-top: 0;
}

/* Contact Us Section */
#contact p strong {
    color: #77aaff;
}

#contact a {
    color: #77aaff;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

#contact form {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #eee;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

#contact form .btn.primary {
    background-color: #77aaff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    width: auto;
    display: block;
    margin-top: 20px;
}

#contact form .btn.primary:hover {
    background-color: #5588dd;
}

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

footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

