body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #0d0d0d;
    color: #f1f1f1;
}

.hero {
    background: #1a001f;
    color: #f1f1f1;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 4px solid #c084fc;

}

/* ===== Apresentação ===== */
#apresentacao {
    background: #121212;
    padding: 60px 20px;
    text-align: center;
}

#apresentacao h2 {
    color: #c084fc;
    margin-bottom: 20px;
}

#apresentacao p {
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px;
}

#apresentacao ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#apresentacao li {
    background: #1e1e1e;
    margin: 6px;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #c084fc55;
    transition: 0.3s;
}

#apresentacao li:hover {
    scale: 1.05;
    border-color: #c084fc;
}

/* ===== Templates ===== */
#templates {
    padding: 60px 20px;
    text-align: center;
}

#templates h1 {
    color: #c084fc;
    font-size: 2.2em;
}

#templates input[type="text"] {
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #1e1e1e;
    color: #f1f1f1;
    border: 1px solid #444;
    outline: none;
    transition: 0.3s;
}

#templates input[type="text"]:focus {
    border-color: #c084fc;
    box-shadow: 0 0 8px #c084fc88;
}

#quantidade {
    margin: 10px 0;
    color: #c084fc;
    font-weight: bold;
}

.template-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 30px 0;
    max-width: 1200px;
    margin: auto;
}

.card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    max-width: 280px;
    width: 100%;
    box-shadow: 0 0 10px #000;
    transition: 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    display: block;
}

.card h3 {
    margin: 15px;
    text-align: center;
    color: #c084fc;
}

.buttons {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px 20px;
    gap: 10px;
}

.buttons a {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: #9f5afd;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.buttons a:hover {
    background: #c084fc;
}

/* ===== Modal Preview ===== */
.modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px #27014e;
    border: 2px solid #c084fc;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 28px;
    font-weight: bold;
    color: #FFD700;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease, color 0.2s ease;
}

.modal .close:hover {
    transform: scale(1.2);
    color: #fff;
}

/* ===== Botão Voltar Topo ===== */
#btnTopo {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    background: #9f5afd;
    color: #000;
    border: none;
    padding: 12px 16px;
    font-size: 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #0005;
    transition: 0.3s;
    opacity: 0;
    pointer-events: none;
}

#btnTopo:hover {
    background: #9732ac;
}

#btnTopo.mostrar {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Footer ===== */
footer {
    background: #111;
    padding: 20px;
    font-size: 0.9rem;
    border-top: 2px solid #c084fc55;
    text-align: center;
}

footer a {
    color: #c084fc;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

.filtros {
    text-align: center;
    margin: 40px 0 20px;
}

.filtros button {
    background: #222;
    color: #c084fc;
    font-weight: bold;
    margin: 5px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filtros button:hover {
    background: #c084fc55;
}

.filtros .ativo {
    background: #111;
    color: white;
    border: 2px solid #c084fc55;
}

@media (max-width: 768px) {
    .template-container {
        justify-content: center;
    }

    .card {
        width: 90%;
        max-width: 100%;
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
    }

    .buttons a {
        width: 100%;
    }

    .modal-content {
        width: 100%;
        height: 90%;
    }

    #templates input[type="text"] {
        width: 90%;
    }
}