/* ============================================
   ALFA SOLD – Portfolio Page Styles
   Extends style.css – load after it
============================================ */

/* ---- Body override: no extra top padding ---- */
.portfolio-page {
    background: var(--dark);
}

/* ---- HERO PORTFOLIO ---- */
.pf-hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-h);
}

.pf-hero__bg {
    position: absolute;
    inset: 0;
    background: url('../../portifolio/topo.jpg') center/cover no-repeat;
    filter: brightness(0.4) saturate(0.8);
    transform: scale(1.02);
    transition: transform 10s ease-out;
}

.pf-hero:hover .pf-hero__bg {
    transform: scale(1.1);
}

.pf-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(10, 15, 30, 0.4) 0%,
            rgba(10, 15, 30, 0.8) 100%);
}

.pf-hero__content {
    position: relative;
    z-index: 2;
    padding: 100px 24px 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.pf-hero__text {
    flex: 1;
    max-width: 650px;
}

.pf-hero__image-wrap {
    flex: 0 0 auto;
    width: 350px;
    max-width: 100%;
    position: relative;
    /* Remover fundo, bordas e sombras do container para deixar só o PNG */
}

.pf-hero__founder-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-height: 650px;
    /* limits the image size slightly */
}

.pf-hero__founder-info {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 15px;
    text-align: center;
    color: var(--white);
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.pf-hero__founder-info strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pf-hero__founder-info span {
    display: block;
    font-size: 0.95rem;
    color: var(--red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pf-hero__title {
    font-family: var(--font-hero);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    font-style: italic;
    line-height: 0.9;
    margin-bottom: 24px;
    letter-spacing: -2px;
    color: var(--white);
}

.pf-hero__title span {
    color: var(--red);
    display: block;
}

.pf-hero__sub {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

.pf-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.pf-hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--white);
    opacity: 0.6;
}

.pf-hero__scroll svg {
    width: 32px;
    height: 32px;
}

/* ---- CAROUSEL SECTION ---- */
.pf-carousel-section {
    background: var(--dark);
    padding: 60px 0 0;
    /* Espaçamento apenas em cima, ou ajustar conforme o design */
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 1;
}

.pf-carousel-section::before,
.pf-carousel-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.pf-carousel-section::before {
    left: 0;
    background: linear-gradient(to right, var(--dark) 0%, transparent 100%);
}

.pf-carousel-section::after {
    right: 0;
    background: linear-gradient(to left, var(--dark) 0%, transparent 100%);
}

.pf-carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-carousel 40s linear infinite;
}

.pf-carousel-track:hover {
    animation-play-state: paused;
}

.pf-carousel-track img {
    height: 250px;
    width: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.pf-carousel-track img:hover {
    transform: scale(1.02);
}

@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move half of the track width (the first set of duplicated images) */
        transform: translateX(calc(-50% - 10px));
    }
}

/* ---- FEATURE ZIG-ZAG SECTIONS ---- */
.pf-features {
    background: var(--white);
    position: relative;
    padding: 100px 0;
}

.pf-feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.pf-feature-row:last-child {
    margin-bottom: 0;
}

.pf-feature-row--reverse {
    flex-direction: row-reverse;
}

.pf-feature-row__text {
    flex: 1;
}

.pf-feature-row__text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 24px;
    font-family: var(--font-hero);
    line-height: 1.1;
    position: relative;
    padding-bottom: 16px;
}

.pf-feature-row__text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--red);
}

.pf-feature-row__text p {
    font-size: 1.15rem;
    color: var(--dark-2);
    line-height: 1.8;
}

.pf-feature-row__image {
    flex: 0 0 30%;
    /* Reduzido para 30% */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    /* Removido o box-shadow */
}

/* Removido a borda interna ::after */

.pf-feature-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
    transition: transform 0.5s ease;
}

.pf-feature-row:hover .pf-feature-row__image img {
    transform: scale(1.05);
}


/* ---- PRESENTATION SHOWCASE ---- */
.pf-presentation {
    background: var(--dark);
    padding: 100px 0;
}

.pf-showcase {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.pf-item {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: var(--dark-2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.pf-item:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
    border-color: rgba(209, 31, 38, 0.2);
}

.pf-item__img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    cursor: pointer;
}

.pf-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.pf-item:hover .pf-item__img img {
    transform: scale(1.05);
}

.pf-item__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(14, 14, 24, 0) 0%, rgba(14, 14, 24, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pf-item:hover .pf-item__overlay {
    opacity: 1;
}

.pf-item__zoom {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.pf-item:hover .pf-item__zoom {
    transform: scale(1);
}

.pf-item__zoom:hover {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 30px rgba(209, 31, 38, 0.5);
}

.pf-item__zoom svg {
    width: 28px;
    height: 28px;
}

.pf-item__info {
    padding: 32px;
    background: var(--dark-2);
    text-align: center;
}

.pf-item__info h3 {
    font-family: var(--font-hero);
    font-size: 1.8rem;
    font-weight: 700;
    font-style: italic;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.2;
}

.pf-item__info p {
    font-size: 1.05rem;
    color: var(--gray-light);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* ---- PDF VIEWER ---- */
.pf-pdf {
    background: var(--dark-2);
    padding: 100px 0;
}

.pf-pdf__wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    margin-bottom: 40px;
}

.pf-pdf__iframe {
    width: 100%;
    height: 850px;
    border: none;
    display: block;
}

.pf-pdf__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- CTA BAND ---- */
.pf-cta {
    background: linear-gradient(135deg, var(--red) 0%, #8b0d12 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.pf-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../../assets/img/pattern.svg') center/cover opacity 0.05;
}

.pf-cta__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.pf-cta__text h2 {
    font-family: var(--font-hero);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    font-style: italic;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1;
}

.pf-cta__text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    max-width: 500px;
}

.pf-cta__actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.pf-cta .btn--primary {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
    font-weight: 700;
}

.pf-cta .btn--primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pf-cta .btn--outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.pf-cta .btn--outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .pf-item {
        max-width: 95%;
    }

    .pf-pdf__iframe {
        height: 600px;
    }

    .pf-feature-row {
        gap: 40px;
        margin-bottom: 60px;
    }

    .pf-feature-row__text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .pf-hero {
        min-height: 50vh;
    }

    .pf-hero__content {
        padding: 80px 24px 60px;
        flex-direction: column;
        text-align: center;
    }

    .pf-hero__text {
        max-width: 100%;
    }

    .pf-hero__title {
        font-size: 3.5rem;
    }

    .pf-presentation {
        padding: 60px 0;
    }

    .pf-showcase {
        gap: 40px;
    }

    .pf-pdf {
        padding: 60px 0;
    }

    .pf-pdf__iframe {
        height: 500px;
    }

    .pf-cta__inner {
        flex-direction: column;
        text-align: center;
    }

    .pf-cta__actions {
        justify-content: center;
    }

    .pf-cta__text p {
        margin: 0 auto;
    }

    /* Stack zig-zag rows on mobile */
    .pf-feature-row,
    .pf-feature-row--reverse {
        flex-direction: column;
        text-align: center;
    }

    .pf-feature-row__text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .pf-feature-row__image {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pf-hero__title {
        font-size: 2.8rem;
    }

    .pf-hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .pf-hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .pf-item__img {
        aspect-ratio: 1/1;
    }
}