
/* Netflix-inspired CSS */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Netflix Sans', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(20, 20, 20, 0.5) 100%), url('assets/netflix.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    height: 70px;
    z-index: 1000;
    background-color: var(--dark-bg);
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 92px;
    margin-right: 25px;
    cursor: pointer;
}

 .logo-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.logo {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 120px;
  max-width: 130px;
  z-index: 110;
}

main { width: min(1200px, 100%); }

section[aria-label="Seleção de perfis"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  margin: 0 auto;
}

section[aria-label="Seleção de perfis"] h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
  margin-bottom: 28px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 900px;
}

.intro-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
  pointer-events: none;
}


nav ul { list-style: none; }

.lista-perfis {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
}

.lista-perfis > li { list-style: none; }

.perfil {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  border-radius: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
  padding: 4px;
  
}

.perfil:hover { transform: translateY(-4px) scale(1.02); box-shadow: rgba(0,0,0,.45); }

.perfil img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.perfil:hover img { border-color: #e50914; box-shadow: 0 10px 20px rgba(229,9,20,.5); }

.perfil figcaption {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
}

body.light-mode {
  background: linear-gradient(135deg, #f2f2f2 0%, #dddddd 100%);
  color: #111;
}

body.light-mode .theme-toggle { background: transparent; color: #111; }
body.light-mode section[aria-label="Seleção de perfis"] h1 { color: #111; text-shadow: none; }
body.light-mode .profile { background: rgba(255,255,255,.18); }

.main-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.main-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .4s ease-in-out;
}

@media (max-width: 1024px) {
  .profile-list { gap: 18px; }
  .profile img { width: 130px; height: 130px; }
}

@media (max-width: 768px) {
  body { padding: 20px 12px; }
  .profile-list { gap: 16px; }
  .profile img { width: 110px; height: 110px; }
  .theme-toggle { width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .profile-list { flex-direction: column; gap: 12px; }
  .profile img { width: 100px; height: 100px; }
  section[aria-label="Seleção de perfis"] h1 { font-size: 1.8rem; margin-bottom: 16px; }
}
