/* Tema cósmico */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background: #000;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

/* Camada da nebulosa */
.nebula {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255,0,150,0.3), transparent 70%),
                radial-gradient(circle at 70% 70%, rgba(0,200,255,0.3), transparent 70%),
                radial-gradient(circle at 50% 90%, rgba(255,200,0,0.3), transparent 70%);
    animation: moveNebula 20s infinite alternate;
    z-index: -2;
}

@keyframes moveNebula {
    from { transform: scale(1) translate(0,0); }
    to { transform: scale(1.2) translate(-20px, 20px); }
}

/* Camada das estrelas */
.stars {
    position: fixed;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.2; }
    to { opacity: 1; }
}

/* Cabeçalho */
header {
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid #444;
}

header nav ul {
    list-style: none;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin: 0 10px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

/* Foto de perfil */
.perfil {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffd700;
    margin: 20px auto;
    display: block;
}

/* Abas */
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  padding: 10px 20px;
  border-radius: 5px 5px 0 0;
  background: #222;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

nav ul li a.active {
  background: #007acc;
  color: #fff;
}

nav ul li a:hover {
  background: #444;
}

/* Botão */
button {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #444;
    color: #fff;
}

/* Conteúdo */
main {
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

section {
    margin-bottom: 40px;
    background: rgba(0,0,0,0.6);
    padding: 20px;
    border-radius: 8px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Rodapé */
footer {
    text-align: center;
    padding: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-top: 2px solid #444;
}