/*
    assets/css/projects.css
    Proyectos ELANGIT.

    Diseño:
    - Cintas grandes y transparentes.
    - Logos protagonistas.
    - Sin textos descriptivos.
    - Interacción limpia y elegante.
*/


/* =====================================================
   PÁGINA
===================================================== */

.projects-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at 12% 14%,
            rgba(0, 174, 255, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 86%,
            rgba(112, 85, 255, 0.07),
            transparent 32%
        ),
        #020611;

    color: #ffffff;
}


/* =====================================================
   CONTENIDO
===================================================== */

.projects-main {
    min-height: 100vh;
    padding:
        calc(var(--header-height, 128px) + 70px)
        0
        100px;
}

.projects-gallery {
    width: min(calc(100% - 80px), 1500px);
    margin: 0 auto;

    display: grid;
    gap: 18px;
}


/* =====================================================
   CINTAS
===================================================== */

.project-strip {
    position: relative;
    min-height: 150px;
    padding: 22px clamp(28px, 4vw, 64px);

    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 90px;
    align-items: center;
    gap: 24px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.09);
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.022)
        );

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    color: #ffffff;
    text-decoration: none;

    opacity: 0;
    transform: translateY(26px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}

.project-strip::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.10),
            transparent 36%
        );

    opacity: 0;
    transform: translateX(-18%);
    transition:
        opacity 0.4s ease,
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);

    pointer-events: none;
}

.project-strip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-strip:hover,
.project-strip:focus-visible {
    border-color: rgba(255, 255, 255, 0.22);

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.105),
            rgba(255, 255, 255, 0.038)
        );

    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    transform: translateY(-3px);
}

.project-strip:hover::before,
.project-strip:focus-visible::before {
    opacity: 1;
    transform: translateX(0);
}


/* =====================================================
   NÚMERO
===================================================== */

.project-strip__number {
    position: relative;
    z-index: 2;

    color: rgba(255, 255, 255, 0.32);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.22em;

    transition: color 0.3s ease;
}

.project-strip:hover .project-strip__number,
.project-strip:focus-visible .project-strip__number {
    color: rgba(255, 255, 255, 0.68);
}


/* =====================================================
   LOGO
===================================================== */

.project-strip__logo {
    position: relative;
    z-index: 2;

    min-width: 0;
    height: 92px;

    display: flex;
    align-items: center;
}

.project-strip__logo img {
    display: block;

    width: min(100%, 440px);
    max-width: 440px;
    height: 100%;
    max-height: 88px;

    object-fit: contain;
    object-position: left center;

    filter: none;
    opacity: 1;

    transition:
        filter 0.35s ease,
        opacity 0.35s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-strip:hover .project-strip__logo img,
.project-strip:focus-visible .project-strip__logo img {
    filter: grayscale(1);
    opacity: 0.78;
    transform: translateX(12px) scale(1.015);
}


/* =====================================================
   FLECHA
===================================================== */

.project-strip__arrow {
    position: relative;
    z-index: 2;

    justify-self: end;

    width: 62px;
    height: 1px;

    background: rgba(255, 255, 255, 0.30);

    transition:
        width 0.35s ease,
        background 0.35s ease;
}

.project-strip__arrow::after {
    content: "";

    position: absolute;
    right: 0;
    top: 50%;

    width: 8px;
    height: 8px;

    border-top: 1px solid rgba(255, 255, 255, 0.52);
    border-right: 1px solid rgba(255, 255, 255, 0.52);

    transform: translateY(-50%) rotate(45deg);
}

.project-strip:hover .project-strip__arrow,
.project-strip:focus-visible .project-strip__arrow {
    width: 82px;
    background: rgba(255, 255, 255, 0.72);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1050px) {

    .projects-gallery {
        width: min(calc(100% - 48px), 1000px);
    }

    .project-strip {
        min-height: 132px;
        grid-template-columns: 52px minmax(0, 1fr) 68px;
    }

    .project-strip__logo {
        height: 78px;
    }

    .project-strip__logo img {
        max-width: 360px;
        max-height: 74px;
    }

}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 720px) {

    .projects-main {
        padding:
            calc(var(--header-height, 96px) + 44px)
            0
            72px;
    }

    .projects-gallery {
        width: min(calc(100% - 28px), 680px);
        gap: 12px;
    }

    .project-strip {
        min-height: 112px;
        padding: 18px 16px;

        grid-template-columns: 32px minmax(0, 1fr) 36px;
        gap: 12px;

        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .project-strip__number {
        font-size: 0.56rem;
    }

    .project-strip__logo {
        height: 62px;
    }

    .project-strip__logo img {
        width: min(100%, 250px);
        max-width: 250px;
        max-height: 58px;
    }

    .project-strip__arrow {
        width: 28px;
    }

    .project-strip:hover .project-strip__arrow,
    .project-strip:focus-visible .project-strip__arrow {
        width: 34px;
    }

    .project-strip:hover .project-strip__logo img,
    .project-strip:focus-visible .project-strip__logo img {
        transform: translateX(5px) scale(1.01);
    }

}


/* =====================================================
   REDUCCIÓN DE MOVIMIENTO
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .project-strip,
    .project-strip::before,
    .project-strip__logo img,
    .project-strip__arrow {
        transition: none;
    }

    .project-strip {
        opacity: 1;
        transform: none;
    }

}
