/* Importa a fonte */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* =========================
    CORPO
========================= */

body {
    background: linear-gradient(135deg, #fd9001, #f5ebdc);
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Camada da imagem suave */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("Imagens/backgroundsem fundo.png");
    background-size: 250px; /* tamanho dos desenhos */
    background-repeat: repeat;
    background-position: top left;
    opacity: 0.25; /* 🔥 controla a suavidade */
    pointer-events: none;
    z-index: 0;
}

/* Garante que o conteúdo fique acima da imagem */
body > * {
    position: relative;
    z-index: 1;
}

/* =========================
    HEADER
========================= */

header {
    min-height: 400px;
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    background-image:
        linear-gradient(to bottom, transparent 50%, #ddd7a4 100%),
        url('/Imagens/animais.png');
    background-size: cover;
    background-position: center;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.2),
        transparent
    );
}

header > * {
    position: relative;
    z-index: 10;
}

header img {
    width: 200px;
}

header h1 {
    font-size: 4rem;
    letter-spacing: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.color {
    color: rgb(255, 136, 0);
}

/* =========================
    CARD FLIP
========================= */

.card-flip {
    max-width: 600px;
    width: 100%;
    height: 320px;
    margin: 20px auto 2rem;
    perspective: 1000px;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.card-flip:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    background-color: rgba(255, 255, 255, 0.88); /* mais sólido */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-front h2,
.card-back h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: rgb(255, 136, 0);
    text-align: center;
}

.card-front p,
.card-back p {
    font-size: 1.1rem;
    text-align: justify;
    text-justify: inter-word;
    text-indent: 1.5em;
}

.card-back {
    transform: rotateY(180deg);
}

/* =========================
    LISTAS
========================= */

.card-front ul,
.card-back ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    text-align: center;
}

.card-front li,
.card-back li {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.redes li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.redes li:hover {
    transform: translateY(-3px);
    color: rgb(255, 136, 0);
}

/* =========================
    RODAPÉ
========================= */

footer {
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-align: center;
    padding: 2rem;
    box-shadow: 0 -4px 8px rgba(0,0,0,0.05);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* =========================
    RESPONSIVIDADE
========================= */

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .card-flip {
        height: 360px;
    }
}
