/* ════════════════════════════════════════════════════════
   PROJECTS.CSS — Cronos Universe Styles
   ════════════════════════════════════════════════════════ */

.projects-section {
    padding: 100px 4% 120px;
    background: var(--bg-color);
    position: relative;
    z-index: 10;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* ─── FILTER CONTROLS ─── */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-logo);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: none;
    /* Uses custom JS cursor */
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--text-main);
    border-color: rgba(16, 212, 118, 0.3);
    background: rgba(16, 212, 118, 0.05);
}

.filter-btn.active {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(16, 212, 118, 0.4);
}

/* ─── PROJECTS GRID ─── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.project-card {
    background: rgba(20, 20, 24, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: top 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    top: 0;
    cursor: none;
    display: block;
    text-decoration: none;
}

.project-card:hover {
    top: -10px;
    border-color: rgba(16, 212, 118, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 212, 118, 0.1);
}

/* Image Wrapper */
.project-img-wrapper {
    width: 100%;
    height: 260px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-logo);
    letter-spacing: 2px;
}

.project-card:hover .placeholder-img {
    color: rgba(16, 212, 118, 0.4);
    transform: scale(1.05);
    transition: all 0.5s ease;
}

/* Tag Badge */
.project-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(16, 212, 118, 0.3);
    color: var(--accent-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/* Info Box */
.project-info {
    padding: 30px;
}

.project-title {
    font-family: var(--font-logo);
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(16, 212, 118, 0.2);
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* ─── LIGHTBOX OVERLAY ─── */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>') 16 16, pointer;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 212, 118, 0.15);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    font-family: var(--font-logo);
    line-height: 1;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

/* Ensure project images fit cleanly */
.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}