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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #e8eaed 0%, #d3d6da 50%, #c4c7cc 100%);
    color: #000;
    line-height: 1.5;
    overflow-x: hidden;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    z-index: 1000;
    border-bottom: 1px solid #000;
    gap: 2rem;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.search-container {
    flex: 1;
    max-width: 400px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#search-input {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    background: #f5f5f5;
    color: #000;
    font-family: inherit;
    transition: all 0.2s;
}

#search-input:focus {
    outline: none;
    border-color: #000;
    background: #fff;
}

#search-input::placeholder {
    color: #999;
}

.clear-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
}

.clear-btn:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    white-space: nowrap;
}

.nav-links a {
    color: #000;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.5;
}

.hero {
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 3rem 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    max-width: 1400px;
}

.hero h1 span {
    display: block;
    opacity: 0.3;
}

.projects {
    padding: 6rem 3rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #000;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    min-height: 1.5rem;
}

.active-filter-tag {
    font-size: 0.85rem;
    color: #fff;
    background: #000;
    padding: 0.4rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.active-filter-tag .remove {
    cursor: pointer;
    font-weight: bold;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.active-filter-tag .remove:hover {
    opacity: 1;
}

.project {
    margin-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 2fr 100px;
    gap: 3rem;
    align-items: start;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.project:hover {
    opacity: 0.6;
}

.project.hidden {
    display: none;
}

.project-number {
    font-size: 1rem;
    color: #999;
    font-weight: 500;
}

.project-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.project-type {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-description {
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-height: 4.5rem;
    overflow: hidden;
}

.tag {
    font-size: 0.85rem;
    color: #666;
    padding: 0.25rem 0;
    border-bottom: 1px solid #666;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.tag:hover {
    color: #000;
    border-bottom-color: #000;
}

.tag.active {
    color: #000;
    background: #f0f0f0;
    border-bottom: 2px solid #000;
    padding: 0.25rem 0.5rem;
}

.project-status {
    text-align: right;
    align-self: center;
}

.status {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #000;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

footer {
    padding: 6rem 3rem 3rem;
    border-top: 1px solid #000;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.footer-left h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.footer-left p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.footer-links a {
    color: #000;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.5;
}

.footer-bottom {
    max-width: 1400px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    color: #999;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .search-container {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
    }
    
    .project {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-status {
        text-align: left;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1.5rem 1.5rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .hero {
        min-height: 30vh;
        padding: 8rem 1.5rem 2rem;
    }
    
    .projects {
        padding: 4rem 1.5rem 6rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .project-info h3 {
        font-size: 1.5rem;
    }
    
    footer {
        padding: 4rem 1.5rem 2rem;
    }
    
    .footer-left h2 {
        font-size: 2rem;
    }
    
    .footer-links a {
        font-size: 1.2rem;
    }
}
