/* ===== projects.css ===== */
/* Projects page specific styles – filterable grid, lightbox, and animations */

/* ---------- FILTER BAR ---------- */
.filter-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: var(--light-gray);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-dark);
}

.filter-btn:hover {
    background: var(--gold);
    color: var(--deep-blue);
}

.filter-btn.active {
    background: var(--gold);
    color: var(--deep-blue);
}

.filter-search {
    display: flex;
    gap: 0.5rem;
}

.filter-search input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 2rem;
    font-family: inherit;
    transition: var(--transition);
}

.filter-search input:focus {
    outline: none;
    border-color: var(--gold);
}

.filter-search .btn-outline {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.result-count {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

/* ---------- PROJECTS GRID ---------- */
.projects-grid-section {
    background: var(--white);
}

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

.project-item {
    background: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.2rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.location {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.location span {
    font-size: 1rem;
}

.description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: var(--card-radius);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 1rem;
    color: var(--white);
    text-align: center;
    font-size: 1rem;
    padding: 0 1rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--gold);
}

/* ---------- NO RESULTS ---------- */
.no-results {
    text-align: center;
    padding: 3rem;
    background: var(--light-gray);
    border-radius: var(--card-radius);
    margin-top: 2rem;
    display: none;
}

.no-results p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.no-results .btn {
    background: var(--gold);
    color: var(--deep-blue);
    border: none;
}

.no-results .btn:hover {
    background: var(--gold-hover);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-tabs {
        justify-content: center;
    }
    .filter-search {
        justify-content: center;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .project-item img {
        height: 200px;
    }
}