/* Importa Família de Fontes do Google */
@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Sarala:wght@400;700&display=swap');

/* Define o Estilo da Margem Inicial e Tipos de Decoração de Texto */
/* =========================
   ESTILOS GERAIS E FUNDO
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ------------------------------
    ESTILO BASE DA PÁGINA
------------------------------ */
body {
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    /*background: linear-gradient(135deg, #0a0a0a, #222);*/
    background: radial-gradient(circle at center, #0f172a, #000);
    color: #fff;
    /*font-family: "Segoe UI", sans-serif;*/
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    transition: background 2s ease;
    animation: gradientIdle 15s ease infinite;
}

@keyframes gradientIdle {
    0% { background: radial-gradient(circle at center, #0f172a, #000); }
    50% { background: radial-gradient(circle at center, #1e3a8a, #000); }
    100% { background: radial-gradient(circle at center, #0f172a, #000); }
}

body.expanded {
    animation: gradientExpanded 12s ease infinite;
}

@keyframes gradientExpanded {
    0% { background: radial-gradient(circle at center, #1e40af, #000); }
    50% { background: radial-gradient(circle at center, #3b82f6, #0f172a); }
    100% { background: radial-gradient(circle at center, #1e40af, #000); }
}

body::-webkit-scrollbar {
    display: none;
}

/* ------------------------------
    CONTAINER PRINCIPAL
------------------------------ */
.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
    position: relative;
    flex-direction: column;
}

.container h1 {
    margin-top: 20px;
}

/* ------------------------------
    TÍTULO ANIMADO
------------------------------ */
.titulo-animado {
    position: absolute;
    top: 30px;
    text-align: center;
    font-size: 1.6rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1.4s ease forwards, pulseText 5s ease-in-out infinite;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

@keyframes fadeInDown {
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

@keyframes pulseText {
    0%, 100% { text-shadow: 0 0 8px rgba(255,255,255,0.3); }
    50% { text-shadow: 0 0 20px rgba(255,255,255,0.7); }
}

/* ------------------------------
    GRID DOS CARDS
------------------------------ */
.cards-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 4rem;
}

.cards-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    flex: 1;
    justify-items: center;
}

/* ------------------------------
    ESTILO DOS CARDS
------------------------------ */
.card {
    width: 150px;
    height: 150px;
    /*background: rgba(255,255,255,0.1);*/
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 20px rgba(255,255,255,0.05);
    transition: all 0.4s ease;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: fadeInUp 1s ease forwards;
    box-shadow: 0 5px 25px rgba(0,0,0,0.4);
}

@keyframes fadeInUp {
    to {
    opacity: 1;
    transform: translateY(0) scale(1);
    }
}

.card:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.07);
    box-shadow: 0 0 25px rgba(255,255,255,0.3);
}

/* ------------------------------
    CARD CENTRAL (PAI)
------------------------------ */
.card.central {
    width: 210px;
    height: 230px;
    /*background: rgba(255,255,255,0.25);*/
    background: #1e293b;
    border: 2px solid rgba(255,255,255,0.4);
    /*box-shadow: 0 0 30px rgba(255,255,255,0.3);*/
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    font-weight: bold;
    animation: gradientCard 15s ease infinite, fadeInUp 1.2s ease forwards, pulse 4s ease-in-out infinite;
    transition: transform 0.5s ease;
    transition: background 2s ease;
    /*animation: gradientCard 15s ease infinite;*/
}

@keyframes gradientCard {
    0% { background: radial-gradient(circle at center, #093b37, #000); }
    50% { background: radial-gradient(circle at center, #053c37, #000); }
    100% { background: radial-gradient(circle at center, #117144, #000); }
}

.card.central img {
    width:100px; 
    height:100px; 
    border-radius:10%; 
    margin-bottom:15px;
} /* border-radius:50% */

.card.central h2 {
    margin:0; 
    font-size:1.3rem;
}

.card.central p {
    font-size:1.0rem; 
    color:#94a3b8; 
    text-align:center; 
    padding:0 15px; 
}

@keyframes pulse {
    0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(255,255,255,0.3);
    }
    50% {
    transform: scale(1.05);
    box-shadow: 0 0 45px rgba(255,255,255,0.6);
    }
}

/* ------------------------------
    IFRAME FIXO NA BASE
------------------------------ */
iframe {
    width: 90%;
    height: clamp(100px, 15vh, 180px);
    border: none;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.6);
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

iframe#contentFrame {
    width: 90%;
    height: 90px;
    border: none;
    border-radius: 10px;
    background: #0f172a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    margin-top: 20px;
}

/* ------------------------------
    RESPONSIVIDADE
------------------------------ */
@media (max-width: 900px) {
    .cards-grid {
    flex-direction: column;
    gap: 1.5rem;
    }

    .cards-col {
    grid-template-columns: repeat(2, 1fr);
    }

    .card {
    width: clamp(110px, 40vw, 150px);
    height: clamp(110px, 40vw, 150px);
    }

    .card.central {
    order: -1;
    width: clamp(130px, 45vw, 180px);
    height: clamp(130px, 45vw, 180px);
    }

    iframe {
    width: 95%;
    height: clamp(80px, 18vh, 150px);
    }

    .titulo-animado {
    font-size: 1.2rem;
    top: 15px;
    }
}

@media (max-width: 500px) {
    .cards-col {
    grid-template-columns: 1fr;
    }
}