/* === PROJECTEN.CSS CLEAN === */

/* === Project Grid === */
.project-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.project-tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    display: block;
}

.project-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.3s;
    background-color: #ccc;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: black;
    padding: 1rem;
    opacity: 0;
    transition: 0.3s;
    align-content: center;
}

.header-center {
    padding-top: 1rem;
}

.project-tile:hover .project-img {
    filter: brightness(0.6);
}

.project-tile:hover .project-overlay {
    opacity: 1;
}

.project-overlay h2 {
    font-size: 1rem;
    margin: 0 0 0.2rem;
    letter-spacing: 1px !important;
}

.project-overlay p {
    font-size: 0.9rem;
    margin: 0;
}

/* === Filters === */
.projecten-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: 0.3s;
    border: none;
}

.filter-btn:nth-child(2) {
    position: relative;
}

.filter-btn:nth-child(2)::before,
.filter-btn:nth-child(2)::after {
    content: '';
    position: absolute;
    top: 25%;
    /* Adjust this to change vertical position */
    height: 50%;
    /* Shorter line */
    width: 2px;
    background: black;
}

.filter-btn:nth-child(2)::before {
    left: 0;
}

.filter-btn:nth-child(2)::after {
    right: 0;
}


.filter-btn:hover,
.filter-btn.active {
    background: #333;
    color: #fff;
}

/* === Menu Overlay === */
.menu-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.menu-content {
    display: flex;
    width: 80%;
    max-width: 1000px;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    height: 38vh;
}

.menu-links {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.menu-links a {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 4rem;
    padding: 0 0.5rem;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 4px !important;
}

.menu-links a:hover {
    color: #8e9090;
}

.menu-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-image img {
    max-height: 70vh;
    max-width: 100%;
    object-fit: contain;
}

@media screen and (max-width: 1024px) {
    .menu-content {
        flex-direction: row;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }

    .menu-links a {
        font-size: 2.5rem;
        justify-content: center;
    }

    .menu-image img {
        max-height: 40vh;
    }

    .project-overlay {
        opacity: 1;
        color: white;
        align-content: end;
        background: rgba(0, 0, 0, 0.6);
        height: auto;
    }

    .project-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .project-overlay p {
        display: none;
    }

    .project-overlay h2 {
        font-size: 0.7rem;
        margin: 0 0 0.2rem;
    }
}

@media screen and (max-width: 768px) {
    .menu-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .menu-links a {
        font-size: 2rem;
        padding: 1rem 0;
    }

    .menu-image img {
        max-height: 30vh;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-sidebar {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.75rem;
        padding: 1rem 0;
        justify-content: flex-start;
        align-items: center;
    }

    .project-sidebar .thumb img {
        width: 90px;
        height: 90px;
        flex-shrink: 0;
    }
}

@media screen and (min-width: 769px) {
    .header-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }
}

.projecten-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: #fff;
    /* make sure it's not transparent */
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* optional */
}

@media screen and (min-width: 1025px) {
    .project-tile:hover .project-overlay {
        /* background: rgba(255, 255, 255, 0.8); */
        background: white;
    }
}