/* Project Page Specific Styles */

/* ===== HERO ===== */
.project-hero {
    background: linear-gradient(rgba(10, 92, 54, 0.85), rgba(10, 92, 54, 0.9)), 
                url('../images/mosque-new/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
}

.project-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    margin-bottom: 15px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.project-hero .subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
}

/* ===== OVERVIEW ===== */
.project-overview {
    padding: 80px 0;
    background-color: var(--white);
}

.overview-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.overview-text {
    flex: 1;
}

.overview-text h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 25px;
    position: relative;
}

.overview-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.overview-text > p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.feature {
    background: var(--light-green);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.feature:hover i {
    transform: scale(1.2);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
}

.feature p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.overview-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.overview-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.overview-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.overview-image:hover img {
    transform: scale(1.05);
}

/* ===== TIMELINE ===== */
.timeline-section {
    background-color: var(--gray-light);
    padding: 80px 0;
}

.timeline-section h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-size: 2.2rem;
    position: relative;
}

.timeline-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-date {
    min-width: 100px;
    font-weight: 700;
    color: var(--primary-color);
    padding-right: 20px;
    text-align: right;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
}

.timeline-content {
    background: var(--white);
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    margin-left: 30px;
    flex: 1;
    border-top: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.3rem;
    font-family: 'Montserrat', sans-serif;
}

.timeline-content p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-color);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    background-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--secondary-color);
}

/* ===== FUND BREAKDOWN ===== */
.fund-breakdown {
    padding: 80px 0;
    background-color: var(--white);
}

.fund-breakdown h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.2rem;
    position: relative;
}

.fund-breakdown h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-sub {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 600;
}

.breakdown {
    max-width: 700px;
    margin: 0 auto;
}

.breakdown-item {
    margin-bottom: 25px;
}

.breakdown-item h4 {
    margin-bottom: 8px;
    color: var(--text-medium);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.bar {
    height: 25px;
    border-radius: 12px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
    position: relative;
    overflow: hidden;
    min-width: 50px;
}

.bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: slide 2s infinite linear;
}

@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.percent {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
}

/* ===== GALLERY ===== */
.gallery-preview {
    background-color: var(--gray-light);
    padding: 80px 0;
    text-align: center;
}

.gallery-preview h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2.2rem;
    position: relative;
}

.gallery-preview h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.gallery-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item p {
    padding: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover p {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-note {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.95rem;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-note i {
    color: var(--secondary-color);
    margin-right: 8px;
}

/* ===== CTA ===== */
.project-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.project-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
}

.project-cta h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.project-cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.project-cta .btn {
    margin: 0;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 200px;
}

.project-cta .btn.large {
    background: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.project-cta .btn.large:hover {
    background: #c19b2a;
    border-color: #c19b2a;
}

.project-cta .btn.secondary {
    background: transparent;
    border: 2px solid var(--white);
}

.project-cta .btn.secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .overview-content {
        flex-direction: column;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .timeline::before {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .project-hero h1 {
        font-size: 2.5rem;
    }

    .project-hero .subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .timeline-date {
        min-width: 80px;
        font-size: 0.9rem;
    }

    .timeline-content {
        margin-left: 20px;
        padding: 15px;
    }

    .timeline-item::before {
        left: 16px;
    }

    .project-cta h2 {
        font-size: 2rem;
    }
    
    .project-cta p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .project-cta .btn {
        width: 100%;
        max-width: 300px;
        margin: 0;
    }
    
    .bar {
        display: block;
        margin-bottom: 5px;
        width: 100%;
    }
    
    .breakdown-item h4 {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .features {
        grid-template-columns: 1fr;
    }
    
    .gallery {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 30px;
    }
    
    .timeline-date {
        min-width: 70px;
        font-size: 0.85rem;
    }
    
    .project-hero h1 {
        font-size: 2rem;
    }
    
    .overview-text h2,
    .timeline-section h2,
    .fund-breakdown h2,
    .gallery-preview h2 {
        font-size: 1.8rem;
    }
}