/* General Styles */
:root {
    --primary-color: #1a237e; /* A deep blue */
    --secondary-color: #ffc107; /* A vibrant gold/yellow */
    --text-color: #333;
    --bg-color: #f4f4f9;
    --light-bg-color: #ffffff;
}

body {
    font-family: 'Cairo', 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    scroll-behavior: smooth;
}

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

/* Header */
header {
    background: var(--light-bg-color);
    color: var(--primary-color);
    padding-top: 20px;
    min-height: 80px;
    border-bottom: 3px solid var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

header .logo {
    margin: 0;
    font-weight: 700;
    font-size: 24px;
}

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

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

header a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header a:hover, header .lang-switch:hover {
    color: var(--secondary-color);
}

.lang-switch {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

/* Hero Section */
.hero {
    background: var(--primary-color);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-button {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: #ffca2c;
    color: #000;
}

/* General Section Styling */
.services, .portfolio, .about, .contact {
    padding: 80px 0;
    text-align: center;
}

.services h2, .portfolio h2, .about h2, .contact h2 {
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--light-bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-item h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 10px;
}

/* Portfolio Section */
.portfolio {
    background: var(--light-bg-color);
}

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

.portfolio-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* About Section */
.about {
    background: var(--primary-color);
    color: #fff;
}

.about .container {
    max-width: 800px;
}

.about h2 {
    color: #fff;
}

/* Contact Section */
.contact {
    background: var(--bg-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: right; /* For Arabic */
    max-width: 900px;
    margin: 0 auto 40px auto;
}

html[lang="en"] .contact-grid {
    text-align: left; /* For English */
}

.contact-info, .working-hours {
    background: var(--light-bg-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-info h3, .working-hours h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.contact-info p, .working-hours p {
    margin: 10px 0;
    line-height: 1.8;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.map {
    max-width: 900px;
    margin: auto;
    border: 3px solid var(--secondary-color);
    border-radius: 8px;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Responsive Design */
@media(max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header .logo {
        margin-bottom: 15px;
    }

    header nav ul li {
        margin: 0 10px;
    }
    
    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}
