/* -------------------------------------------------------------------------- */
/*	Projects Section - Awwwards Style
/* -------------------------------------------------------------------------- */

.aw-projects {
    padding: 8rem 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

/* Header */
.aw-projects__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.aw-projects__title {
    font-family: var(--aw-font-sans);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--aw-color-dark);
    line-height: 1;
    margin: 0;
    letter-spacing: -0.02em;
}

.aw-projects__link {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--aw-color-dark);
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(26, 11, 10, 0.2);
    transition: all 0.3s ease;
}

.aw-projects__link:hover {
    color: var(--aw-color-primary);
    border-color: var(--aw-color-primary);
}

/* List Layout */
.aw-projects-list-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.aw-projects-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.aw-projects-item {
    border-bottom: 1px solid rgba(26, 11, 10, 0.1);
    transition: opacity 0.3s;
}

/* Hover effect on siblings: dim others */
.aw-projects-list:hover .aw-projects-item {
    opacity: 0.4;
}

.aw-projects-list:hover .aw-projects-item:hover {
    opacity: 1;
}

.aw-projects-item__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 0;
    text-decoration: none;
    color: var(--aw-color-dark);
    position: relative;
    z-index: 2;
    /* Above image */
}

.aw-projects-item__title {
    font-family: var(--aw-font-sans);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.aw-projects-item__cat {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

/* Interaction */
.aw-projects-item__link:hover .aw-projects-item__title {
    transform: translateX(10px);
    color: var(--aw-color-primary);
}

.aw-projects-item__link:hover .aw-projects-item__cat {
    transform: translateX(-10px);
    opacity: 1;
}

/* Floating Image Reveal */
.aw-project-reveal {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 400px;
    pointer-events: none;
    z-index: 1;
    /* Below text link z-index 2 if overlap, but normally we want float on top? 
                   Actually for this effect, usually it floats on top of content but pointer events none.
                   Let's try z-index 10 but pointer-events none so clicks go through. 
                   Wait, if it's strictly following cursor it might obstruct view. 
                   Common pattern is z-index 1 (background) or strictly offset cursor.
                   Let's use z-index 10 with mix-blend-mode or just offset.
                   Reverting to z-index 5.
                */
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    /* We will animate top/left via JS for performance */
}

.aw-project-reveal.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.aw-project-reveal__inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .aw-projects {
        padding: 5rem 0;
    }

    .aw-projects__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .aw-projects-item__link {
        padding: 2rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .aw-projects-list:hover .aw-projects-item {
        opacity: 1;
        /* Disable hover dim on mobile */
    }

    /* Disable reveal on mobile */
    .aw-project-reveal {
        display: none !important;
    }
}