/* Reset Básico */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'pillowlava';
    src: url('fonts/Pilowlava-Regular.woff') format('woff');
    font-weight: normal;
}

@font-face {
    font-family: 'abordage';
    src: url('fonts/Abordage-Regular.woff2') format('woff2');
    font-weight: normal;
}

@font-face {
    font-family: 'LilGroteskR';
    src: url('fonts/LilGrotesk-Regular.woff2') format('woff2');
    font-weight: normal;
}

body {
    font-family: 'LilGroteskR', Arial, sans-serif;
    background-color: #FAF9F6;
    color: #000;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* --- Lava Lamp Container --- */
.lava-lamp-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FAF9F6;
    z-index: -1;
    overflow: hidden;
}

/* --- Blobs/Manchas --- */
.blob {
    position: absolute;
    background-color: #6633FF;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.blob-1 {
    width: 300px;
    height: 300px;
    top: 20%;
    left: 15%;
    animation: float1 20s ease-in-out infinite;
}

.blob-2 {
    width: 280px;
    height: 280px;
    top: 60%;
    left: 70%;
    animation: float2 22s ease-in-out infinite;
}

.blob-3 {
    width: 320px;
    height: 320px;
    top: 50%;
    right: 20%;
    animation: float3 24s ease-in-out infinite;
}

.blob-4 {
    width: 260px;
    height: 260px;
    bottom: 20%;
    left: 40%;
    animation: float4 23s ease-in-out infinite;
}

.blob-5 {
    width: 290px;
    height: 290px;
    top: 30%;
    right: 30%;
    animation: float5 25s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 80px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -60px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, 50px); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-25px, 70px); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -40px); }
}

/* --- Menu Topo --- */
.menu-topo {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    z-index: 15;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    font-family: 'abordage', Arial, sans-serif;
    text-decoration: none;
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 50px;
    background-color: rgba(41, 0, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: rgba(41, 0, 255, 1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.btn:active {
    transform: translateY(0);
}

.btn-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Thumbnails (Direita) --- */
.galeria-right {
    position: fixed;
    right: 0;
    top: 0;
    width: 15%;
    height: 100vh;
    padding: 40px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.projeto-thumb {
    position: relative;
    cursor: pointer;
    width: 100%;
    aspect-ratio: 1;
    transition: none;
    text-decoration: none;
    display: block;
}

.projeto-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    transition: none;
    border-radius: 6px;
}

.projeto-thumb:hover img {
    filter: none;
}

.projeto-thumb:hover img {
    filter: grayscale(100%);
}

/* --- Hover Label --- */
.projeto-label {
    position: fixed;
    background-color: #6633FF;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-family: 'abordage', Arial, sans-serif;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 30;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.projeto-label.visible {
    opacity: 1;
    visibility: visible;
}

/* --- Scrollbar --- */
.galeria-right::-webkit-scrollbar {
    width: 6px;
}

.galeria-right::-webkit-scrollbar-track {
    background: transparent;
}

.galeria-right::-webkit-scrollbar-thumb {
    background: rgba(102, 51, 255, 0.4);
    border-radius: 10px;
}

.galeria-right::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 51, 255, 0.7);
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .galeria-right {
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 20px;
        gap: 15px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .projeto-thumb {
        min-width: 100px;
        flex-shrink: 0;
    }
}