/* Project Layout Grid */
.project-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    min-height: 400px;
    padding-bottom: 2rem;
}

/* Base Project Card Styles */
.project-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    background: white;
    margin-bottom: 2rem;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Featured Project (Main Card) */
.main-card {
    grid-column: 1 / -1;
    grid-row: auto;
}

.main-card-image {
    width: 100%;
    height: 100%;
    background: #fbfbfb;
    margin-bottom: 1rem;
    border-radius: 4px;
    object-fit: cover;
    background: #ede7dc;
}

/* Side Project Cards */
.side-card {
    /* Inherits from .project-card - no additional styles needed */
    position: relative;
}

.side-card-image {
    width: 100%;
    background: #5768ff;
    margin-bottom: 1rem;
    border-radius: 4px;
    object-fit: cover;
}

/* Project Content Styles */
.project-title {
    font-family: "filson-pro", sans-serif;
    font-weight: 500;
    color: #5768ff;
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.project-description {
    font-family: "new-order", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #0f1021;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Specific title and description classes for backward compatibility */
.main-card-title,
.side-card-title {
    font-family: "filson-pro", sans-serif;
    font-weight: 500;
    color: #5768ff;
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.main-card-description,
.side-card-description {
    font-family: "new-order", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #0f1021;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Project Tags Styles */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    background: #dddddd;
    color: #0f1021;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-family: "new-order", sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.7rem;
}



/* Responsive Design for Project Cards */
@media screen and (max-width: 768px) {
    .project-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 1.5rem;
    }
    
    .main-card {
        grid-column: 1;
        grid-row: auto;
    }
    
    .side-card {
        grid-column: 1;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .main-card-image {
        height: 100%;
    }
    
    .side-card-image {
        height: 100%;
    }
}