/* =========================================================
   EXPERIÊNCIA EM GRANDES OPERAÇÕES
   Wupwui Softwares
========================================================= */

.experience-section {
    position: relative;
    overflow: hidden;
    padding: 76px 0;
    background:
        radial-gradient(circle at 16% 18%, rgba(242, 183, 40, .08), transparent 26%),
        radial-gradient(circle at 78% 12%, rgba(15, 23, 42, .045), transparent 26%),
        linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
}

.experience-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            145deg,
            rgba(15, 23, 42, .026) 0 1px,
            transparent 1px 18px
        );
    pointer-events: none;
}

.experience-section .container {
    position: relative;
    z-index: 1;
}

/* CONTAINER PRINCIPAL */

.experience-container {
    display: block;
}

/* CABEÇALHO EM 2 COLUNAS */

.experience-head {
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(320px, 1fr);
    gap: 56px;
    align-items: end;
    margin-bottom: 42px;
}

.experience-title h2 {
    max-width: 430px;
    margin: 0;
    color: #111827;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -1.6px;
    font-weight: 950;
}

.experience-title h2 span {
    color: var(--gold-2);
}

.experience-intro {
    max-width: 680px;
    padding-bottom: 6px;
}

.experience-intro p {
    margin: 0 0 18px;
    color: #50627a;
    font-size: 18px;
    line-height: 1.68;
}

.experience-intro p:last-child {
    margin-bottom: 0;
}

/* LISTA DE CARDS */

.experience-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

/* CARD */

.experience-item {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    align-items: center;
    min-height: 292px;
    padding: 22px;
    border-radius: 24px;
    background:
        linear-gradient(145deg, #ffffff 0%, #f8f9fb 100%);
    border: 1px solid rgba(15, 23, 42, .09);
    box-shadow:
        0 16px 36px rgba(15, 23, 42, .075),
        inset 0 1px 0 rgba(255,255,255,.85);
    transition:
        transform .30s ease,
        box-shadow .30s ease,
        border-color .30s ease,
        background .30s ease;
}

.experience-item::before {
    content: "";
    position: absolute;
    inset: -18%;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 0%, rgba(242, 183, 40, .13), transparent 34%),
        linear-gradient(
            128deg,
            transparent 22%,
            rgba(255, 207, 72, 0) 30%,
            rgba(255, 207, 72, .10) 31%,
            rgba(255, 207, 72, .025) 32%,
            transparent 37%
        ),
        linear-gradient(
            145deg,
            transparent 56%,
            rgba(242, 183, 40, 0) 63%,
            rgba(242, 183, 40, .09) 64%,
            rgba(242, 183, 40, .025) 65%,
            transparent 70%
        );
    background-repeat: no-repeat;
    background-size: 100% 100%, 180% 180%, 170% 170%;
    background-position: 0 0, -230px 10px, -150px 50px;
    transition: opacity .30s ease;
}

.experience-item::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    z-index: 1;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, transparent, rgba(242, 183, 40, .85), transparent);
    opacity: 0;
    transition: opacity .30s ease;
}

.experience-item:hover {
    transform: translateY(-8px);
    border-color: rgba(242, 183, 40, .42);
    background:
        linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    box-shadow:
        0 28px 58px rgba(15, 23, 42, .14),
        0 0 0 1px rgba(242, 183, 40, .08),
        inset 0 1px 0 rgba(255,255,255,.90);
}

.experience-item:hover::before {
    opacity: 1;
    animation: experienceGoldLinesFlow 5.5s linear infinite;
}

.experience-item:hover::after {
    opacity: 1;
}

.experience-item > * {
    position: relative;
    z-index: 2;
}

/* IMAGEM / CARTAZ */

.experience-image-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    text-align: inherit;
}

.experience-image-wrap {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 19px;
    background:
        linear-gradient(145deg, #eef1f5 0%, #ffffff 100%);
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow:
        0 12px 26px rgba(15, 23, 42, .10),
        inset 0 1px 0 rgba(255,255,255,.75);
}

.experience-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: grayscale(1) contrast(1.04);
    transform: scale(.98);
    transition:
        filter .35s ease,
        transform .35s ease,
        opacity .35s ease;
}

.experience-item:hover .experience-image-wrap img {
    filter: grayscale(0) contrast(1.04) saturate(1.08);
    transform: scale(1.02);
}

/* CONTEÚDO */

.experience-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.experience-content h3 {
    margin: 0 0 13px;
    color: #111827;
    font-size: 25px;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -.55px;
}

.experience-content p {
    margin: 0;
    color: #50627a;
    font-size: 15.5px;
    line-height: 1.68;
}

/* MODAL DE IMAGEM */

body.modal-open {
    overflow: hidden;
}

.experience-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.experience-modal.open {
    display: flex;
}

.experience-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, .78);
    backdrop-filter: blur(8px);
}

.experience-modal-box {
    position: relative;
    z-index: 2;
    width: min(720px, 96vw);
    max-height: 92vh;
    overflow: hidden;
    border-radius: 24px;
    background:
        linear-gradient(145deg, #ffffff 0%, #f4f6fa 100%);
    border: 1px solid rgba(255,255,255,.38);
    box-shadow:
        0 34px 90px rgba(0,0,0,.38),
        inset 0 1px 0 rgba(255,255,255,.82);
}

.experience-modal-header {
    padding: 18px 64px 16px 22px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.experience-modal-header h3 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.experience-modal-close {
    position: absolute;
    top: 13px;
    right: 15px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, .08);
    color: #111827;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition:
        background .25s ease,
        transform .25s ease;
}

.experience-modal-close:hover {
    background: rgba(242, 183, 40, .26);
    transform: rotate(90deg);
}

.experience-modal-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(92vh - 72px);
    padding: 20px;
    background:
        radial-gradient(circle at 50% 0%, rgba(242, 183, 40, .12), transparent 36%),
        #0f172a;
}

.experience-modal-image-wrap img {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 112px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.32);
}

/* ANIMAÇÃO */

@keyframes experienceGoldLinesFlow {
    0% {
        background-position:
            0 0,
            -230px 10px,
            -150px 50px;
    }

    50% {
        background-position:
            0 0,
            -40px -8px,
            30px 10px;
    }

    100% {
        background-position:
            0 0,
            170px -22px,
            190px -28px;
    }
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 1180px) {
    .experience-head {
        grid-template-columns: 1fr;
        gap: 22px;
        align-items: start;
    }

    .experience-title h2 {
        max-width: 620px;
    }

    .experience-intro {
        max-width: 860px;
        padding-bottom: 0;
    }

    .experience-item {
        grid-template-columns: 170px 1fr;
        min-height: 270px;
    }
}

@media (max-width: 980px) {
    .experience-list {
        grid-template-columns: 1fr;
    }

    .experience-item {
        grid-template-columns: 190px 1fr;
        min-height: 280px;
    }
}

@media (max-width: 680px) {
    .experience-section {
        padding: 56px 0;
    }

    .experience-head {
        margin-bottom: 30px;
    }

    .experience-title h2 {
        font-size: clamp(34px, 10vw, 46px);
    }

    .experience-intro p {
        font-size: 17px;
        line-height: 1.58;
        margin-bottom: 16px;
    }

    .experience-item {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
        min-height: auto;
    }

    .experience-image-wrap {
        max-width: 260px;
        margin: 0 auto;
    }

    .experience-content {
        text-align: center;
    }

    .experience-content h3 {
        font-size: 22px;
    }

    .experience-modal {
        padding: 16px;
    }

    .experience-modal-box {
        width: 96vw;
        border-radius: 20px;
    }

    .experience-modal-header {
        padding: 16px 58px 14px 18px;
    }

    .experience-modal-image-wrap {
        padding: 14px;
    }
}

@media (max-width: 420px) {
    .experience-item {
        padding: 18px;
        border-radius: 18px;
    }

    .experience-image-wrap {
        max-width: 230px;
        border-radius: 15px;
    }

    .experience-content h3 {
        font-size: 20px;
    }

    .experience-content p {
        font-size: 14px;
    }

    .experience-modal-close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 26px;
    }
}
