* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 0; 
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #666;
  color: #fff;
}

/* -------------------- NAVBAR -------------------- */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: #333;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f5c518;
}

.nav-links a.active {
  border-bottom: 2px solid #f5c518;
}

/* -------------------- CONTEÚDO -------------------- */

/* Animações */
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideRight {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 1200px;
  margin: 10px;
  gap: 40px;
  padding: 0 20px;
}

.avatar {
  height: 450px;
  width: 320px;
  margin-top: 30%;
  border-radius: 20px;
  border: solid 2px #fff;
  animation: slideRight 1s ease-out forwards;
}

.right {
  max-width: 500px;
  animation: slideUp 1s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
  text-align: center;
}

.right h1 {
  font-size: 32px;
  margin-bottom: 20px;
  font-family: 'Press Start 2P', monospace;
}

/* -------------------- RESPONSIVIDADE -------------------- */
@media (max-width: 992px) {
  .avatar {
    height: 380px;
    width: 280px;
  }

  .right h1 {
    font-size: 24px;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 50%;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
  }
   .nav-links a {
    font-size: 0.8rem;
    white-space: nowrap;
    display: inline-block;
  }
  .container {
    margin-top: 15%;
    padding: 10px;
    gap: 15px;
    width: 100%;
  }
   .logo {
    order: 0;
  }
}

@media (max-width: 400px) {
  .container {
    margin-top: 15%;
    padding: 10px;
    gap: 15px;
    width: auto;
  }
   .nav-links a {
    font-size: 0.8rem;
    white-space: nowrap;
    display: inline-block;
  }
  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
  }
}
