/* استيراد الخط العربي */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
}

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

/* القائمة العلوية */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo h1 {
    font-size: 1.5rem;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-right: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* القسم الرئيسي */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* قسم الخدمات */
.services {
    padding: 5rem 0;
    background-color: #fff;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.service-card {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* قسم المشاريع */
.projects {
    padding: 6rem 0;
    background-color: #fff;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 2.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card h3 {
    padding: 1.5rem 1rem 0.5rem;
    color: #2c3e50;
    font-size: 1.3rem;
}

.project-card p {
    padding: 0 1rem 1.5rem;
    color: #666;
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }
.project-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Show More Button Styles */
.show-more-container {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.show-more-btn, .view-all-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-btn {
    background-color: #2c3e50;
}

.show-more-btn:hover, .view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.view-all-btn:hover {
    background-color: #34495e;
}

.show-more-btn:hover {
    background-color: #2980b9;
}

.show-more-btn:active, .view-all-btn:active {
    transform: translateY(0);
}

/* Hidden Projects */
.project-card.hidden {
    display: none;
}

.project-card.show {
    display: block;
    animation: fadeInUp 0.6s ease forwards;
}

/* قسم من نحن */
.about {
    padding: 5rem 0;
    background-color: #fff;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #3498db;
}

/* قسم كلمة المدير العام */
.ceo-message {
    padding: 5rem 0;
    background-color: #fff;
}

.ceo-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.ceo-image {
    position: relative;
}

.ceo-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ceo-text h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.ceo-text h3 {
    color: #3498db;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.ceo-text .position {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.ceo-text .message {
    line-height: 1.8;
    color: #2c3e50;
}

.ceo-text .message p {
    margin-bottom: 1rem;
}

.signature {
    margin-top: 2rem;
    text-align: left;
    font-weight: bold;
}

.signature p:first-child {
    color: #3498db;
    font-size: 1.2rem;
}

.signature p:last-child {
    color: #7f8c8d;
    font-size: 1rem;
}

/* قسم اتصل بنا */
.contact {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #3498db;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    padding: 1rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #2980b9;
}

/* تجاوب قسم المدير العام */
@media (max-width: 768px) {
    .ceo-content {
        grid-template-columns: 1fr;
    }

    .ceo-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* تجاوب الموقع */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links li {
        margin: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

/* الفوتر */
.footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

/* صفحة جميع المشاريع */
.all-projects {
    padding: 120px 0 60px;
    background-color: #f8f9fa;
}

.page-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
}

.filter-btn:hover, .filter-btn.active {
    background: #3498db;
    color: white;
}

.all-projects .project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.all-projects .project-card.show {
    opacity: 1;
    transform: translateY(0);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-details {
    padding: 1.5rem;
}

.project-details h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.location, .date {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.location i, .date i {
    color: #3498db;
    margin-left: 0.5rem;
}

.description {
    color: #666;
    margin: 1rem 0;
    line-height: 1.6;
}

.project-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.stat i {
    color: #3498db;
}

@media (max-width: 768px) {
    .project-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* قسم فريق العمل */
.team {
    padding: 5rem 0;
    background-color: #fff;
}

.team h2, .team-page h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* .team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
} */

.team-card.show {
    opacity: 1;
    transform: translateY(0);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.member-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .member-image img {
    transform: scale(1.1);
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-info h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.position {
    color: #3498db;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.experience {
    color: #666;
    font-size: 0.9rem;
}

.member-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: right;
}

.member-details p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.team-cta {
    text-align: center;
    margin-top: 3rem;
}

.view-team-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.view-team-btn:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* صفحة فريق العمل */
.team-page {
    padding: 120px 0 60px;
    background-color: #f8f9fa;
}

.team-section {
    margin-bottom: 4rem;
}

.section-title {
    color: #3498db;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: right;
    position: relative;
    padding-right: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background-color: #3498db;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .member-image {
        height: 250px;
    }
}

/* قسم فريق العمل - التصميم الجديد */
.team {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.team h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.team-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member-compact {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.team-member-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.member-image-compact {
    width: 150px;
    height: 150px;
    margin: 1.5rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #3498db;
    transition: all 0.3s ease;
}

.team-member-compact:hover .member-image-compact {
    transform: scale(1.05);
    border-color: #2980b9;
}

.member-image-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.member-info-compact {
    padding: 1rem;
}

.member-info-compact h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.member-info-compact .position {
    color: #3498db;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-cta {
    text-align: center;
    margin-top: 3rem;
}

.view-team-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.view-team-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.view-team-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .team-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }

    .member-image-compact {
        width: 120px;
        height: 120px;
    }

    .member-info-compact h3 {
        font-size: 1rem;
    }

    .member-info-compact .position {
        font-size: 0.8rem;
    }
}

/* قسم الموقع */
.location {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.location h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.map-container {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
}

.location-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.info-item i {
    color: #3498db;
    font-size: 1.5rem;
}

.info-item span {
    color: #2c3e50;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .location-info {
        flex-direction: column;
        gap: 1rem;
    }

    .info-item {
        width: 100%;
        justify-content: center;
    }
}
