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

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    background-color: black;
    font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
    cursor: default;
    overflow-x: hidden;
    overflow-y: auto;
}

::selection {
    background: hotpink;
    color: #000;
}

.video-bloco {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-bloco video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* ======================================================================
   TIPOGRAFIA BASE (Desktop)
====================================================================== */

/* No seu CSS (projetos.css) */
h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

h2 {
    font-size: 1rem;
    font-weight: 400;
    color: gray;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 300;
    color: gray;
}

p {
    color: white;
    font-size: 1.5rem;
    word-wrap: break-word;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    margin-bottom: 50px;
}

/* ======================================================================
   LAYOUT (PROJETOS)
====================================================================== */

.container {
    display: flex;
    width: 100%;
    gap: 40px;
}

main.projeto figure {
    margin: 0;
}

.coluna {
    width: 50%;
}

.projeto {
    margin: 4rem;
}

.imagens {
    max-width: 100%;
    height: auto;
    display: block;
}

.imagens img {
    max-width: 100%;
    height: auto;
    display: block;
}

.coluna section {
    margin-top: 0;
}

.espacador-topo {
    height: calc(4rem + 20px);
    margin-bottom: 0px;
}

.projeto img {
    padding-top: 0px;
    padding-bottom: 40px;
}

/* ======================================================================
   HEADER & FOOTER (Elementos Fixos)
====================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 8px;
    margin-top: 0.5rem;
    z-index: 100;
}

header img {
    width: 1.5rem;
    height: auto;
    display: block;
}

footer {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 8px;
    z-index: 100;
    mix-blend-mode: difference;
    pointer-events: none;
}

footer a {
    pointer-events: auto;
    display: block;
    width: 1.5rem;
}

.star-link:hover img {
    content: url("../assets/img/star-pressed-2.svg");
}

/* ======================================================================
   TOOLTIP
====================================================================== */

.tooltip {
    position: fixed;
    background: white;
    color: hotpink;
    font-family: 'Times', serif;
    font-size: 1rem;
    padding: 8px 10px;
    border-radius: 4px;
    display: none;
    pointer-events: none;
    z-index: 999;
    white-space: pre-line;
}

.info-image::after {
    content: attr(data-info);
    white-space: pre-line;
}

/* ======================================================================
   RESPONSIVIDADE (MOBILE) - CORREÇÕES DE ESPAÇAMENTO
====================================================================== */

@media (max-width: 768px) {

    /* --- GERAL --- */
    body {
        cursor: default;
    }

    /* --- TIPOGRAFIA --- */
    h1 {
        font-size: 2rem;
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: 0;
    }

    h2,
    h3 {
        font-size: 1rem;
        padding-bottom: 2px;
    }

    p {
        font-size: 1.5rem;
        padding-bottom: 10px;
    }

    /* --- LAYOUT --- */
    .container {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .coluna {
        width: 100%;
    }

    .projeto {
        margin: 0;
    }

    .imagens {
        padding: 0;
    }


    /* --- FIXOS --- */
    header {
        margin-top: 1rem;
    }

    header img,
    footer a {
        width: 32px;
    }
}