/* Projects Page Styles */

/* Intro Section */
.projects-intro {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.intro-content h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.intro-content p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Projects with Map Layout */
.projects-map-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.projects-layout {
    display: grid;
    grid-template-columns: 1fr 600px;
    gap: 40px;
    padding: 0 40px;
}

[dir="rtl"] .projects-layout {
    grid-template-columns: 600px 1fr;
}

/* Projects Container */
.projects-container {
    overflow-y: auto;
    max-height: 1200px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 0;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.2);
}

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

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

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

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 700;
}

.project-detail {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.project-detail strong {
    color: #2196F3;
    min-width: 80px;
}

/* Map Container - Sticky */
.map-container-sticky {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: fit-content;
    min-width: 600px;
}

.map-header {
    text-align: center;
    margin-bottom: 20px;
}

.map-header h3 {
    font-size: 1.5rem;
    color: #2196F3;
    margin-bottom: 5px;
}

.map-header p {
    color: #666;
    font-size: 1rem;
}

/* Egypt Map */
.egypt-map {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.egypt-map img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

/* Map Pins */
.map-pin {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #2196F3;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    animation: pulse 2s infinite;
}

.map-pin:hover,
.map-pin.active {
    background: #FF6B35;
    transform: scale(1.3);
    z-index: 10;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    }
    50% {
        box-shadow: 0 2px 15px rgba(33, 150, 243, 0.6);
    }
}

/* Map Project Preview */
.map-project-preview {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-project-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    display: none;
}

.map-project-preview img.show {
    display: block;
}

.map-project-preview h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

/* CTA Section */
.projects-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-btn-primary {
    background: white;
    color: #2196F3;
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.cta-btn-secondary {
    background: linear-gradient(135deg, #FF6B35, #F4511E);
    color: white;
}

.cta-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-layout {
        grid-template-columns: 1fr 400px;
    }
    
    [dir="rtl"] .projects-layout {
        grid-template-columns: 400px 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .projects-layout {
        grid-template-columns: 1fr;
    }
    
    [dir="rtl"] .projects-layout {
        grid-template-columns: 1fr;
    }
    
    .map-container-sticky {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-layout {
        grid-template-columns: 1fr 500px;
    }
    
    [dir="rtl"] .projects-layout {
        grid-template-columns: 500px 1fr;
    }
    
    .map-container-sticky {
        min-width: 500px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .projects-layout {
        grid-template-columns: 1fr;
    }
    
    [dir="rtl"] .projects-layout {
        grid-template-columns: 1fr;
    }
    
    .map-container-sticky {
        position: relative;
        top: 0;
        min-width: auto;
        margin-top: 40px;
    }
    
    .egypt-map {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-layout {
        padding: 0 20px;
    }
}
