/* css/works.css */

.works-header {
    padding-top: 150px;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.works-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(to bottom right, #ffffff 0%, var(--gold-light) 60%, var(--gold-main) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.works-subtitle {
    font-family: 'Inter', monospace;
    font-size: 1.1rem;
    color: var(--gold-main);
    margin-top: 1rem;
}

/* Category Navigation (Optional for future use) */
.works-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--gold-main);
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.05);
}

/* The Grid (Reusing the bento-card aesthetic) */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.project-card {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 240px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.project-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(80%) contrast(1.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.project-card:hover .project-icon {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.05);
}

.project-info {
    padding: 0 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
    flex-wrap: wrap;
    padding-top: 1.5rem;
}

.project-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-pure);
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.02), rgba(0,0,0,0.4));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.project-links a i {
    font-size: 1rem;
    color: var(--text-muted);
    transition: color 0.4s;
}

.project-links a:hover {
    border-color: var(--gold-main);
    color: var(--bg-deep);
    background: var(--gold-main);
    box-shadow: 0 5px 20px -5px var(--gold-main);
    transform: translateY(-3px);
}

.project-links a:hover i {
    color: var(--bg-deep);
}