/* ==========================================================
   VERTEX STUDIO — PORTFÓLIO
   Arquivo: css/portfolio.css
========================================================== */


/* ==========================================================
   01. CONFIGURAÇÕES DA PÁGINA
========================================================== */

.portfolio-page-body {
    position: relative;
    min-width: 320px;
    overflow-x: hidden;
    background: #02040a;
}

.portfolio-page-body main {
    position: relative;
    z-index: 2;
}

.portfolio-page-body img {
    max-width: 100%;
}

.portfolio-page-body section[id],
.portfolio-page-body article[id] {
    scroll-margin-top: 100px;
}


/* ==========================================================
   02. BARRA DE PROGRESSO
========================================================== */

.portfolio-page-body .scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10050;
    height: 3px;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
}

.portfolio-page-body .scroll-progress__bar {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #00aeff 0%,
        #4478ff 46%,
        #8a46ff 76%,
        #c24cff 100%
    );
    box-shadow:
        0 0 8px rgba(0, 174, 255, 0.9),
        0 0 18px rgba(117, 60, 255, 0.75);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}


/* ==========================================================
   03. HERO
========================================================== */

.portfolio-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding:
        calc(var(--header-height, 92px) + 55px)
        0
        100px;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 16% 34%,
            rgba(0, 145, 255, 0.11),
            transparent 31%
        ),
        radial-gradient(
            circle at 84% 42%,
            rgba(117, 60, 255, 0.14),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            rgba(2, 4, 10, 0.97),
            rgba(4, 6, 16, 0.98)
        );
}

.portfolio-hero::before {
    content: "";
    position: absolute;
    z-index: -3;
    inset: 0;
    opacity: 0.18;
    pointer-events: none;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 64px 64px;
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.9),
        transparent 94%
    );
}

.portfolio-hero::after {
    content: "";
    position: absolute;
    z-index: -2;
    right: -15%;
    bottom: -220px;
    left: -15%;
    height: 420px;
    border-top: 1px solid rgba(61, 182, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
    transform: rotate(-4deg);
}

.portfolio-hero__waves {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.68;
}

.portfolio-hero__effects {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.portfolio-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    will-change: transform;
}

.portfolio-hero__glow--one {
    top: 16%;
    left: -160px;
    width: 470px;
    height: 470px;
    background: rgba(0, 145, 255, 0.13);
    animation: portfolioGlowOne 10s ease-in-out infinite alternate;
}

.portfolio-hero__glow--two {
    right: -170px;
    bottom: 8%;
    width: 520px;
    height: 520px;
    background: rgba(117, 60, 255, 0.15);
    animation: portfolioGlowTwo 12s ease-in-out infinite alternate;
}

.portfolio-hero__ring {
    position: absolute;
    border: 1px solid rgba(87, 139, 255, 0.09);
    border-radius: 50%;
}

.portfolio-hero__ring--one {
    top: 8%;
    right: 8%;
    width: 520px;
    height: 520px;
    animation: portfolioRing 18s linear infinite;
}

.portfolio-hero__ring--two {
    bottom: -250px;
    left: -130px;
    width: 650px;
    height: 650px;
    animation: portfolioRing 23s linear infinite reverse;
}

.portfolio-hero__beam {
    position: absolute;
    top: 37%;
    left: -35%;
    width: 40%;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 174, 255, 0.17),
        rgba(117, 60, 255, 0.2),
        transparent
    );
    filter: blur(35px);
    transform: rotate(-7deg);
    animation: portfolioBeam 9s ease-in-out infinite;
}

.portfolio-hero__container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns:
        minmax(0, 1.03fr)
        minmax(450px, 0.97fr);
    align-items: center;
    gap: clamp(60px, 7vw, 120px);
}

.portfolio-hero__content {
    position: relative;
    z-index: 3;
}

.portfolio-hero__title {
    max-width: 850px;
    margin-top: 23px;
}

.portfolio-hero__title-script {
    display: block;
    margin-bottom: -5px;
    color: #36c5ff;
    font-family: "Allura", cursive;
    font-size: clamp(3.2rem, 5.7vw, 6.3rem);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.025em;
    text-shadow:
        0 0 20px rgba(0, 174, 255, 0.2),
        0 0 45px rgba(0, 174, 255, 0.1);
}

.portfolio-hero__title-main,
.portfolio-hero__title-highlight {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.portfolio-hero__title-main {
    color: #ffffff;
    font-size: clamp(3.4rem, 5.7vw, 6.5rem);
}

.portfolio-hero__title-highlight {
    margin-top: 8px;
    background: linear-gradient(
        90deg,
        #31d0ff 0%,
        #398cff 42%,
        #8a4dff 78%,
        #bd52ff 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-size: clamp(2.8rem, 4.6vw, 5.3rem);
}

.portfolio-hero__description {
    max-width: 690px;
    margin-top: 30px;
    color: var(--text-soft, #b7bfd1);
    font-size: clamp(0.94rem, 1.2vw, 1.06rem);
    line-height: 1.82;
}

.portfolio-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.portfolio-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    max-width: 720px;
    margin-top: 46px;
}

.portfolio-hero__stat {
    position: relative;
    min-height: 102px;
    padding: 19px 18px;
    overflow: hidden;
    border: 1px solid rgba(102, 134, 255, 0.16);
    border-radius: 17px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        );
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.025),
        0 18px 44px rgba(0, 0, 0, 0.18);
}

.portfolio-hero__stat::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(0, 174, 255, 0.1);
    filter: blur(30px);
}

.portfolio-hero__stat strong {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 7px;
    background: linear-gradient(
        90deg,
        #39d2ff,
        #8a55ff
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.portfolio-hero__stat span {
    position: relative;
    z-index: 2;
    display: block;
    color: var(--muted, #8992a8);
    font-size: 0.71rem;
    line-height: 1.45;
}


/* ==========================================================
   04. VISUAL DO HERO
========================================================== */

.portfolio-hero__visual {
    position: relative;
    min-height: 560px;
    display: grid;
    place-items: center;
    perspective: 1300px;
}

.portfolio-hero__visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76%;
    height: 66%;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(65, 97, 255, 0.2),
            rgba(117, 60, 255, 0.08) 44%,
            transparent 72%
        );
    filter: blur(45px);
    transform: translate(-50%, -50%);
}

.portfolio-showcase {
    position: relative;
    z-index: 3;
    width: min(100%, 590px);
    overflow: hidden;
    border: 1px solid rgba(103, 133, 255, 0.28);
    border-radius: 25px;
    background: #071020;
    box-shadow:
        0 42px 100px rgba(0, 0, 0, 0.52),
        0 0 50px rgba(0, 145, 255, 0.08),
        0 0 65px rgba(117, 60, 255, 0.06);
    transform:
        perspective(1200px)
        rotateY(-7deg)
        rotateX(3deg);
    animation: portfolioShowcaseFloat 6s ease-in-out infinite;
}

.portfolio-showcase__top {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 50px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background: rgba(255, 255, 255, 0.026);
}

.portfolio-showcase__controls {
    display: flex;
    gap: 6px;
}

.portfolio-showcase__controls span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.portfolio-showcase__controls span:first-child {
    background: #ff647f;
}

.portfolio-showcase__controls span:nth-child(2) {
    background: #ffbf4d;
}

.portfolio-showcase__controls span:last-child {
    background: #54efad;
}

.portfolio-showcase__address {
    flex: 1;
    max-width: 320px;
    overflow: hidden;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.042);
    color: var(--muted, #8992a8);
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-showcase__screen {
    position: relative;
    min-height: 390px;
    display: grid;
    grid-template-columns: 80px 1fr;
    background:
        radial-gradient(
            circle at 82% 28%,
            rgba(117, 60, 255, 0.17),
            transparent 37%
        ),
        radial-gradient(
            circle at 18% 66%,
            rgba(0, 145, 255, 0.12),
            transparent 39%
        ),
        #050a14;
}

.portfolio-showcase__sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 27px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.015);
}

.portfolio-showcase__sidebar span {
    display: block;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.portfolio-showcase__sidebar span:first-child {
    height: 27px;
    margin-bottom: 13px;
    background: linear-gradient(
        90deg,
        #00aeff,
        #884cff
    );
}

.portfolio-showcase__content {
    padding: 54px 34px 32px;
}

.portfolio-showcase__line {
    display: block;
    height: 11px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
}

.portfolio-showcase__line--small {
    width: 34%;
    background: linear-gradient(
        90deg,
        rgba(0, 174, 255, 0.85),
        rgba(117, 60, 255, 0.82)
    );
}

.portfolio-showcase__line--large {
    width: 89%;
    height: 19px;
    margin-top: 25px;
}

.portfolio-showcase__line--medium {
    width: 68%;
}

.portfolio-showcase__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-top: 55px;
}

.portfolio-showcase__cards span {
    display: block;
    height: 108px;
    border: 1px solid rgba(97, 126, 255, 0.16);
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        );
}

.portfolio-hero__floating-card {
    position: absolute;
    z-index: 5;
    min-width: 130px;
    padding: 16px 18px;
    border: 1px solid rgba(89, 129, 255, 0.3);
    border-radius: 17px;
    background: rgba(5, 10, 24, 0.9);
    box-shadow:
        0 25px 65px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(0, 145, 255, 0.08);
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
}

.portfolio-hero__floating-card strong,
.portfolio-hero__floating-card span {
    display: block;
}

.portfolio-hero__floating-card strong {
    margin-bottom: 6px;
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.96rem;
}

.portfolio-hero__floating-card span {
    color: var(--muted, #8992a8);
    font-size: 0.65rem;
}

.portfolio-hero__floating-card--one {
    top: 14%;
    left: -30px;
    animation: portfolioCardFloat 5s ease-in-out infinite;
}

.portfolio-hero__floating-card--two {
    top: 48%;
    right: -30px;
    animation: portfolioCardFloat 6s 0.8s ease-in-out infinite;
}

.portfolio-hero__floating-card--three {
    bottom: 9%;
    left: 4%;
    animation: portfolioCardFloat 5.5s 0.4s ease-in-out infinite;
}

.portfolio-hero__scroll {
    position: absolute;
    z-index: 5;
    bottom: 28px;
    left: 50%;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 9px;
    color: var(--muted, #8992a8);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.portfolio-hero__scroll-line {
    position: relative;
    display: block;
    width: 1px;
    height: 38px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

.portfolio-hero__scroll-line::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(
        to bottom,
        transparent,
        #2ecbff,
        #8a4cff
    );
    animation: portfolioScrollLine 2s ease-in-out infinite;
}


/* ==========================================================
   05. ANIMAÇÕES DO HERO
========================================================== */

@keyframes portfolioGlowOne {
    from {
        transform: translate3d(-20px, 15px, 0) scale(0.94);
    }

    to {
        transform: translate3d(90px, -35px, 0) scale(1.16);
    }
}

@keyframes portfolioGlowTwo {
    from {
        transform: translate3d(15px, -15px, 0) scale(0.96);
    }

    to {
        transform: translate3d(-100px, 45px, 0) scale(1.18);
    }
}

@keyframes portfolioRing {
    to {
        transform: rotate(360deg);
    }
}

@keyframes portfolioBeam {
    0% {
        left: -42%;
        opacity: 0;
    }

    20% {
        opacity: 0.75;
    }

    70% {
        opacity: 0.55;
    }

    100% {
        left: 108%;
        opacity: 0;
    }
}

@keyframes portfolioShowcaseFloat {
    0%,
    100% {
        transform:
            perspective(1200px)
            rotateY(-7deg)
            rotateX(3deg)
            translateY(0);
    }

    50% {
        transform:
            perspective(1200px)
            rotateY(-4deg)
            rotateX(2deg)
            translateY(-13px);
    }
}

@keyframes portfolioCardFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-11px);
    }
}

@keyframes portfolioScrollLine {
    0% {
        top: -100%;
    }

    100% {
        top: 130%;
    }
}

/* ==========================================================
   06. INTRODUÇÃO DOS PROJETOS
========================================================== */

.portfolio-introduction {
    position: relative;
    overflow: hidden;
    padding-bottom: 70px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(61, 75, 255, 0.07),
            transparent 34%
        ),
        #03050b;
}

.portfolio-introduction__glow {
    position: absolute;
    top: -250px;
    left: 50%;
    width: 900px;
    height: 430px;
    border-radius: 50%;
    background: rgba(74, 65, 255, 0.08);
    filter: blur(100px);
    transform: translateX(-50%);
    pointer-events: none;
}

.portfolio-introduction .section-header {
    position: relative;
    z-index: 2;
}

.portfolio-filters {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 48px;
}

.portfolio-filter {
    position: relative;
    min-height: 44px;
    padding: 0 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.022);
    color: var(--muted, #8992a8);
    font-family: "Manrope", sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

.portfolio-filter::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 174, 255, 0.15),
        rgba(117, 60, 255, 0.17)
    );
    transition: opacity 0.35s ease;
}

.portfolio-filter:hover {
    color: #ffffff;
    border-color: rgba(73, 154, 255, 0.34);
    transform: translateY(-2px);
}

.portfolio-filter.is-active {
    color: #ffffff;
    border-color: rgba(82, 144, 255, 0.45);
    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.25),
        0 0 22px rgba(0, 145, 255, 0.08);
}

.portfolio-filter.is-active::before {
    opacity: 1;
}

.portfolio-filter {
    isolation: isolate;
}

.portfolio-filter::before {
    z-index: -1;
}

.portfolio-project-navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
}

.portfolio-project-navigation a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 58px;
    padding: 13px 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.032),
            rgba(255, 255, 255, 0.012)
        );
    color: var(--text-soft, #b7bfd1);
    font-size: 0.74rem;
    font-weight: 700;
    transition:
        color 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.portfolio-project-navigation a::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(117, 60, 255, 0.09);
    filter: blur(24px);
}

.portfolio-project-navigation a:hover {
    color: #ffffff;
    border-color: rgba(77, 144, 255, 0.3);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
    transform: translateY(-3px);
}

.portfolio-project-navigation a span {
    color: #42cfff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.67rem;
    letter-spacing: 0.1em;
}


/* ==========================================================
   07. LISTA DE PROJETOS
========================================================== */

.portfolio-projects {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            #03050b 0%,
            #040611 45%,
            #02040a 100%
        );
}

.portfolio-projects::before {
    content: "";
    position: absolute;
    top: 4%;
    right: -330px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: rgba(117, 60, 255, 0.055);
    filter: blur(110px);
    pointer-events: none;
}

.portfolio-projects::after {
    content: "";
    position: absolute;
    bottom: 17%;
    left: -330px;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: rgba(0, 145, 255, 0.05);
    filter: blur(120px);
    pointer-events: none;
}

.portfolio-case {
    position: relative;
    z-index: 2;
    padding-block: clamp(95px, 10vw, 155px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.portfolio-case.is-filtered-out {
    display: none;
}

.portfolio-case__container {
    display: grid;
    grid-template-columns:
        minmax(460px, 1.1fr)
        minmax(380px, 0.9fr);
    align-items: center;
    gap: clamp(65px, 8vw, 130px);
}

.portfolio-case--reverse .portfolio-case__container {
    grid-template-columns:
        minmax(380px, 0.9fr)
        minmax(460px, 1.1fr);
}

.portfolio-case__visual,
.portfolio-case__information {
    position: relative;
    min-width: 0;
}

.portfolio-case__information {
    z-index: 4;
}

.portfolio-case__topline {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.portfolio-case__number {
    color: #36cbff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.portfolio-case__category {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 0 12px;
    border: 1px solid rgba(88, 132, 255, 0.24);
    border-radius: 999px;
    background: rgba(52, 91, 255, 0.06);
    color: var(--text-soft, #b7bfd1);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-case__title {
    margin: 0;
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.3rem, 4vw, 4.7rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.055em;
}

.portfolio-case__description {
    max-width: 650px;
    margin-top: 24px;
    color: var(--text-soft, #b7bfd1);
    font-size: 0.94rem;
    line-height: 1.82;
}

.portfolio-case__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.portfolio-case__detail {
    padding: 21px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 17px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.032),
            rgba(255, 255, 255, 0.012)
        );
}

.portfolio-case__label {
    display: block;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.portfolio-case__features {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.portfolio-case__features li {
    position: relative;
    padding-left: 18px;
    color: var(--muted, #8992a8);
    font-size: 0.72rem;
    line-height: 1.5;
}

.portfolio-case__features li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        #21c7ff,
        #8b4eff
    );
    box-shadow: 0 0 10px rgba(0, 174, 255, 0.38);
}

.portfolio-case__technologies {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-case__technologies span {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 0 10px;
    border: 1px solid rgba(88, 128, 255, 0.18);
    border-radius: 999px;
    background: rgba(61, 92, 255, 0.055);
    color: var(--text-soft, #b7bfd1);
    font-size: 0.64rem;
    font-weight: 700;
}

.portfolio-case__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px;
}

.portfolio-case__contact-link {
    position: relative;
    color: var(--text-soft, #b7bfd1);
    font-size: 0.76rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.portfolio-case__contact-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -5px;
    left: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        #22c8ff,
        #8b4dff
    );
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.35s ease;
}

.portfolio-case__contact-link:hover {
    color: #ffffff;
}

.portfolio-case__contact-link:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.portfolio-case__visual-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--muted, #8992a8);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-case__visual-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ee9a4;
    box-shadow:
        0 0 8px rgba(78, 233, 164, 0.75),
        0 0 18px rgba(78, 233, 164, 0.35);
    animation: portfolioOnlinePulse 2s ease-in-out infinite;
}

.portfolio-case-divider {
    position: relative;
    z-index: 3;
    width: min(
        calc(100% - 48px),
        var(--container, 1320px)
    );
    height: 1px;
    margin-inline: auto;
    overflow: visible;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(75, 130, 255, 0.14),
        rgba(136, 70, 255, 0.17),
        transparent
    );
}

.portfolio-case-divider span {
    position: absolute;
    top: -1px;
    left: -16%;
    width: 18%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent,
        #28caff,
        #8a4dff,
        transparent
    );
    filter: blur(1px);
    box-shadow:
        0 0 10px rgba(0, 174, 255, 0.45),
        0 0 20px rgba(117, 60, 255, 0.25);
    animation: portfolioDividerLight 7s ease-in-out infinite;
}


/* ==========================================================
   08. NOTEBOOKS
========================================================== */

.portfolio-laptop__link {
    display: block;
    color: inherit;
}

.portfolio-laptop__scene {
    position: relative;
    min-height: 500px;
    display: grid;
    place-items: center;
    perspective: 1500px;
}

.portfolio-laptop__scene::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 86%;
    height: 65%;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(0, 145, 255, 0.14),
            rgba(117, 60, 255, 0.075) 46%,
            transparent 72%
        );
    filter: blur(45px);
    transform: translate(-50%, -50%);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.portfolio-laptop__device {
    position: relative;
    z-index: 3;
    width: min(100%, 690px);
    transform:
        perspective(1500px)
        rotateY(5deg)
        rotateX(2deg);
    transform-style: preserve-3d;
    transition:
        transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.5s ease;
    will-change: transform;
}

.portfolio-case--reverse .portfolio-laptop__device {
    transform:
        perspective(1500px)
        rotateY(-5deg)
        rotateX(2deg);
}

.portfolio-laptop__scene:hover .portfolio-laptop__device {
    transform:
        perspective(1500px)
        rotateY(0)
        rotateX(0)
        translateY(-10px)
        scale(1.018);
    filter:
        drop-shadow(0 28px 45px rgba(0, 0, 0, 0.35))
        drop-shadow(0 0 22px rgba(0, 145, 255, 0.08));
}

.portfolio-laptop__screen {
    position: relative;
    z-index: 3;
    padding: 12px 12px 14px;
    border: 1px solid rgba(118, 146, 255, 0.32);
    border-radius: 23px 23px 13px 13px;
    background:
        linear-gradient(
            145deg,
            #111827,
            #050812 58%,
            #090d18
        );
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.09),
        inset 0 -1px rgba(255, 255, 255, 0.035),
        0 35px 90px rgba(0, 0, 0, 0.5),
        0 0 38px rgba(0, 145, 255, 0.065);
}

.portfolio-laptop__camera {
    position: absolute;
    z-index: 8;
    top: 4px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 16px;
    height: 6px;
    border-radius: 999px;
    background: #02040a;
    transform: translateX(-50%);
}

.portfolio-laptop__camera span {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(71, 150, 255, 0.65);
}

.portfolio-laptop__viewport {
    position: relative;
    height: 390px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 13px 13px 7px 7px;
    background: #03050a;
}

.portfolio-laptop__browser {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-laptop__browser-top {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    padding: 8px 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(7, 11, 21, 0.98);
}

.portfolio-laptop__controls {
    display: flex;
    gap: 5px;
}

.portfolio-laptop__controls span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.portfolio-laptop__controls span:first-child {
    background: #ff647f;
}

.portfolio-laptop__controls span:nth-child(2) {
    background: #ffbf4d;
}

.portfolio-laptop__controls span:last-child {
    background: #54efad;
}

.portfolio-laptop__address {
    flex: 1;
    overflow: hidden;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted, #8992a8);
    font-size: 0.56rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-laptop__website {
    position: absolute;
    top: 38px;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    background: #ffffff;
}

.portfolio-laptop__website img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    object-position: top center;
    transition:
        transform 8s cubic-bezier(0.19, 1, 0.22, 1),
        filter 0.45s ease;
    will-change: transform;
}

.portfolio-laptop__scene:hover
.portfolio-laptop__website img {
    transform: translateY(
        calc(-100% + 352px)
    );
}

.portfolio-laptop__reflection {
    position: absolute;
    z-index: 5;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        118deg,
        rgba(255, 255, 255, 0.09),
        transparent 23%,
        transparent 73%,
        rgba(85, 123, 255, 0.035)
    );
}

.portfolio-laptop__visit {
    position: absolute;
    z-index: 9;
    bottom: 20px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(102, 153, 255, 0.35);
    border-radius: 999px;
    background: rgba(3, 7, 17, 0.86);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    opacity: 0;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.38),
        0 0 20px rgba(0, 145, 255, 0.1);
    backdrop-filter: blur(13px);
    transform: translate(-50%, 14px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.portfolio-laptop__scene:hover
.portfolio-laptop__visit {
    opacity: 1;
    transform: translate(-50%, 0);
}

.portfolio-laptop__base {
    position: relative;
    z-index: 2;
    width: 108%;
    height: 24px;
    margin-left: -4%;
    border: 1px solid rgba(132, 153, 210, 0.22);
    border-radius: 3px 3px 18px 18px;
    background:
        linear-gradient(
            180deg,
            #1c2332 0%,
            #0e1420 45%,
            #050812 100%
        );
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.1),
        0 10px 24px rgba(0, 0, 0, 0.38);
    transform:
        perspective(500px)
        rotateX(55deg);
    transform-origin: top center;
}

.portfolio-laptop__base::after {
    content: "";
    position: absolute;
    right: 42%;
    bottom: -4px;
    left: 42%;
    height: 5px;
    border-radius: 0 0 8px 8px;
    background: #03050a;
}

.portfolio-laptop__keyboard {
    position: absolute;
    top: 5px;
    right: 8%;
    left: 8%;
    height: 7px;
    border-radius: 3px;
    opacity: 0.45;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.11) 0 6px,
            transparent 6px 9px
        );
}

.portfolio-laptop__trackpad {
    position: absolute;
    top: 13px;
    left: 50%;
    width: 23%;
    height: 5px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 2px;
    transform: translateX(-50%);
}

.portfolio-laptop__shadow {
    position: absolute;
    z-index: 0;
    right: 7%;
    bottom: -31px;
    left: 7%;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    filter: blur(20px);
    transform: rotateX(67deg);
}

@keyframes portfolioOnlinePulse {
    0%,
    100% {
        opacity: 0.65;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

@keyframes portfolioDividerLight {
    0% {
        left: -18%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    80% {
        opacity: 0.85;
    }

    100% {
        left: 102%;
        opacity: 0;
    }
}


/* ==========================================================
   09. PROCESSO
========================================================== */

.portfolio-process {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(62, 73, 255, 0.075),
            transparent 36%
        ),
        linear-gradient(
            180deg,
            #02040a,
            #050713,
            #02040a
        );
}

.portfolio-process::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    pointer-events: none;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 70px 70px;
    mask-image: radial-gradient(
        circle at center,
        #000,
        transparent 76%
    );
}

.portfolio-process__glow {
    position: absolute;
    top: 20%;
    left: -220px;
    width: 470px;
    height: 470px;
    border-radius: 50%;
    background: rgba(0, 145, 255, 0.07);
    filter: blur(100px);
    pointer-events: none;
}

.portfolio-process .section-header {
    position: relative;
    z-index: 3;
}

.portfolio-process .section-description {
    max-width: 760px;
    margin: 24px auto 0;
    text-align: center;
}

.portfolio-process__grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 62px;
}

.portfolio-process__card {
    position: relative;
    min-height: 270px;
    padding: 31px 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.012)
        );
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.025),
        0 22px 60px rgba(0, 0, 0, 0.18);
    transition:
        border-color 0.4s ease,
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.portfolio-process__card::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(117, 60, 255, 0.09);
    filter: blur(42px);
    transition:
        transform 0.5s ease,
        opacity 0.5s ease;
}

.portfolio-process__card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    opacity: 0;
    background: linear-gradient(
        90deg,
        transparent,
        #29caff,
        #8b4eff,
        transparent
    );
    transition: opacity 0.4s ease;
}

.portfolio-process__card:hover {
    border-color: rgba(82, 143, 255, 0.25);
    box-shadow:
        0 28px 75px rgba(0, 0, 0, 0.25),
        0 0 28px rgba(0, 145, 255, 0.045);
    transform: translateY(-7px);
}

.portfolio-process__card:hover::before {
    opacity: 1;
    transform: scale(1.25);
}

.portfolio-process__card:hover::after {
    opacity: 1;
}

.portfolio-process__number {
    position: absolute;
    top: 24px;
    right: 25px;
    color: rgba(255, 255, 255, 0.14);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.portfolio-process__icon {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 27px;
    border: 1px solid rgba(81, 136, 255, 0.3);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(0, 145, 255, 0.11),
            rgba(117, 60, 255, 0.09)
        );
    color: #43ccff;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.045),
        0 0 24px rgba(0, 145, 255, 0.07);
}

.portfolio-process__card h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 13px;
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.34rem;
    letter-spacing: -0.035em;
}

.portfolio-process__card p {
    position: relative;
    z-index: 2;
    color: var(--muted, #8992a8);
    font-size: 0.79rem;
    line-height: 1.72;
}


/* ==========================================================
   10. CHAMADA FINAL
========================================================== */

.portfolio-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 18% 48%,
            rgba(0, 145, 255, 0.1),
            transparent 34%
        ),
        radial-gradient(
            circle at 82% 44%,
            rgba(117, 60, 255, 0.12),
            transparent 36%
        ),
        #03050c;
}

.portfolio-cta::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 20px;
    border: 1px solid rgba(99, 129, 255, 0.14);
    border-radius: 34px;
    pointer-events: none;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.024),
            transparent 48%
        );
}

.portfolio-cta__effects {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.portfolio-cta__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.portfolio-cta__orb--one {
    top: -150px;
    left: -120px;
    width: 430px;
    height: 430px;
    background: rgba(0, 145, 255, 0.1);
    animation: portfolioCtaOrbOne 10s ease-in-out infinite alternate;
}

.portfolio-cta__orb--two {
    right: -140px;
    bottom: -170px;
    width: 480px;
    height: 480px;
    background: rgba(117, 60, 255, 0.12);
    animation: portfolioCtaOrbTwo 12s ease-in-out infinite alternate;
}

.portfolio-cta__beam {
    position: absolute;
    top: 42%;
    left: -40%;
    width: 34%;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 174, 255, 0.17),
        rgba(117, 60, 255, 0.2),
        transparent
    );
    filter: blur(34px);
    animation: portfolioCtaBeam 9s ease-in-out infinite;
}

.portfolio-cta__container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(330px, 0.8fr);
    align-items: center;
    gap: clamp(60px, 8vw, 125px);
}

.portfolio-cta__content {
    max-width: 850px;
}

.portfolio-cta__script {
    display: block;
    margin-bottom: 8px;
    color: #38caff;
    font-family: "Allura", cursive;
    font-size: clamp(2.8rem, 4.7vw, 5.2rem);
    line-height: 0.95;
    text-shadow: 0 0 25px rgba(0, 174, 255, 0.16);
}

.portfolio-cta h2 {
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.6rem, 4.6vw, 5.2rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.portfolio-cta__content > p {
    max-width: 700px;
    margin-top: 24px;
    color: var(--text-soft, #b7bfd1);
    font-size: 0.94rem;
    line-height: 1.78;
}

.portfolio-cta__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 33px;
}


/* ==========================================================
   11. CARTÃO DE CONTACTO
========================================================== */

.portfolio-cta__contact {
    position: relative;
    min-width: 0;
    padding: 35px 32px;
    overflow: hidden;
    border: 1px solid rgba(91, 132, 255, 0.24);
    border-radius: 25px;
    background:
        linear-gradient(
            145deg,
            rgba(11, 18, 37, 0.92),
            rgba(4, 7, 17, 0.95)
        );
    box-shadow:
        0 32px 85px rgba(0, 0, 0, 0.38),
        0 0 35px rgba(0, 145, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.portfolio-cta__contact-glow {
    position: absolute;
    top: -110px;
    right: -100px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(117, 60, 255, 0.15);
    filter: blur(60px);
    pointer-events: none;
}

.portfolio-cta__contact img {
    position: relative;
    z-index: 2;
    display: block;
    width: 135px;
    height: 70px;
    margin-bottom: 18px;
    object-fit: contain;
    object-position: left center;
}

.portfolio-cta__contact-label {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 19px;
    color: #39ccff;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.portfolio-cta__contact > a {
    position: relative;
    z-index: 2;
    display: block;
    padding-block: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.portfolio-cta__contact > a small,
.portfolio-cta__contact > a strong {
    display: block;
}

.portfolio-cta__contact > a small {
    margin-bottom: 5px;
    color: var(--muted, #8992a8);
    font-size: 0.65rem;
}

.portfolio-cta__contact > a strong {
    overflow-wrap: anywhere;
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(0.86rem, 1.2vw, 1.04rem);
    transition: color 0.3s ease;
}

.portfolio-cta__contact > a:hover strong {
    color: #45cfff;
}

.portfolio-cta__availability {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    color: var(--text-soft, #b7bfd1);
    font-size: 0.67rem;
    font-weight: 700;
}

.portfolio-cta__availability i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ee9a4;
    box-shadow:
        0 0 9px rgba(78, 233, 164, 0.8),
        0 0 20px rgba(78, 233, 164, 0.35);
    animation: portfolioOnlinePulse 2s ease-in-out infinite;
}

@keyframes portfolioCtaOrbOne {
    from {
        transform: translate3d(-20px, 20px, 0) scale(0.95);
    }

    to {
        transform: translate3d(90px, -30px, 0) scale(1.16);
    }
}

@keyframes portfolioCtaOrbTwo {
    from {
        transform: translate3d(20px, -10px, 0) scale(0.96);
    }

    to {
        transform: translate3d(-90px, 40px, 0) scale(1.18);
    }
}

@keyframes portfolioCtaBeam {
    0% {
        left: -40%;
        opacity: 0;
    }

    18% {
        opacity: 0.8;
    }

    75% {
        opacity: 0.55;
    }

    100% {
        left: 108%;
        opacity: 0;
    }
}

/* ==========================================================
   12. TELAS INTERMÉDIAS
========================================================== */

@media (max-width: 1280px) {
    .portfolio-hero__container {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(400px, 0.9fr);
        gap: 65px;
    }

    .portfolio-hero__visual {
        min-height: 500px;
    }

    .portfolio-showcase {
        width: min(100%, 530px);
    }

    .portfolio-case__container,
    .portfolio-case--reverse .portfolio-case__container {
        grid-template-columns:
            minmax(420px, 1fr)
            minmax(350px, 0.85fr);
        gap: 68px;
    }

    .portfolio-case--reverse .portfolio-case__container {
        grid-template-columns:
            minmax(350px, 0.85fr)
            minmax(420px, 1fr);
    }

    .portfolio-laptop__scene {
        min-height: 450px;
    }

    .portfolio-laptop__viewport {
        height: 345px;
    }

    .portfolio-laptop__scene:hover
    .portfolio-laptop__website img {
        transform: translateY(
            calc(-100% + 307px)
        );
    }
}


/* ==========================================================
   13. TABLET E NOTEBOOK PEQUENO
========================================================== */

@media (max-width: 1080px) {
    .portfolio-hero {
        min-height: auto;
        padding-top: 135px;
        padding-bottom: 105px;
    }

    .portfolio-hero__container {
        grid-template-columns: 1fr;
        gap: 75px;
    }

    .portfolio-hero__content {
        max-width: 900px;
    }

    .portfolio-hero__visual {
        width: min(100%, 720px);
        min-height: 500px;
        margin-inline: auto;
    }

    .portfolio-hero__floating-card--one {
        left: 0;
    }

    .portfolio-hero__floating-card--two {
        right: 0;
    }

    .portfolio-project-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-case__container,
    .portfolio-case--reverse .portfolio-case__container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .portfolio-case--reverse
    .portfolio-case__information {
        order: 2;
    }

    .portfolio-case--reverse
    .portfolio-case__visual {
        order: 1;
    }

    .portfolio-case__information {
        width: min(100%, 790px);
        margin-inline: auto;
    }

    .portfolio-case__visual {
        width: min(100%, 800px);
        margin-inline: auto;
    }

    .portfolio-laptop__scene {
        min-height: 510px;
    }

    .portfolio-laptop__viewport {
        height: 405px;
    }

    .portfolio-laptop__scene:hover
    .portfolio-laptop__website img {
        transform: translateY(
            calc(-100% + 367px)
        );
    }

    .portfolio-process__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-cta__container {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .portfolio-cta__contact {
        width: min(100%, 600px);
    }
}


/* ==========================================================
   14. TABLET VERTICAL
========================================================== */

@media (max-width: 767px) {
    .portfolio-page-body section[id],
    .portfolio-page-body article[id] {
        scroll-margin-top: 82px;
    }

    .portfolio-page-body .scroll-progress {
        height: 2px;
    }

    /* HERO */
    .portfolio-hero {
        min-height: auto;
        padding-top: 115px;
        padding-bottom: 86px;
    }

    .portfolio-hero::before {
        background-size: 42px 42px;
    }

    .portfolio-hero__container {
        gap: 54px;
    }

    .portfolio-hero__title {
        margin-top: 18px;
    }

    .portfolio-hero__title-script {
        margin-bottom: 3px;
        font-size: clamp(2.8rem, 14vw, 4.8rem);
        line-height: 0.9;
    }

    .portfolio-hero__title-main {
        font-size: clamp(2.65rem, 12vw, 4.6rem);
        line-height: 1;
    }

    .portfolio-hero__title-highlight {
        margin-top: 6px;
        font-size: clamp(2.25rem, 10vw, 3.9rem);
        line-height: 1.02;
    }

    .portfolio-hero__description {
        margin-top: 23px;
        font-size: 0.89rem;
        line-height: 1.72;
    }

    .portfolio-hero__actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 28px;
    }

    .portfolio-hero__actions .button {
        width: 100%;
        justify-content: center;
    }

    .portfolio-hero__stats {
        grid-template-columns: 1fr;
        margin-top: 36px;
    }

    .portfolio-hero__stat {
        min-height: auto;
        padding: 17px;
    }

    .portfolio-hero__visual {
        min-height: 390px;
    }

    .portfolio-showcase {
        width: calc(100% - 12px);
        border-radius: 19px;
        transform: none;
        animation: portfolioMobileFloat 6s ease-in-out infinite;
    }

    .portfolio-showcase__screen {
        min-height: 285px;
        grid-template-columns: 54px 1fr;
    }

    .portfolio-showcase__sidebar {
        gap: 11px;
        padding: 20px 11px;
    }

    .portfolio-showcase__content {
        padding: 38px 20px 25px;
    }

    .portfolio-showcase__cards {
        gap: 8px;
        margin-top: 38px;
    }

    .portfolio-showcase__cards span {
        height: 76px;
    }

    .portfolio-hero__floating-card {
        min-width: 105px;
        padding: 12px 13px;
        border-radius: 13px;
    }

    .portfolio-hero__floating-card--one {
        top: 2%;
        left: -2px;
    }

    .portfolio-hero__floating-card--two {
        top: 49%;
        right: -2px;
    }

    .portfolio-hero__floating-card--three {
        bottom: 0;
        left: 4%;
    }

    .portfolio-hero__scroll {
        display: none;
    }

    /* INTRODUÇÃO */
    .portfolio-introduction {
        padding-bottom: 48px;
    }

    .portfolio-filters {
        justify-content: flex-start;
        margin-top: 34px;
    }

    .portfolio-filter {
        flex: 1 1 calc(50% - 10px);
        padding-inline: 12px;
    }

    .portfolio-project-navigation {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 25px;
    }

    /* PROJETOS */
    .portfolio-case {
        padding-block: 85px;
    }

    .portfolio-case__container,
    .portfolio-case--reverse .portfolio-case__container {
        gap: 43px;
    }

    .portfolio-case__visual {
        width: 100%;
    }

    .portfolio-case__title {
        font-size: clamp(2.15rem, 11vw, 3.5rem);
    }

    .portfolio-case__description {
        margin-top: 19px;
        font-size: 0.87rem;
        line-height: 1.72;
    }

    .portfolio-case__details {
        grid-template-columns: 1fr;
        margin-top: 27px;
    }

    .portfolio-case__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 17px;
        margin-top: 28px;
    }

    .portfolio-case__actions .button {
        width: 100%;
        justify-content: center;
    }

    .portfolio-case__contact-link {
        align-self: center;
    }

    /* NOTEBOOK */
    .portfolio-laptop__scene {
        min-height: 355px;
    }

    .portfolio-laptop__device,
    .portfolio-case--reverse
    .portfolio-laptop__device {
        width: 95%;
        transform: none;
    }

    .portfolio-laptop__scene:hover
    .portfolio-laptop__device {
        transform: translateY(-5px);
    }

    .portfolio-laptop__screen {
        padding: 8px 8px 10px;
        border-radius: 16px 16px 9px 9px;
    }

    .portfolio-laptop__viewport {
        height: 275px;
        border-radius: 9px 9px 5px 5px;
    }

    .portfolio-laptop__browser-top {
        min-height: 32px;
        padding: 6px 8px;
    }

    .portfolio-laptop__website {
        top: 32px;
    }

    .portfolio-laptop__scene:hover
    .portfolio-laptop__website img {
        transform: translateY(
            calc(-100% + 243px)
        );
    }

    .portfolio-laptop__base {
        width: 104%;
        height: 18px;
        margin-left: -2%;
    }

    .portfolio-laptop__visit {
        bottom: 13px;
        min-height: 38px;
        opacity: 1;
        transform: translate(-50%, 0);
    }

    .portfolio-case-divider {
        width: calc(100% - 36px);
    }

    /* PROCESSO */
    .portfolio-process__grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 44px;
    }

    .portfolio-process__card {
        min-height: auto;
        padding: 26px 23px;
    }

    /* CTA */
    .portfolio-cta::before {
        inset: 10px;
        border-radius: 24px;
    }

    .portfolio-cta__container {
        gap: 43px;
    }

    .portfolio-cta__script {
        font-size: clamp(2.5rem, 13vw, 4.2rem);
    }

    .portfolio-cta h2 {
        font-size: clamp(2.3rem, 11vw, 3.8rem);
    }

    .portfolio-cta__content > p {
        font-size: 0.87rem;
    }

    .portfolio-cta__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .portfolio-cta__actions .button {
        width: 100%;
        justify-content: center;
    }

    .portfolio-cta__contact {
        width: 100%;
        padding: 28px 23px;
    }

    /* RODAPÉ */
    .portfolio-page-body .site-footer {
        width: 100%;
        overflow: hidden;
        padding-top: 62px;
    }

    .portfolio-page-body .site-footer .container {
        width: calc(100% - 36px);
        margin-inline: auto;
    }

    .portfolio-page-body .site-footer__main {
        display: grid;
        grid-template-columns: 1fr;
        gap: 39px;
        width: 100%;
        text-align: center;
    }

    .portfolio-page-body .site-footer__brand,
    .portfolio-page-body .site-footer__column {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
    }

    .portfolio-page-body .site-footer__logo {
        margin-inline: auto;
    }

    .portfolio-page-body .site-footer__brand p {
        margin-inline: auto;
    }

    .portfolio-page-body .site-footer__social {
        justify-content: center;
    }

    .portfolio-page-body .site-footer__column ul {
        align-items: center;
    }

    .portfolio-page-body .site-footer__bottom {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .portfolio-page-body .site-footer__legal {
        align-items: center;
        flex-direction: column;
    }
}


/* ==========================================================
   15. TELEMÓVEIS PEQUENOS
========================================================== */

@media (max-width: 480px) {
    .portfolio-hero {
        padding-top: 102px;
        padding-bottom: 72px;
    }

    .portfolio-hero__title-script {
        font-size: clamp(2.55rem, 15vw, 3.8rem);
    }

    .portfolio-hero__title-main {
        font-size: clamp(2.35rem, 13vw, 3.55rem);
    }

    .portfolio-hero__title-highlight {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .portfolio-hero__visual {
        min-height: 325px;
    }

    .portfolio-showcase__top {
        min-height: 43px;
        padding: 9px 10px;
    }

    .portfolio-showcase__controls {
        gap: 4px;
    }

    .portfolio-showcase__controls span {
        width: 6px;
        height: 6px;
    }

    .portfolio-showcase__screen {
        min-height: 235px;
        grid-template-columns: 42px 1fr;
    }

    .portfolio-showcase__sidebar {
        padding: 16px 8px;
    }

    .portfolio-showcase__content {
        padding: 28px 14px 18px;
    }

    .portfolio-showcase__line {
        height: 8px;
        margin-bottom: 10px;
    }

    .portfolio-showcase__line--large {
        height: 14px;
    }

    .portfolio-showcase__cards {
        margin-top: 27px;
    }

    .portfolio-showcase__cards span {
        height: 58px;
    }

    .portfolio-hero__floating-card {
        min-width: 93px;
        padding: 10px 11px;
    }

    .portfolio-hero__floating-card strong {
        font-size: 0.77rem;
    }

    .portfolio-hero__floating-card span {
        font-size: 0.55rem;
    }

    .portfolio-filter {
        flex-basis: 100%;
    }

    .portfolio-case {
        padding-block: 70px;
    }

    .portfolio-case__topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .portfolio-case__detail {
        padding: 18px;
    }

    .portfolio-laptop__scene {
        min-height: 285px;
    }

    .portfolio-laptop__viewport {
        height: 215px;
    }

    .portfolio-laptop__address {
        max-width: 180px;
        font-size: 0.49rem;
    }

    .portfolio-laptop__scene:hover
    .portfolio-laptop__website img {
        transform: translateY(
            calc(-100% + 183px)
        );
    }

    .portfolio-laptop__visit {
        min-height: 34px;
        padding-inline: 12px;
        font-size: 0.59rem;
    }

    .portfolio-cta__contact > a strong {
        font-size: 0.8rem;
    }

    .portfolio-page-body .floating-whatsapp {
        right: 14px;
        bottom: 14px;
    }

    .portfolio-page-body .back-to-top {
        right: 18px;
        bottom: 80px;
    }
}


/* ==========================================================
   16. DISPOSITIVOS SEM HOVER
========================================================== */

@media (hover: none) and (pointer: coarse) {
    .portfolio-laptop__device,
    .portfolio-case--reverse
    .portfolio-laptop__device {
        transform: none;
    }

    .portfolio-laptop__reflection {
        display: none;
    }

    .portfolio-laptop__visit {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    .portfolio-laptop__website img {
        transition-duration: 5s;
    }
}


/* ==========================================================
   17. REDUÇÃO DE MOVIMENTO
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .portfolio-hero__glow,
    .portfolio-hero__ring,
    .portfolio-hero__beam,
    .portfolio-showcase,
    .portfolio-hero__floating-card,
    .portfolio-hero__scroll-line::after,
    .portfolio-case-divider span,
    .portfolio-case__visual-dot,
    .portfolio-cta__orb,
    .portfolio-cta__beam,
    .portfolio-cta__availability i {
        animation: none !important;
    }

    .portfolio-laptop__website img {
        transform: none !important;
        transition: none !important;
    }

    .portfolio-laptop__device,
    .portfolio-case--reverse
    .portfolio-laptop__device {
        transform: none !important;
        transition: none !important;
    }
}


/* ==========================================================
   18. ANIMAÇÃO MOBILE DO MOCKUP
========================================================== */

@keyframes portfolioMobileFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}





/* ==========================================================
   CORREÇÕES MOBILE — MENU E ALINHAMENTOS
========================================================== */

@media (max-width: 767px) {

    /* ======================================================
       MENU MOBILE ACIMA DO CABEÇALHO
    ====================================================== */

    .portfolio-page-body .mobile-menu {
        z-index: 11000 !important;
    }

    .portfolio-page-body .mobile-menu-overlay {
        z-index: 10999 !important;
    }

    .portfolio-page-body .mobile-menu__content {
        z-index: 2 !important;
    }

    /* Garante que a logo e o botão do menu aberto
       fiquem acima de todos os efeitos */
    .portfolio-page-body .mobile-menu__header {
        position: relative;
        z-index: 5;
    }

    .portfolio-page-body .mobile-menu__logo,
    .portfolio-page-body .mobile-menu__close {
        position: relative;
        z-index: 6;
    }

    /* Esconde completamente o cabeçalho original
       enquanto o menu estiver aberto */
    html.mobile-menu-open
    .portfolio-page-body
    .site-header {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }


    /* ======================================================
       ESTATÍSTICAS CENTRALIZADAS
    ====================================================== */

    .portfolio-hero__stat {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .portfolio-hero__stat strong,
    .portfolio-hero__stat span {
        width: 100%;
        text-align: center;
    }


    /* ======================================================
       NAVEGAÇÃO RÁPIDA DOS PROJETOS
    ====================================================== */

    .portfolio-project-navigation a {
        justify-content: center;
        text-align: center;
    }

    .portfolio-project-navigation a span {
        min-width: 24px;
        text-align: center;
    }


    /* ======================================================
       INFORMAÇÕES DOS PROJETOS
    ====================================================== */

    .portfolio-case__information {
        text-align: center;
    }

    .portfolio-case__topline {
        justify-content: center;
    }

    .portfolio-case__description {
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .portfolio-case__detail {
        text-align: center;
    }

    .portfolio-case__label {
        text-align: center;
    }

    /* Mantém os objetivos organizados,
       mas centraliza o conjunto dentro do cartão */
    .portfolio-case__features {
        width: fit-content;
        max-width: 100%;
        margin-inline: auto;
        align-items: flex-start;
        text-align: left;
    }

    .portfolio-case__features li {
        width: 100%;
        text-align: left;
    }

    .portfolio-case__technologies {
        justify-content: center;
    }

    .portfolio-case__actions {
        text-align: center;
    }


    /* ======================================================
       CARTÃO DE CONTACTO
    ====================================================== */

    .portfolio-cta__contact {
        text-align: center;
    }

    .portfolio-cta__contact img {
        margin-right: auto;
        margin-left: auto;
        object-position: center;
    }

    .portfolio-cta__contact-label {
        text-align: center;
    }

    .portfolio-cta__contact > a {
        text-align: center;
    }

    .portfolio-cta__availability {
        justify-content: center;
        text-align: center;
    }


    /* ======================================================
       CHAMADA FINAL
    ====================================================== */

    .portfolio-cta__content {
        text-align: center;
    }

    .portfolio-cta__content > p {
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .portfolio-cta__actions {
        justify-content: center;
    }


    /* ======================================================
       PROCESSO
    ====================================================== */

    .portfolio-process__card {
        text-align: center;
    }

    .portfolio-process__icon {
        margin-right: auto;
        margin-left: auto;
    }

    .portfolio-process__card p {
        margin-inline: auto;
        text-align: center;
    }
}

/* ==========================================================
   CORREÇÃO DOS BALÕES DO HERO
========================================================== */

.portfolio-hero__visual,
.portfolio-hero__container {
    overflow: visible !important;
}

.portfolio-hero__floating-card {
    width: max-content;
    min-width: 145px;
    max-width: 190px;
}

.portfolio-hero__floating-card strong,
.portfolio-hero__floating-card span {
    overflow: visible;
    text-overflow: initial;
    white-space: nowrap;
}

/* UI/UX */
.portfolio-hero__floating-card--one {
    top: 14%;
    left: 35px !important;
}

/* SEO */
.portfolio-hero__floating-card--two {
    top: 48%;
    right: 35px !important;
}

/* 100% */
.portfolio-hero__floating-card--three {
    bottom: 9%;
    left: 45px !important;
}


/* TABLET */
@media (max-width: 1080px) {
    .portfolio-hero__floating-card--one {
        top: 8%;
        left: 25px !important;
    }

    .portfolio-hero__floating-card--two {
        top: 48%;
        right: 25px !important;
    }

    .portfolio-hero__floating-card--three {
        bottom: 5%;
        left: 35px !important;
    }
}


/* TELEMÓVEL */
@media (max-width: 767px) {
    .portfolio-hero__floating-card {
        min-width: 108px;
        max-width: 145px;
        padding: 11px 12px;
    }

    .portfolio-hero__floating-card span {
        font-size: 0.56rem;
        white-space: normal;
    }

    .portfolio-hero__floating-card--one {
        top: 1%;
        left: 5px !important;
    }

    .portfolio-hero__floating-card--two {
        top: 48%;
        right: 5px !important;
    }

    .portfolio-hero__floating-card--three {
        bottom: 0;
        left: 12px !important;
    }
}