*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'montserrat', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

/* ── Banners ── */
.projeto-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.projeto-banner a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.projeto-capa {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.projeto-banner:hover .projeto-capa {
    transform: scale(0.99);
}

/* Sem capa: fundo escuro simples */
.projeto-sem-capa {
    position: absolute;
    inset: 0;
    background: #1a1a1a;
}

/* Overlay gradiente do topo */
.projeto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.534));
}

/* Título no topo do banner */
.projeto-titulo {
    position: absolute;
    top: 50vh;
    left: 2.5rem;
    right: 2.5rem;
    color: #fff;
    font-size: 4rem;
    text-align: left;
    letter-spacing: 17px;
    padding: 5px;
    font-weight: 900;
    mix-blend-mode: difference;
}

/* Data no canto inferior esquerdo */
.projeto-data {
    position: absolute;
    bottom: 2rem;
    left: 2.5rem;
    font-size: 0.85rem;
    opacity: 0.6;
    letter-spacing: 0.08em;
}

/* ── Botão flutuante de idioma ── */
#lang-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.6rem 1.1rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}

#lang-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

#lang-menu {
    display: none;
    position: fixed;
    bottom: 4.5rem;
    right: 2rem;
    z-index: 100;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    overflow: hidden;
    min-width: 140px;
}

#lang-menu button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    padding: 0.7rem 1.2rem;
    text-align: left;
    cursor: pointer;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    transition: background 0.15s, color 0.15s;
}

#lang-menu button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

#lang-menu button.active {
    color: #fff;
    font-weight: bold;
}

@media (max-width: 768px) {
    .projeto-titulo {
        font-size: 2rem;
        letter-spacing: 4px;
        top: 40vh;
        left: 1.2rem;
        right: 1.2rem;
    }

    .projeto-banner:hover .projeto-capa {
        transform: none;
    }
}