/* === Fonte === */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600&family=Roboto:wght@300;400&display=swap');

/* === Geral === */
body {
    margin: 0;
    background-color: #050510;
    color: #f0f0f0;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

/* === Cabeçalho 3D === */
header {
    position: relative;
    height: 100vh;
    background: url('https://cdn.pixabay.com/photo/2017/08/30/03/36/space-2694035_1280.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    perspective: 800px;
}

header h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5em;
    letter-spacing: 2px;
    transform: rotateX(20deg);
    text-shadow: 0 0 25px #ffcc33, 0 0 50px #ffcc33;
}

header p {
    font-size: 1.2em;
    opacity: 0.85;
    transform: translateZ(40px);
}

header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3), #050510);
}

/* === Navegação === */
nav {
    background: rgba(10, 10, 25, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 15px;
    flex-wrap: wrap;
}

nav a {
    color: #eee;
    margin: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.4s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -4px;
    left: 0;
    background: #ffcc33;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #ffcc33;
}

/* === Seções === */
section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: auto;
    text-align: center;
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateZ(10px) scale(1.01);
}

/* === Cards com Efeito 3D === */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: linear-gradient(145deg, #0f0f25, #1e1e40);
    padding: 25px;
    border-radius: 15px;
    width: 220px;
    transition: transform 0.6s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    transform-style: preserve-3d;
}

.card:hover {
    transform: rotateY(10deg) rotateX(5deg) scale(1.05);
    box-shadow: 0 0 25px rgba(255, 204, 51, 0.5);
}

/* === Efeitos de Fundo === */
#inicio {
    background: radial-gradient(circle at top, #161628, #090916);
}

#primeiras-divindades {
    background: radial-gradient(circle, #121233, #06061a);
}

#gaia-urano {
    background: radial-gradient(circle, #1b1b3f, #0b0b1c);
}

#queda-urano {
    background: radial-gradient(circle, #111133, #050512);
}

#titans-olimpicos {
    background: radial-gradient(circle, #1a1a3d, #080818);
}

/* === Rodapé === */
footer {
    background: #070710;
    text-align: center;
    padding: 30px 15px;
    color: #999;
    font-size: 0.9em;
    box-shadow: 0 -5px 10px rgba(0,0,0,0.5);
}

/* === Animação Fade === */
.fade-section {
    opacity: 0;
    animation: fadeInUp 1.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Responsividade === */
@media (max-width: 900px) {
    header h1 { font-size: 2.5em; }
    .card { width: 180px; }
}

@media (max-width: 600px) {
    header { height: 70vh; }
    header h1 { font-size: 2em; }
    nav ul { flex-direction: column; }
    section { padding: 60px 15px; }
    .cards { flex-direction: column; align-items: center; }
}
