/* ------------------------------ */
/* Base do Site                   */
/* ------------------------------ */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #ffa351;
  /* Fundo laranja vibrante */
  color: #000;
  /* Texto padrão preto */
  font-size: 16px;
}

/* ------------------------------ */
/* Loader                         */
/* ------------------------------ */
#loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: #ffa351;
  z-index: 1001;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ------------------------------ */
/* Menu Lateral                   */
/* ------------------------------ */
nav.menu {
  width: 120px;
  background-color: rgba(43, 43, 43, 0.932);
  border-radius: 10px;
  padding: 20px;
  position: sticky;
  left: 20px;
  top: 50%;
  transform: translateY(-72%);
  z-index: 1000;
}

/* Lista de Links do Menu */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin-bottom: 15px;
}

nav ul li a {
  color: #b9b9b9;
  text-decoration: none;
  font-weight: bold;
  display: block;
  padding: 10px 20px;
  transition: color 0.3s, background 0.3s;
}

nav ul li a:hover {
  color: #fff;
  background-color: #333;
  border-radius: 5px;
}

/* ------------------------------ */
/* Botão de Menu Mobile (hamburger) */
/* ------------------------------ */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Responsivo: Menu Mobile */
@media (max-width: 768px) {
  nav.menu {
    top: 10px;
    left: 10px;
    transform: none;
    /* Retira centralização no mobile */
  }

  .menu-toggle {
    display: block;
  }

  .menu-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #1c1c1c;
    border-radius: 10px;
  }

  .menu-list.open {
    max-height: 500px;
  }
}

main {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* ------------------------------ */
/* Conteúdo Principal              */
/* ------------------------------ */
.content {
  margin-left: 140px;
  /* Espaço para o menu */
  padding: 80px;
}

/* Seções do conteúdo */
.section {
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------ */
/* Tipografia                     */
/* ------------------------------ */
h1,
h2 {
  font-family: 'Montserrat', sans-serif;
  color: #000;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
}

h2 {
  font-size: clamp(1.2rem, 3vw, 2rem);
}

p {
  line-height: 1.6;
  font-size: 1rem;
  color: #000;
}

/* ------------------------------ */
/* Imagem de Perfil (Profile Image) */
/* ------------------------------ */
.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: all 1s ease-in-out;
  z-index: 1000;
}

/* Quando animar, a imagem vai para o canto superior direito */
.profile-image.animate {
  width: 120px;
  height: 120px;
  top: 20px;
  left: calc(100% - 140px);
  transform: translate(0, 0);
  opacity: 1;
}

/* Depois de 5 segundos, desaparece */
.profile-image.fade-out {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

/* Para garantir que a imagem fique sempre bem enquadrada */
.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------ */
/* Rodapé                         */
/* ------------------------------ */
footer {
  text-align: center;
  padding: 20px;
  background-color: #111;
  color: #eee;
  font-size: 0.9rem;
}

footer .social a {
  margin: 0 10px;
  color: #ffa351;
  text-decoration: none;
}

footer .social a:hover {
  text-decoration: underline;
}