* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #121212;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.light-theme {
  background-color: #ffffff;
  color: #111111;
}

body.light-theme h1,
body.light-theme span,
body.light-theme p,
body.light-theme li {
  color: #111111;
}

body:not(.light-theme) h1,
body:not(.light-theme) span,
body:not(.light-theme) p,
body:not(.light-theme) li {
  color: #ffffff;
}

.app-header h1 {
  color: #e50914 !important;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  background: #0a0a0a;
  z-index: 10;
  transition: background-color 0.4s ease;
}

body.light-theme .app-header {
  background: #f0f0f0;
}

.app-header h1 {
  margin: 0;
  font-size: 2.8rem;
  color: #e50914 !important;
  letter-spacing: 2px;
  font-weight: 900;
  text-transform: uppercase;
}

#theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: auto;
  height: auto;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  padding: 8px 16px;
  border: 1px solid #666666;
  background: #1a1a1a;
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  z-index: 20;
}

body.light-theme #theme-toggle {
  border-color: #999999;
  background: #e8e8e8;
  color: #111111;
}

#theme-toggle:hover {
  transform: scale(1.1);
}

main {
  text-align: center;
  animation: fadeIn 0.6s ease-in;
  padding-top: 80px;
  transition: opacity 0.4s ease;
}

h1 {
  color: #ffffff;
  margin-bottom: 40px;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

li:hover {
  transform: scale(1.05);
}

li span {
  color: #808080;
  font-size: 1.15rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

li:hover span {
  color: #ffffff;
}

body.light-theme li:hover span {
  color: #111111;
}

.avatar {
  width: 120px;
  height: 120px;
  border: 2px solid #2f2f2f;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

li:hover .avatar {
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.45),
              0 0 28px rgba(255, 255, 255, 0.25),
              inset 0 0 12px rgba(255, 255, 255, 0.1);
}

body.light-theme li:hover .avatar {
  border-color: #e50914;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.45),
              0 0 28px rgba(229, 9, 20, 0.25),
              inset 0 0 12px rgba(229, 9, 20, 0.1);
}

li:active .avatar {
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.65),
              0 0 50px rgba(255, 255, 255, 0.4),
              inset 0 0 25px rgba(255, 255, 255, 0.15);
}

body.light-theme li:active .avatar {
  box-shadow: 0 0 18px rgba(229, 9, 20, 0.65),
              0 0 50px rgba(229, 9, 20, 0.4),
              inset 0 0 25px rgba(229, 9, 20, 0.15);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsivo */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  ul {
    gap: 20px;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }
}
