/* Arabic Website Styles - Right to Left Layout */

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

html {
    direction: rtl; /* Right to Left Layout */
    font-size: 18px; /* Arabic websites typically need larger fonts */
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

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

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0c4b33; /* Common Egyptian green color */
}

.logo img {
    height: 50px;
}

/* Navigation Menu */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px; /* In RTL layout, left margin appears on the right side */
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #0c4b33;
}

/* Hero Area */
.hero {
    background: linear-gradient(to left, #0c4b33, #1a936f);
    color: #fff;
    padding: 100px 0;
    text-align: right;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 5px solid rgba(255, 255, 255, 0.1);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 80px;
    height: 3px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 650px;
    line-height: 1.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    background-color: #fff;
    color: #0c4b33;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
    background-color: #0c4b33;
    color: #fff;
}

/* Services Section */
.services {
    padding: 80px 0;
    text-align: right;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 50px;
    color: #0c4b33;
    text-align: right;
}

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

.service-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    transition: transform 0.4s, box-shadow 0.4s;
    border-top: 5px solid #0c4b33;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 85%, rgba(12, 75, 51, 0.1) 85%, rgba(12, 75, 51, 0.2) 100%);
    z-index: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    opacity: 0.8;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #0c4b33;
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
}

.service-card:hover h3 {
    transform: translateX(-5px);
}

.service-card p {
    position: relative;
    z-index: 2;
    line-height: 1.8;
    color: #444;
    transition: transform 0.3s;
}

.service-card:hover p {
    transform: translateX(-5px);
}

.service-card i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
}

.service-card:hover i {
    transform: scale(1.1);
}

/* About Us Section */
.about {
    padding: 120px 0;
    background-color: #f8fafb;
    text-align: right;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(12, 75, 51, 0.05) 0%, rgba(26, 147, 111, 0.08) 100%);
    border-radius: 50%;
    transform: translate(200px, -200px);
    z-index: 0;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(12, 75, 51, 0.05) 0%, rgba(26, 147, 111, 0.08) 100%);
    border-radius: 50%;
    transform: translate(-150px, 150px);
    z-index: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text h2 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    color: #0c4b33;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(to left, #0c4b33, #1a936f);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(12, 75, 51, 0.2);
}

.about-text p {
    line-height: 1.9;
    margin-bottom: 20px;
    color: #444;
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s, box-shadow 0.5s;
    border: 8px solid #fff;
}

.about-image:hover img {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Contact Us Section */
.contact {
    padding: 80px 0;
    text-align: right;
}

.contact-form {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
    text-align: right;
}

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

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
}