/* Grid */
.projects-wrapper {
    max-width: 1200px;
    margin: 0 auto 120px;
    padding: 0 40px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Card */
.project-card {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
}

/* Overlay */
.project-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: background 0.3s ease;
}

.project-card:hover .overlay {
    background: rgba(0,0,0,0.6);
}

.overlay h2 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

/* Mobile */
@media (max-width: 768px) {
    .projects-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .projects-header h1 {
        font-size: 2.4rem;
        letter-spacing: 4px;
    }

    .project-card {
        height: 320px;
    }
}

/* Modal */
.canva-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.canva-modal.active {
    display: flex;
}

.canva-content {
    position: relative;
    width: 90%;
    height: 85%;
}

.canva-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 3rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}
