.page-header {
    padding: 10rem 4rem 3rem;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse 50% 70% at 10% 20%, rgba(0,255,204,0.04), transparent);
    pointer-events: none;
}

.page-label {
    font-size: 0.7rem; 
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--cor-destaque);
    margin-bottom: 0.8rem; 
    font-weight: 500;
}

.page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 2px; 
    line-height: 1;
}

.projetos-lista {
    padding: 2rem 4rem 8rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.projeto {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    border: 1px solid var(--cor-borda);
    border-radius: 12px;
    overflow: hidden; 
    background: var(--cor-cartao);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: border-color 0.3s, box-shadow 0.3s;
    min-height: 360px;
}

.projeto:hover { 
    border-color: rgba(0, 255, 204, 0.35); 
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.04);
}

.modo-claro .projeto:hover {
    border-color: rgba(0, 168, 150, 0.35);
    box-shadow: 0 10px 30px rgba(0, 168, 150, 0.04);
}

.projeto:nth-child(even) {
    grid-template-columns: 1fr 1.1fr;
}
.projeto:nth-child(even) .slider { order: 2; }
.projeto:nth-child(even) .info-projeto { order: 1; }

.slider {
    position: relative;
    overflow: hidden;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    display: block;
    will-change: opacity;
}

.slider.sem-imagem {
    background: linear-gradient(135deg, var(--cor-fundo2), #1a1a24);
}
.slider.sem-imagem::after {
    content: 'Em Breve';
    color: var(--cor-muted);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.slider button {
    position: absolute;
    top: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(10,10,12,0.6), transparent);
    border: none;
    color: rgba(240, 237, 232, 0.7);
    width: 44px;
    height: 100%;
    border-radius: 0;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.slider .prev { left: 0; }
.slider .next {
    right: 0;
    background: linear-gradient(to left, rgba(10,10,12,0.6), transparent);
}

.slider button:hover {
    color: var(--cor-destaque);
}

.modo-claro .slider button {
    background: linear-gradient(to right, rgba(244,244,240,0.5), transparent);
    color: rgba(17, 17, 18, 0.4);
}
.modo-claro .slider .next {
    background: linear-gradient(to left, rgba(244,244,240,0.5), transparent);
}
.modo-claro .slider button:hover {
    color: var(--cor-destaque);
    background: rgba(0, 168, 150, 0.05);
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%; 
    transform: translateX(-50%);
    display: flex; 
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 6px; 
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.modo-claro .dot {
    background: rgba(0, 0, 0, 0.2);
}

.dot.active { 
    background: var(--cor-destaque); 
    transform: scale(1.2);
}

.info-projeto {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projeto-numero {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    color: rgba(0, 255, 204, 0.04);
    line-height: 1;
    margin-bottom: -0.8rem;
    letter-spacing: 2px;
}

.modo-claro .projeto-numero {
    color: rgba(0, 168, 150, 0.06);
}

.projeto-genre {
    font-size: 0.68rem; 
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cor-destaque);
    margin-bottom: 0.4rem; 
    font-weight: 500;
}

.titulo-projeto {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem; 
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
}

.titulo-projeto:hover { 
    color: var(--cor-destaque); 
}

.detalhes {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.detalhes.show {
    max-height: 500px; 
    opacity: 1;
    margin-top: 0.8rem;
}

.detalhes p {
    font-size: 0.88rem;
    color: var(--cor-muted);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 0.8rem;
}

.detalhes p strong { 
    color: var(--cor-texto); 
    font-weight: 500; 
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.tag {
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--cor-borda);
    border-radius: 2px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cor-muted);
    background: rgba(255, 255, 255, 0.01);
    transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
    border-color: var(--cor-destaque);
    color: var(--cor-destaque);
}

/* BOTÕES DO ITCH.IO */
.projeto-links-wrap {
    margin-top: 1.5rem;
    display: flex;
}

.projeto-links-wrap .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.projeto-links-wrap .btn-primary {
    background: var(--cor-destaque);
    color: #0a0a0c !important;
    border: 1px solid var(--cor-destaque);
}

.projeto-links-wrap .btn-primary:hover {
    background: transparent;
    color: var(--cor-destaque) !important;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.modo-claro .projeto-links-wrap .btn-primary {
    background: var(--cor-destaque);
    color: #ffffff !important;
}

.projeto-links-wrap .btn.disabled {
    background: transparent;
    border: 1px solid var(--cor-borda);
    color: var(--cor-muted) !important;
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
    .projeto,
    .projeto:nth-child(even) {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .projeto:nth-child(even) .slider,
    .projeto:nth-child(even) .info-projeto {
        order: unset;
    }
    .slider {
        min-height: 260px;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
        flex-wrap: wrap;
        gap: 0;
        padding: 0.8rem 1.2rem;
    }
    .nav-logo { font-size: 0.85rem; letter-spacing: 1.5px; flex: 1; }
    .botao-tema { font-size: 0.6rem; padding: 0.3rem 0.7rem; }
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
        padding: 0.6rem 0;
        border-top: 1px solid var(--cor-borda);
        margin-top: 0.4rem;
    }
    .nav-links a { font-size: 0.72rem; letter-spacing: 1.5px; }

    /* PAGE HEADER */
    .page-header { padding: 7rem 1.2rem 1.5rem; }
    .page-title { font-size: 3rem; }

    /* LISTA */
    .projetos-lista { padding: 1.2rem 1.2rem 4rem; gap: 1.2rem; }

    /* PROJETO */
    .projeto { border-radius: 8px; }
    .slider { min-height: 200px; aspect-ratio: 16/9; width: 100%; max-width: 100%; }
    .slider button { width: 36px; font-size: 1.1rem; opacity: 1; }
    .slider img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain;}
    
    /* INFO */
    .info-projeto { padding: 1.4rem 1.2rem; }
    .projeto-numero { font-size: 3rem; }
    .titulo-projeto { font-size: 1.6rem; }
    .detalhes p { font-size: 0.82rem; }
    
    .projeto-links-wrap { margin-top: 1.2rem; }
    .projeto-links-wrap .btn { width: 100%; text-align: center; }

    /* TAGS */
    .tags { gap: 0.4rem; }
    .tag { font-size: 0.65rem; padding: 0.2rem 0.5rem; }

    /* FOOTER */
    .rodape {
        padding: 1.2rem 1.5rem;
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
}