* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #2d2d2d;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #ffffff;
    padding: 60px 0 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid #e5e7eb;
}

header h1 {
    font-size: 3em;
    color: #111827;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -1px;
}

.subtitle {
    color: #6b7280;
    font-size: 1.25em;
    margin-bottom: 30px;
    font-weight: 400;
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.controls label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#viewSelect {
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9em;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #111827;
    font-weight: 500;
}

#viewSelect:hover {
    border-color: #111827;
}

#viewSelect:focus {
    outline: none;
    border-color: #111827;
}

.topic-group {
    margin-bottom: 70px;
}

.topic-group h2 {
    color: #ffffff;
    font-size: 2em;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.project-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.project-image {
    width: 100%;
    height: 240px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 3em;
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card > *:not(.project-image):not(.project-link) {
    padding-left: 30px;
    padding-right: 30px;
}

.project-title {
    font-size: 1.35em;
    color: #111827;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.project-description {
    color: #4b5563;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.7;
    font-size: 0.95em;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 25px;
}

.language-tag, .date-tag {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.language-tag {
    background: #f3f4f6;
    color: #374151;
}

.date-tag {
    background: #f3f4f6;
    color: #6b7280;
}

.project-link {
    display: block;
    margin: 0;
    padding: 16px 30px;
    background: #111827;
    color: white;
    text-decoration: none;
    transition: background 0.2s ease;
    text-align: center;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.3px;
}

.project-link:hover {
    background: #000000;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    header {
        padding: 40px 0 30px;
    }

    header h1 {
        font-size: 2.2em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    #viewSelect {
        width: 100%;
    }

    .project-card > *:not(.project-image):not(.project-link) {
        padding-left: 20px;
        padding-right: 20px;
    }
}
