/* projects.css */

:root {
    --color-background: 30, 39, 56;  /* #1e2738 */
    --color-text: 165, 179, 206;  /* #a5b3ce */
    --color-heading: 255, 255, 255;a/* projects.css */

    /* ... (keep the existing CSS up to the .project-card styles) ... */
    
    .project-card {
        display: flex;
        flex-direction: column;
        border-radius: 0.5rem;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .project-card:hover {
        transform: translateY(-0.25rem);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
    
    .thumbnail {
        position: relative;
        width: 100%;
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
        overflow: hidden;
    }
    
    .thumbnail::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .project-info {
        padding: 1rem;
        flex: 1;
        margin-top:-27px;
        margin-bottom: -27px;
    }
    
    /* ... (keep the rest of the existing CSS) ... */
    
    @media (min-width: 768px) {
        .project-card {
            flex-direction: row;
            align-items: stretch;
        }
    
        .thumbnail {
            width: 40%;
            padding-top: 0;
            align-self: stretch;
        }
    
        .project-info {
            width: 60%;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
    }
    --color-primary-50: 239, 246, 255;
    --color-primary-100: 219, 234, 254;
    --color-primary-200: 191, 219, 254;
    --color-primary-300: 147, 197, 253;
    --color-primary-400: 96, 165, 250;
    --color-primary-500: 59, 130, 246;
    --color-primary-600: 37, 99, 235;
    --color-primary-700: 29, 78, 216;
    --color-primary-800: 30, 64, 175;
    --color-primary-900: 30, 58, 138;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: rgb(var(--color-text));
    background-color: #19202e;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    text-align: center;
    margin: 2.5rem 0;
}

h1, h2, h3, h4, h5, h6 {
    color: rgb(var(--color-heading));
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: rgb(var(--color-primary-400));
    border: 1px solid rgb(var(--color-primary-400));
    border-radius: 0.25rem;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    color: #9bc2f2;
    border-color: #9bc2f2;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: rgb(var(--color-background));
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-info {
    padding: 1rem;
    flex: 1;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(var(--color-heading));
    margin-bottom: 0.5rem;
}

.project-meta {
    font-size: 0.875rem;
    color: rgba(var(--color-text), 0.8);
    margin-bottom: 0.5rem;
}

.separator {
    color: rgb(var(--color-primary-500));
    margin: 0 0.5rem;
}

.project-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.category {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(var(--color-primary-300));
    background-color: rgba(var(--color-primary-700), 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.project-description {
    font-size: 1rem;
    color: rgba(var(--color-text), 0.9);
}

@media (min-width: 768px) {
    .project-card {
        flex-direction: row;
    }

    .thumbnail {
        width: 300px;
        height: auto;
        min-height: 100%;
    }

    .project-info {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}