* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 500vh;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

canvas {
    position: fixed;
    inset: 0;
}

.model {
    width: 100%;
    height: 100dvh;
    position: fixed;
    inset: 0;
    background: #d7d7d7;
}

section {
    position: relative;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
    z-index: 2;
}

/* HERO ALINHADA COM A LATA */

.hero {
    overflow: hidden;
    text-align: center;
}

.hero h1 {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    font-size: clamp(24px, 6vw, 36px);
    line-height: 1.1;
    z-index: 3;
}

.hero h2 {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    width: min(760px, 92%);
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.15;
    z-index: 3;
}

.hero p {
    position: absolute;
    top: 73%;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 82%);
    font-size: clamp(14px, 3.8vw, 18px);
    line-height: 1.45;
    text-align: center;
    z-index: 3;
}

/* Ajuste fino para celular */
@media (max-width: 600px) {
    .hero h1 {
        top: 20%;
    }

    .hero h2 {
        top: 63%;
        width: 88%;
    }

    .hero p {
        top: 73%;
        width: 84%;
        line-height: 1.45;
    }
}


/* SCANNER */

.scanner {
    overflow: hidden;
}

.scan-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 2em;
}

.scan-container {
    width: min(360px, 86vw);
    height: min(500px, 65dvh);
    border: 1px solid #000;
    border-radius: 0.5em;
}

.barcode {
    position: absolute;
    bottom: 1em;
    left: 2em;
    width: 200px;
    height: 100px;
}

.barcode img {
    object-fit: contain;
}

.purchased {
    position: absolute;
    bottom: 2em;
    right: 2em;
    padding: 0.5em 4em;
    color: red;
    border: 1px solid red;
    border-radius: 1em;
}

.purchased p {
    font-size: 14px;
}

/* CARD PORTFÓLIO */

.perfil {
    opacity: 0;
    transform: scale(0);
}

.portfolio-card {
    position: absolute;
    width: min(92vw, 680px);
    padding: 28px;
    border-radius: 32px;
    color: #fff;
    background: rgba(8, 8, 12, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.45),
        inset 0 0 40px rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, rgba(94, 169, 255, 0.22), transparent 45%);
    opacity: 0.7;
    pointer-events: none;
}

.card-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.perfil-foto {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.perfil-tag {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #73f7ff;
}

.portfolio-card h3 {
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1;
    margin-bottom: 8px;
}

.portfolio-card p {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.card-links,
.card-social {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.card-links a,
.card-social a {
    text-decoration: none;
    color: #fff;
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: 0.25s ease;
}

.card-links a:hover,
.card-social a:hover {
    transform: translateY(-3px) scale(1.03);
    background: rgba(255, 255, 255, 0.16);
}

.card-social .whatsapp {
    background: #25d366;
    color: #06180d;
    border: none;
}

/* OUTRO */

.outro h2 {
    width: min(900px, 90%);
    text-align: center;
    font-size: clamp(24px, 5vw, 46px);
    line-height: 1.1;
}

/* MOBILE CARD / SCANNER */

@media (max-width: 600px) {
    .scan-info {
        padding: 1.5em;
        font-size: 13px;
    }

    .barcode {
        width: 100px;
        height: 70px;
        left: 1.5em;
    }

    .purchased {
        right: 1.5em;
        bottom: 3em;
        padding: 0.5em 2.5em;
    }

    .purchased p {
        font-size: 12px;
    }

    .portfolio-card {
        width: 92vw;
        padding: 22px;
        border-radius: 26px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
    }

    .perfil-foto {
        width: 100px;
        height: 100px;
    }

    .card-links,
    .card-social {
        justify-content: center;
    }

    .card-links a,
    .card-social a {
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* LENIS */

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: clip;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}


.portfolio-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 34px;
    position: relative;
    z-index: 5;
}

.portfolio-banner {
    position: relative;
    width: 100%;
    height: clamp(76px, 12vw, 100px);
    overflow: hidden;
    border-radius: 22px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.4s ease;
}

.portfolio-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0 clamp(18px, 4vw, 30px);
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72),
        rgba(0, 0, 0, 0.28)
    );
    color: white;
}

.banner-overlay h2 {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 700;
    line-height: 1;
}

.banner-overlay span {
    font-size: clamp(11px, 2.5vw, 14px);
    opacity: 0.8;
    white-space: nowrap;
}

.portfolio-banner:hover {
    transform: translateY(-5px);
}

.portfolio-banner:hover img {
    transform: scale(1.08);
}

.card-social {

    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.card-social a {
    flex: 0 1 auto;
    text-align: center;
    font-size: 20px;
}
@media (max-width: 600px) {
    .portfolio-card {
        width: 92vw;
        padding: 22px;
        border-radius: 26px;
        overflow: hidden;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
    }

    .perfil-foto {
        width: 90px;
        height: 90px;
        margin-top: -10px;
    }

    .card-social {
        justify-content: center;
    }

    .card-social a {
        width: 46px;
        height: 46px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .portfolio-actions {
        width: 100%;
        margin-top: 24px;
        gap: 14px;
    }

    .portfolio-banner {
        height: 74px;
    }

    .banner-overlay {
        padding: 0 18px;
    }

    .banner-overlay h2 {
        font-size: 24px;
    }

    .banner-overlay span {
        font-size: 11px;
    }
}