body {
    /* O gradiente preto com 70% de opacidade fica por cima da imagem */
    background: linear-gradient(rgba(0, 0, 0, 0.589)),
        url('../img/fundo-body.png') no-repeat center center fixed;
    background-size: cover;
}

.projeto-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 24px 60px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: #555;
    text-decoration: none;
    margin-bottom: 36px;
    transition: color .25s ease;
}

.back-link:hover {
    color: #9b55ff;
}

.proj-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
}

/* SLIDER */
.slider-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(127, 0, 255, 0.15);
    box-shadow: 0 0 40px rgba(127, 0, 255, 0.08);
    position: relative;
    background: #0d0015;
}

.slider-track {
    display: flex;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.slider-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    pointer-events: none;
}

.sl-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(6, 0, 15, 0.75);
    border: 1px solid rgba(127, 0, 255, 0.3);
    color: #9b55ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all .25s ease;
    backdrop-filter: blur(6px);
}

.sl-btn:hover {
    background: rgba(127, 0, 255, 0.2);
    border-color: rgba(127, 0, 255, 0.6);
    color: #fff;
}

.expand-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(6, 0, 15, 0.7);
    border: 1px solid rgba(127, 0, 255, 0.25);
    color: #9b55ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 14px;
}

.sl-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(127, 0, 255, 0.2);
    cursor: pointer;
    transition: all .3s ease;
}

.sl-dot.active {
    background: #7f00ff;
    width: 18px;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(127, 0, 255, 0.7);
}

.thumbs {
    display: flex;
    gap: 8px;
    padding: 0 14px 14px;
    overflow-x: auto;
}

.thumb {
    width: 64px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.5;
    transition: all .25s ease;
}

.thumb.active {
    border-color: #7f00ff;
    opacity: 1;
}

/* INFO */
.proj-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9b55ff;
    background: rgba(127, 0, 255, 0.1);
    border: 1px solid rgba(127, 0, 255, 0.22);
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.proj-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
}

.proj-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(127, 0, 255, 0.12);
    border: 1px solid rgba(127, 0, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.proj-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.proj-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.proj-title span {
    color: #7f00ff;
}

.proj-desc {
    font-size: 0.88rem;
    color: #aaa;
    line-height: 1.8;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(127, 0, 255, 0.08);
    border: 1px solid rgba(127, 0, 255, 0.2);
    color: #9b55ff;
    margin: 0 4px 8px 0;
}

.btn-proj-primary {
    background: linear-gradient(135deg, #7f00ff, #a040ff);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* MODAL */
.img-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.img-modal.open {
    display: flex;
}

.img-modal img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .proj-grid {
        grid-template-columns: 1fr;
    }
}