/* CSS Variables - Updated with Logo Colors */
:root {
    --primary-color: #1a535c;   /* Dark Teal from Logo */
    --secondary-color: #466e74; /* Lighter Teal for interaction */
    --accent-color: #9bc53d;    /* Lime Green from Logo */
    --text-dark: #212121;
    --text-light: #f5f5f5;
    --bg-light: #ffffff;
    --bg-grey: #f7f9fc;
    --border-color: #e0e0e0;
    --font-en: 'Poppins', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    transition: font-family 0.3s ease;
}

body[lang="en"] { font-family: var(--font-en); }
body[lang="ar"] { font-family: var(--font-ar); direction: rtl; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

section:nth-child(odd) {
    background-color: var(--bg-grey);
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}
a:hover { color: var(--accent-color); }

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid var(--primary-color);
}
.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}
.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.section-intro {
    text-align:center; 
    max-width: 800px; 
    margin: -30px auto 50px;
    color: #555;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}
.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

body[lang="ar"] .nav-links {
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
body[lang="ar"] .nav-links a::after {
    right: 0;
    left: auto;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switcher button {
    background: none;
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.lang-switcher button.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(26, 83, 92, 0.8), rgba(26, 83, 92, 0.8)), url('../img/Hero.jpg') no-repeat center center/cover;
    color: var(--text-light);
    padding-top: 80px; /* Header offset */
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* About Us Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-text h3 {
    font-size: 1.8rem;
}
.mission-vision {
    margin-top: 30px;
    display: flex;
    gap: 30px;
}
.mission-vision div {
    flex: 1;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
body[lang="ar"] .mission-vision div {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}
.mission-vision h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}
.chairman-quote {
    margin-top: 40px;
    padding: 25px;
    background-color: var(--bg-light);
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}
body[lang="ar"] .chairman-quote {
    border-left: none;
    border-right: 5px solid var(--accent-color);
}
.chairman-quote blockquote {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.chairman-quote footer {
    font-weight: 600;
    color: var(--primary-color);
}

/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.why-us-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.why-us-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.why-us-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Meet the Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.team-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    text-align: center;
}
.team-card .team-icon i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.team-card h3 { font-size: 1.4rem; margin-bottom: 5px; }
.team-card .role {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 15px;
    min-height: 40px;
}
.team-card .description {
    flex-grow: 1;
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.team-meta {
    font-size: 0.9rem;
    color: #555;
    list-style: none;
    padding: 0;
    margin: 0;
}
.team-meta li {
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.team-meta i {
    color: var(--primary-color);
    width: 16px;
}
.team-card.wide {
    grid-column: 1 / -1;
    text-align: left;
}
body[lang="ar"] .team-card.wide {
    text-align: right;
}
.team-card.wide ul {
    padding-left: 20px;
}
body[lang="ar"] .team-card.wide ul {
    padding-left: 0;
    padding-right: 20px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.service-card {
    background-color: var(--bg-grey);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}
.service-card h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Humanitarian Support Section */
.humanitarian-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
.humanitarian-block {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.humanitarian-block h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}
.humanitarian-block ul {
    list-style-type: none;
    padding: 0;
}
.humanitarian-block ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}
.humanitarian-block ul li::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
}
body[lang="ar"] .humanitarian-block ul li {
    padding-left: 0;
    padding-right: 25px;
}
body[lang="ar"] .humanitarian-block ul li::before {
    left: auto;
    right: 0;
}

/* Clients Section */
.clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.client-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.testimonial-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}
body[lang="ar"] .testimonial-card {
    border-left: none;
    border-right: 5px solid var(--primary-color);
}
.testimonial-card blockquote {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
}
body[lang="ar"] .testimonial-card blockquote {
    padding-left: 0;
    padding-right: 40px;
}
.testimonial-card blockquote::before {
    content: '\f10d'; /* Font Awesome quote-left */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2rem;
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: -10px;
}
body[lang="ar"] .testimonial-card blockquote::before {
    left: auto;
    right: 0;
    content: '\f10e'; /* Font Awesome quote-right */
}
.testimonial-card footer {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}
body[lang="ar"] .testimonial-card footer {
    text-align: left;
}

/* Careers Section */
#careers p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
}
.careers-cta {
    text-align: center;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.contact-info-item {
    margin-bottom: 20px;
}
.contact-info-item i {
    color: var(--primary-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}
body[lang="ar"] .contact-info-item i {
    margin-right: 0;
    margin-left: 15px;
}
.contact-downloads {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.contact-downloads a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 50px 0 20px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-column h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column ul a {
    color: var(--text-light);
    opacity: 0.8;
}
.footer-column ul a:hover {
    opacity: 1;
    text-decoration: underline;
}
.social-icons a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-right: 15px;
}
body[lang="ar"] .social-icons a {
    margin-right: 0;
    margin-left: 15px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}
.footer-bottom a {
    color: var(--text-light);
    margin: 0 10px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
body[lang="ar"] .whatsapp-float {
    right: auto;
    left: 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h2 { font-size: 2.2rem; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-light);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }
    .nav-links.active {
        max-height: 500px;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links li a {
        display: block;
        padding: 15px 0;
    }
    .menu-toggle {
        display: block;
    }
    .about-content, .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    .mission-vision { flex-direction: column; }
    .humanitarian-content { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
} 