/* --- Global Styles & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #0a4f8a; /* Deep Blue - Professional & Trustworthy */
    --secondary-color: #00aae4; /* Bright Blue - Tech & Modern */
    --accent-color: #f7c04a; /* Gold/Yellow - Premium & Attention */
    --light-bg: #f8f9fa; /* Light Gray - Clean Background */
    --dark-text: #333333; /* Dark Gray - Readability */
    --light-text: #ffffff; /* White */
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    color: var(--dark-text);
    background-color: #fff;
    direction: rtl; /* Right-to-left */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 2.8rem; /* Responsive font size */
    font-weight: 700;
    color: var(--light-text); /* Color set in hero section */
}

h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

/* Underline effect for h2 */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
    font-size: 1rem; /* Adjusted for Cairo font */
    font-weight: 400;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

/* --- Header / Hero Section --- */
.hero {
    background: linear-gradient(rgba(10, 79, 138, 0.8), rgba(0, 170, 228, 0.7)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzNjUyOXwwfDF8c2VhcmNofDEyfHx0ZWNobm9sb2d5JTIwYmFja2dyb3VuZHxlbnwwfHx8fDE2MTgyNTY3NTE&ixlib=rb-1.2.1&q=80&w=1920') no-repeat center center/cover; /* Replace with a relevant high-res image */
    min-height: 70vh;
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 40px 0; /* Padding for smaller screens */
}

/* Overlay removed as gradient is used in background */

.hero-content {
    position: relative; /* To stay above the overlay if it were used */
    z-index: 1;
    animation: fadeIn 1.5s ease-in;
}

.hero .subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-top: 0.5rem;
    max-width: 700px; /* Limit width for readability */
    margin-left: auto;
    margin-right: auto;
}

.hero .highlight {
    color: var(--accent-color); /* Make highlight stand out on dark bg */
    font-weight: 700; /* Bolder */
}

.logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

/* --- About Section --- */
.about p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Team Section --- */
.team p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem auto; /* Center align lead paragraph */
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.team-member {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #eee;
    transition: border-color var(--transition-speed);
}
.team-member:hover {
    border-color: var(--accent-color);
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-member p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0; /* Remove bottom margin for last p */
}

.team-encouragement {
    font-style: italic;
    color: #555;
    font-weight: 600; /* Make it slightly bolder */
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background-color: #eef7ff; /* Light blue background */
    border-left: 4px solid var(--secondary-color); /* Accent border */
    border-radius: 4px;
}

/* --- Location Section --- */
.location p {
    text-align: center;
    font-size: 1.2rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 30px 0;
    margin-top: 40px; /* Space before footer */
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer p:last-child {
    margin-bottom: 0;
    font-style: italic;
    opacity: 0.7;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .hero {
        min-height: 50vh;
    }
    .hero .subtitle {
        font-size: 1.1rem;
    }
    .service-items, .team-members {
        grid-template-columns: 1fr; /* Stack items on smaller screens */
    }
    .section-padding {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    body {
        font-size: 0.95rem; /* Adjust base font size slightly */
    }
    p {
        font-size: 0.95rem;
    }
}
