/* Hero Section */
.projects-hero {
    position: relative;
    margin-top: -100px;
    background-image: url("../images/hdf4.1a38b451df02.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0 6rem;
    margin-bottom: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.9), rgba(255, 107, 53, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 3rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
    margin-bottom: 2rem;
}

.filter-section {
    padding: 2rem 0 3rem;
    position: relative;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.875rem 2rem;
    background: white;
    border: 2px solid #e8f4f8;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-btn:hover {
    border-color: var(--accent-orange);
    background: #fff5f0;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-red));
    color: white;
    border-color: var(--accent-orange);
}

.filter-btn i {
    font-size: 1.1rem;
}

/* Projects Grid Section */
.projects-grid-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
}

.project-item {
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.project-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Project Image Gallery */
.project-image-gallery {
    position: relative;
}

.main-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

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

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

.project-status {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status.active {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.project-status.completed {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #f0f0f0;
}

.image-thumbnails img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.image-thumbnails img:hover {
    opacity: 0.8;
}

/* Project Content */
.project-content {
    padding: 3rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.project-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: 'Poppins', sans-serif;
    flex: 1;
}

.project-category {
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.project-category.education {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
}

.project-category.economic {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.project-category.climate {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.project-category.health {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
}

.project-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
}

.project-meta i {
    color: var(--accent-orange);
    font-size: 1.1rem;
}

/* Project Description */
.project-description {
    margin-bottom: 3rem;
}

.project-description h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.project-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.project-description ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.project-description ul li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.05rem;
}

.project-description ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
    font-size: 1.4rem;
}

/* Project Video */
.project-video {
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
    border-radius: 20px;
}

.project-video h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Project Progress */
.project-progress {
    margin: 3rem 0;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    border: 2px solid #e8f4f8;
}

.project-progress h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

.progress-item {
    margin-bottom: 2rem;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-label span:first-child {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.progress-percentage {
    font-weight: 700;
    color: var(--accent-orange);
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e8f4f8;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), var(--primary-red));
    border-radius: 10px;
    transition: width 1s ease;
}

/* Project Updates */
.project-updates {
    margin: 3rem 0;
}

.project-updates h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

.update-card {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    margin-bottom: 2rem;
    border-left: 5px solid var(--accent-orange);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.update-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.update-date {
    flex-shrink: 0;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-red));
    border-radius: 15px;
    color: white;
    min-width: 80px;
}

.date-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.date-month {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.update-content {
    flex: 1;
}

.update-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.update-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

.update-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Project Impact */
.project-impact {
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-orange) 100%);
    border-radius: 20px;
    color: white;
}

.project-impact h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

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

.impact-card {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.impact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.impact-card h4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.impact-card p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-orange) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-cta.primary {
    background: white;
    color: var(--primary-blue);
}

.btn-cta.primary:hover {
    background: var(--accent-orange);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-cta.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta.secondary:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .project-header {
        flex-direction: column;
    }

    .hero-stats {
        gap: 2.5rem;
    }

    .update-card {
        flex-direction: column;
        gap: 1.5rem;
    }

    .update-date {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 6rem 0 4rem;
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .main-image {
        height: 300px;
    }

    .project-content {
        padding: 2rem 1.5rem;
    }

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

    .project-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .project-video,
    .project-progress {
        padding: 1.5rem;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .stat-number {
        font-size: 2.5rem;
    }

    .project-description h3 {
        font-size: 1.4rem;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }
}