/* --- Foundation Page Specific Styles --- */

/* Hero Section Background */
.hero-foundation {
    background: url('../Images/foundation-hero.jpg') no-repeat center center/cover;
    background-color: var(--nav-blue);
}

/* Foundation Projects Section */
.foundation-projects {
    padding: 60px 20px;
    background: #e9ecef;
    text-align: center;
}

.foundation-projects h2 {
    color: var(--nav-blue);
    margin-bottom: 40px;
    font-size: 2rem;
}

/* Gallery Layout */
.project-gallery {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* Project Card */
.project-card {
    background: var(--white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    width: 320px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover Lift */
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Image Box */
.image-box {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 220px;
}

/* Image */
.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Caption Overlay */
.image-caption {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-caption h3 {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.image-caption p {
    font-size: 0.95rem;
    color: #f1f1f1;
}

/* ✅ Hover Effects */
.project-card:hover img {
    transform: scale(1.12);
}

.project-card:hover .image-caption {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-card {
        width: 45%;
    }

    .project-gallery {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 4%;
    }

    nav ul {
        gap: 12px;
        flex-wrap: wrap;
    }

    .hero {
        min-height: 70vh;
        margin-top: 65px;
    }

    .overlay h1 {
        font-size: 28px;
    }

    .overlay p {
        font-size: 14px;
    }

    main {
        padding: 40px 4%;
    }

    .foundation-projects h2 {
        font-size: 24px;
    }

    .project-gallery {
        gap: 15px;
    }

    .project-card {
        width: 100%;
        padding: 15px;
    }

    .project-card h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 8px 3%;
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .hero {
        min-height: 50vh;
        margin-top: 110px;
    }

    .overlay h1 {
        font-size: 20px;
    }

    .overlay p {
        font-size: 12px;
    }

    main {
        padding: 30px 3%;
    }

    .foundation-projects h2 {
        font-size: 18px;
    }

    .project-gallery {
        gap: 10px;
        flex-direction: column;
    }

    .project-card {
        width: 100%;
        padding: 12px;
    }

    .project-card h3 {
        font-size: 14px;
    }

    .project-card p {
        font-size: 12px;
    }
}
