/* ===== PROJECT-SPECIFIC STYLES ===== */
.project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-logo {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.project-logo i {
    font-size: 2.5rem;
    color: white;
}

.project-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 15px;
}

.project-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.project-timeline {
    position: relative;
    padding: 60px 0;
    margin: 0 auto;
}

.project-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 4px;
    background: linear-gradient(to bottom, #3498db, #2c3e50);
    z-index: 1;
}

.project-timeline-item {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.project-timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.project-timeline-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
    opacity: 0;
    transform: translateY(30px);
}

.project-timeline-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3;
}

.project-completed {
    background-color: #27ae60;
    color: white;
}

.project-in-progress {
    background-color: #f39c12;
    color: white;
}

.project-upcoming {
    background-color: #3498db;
    color: white;
}

.project-timeline-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin: 15px 0;
    display: block;
}

.project-timeline-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.project-number-box {
    width: 50px;
    height: 50px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-inline-start: 15px;
    flex-shrink: 0;
}

.project-date-container {
    display: flex;
    flex-direction: column;
}

.project-timeline-date {
    font-weight: 600;
    color: #3498db;
    font-size: 1.1rem;
}

.project-hijri-date {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 3px;
}

.project-timeline-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
    border-right: 3px solid #3498db;
    padding-right: 15px;
}

.project-timeline-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.project-timeline-item:nth-child(odd) .project-timeline-content::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid white;
    transform: translateY(-50%);
}

.project-timeline-item:nth-child(even) .project-timeline-content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid white;
    transform: translateY(-50%);
}

.project-timeline-item::before {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: #3498db;
    border-radius: 50%;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    z-index: 3;
    border: 5px solid #f7f9fc;
    box-shadow: 0 0 0 2px #3498db;
}

/* Card Colors */
.project-timeline-item:nth-child(1) .project-number-box { background-color: #46b8e9; }
.project-timeline-item:nth-child(2) .project-number-box { background-color: #3ee9d1; }
.project-timeline-item:nth-child(3) .project-number-box { background-color: #ce43eb; }
.project-timeline-item:nth-child(4) .project-number-box { background-color: #4d92eb; }
.project-timeline-item:nth-child(5) .project-number-box { background-color: #46b8e9; }
.project-timeline-item:nth-child(6) .project-number-box { background-color: #3ee9d1; }
.project-timeline-item:nth-child(7) .project-number-box { background-color: #ce43eb; }
.project-timeline-item:nth-child(8) .project-number-box { background-color: #4d92eb; }
.project-timeline-item:nth-child(9) .project-number-box { background-color: #46b8e9; }

/* Footer Styles */
.project-footer {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: white;
    text-align: center;
    padding: 50px 20px 30px;
    border-radius: 15px;
    margin-top: 50px;
}

.project-footer h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.project-footer p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.project-footer-content {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.project-footer-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    transition: all 0.3s ease;
}

.project-footer-icon:hover {
    background-color: #f39c12;
    transform: translateY(-5px);
}

.project-footer .copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Arabic', sans-serif;
}

body {
    background: #f7f9fc;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    direction: rtl;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .project-timeline::before {
        right: 20px;
    }

    .project-timeline-item {
        justify-content: flex-start !important;
    }

    .project-timeline-item::before {
        right: 20px;
    }

    .project-timeline-item:nth-child(odd) .project-timeline-content::after,
    .project-timeline-item:nth-child(even) .project-timeline-content::after {
        display: none;
    }

    .project-header h1 {
        font-size: 2rem;
    }

    .project-header p {
        font-size: 1rem;
    }

    .project-timeline-content {
        width: 100%;
        max-width: none;
        margin-inline-start: 60px;
    }

    .project-timeline-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .project-timeline-content {
        margin-inline-start: 40px;
    }

    .project-timeline-item::before {
        width: 20px;
        height: 20px;
        right: 20px;
    }

    .project-number-box {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .project-timeline-image {
        height: 200px;
    }

    .project-footer-content {
        gap: 15px;
    }

    .project-footer-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .project-date-container {
        flex-direction: column;
    }

    .project-timeline-content {
        opacity: 1 !important;
        transform: none !important;
    }
}
