/* =============================================
   PROJECTS SECTION — Interactive List
   ============================================= */

.projects {
    background: var(--dark-bg);
    padding: 4rem 0 2rem 0;
    position: relative;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.projects-header h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin: 0;
    line-height: 1;
    background: none;
    -webkit-text-fill-color: var(--text-light);
    color: var(--text-light);
}

/* Filter buttons */
.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--text-light);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--text-light);
    color: var(--dark-bg);
    border-color: var(--text-light);
}

/* Project List */
.project-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.project-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: var(--transition);
}

.project-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    text-decoration: none;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

/* Hover background fill */
.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 168, 48, 0.03);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.project-item:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

/* List Item Content */
.project-title-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.project-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    transition: transform 0.4s ease, color 0.4s ease;
}

.project-item:hover .project-title {
    transform: translateX(20px);
    color: var(--primary-light);
}

.project-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.project-category {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-roles {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Floating Image Reveal (Cursor Follower) */
.project-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 250px;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) rotate(-5deg);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.project-cursor-follower.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.project-cursor-follower img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-cursor-follower img.active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .project-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem 0;
    }
    
    .project-meta {
        align-items: flex-start;
    }
    
    .project-item:hover .project-title {
        transform: translateX(10px);
    }
    
    /* Hide floating image on mobile, maybe show static thumbnail instead */
    .project-cursor-follower {
        display: none !important;
    }
}