@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Roboto+Slab:wght@700&display=swap');

:root{
    --color-primary: #fca311;
    --color-secondary: #000000;
    --color-text-primary: #000;
    --color-text-secondary: #fff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-primary);
    color: var(--color-text-primary);
    margin: 0;
    padding: 40px;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 960px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid #000;
    box-shadow: 0 3px 0 0 rgba(0, 0, 0, 0.1);
}

header h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 2.8em;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    color: #000000; /* Black paragraph text */
}

.submission-context {
    background-color: var(--color-secondary);
    color: var(--color-text-secondary);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 50px;
    text-align: center;
}

.submission-context h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
}

.submission-context p {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 15px auto;
}

.submission-context a {
    color: #fca311;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.submission-context a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--color-secondary);
    color: var(--color-text-secondary);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.project-card img {
    width: 100%;
    /* height: 180px;  */
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #333;
}

.project-card h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5em;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 15px;
}

.project-card p {
    font-size: 1em;
    line-height: 1.5;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-card a {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-primary);
    color: var(--color-text-primary);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;

    & .arrow{
        display: grid;
        place-items: center;
        scale: 0;
        transform-origin: -30% 50%;
        opacity: 0;
        transition: scale 0.3s, opacity 0.3s;
        font-size: 1.5em;
        vertical-align: middle;
        line-height: 0.5lh;
    }
    &:hover .arrow{
        scale: 1;
        opacity: 1;
    }
}

.project-card a:hover {
    background-color: #e0e0e0;
}

.by {
    font-size: 0.5em;
    font-style: normal;
    /* text-decoration: none; */
    color: inherit;
    text-wrap: nowrap;
    &:hover{
        font-style: italic;
    }
}


