
/* =========================================
   VEMSALES — PROJETOS
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');


/* =========================================
   RESET
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #080b14;
    color: #f4f4f5;

    font-family: "Inter", sans-serif;

    overflow-x: hidden;
}

a {
    color: inherit;
}


/* =========================================
   GLOBAL
   ========================================= */

.page-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #737b91;

    font-family: "JetBrains Mono", monospace;
    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.section-label span {
    color: #8b5cf6;
}


/* =========================================
   HERO
   ========================================= */

.projects-hero {
    position: relative;

    min-height: 78vh;

    display: flex;
    align-items: center;

    padding: 150px 24px 100px;

    overflow: hidden;

    border-bottom: 1px solid rgba(255,255,255,.06);
}

.projects-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent
    );
}

.projects-glow {
    position: absolute;

    width: 650px;
    height: 650px;

    left: 50%;
    top: -150px;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(124,58,237,.13),
            transparent 68%
        );
}

.projects-hero-content {
    position: relative;
    z-index: 2;

    width: min(900px, 100%);
    margin: 0 auto;
}

.projects-hero h1 {
    max-width: 900px;

    margin-top: 30px;

    font-size: clamp(52px, 8vw, 88px);
    line-height: 1;
    letter-spacing: -.06em;
    font-weight: 500;
}

.projects-hero h1 span {
    display: block;

    color: #8b5cf6;
}

.projects-hero p {
    max-width: 600px;

    margin-top: 30px;

    color: #858da1;

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================
   PROJECT LIST
   ========================================= */

.projects-list {
    padding: 130px 0;
}

.projects-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 40px;
}

.projects-list-header p {
    max-width: 360px;

    color: #6f778b;

    font-size: 12px;
    line-height: 1.7;
}


/* =========================================
   GRID
   ========================================= */

.projects-grid-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 80px 24px;

    margin-top: 65px;
}

.project-large {
    grid-column: 1 / -1;
}


/* =========================================
   VISUAL
   ========================================= */

.project-visual {
    position: relative;

    display: block;

    height: 460px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #101522,
            #0b0f19
        );

    text-decoration: none;
}

.project-large .project-visual {
    height: 600px;
}

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

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            transparent 30%,
            rgba(124,58,237,.07),
            transparent 70%
        );

    pointer-events: none;
}


/* =========================================
   BROWSER MOCKUP
   ========================================= */

.project-browser {
    position: absolute;

    width: 72%;
    height: 78%;

    left: 14%;
    top: 13%;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 7px;

    background: #0c101a;

    box-shadow:
        0 30px 100px rgba(0,0,0,.45);

    transform:
        perspective(1200px)
        rotateX(5deg)
        rotateY(-7deg);

    transition:
        transform .5s ease;
}

.project-visual:hover .project-browser {
    transform:
        perspective(1200px)
        rotateX(2deg)
        rotateY(-3deg)
        translateY(-5px);
}

.browser-top {
    display: flex;
    align-items: center;

    height: 34px;

    padding: 0 12px;

    border-bottom: 1px solid rgba(255,255,255,.06);

    background: #101520;
}

.browser-dots {
    display: flex;
    gap: 5px;
}

.browser-dots span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #41485a;
}

.browser-address {
    margin-left: auto;
    margin-right: auto;

    color: #4e5669;

    font-family: "JetBrains Mono", monospace;
    font-size: 8px;
}

.browser-content {
    position: relative;

    height: calc(100% - 34px);

    padding: 45px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(124,58,237,.12),
            transparent 35%
        );
}

.mock-label {
    color: #777f91;

    font-family: "JetBrains Mono", monospace;
    font-size: 8px;

    letter-spacing: .1em;
}

.browser-content strong {
    display: block;

    margin-top: 22px;

    color: #e8e8eb;

    font-size: clamp(25px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: -.045em;
    font-weight: 500;
}

.mock-line {
    display: block;

    width: 90px;
    height: 2px;

    margin-top: 25px;

    background: #7c3aed;
}


/* =========================================
   PROJECT HOVER
   ========================================= */

.project-hover {
    position: absolute;

    right: 25px;
    bottom: 25px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 9px 12px;

    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;

    background: rgba(8,11,20,.75);

    color: #d7d8dd;

    font-family: "JetBrains Mono", monospace;
    font-size: 9px;

    backdrop-filter: blur(10px);

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

    transition:
        opacity .3s ease,
        transform .3s ease;
}

.project-visual:hover .project-hover {
    opacity: 1;

    transform: translateY(0);
}

.project-hover span {
    color: #a78bfa;
}


/* =========================================
   ABSTRACT PROJECTS
   ========================================= */

.project-visual-two {
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(124,58,237,.12),
            transparent 45%
        ),
        #0d111d;
}

.project-visual-three {
    background:
        linear-gradient(
            145deg,
            #101522,
            #0b0d17
        );
}

.abstract-project {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: column;
}

.abstract-symbol {
    color: #8b5cf6;

    font-family: "JetBrains Mono", monospace;
    font-size: 65px;

    opacity: .7;
}

.abstract-text {
    margin-top: 20px;

    color: #454d60;

    font-family: "JetBrains Mono", monospace;
    font-size: 10px;

    letter-spacing: .25em;
}

.abstract-number {
    position: absolute;

    top: 35px;
    right: 35px;

    color: #3f4657;

    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
}

.abstract-title {
    color: #d8d9de;

    font-size: 32px;
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 500;

    text-align: center;
}


/* =========================================
   PROJECT INFO
   ========================================= */

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 25px;

    padding-top: 20px;
}

.project-number {
    display: block;

    margin-bottom: 7px;

    color: #565e71;

    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
}

.project-info h2 {
    color: #e5e5e7;

    font-size: 18px;
    font-weight: 500;

    letter-spacing: -.025em;
}

.project-details {
    display: flex;
    gap: 8px;

    padding-top: 18px;
}

.project-details span {
    padding: 6px 8px;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 4px;

    color: #697185;

    font-family: "JetBrains Mono", monospace;
    font-size: 8px;
}


/* =========================================
   CTA
   ========================================= */

.projects-cta {
    padding: 120px 0 150px;

    border-top: 1px solid rgba(255,255,255,.05);
}

.projects-cta-content {
    text-align: center;
}

.projects-cta-content .section-label {
    justify-content: center;
}

.projects-cta h2 {
    margin-top: 25px;

    color: #eeeeef;

    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -.055em;
    font-weight: 500;
}

.projects-cta h2 span {
    display: block;

    color: #777f93;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 35px;
    padding: 13px 18px;

    border: 1px solid #8b5cf6;
    border-radius: 7px;

    background: #7c3aed;

    color: white;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition:
        background .25s ease,
        transform .25s ease;
}

.cta-button:hover {
    background: #8b5cf6;

    transform: translateY(-2px);
}


/* =========================================
   FOOTER
   ========================================= */

.footer {
    padding: 28px 0;

    border-top: 1px solid rgba(255,255,255,.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;

    color: #4f5668;

    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 800px) {

    .page-container {
        width: min(100% - 32px, 1180px);
    }

    .projects-hero {
        min-height: 70vh;

        padding-top: 120px;
    }

    .projects-hero h1 {
        font-size: clamp(46px, 12vw, 68px);
    }

    .projects-list {
        padding: 100px 0;
    }

    .projects-list-header {
        display: block;
    }

    .projects-list-header p {
        margin-top: 20px;
    }

    .projects-grid-list {
        grid-template-columns: 1fr;

        margin-top: 50px;

        gap: 60px;
    }

    .project-large {
        grid-column: auto;
    }

    .project-visual,
    .project-large .project-visual {
        height: 390px;
    }

    .project-browser {
        width: 88%;
        height: 75%;

        left: 6%;
    }

    .browser-content {
        padding: 28px;
    }

    .project-hover {
        opacity: 1;

        transform: none;
    }

    .projects-cta {
        padding: 100px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
    }
}


@media (max-width: 480px) {

    .project-visual,
    .project-large .project-visual {
        height: 330px;
    }

    .browser-content strong {
        font-size: 25px;
    }

    .project-info {
        flex-direction: column;
    }

    .project-details {
        padding-top: 0;
    }
}
