/* --- Interactive Network / Projects Component --- */
.projects-component {
    width: 100%;
    min-height: 100dvh;
    position: relative;
    display: flex;
    flex-direction: column;
    perspective: 1000px;
    padding: 2rem 0 2rem 0;
}

.projects-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1;
    justify-content: center;
    position: relative;
    transform-style: preserve-3d;
}

.project-item-interactive {
    width: 100%;
    text-align: center;
    cursor: pointer;
    margin-bottom: 1.5rem;
    position: relative;
    transform-style: preserve-3d;
    /* GPU promotion handled by GSAP */
}

.project-title-container {
    position: relative;
    display: inline-block;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* GPU promotion handled by GSAP */
}

.project-title {
    font-family: var(--font-primary);
    font-weight: 500;
    letter-spacing: -0.03em;
    margin: 0.5rem 0;
    color: var(--color-text-main);
}

.hover-indicator {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--color-bg-dark);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

.hover-indicator.left {
    left: -20px;
}

.hover-indicator.right {
    right: -20px;
}

.project-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1rem;
    margin: 0 auto;
    pointer-events: none;
    transform-style: preserve-3d;
    max-width: 1000px;
    /* GPU promotion handled by GSAP */
}

.project-details {
    width: 25%;
    text-align: left;
    font-size: var(--text-size-sm);
    letter-spacing: 0.05rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.project-details .line-wrapper {
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.project-details.right {
    text-align: right;
}

.detail-label {
    margin-bottom: 0.25rem;
    font-size: var(--text-size-md);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

.detail-desc {
    margin-top: 0.5rem;
    line-height: 1.4;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--color-text-main);
    text-transform: uppercase;
    font-size: var(--text-size-xs);
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

.project-link:hover {
    color: var(--color-bg-dark);
}

.project-image {
    width: 40%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    /* GPU promotion handled by GSAP */
}

.image-wrapper img:first-child {
    opacity: 1;
}

/* Page Hero Positions */
.projects-header-pos {
    grid-area: 1 / 1 / 2 / 7;
    position: relative;
    top: -1rem;
}

.projects-txt-pos {
    grid-area: 1 / 7 / 2 / 13;
}

/* Projects Page Hero Responsive */
@media screen and (max-width: 991px) {

    .projects-header-pos,
    .projects-txt-pos,
    .projects-smallprint-pos {
        grid-area: auto;
        grid-column: 1 / -1;
        width: 100%;
        margin-bottom: 2rem;
    }
}

.projects-smallprint-pos {
    grid-area: 1 / 1 / 2 / 4;
    align-self: flex-end;
    max-width: 26ch;
}

@media screen and (max-width: 767px) {
    .project-content {
        flex-direction: column;
        gap: 2rem;
    }

    .project-details,
    .project-details.right {
        width: 100%;
        text-align: center;
    }

    .project-image {
        width: 100%;
    }

    .project-title {
        font-size: var(--heading-size-s);
    }
}