/* ==========================================================================
   MeuPortfólio - Estilo Netflix Real Ultra-Crisp
   Design System de Alta Definição & Painel de Administrador Protegido
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variáveis Globais (Design Tokens Netflix Real)
   -------------------------------------------------------------------------- */
:root {
  --bg-primary: #141414;
  --bg-secondary: #181818;
  --bg-card: #1f1f1f;
  --bg-modal: #181818;
  
  --netflix-red: #E50914;
  --netflix-red-hover: #F40612;
  --netflix-red-glow: rgba(229, 9, 20, 0.4);
  
  --text-primary: #FFFFFF;
  --text-secondary: #E5E5E5;
  --text-muted: #d1d5db;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  
  --z-header: 1000;
  --z-modal: 2000;
  --z-toast: 3000;
}

/* --------------------------------------------------------------------------
   2. Reset e Estilos Nítidos de Tipografia (Sem Serrilhados & Acessibilidade)
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2px solid var(--netflix-red);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body {
  line-height: 1.5;
  background-color: var(--bg-primary);
  -webkit-tap-highlight-color: transparent;
  -webkit-overflow-scrolling: touch;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  touch-action: manipulation;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Scrollbar Personalizada Netflix */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--netflix-red);
}

/* --------------------------------------------------------------------------
   3. Tela Inicial de Seleção de Perfil ("Quem está assistindo?")
   -------------------------------------------------------------------------- */
.profile-selection-view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: var(--bg-primary);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  padding-top: max(40px, env(safe-area-inset-top));
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.profile-selection-view.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.profile-header-logo {
  position: absolute;
  top: 30px;
  left: 4%;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.brand-logo-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.brand-logo-container:hover {
  transform: scale(1.04);
}

.brand-logo-v-icon {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.header-v-icon {
  height: 34px;
}

.brand-logo-text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand-logo-vitor {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #e50914;
  letter-spacing: 2px;
  line-height: 0.88;
  text-shadow: 0 2px 10px rgba(229, 9, 20, 0.4);
}

.brand-logo-portfolio {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  color: #a3a3a3;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

.profile-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.profiles-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(20px, 2.5vw, 35px);
  flex-wrap: wrap;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(140px, 12vw, 165px);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.profile-card:hover {
  transform: scale(1.06);
}

.avatar-box {
  width: clamp(140px, 12vw, 165px);
  height: clamp(140px, 12vw, 165px);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3.5px solid transparent;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  background-color: #141414;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.profile-card:hover .avatar-box {
  border-color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Slot de Adicionar Perfil (+ estilo Netflix 1:1) */
.avatar-add-box {
  background: transparent;
  box-shadow: none;
  border-color: transparent !important;
}

.avatar-add-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #6d6d6d;
  color: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.profile-card:hover .avatar-add-circle {
  background-color: #ffffff;
  color: #141414;
  transform: scale(1.06);
}

.profile-name {
  margin-top: 14px;
  font-size: clamp(1rem, 1.1vw, 1.25rem);
  color: #a3a3a3;
  transition: color 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.profile-card:hover .profile-name {
  color: #ffffff;
  font-weight: 600;
}

/* Botão Gerenciar Perfis */
.btn-manage-profiles {
  margin-top: 45px;
  padding: 11px 34px;
  border: 1.5px solid #a3a3a3;
  color: #e5e5e5;
  font-size: 1.05rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.btn-manage-profiles:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   4. Cabeçalho (Header Netflix Real)
   -------------------------------------------------------------------------- */
.netflix-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: var(--z-header);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  transition: background-color var(--transition-normal);
}

.netflix-header.scrolled {
  background-color: rgba(20, 20, 20, 0.98);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.logo .brand-logo-vitor {
  font-size: 1.85rem;
}

.logo .brand-logo-portfolio {
  font-size: 0.52rem;
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  font-weight: 500;
  position: relative;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.nav-link:hover {
  color: var(--text-muted);
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--netflix-red);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--netflix-red);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 0;
  opacity: 0;
  padding: 6px 0;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 16px; /* Previne auto-zoom no iOS */
  transition: width var(--transition-normal), opacity var(--transition-normal), padding var(--transition-normal);
  -webkit-appearance: none;
}

.search-box.open .search-input {
  width: 195px;
  opacity: 1;
  padding: 6px 12px 6px 34px;
}

.search-icon-btn {
  position: relative;
  z-index: 2;
}

.search-box.open .search-icon-btn {
  position: absolute;
  left: 8px;
}

.icon-btn {
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.icon-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--netflix-red);
  box-shadow: 0 0 6px var(--netflix-red);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #1e88e5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  cursor: pointer;
}

.profile-avatar-face {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   5. Destaque Principal (Hero Carousel)
   -------------------------------------------------------------------------- */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 580px;
  max-height: 850px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-bg,
.slide-bg-picture,
.slide-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: blur(1px) brightness(0.88);
  transform: scale(1.04);
  transition: transform 7s ease-out, filter var(--transition-slow);
  z-index: 1;
}

.carousel-slide.active .slide-bg,
.carousel-slide.active .slide-bg-img {
  transform: scale(1.0);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(77deg, rgba(14, 14, 14, 0.92) 0%, rgba(14, 14, 14, 0.5) 55%, rgba(14, 14, 14, 0.15) 100%),
    linear-gradient(180deg, rgba(14, 14, 14, 0) 35%, rgba(14, 14, 14, 0.85) 85%, rgba(14, 14, 14, 1) 100%);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 820px;
  padding: 0 4%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}

.slide-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.meta-match {
  color: #46d369;
  font-weight: 800;
}

.meta-badge {
  border: 1px solid rgba(255,255,255,0.4);
  padding: 2px 7px;
  font-size: 0.72rem;
  border-radius: 3px;
  font-weight: 700;
}

.slide-description {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 650px;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-buttons {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.btn-primary {
  background-color: #ffffff;
  color: #000000;
  padding: 13px 28px;
  border-radius: 4px;
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 4px 15px rgba(255,255,255,0.15);
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.85);
  transform: scale(1.03);
}

.btn-secondary {
  background-color: rgba(109, 109, 110, 0.6);
  color: var(--text-primary);
  padding: 13px 28px;
  border-radius: 4px;
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  touch-action: manipulation;
}

.btn-secondary:hover {
  background-color: rgba(109, 109, 110, 0.35);
  transform: scale(1.03);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity var(--transition-fast), background-color var(--transition-fast);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  touch-action: manipulation;
}

.hero-carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: var(--netflix-red);
}

.carousel-btn.prev { left: 2%; }
.carousel-btn.next { right: 2%; }

.carousel-indicators {
  position: absolute;
  bottom: 35px;
  right: 4%;
  z-index: 10;
  display: flex;
  gap: 6px;
}

.indicator-dot {
  width: 16px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.3);
  transition: background-color var(--transition-fast), width var(--transition-fast);
  border-radius: 2px;
  cursor: pointer;
}

.indicator-dot.active {
  background-color: var(--netflix-red);
  width: 32px;
  box-shadow: 0 0 8px var(--netflix-red);
}

/* --------------------------------------------------------------------------
   6. Gerenciamento de Visões (Páginas: Início, Sobre, Contato, Admin)
   -------------------------------------------------------------------------- */
.page-view {
  display: none;
}

.page-view.active {
  display: block;
}

/* --------------------------------------------------------------------------
   7. Linhas da Netflix Real
   -------------------------------------------------------------------------- */
.main-content {
  position: relative;
  z-index: 5;
  margin-top: -75px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.filter-tabs-container {
  padding: 0 4%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab-btn {
  padding: 8px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  touch-action: manipulation;
}

.filter-tab-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.filter-tab-btn.active {
  background: var(--netflix-red);
  color: #ffffff;
  border-color: var(--netflix-red);
  box-shadow: 0 2px 10px var(--netflix-red-glow);
}

.netflix-row {
  padding: 0 4%;
  position: relative;
}

.row-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--netflix-red);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--netflix-red);
}

.row-container {
  position: relative;
}

.row-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scroll-behavior: smooth;
  padding: 20px 0;
  margin: -20px 0;
  scrollbar-width: none;
}

.row-slider::-webkit-scrollbar {
  display: none;
}

.row-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4%;
  min-width: 42px;
  background: rgba(0, 0, 0, 0.75);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity var(--transition-fast), background-color var(--transition-fast);
  border-radius: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  touch-action: manipulation;
}

.netflix-row:hover .row-arrow {
  opacity: 1;
}

.row-arrow:hover {
  background: rgba(0, 0, 0, 0.95);
  color: var(--netflix-red);
}

.row-arrow.left { left: -4%; }
.row-arrow.right { right: -4%; }

/* Card Estilo Netflix Real */
.project-card {
  flex: 0 0 calc(20% - 11px);
  min-width: 240px;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--bg-card);
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.08);
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    transform: scale(1.18) translateY(-10px);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.9), 0 0 20px var(--netflix-red-glow);
    border-color: rgba(229, 9, 20, 0.4);
  }
}

.project-card:active {
  transform: scale(0.98);
}

.card-n-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  background: var(--netflix-red);
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.card-top10-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  background: var(--netflix-red);
  color: #fff;
  font-weight: 900;
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-fast);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(15, 15, 15, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-card:hover .card-overlay {
  opacity: 1;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.action-btn-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.action-btn-circle:hover {
  transform: scale(1.15);
  background: #fff;
}

.action-btn-outline {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(30, 30, 30, 0.7);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.action-btn-outline:hover {
  border-color: var(--text-primary);
  transform: scale(1.15);
}

.card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.tag-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.18);
  padding: 2px 7px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   8. Linha Especial "Top 10 de Hoje no Brasil"
   -------------------------------------------------------------------------- */
.top10-card-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  flex: 0 0 calc(24% - 10px);
  min-width: 280px;
}

.top10-number {
  font-size: 160px;
  font-weight: 900;
  line-height: 1;
  color: #141414;
  -webkit-text-stroke: 4px #595959;
  position: relative;
  z-index: 1;
  margin-right: -45px;
  user-select: none;
  letter-spacing: -12px;
}

.top10-card-wrapper .project-card {
  flex: 1;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   9. Seção "Sobre" Dedicada
   -------------------------------------------------------------------------- */
.about-page-view {
  padding: 100px 4% 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
}

.about-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 3 / 4;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--netflix-red);
  color: #fff;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.highlight-red {
  color: var(--netflix-red);
  text-shadow: 0 0 20px rgba(229, 9, 20, 0.55);
}

.about-info h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.about-info p {
  color: #E2E8F0;
  font-size: 1.08rem;
  line-height: 1.72;
  margin-bottom: 18px;
  font-weight: 400;
}

.about-cta {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--netflix-red) !important;
  margin-top: 22px !important;
  margin-bottom: 30px !important;
  text-shadow: 0 0 12px rgba(229, 9, 20, 0.3);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  background: rgba(229, 9, 20, 0.08);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(229, 9, 20, 0.3);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: var(--netflix-red);
  border-color: var(--netflix-red);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--netflix-red-glow);
}

/* --------------------------------------------------------------------------
   10. Seção "Contato" Dedicada
   -------------------------------------------------------------------------- */
.contact-page-view {
  padding: 100px 4% 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
}

.contact-box {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  background: rgba(24, 24, 24, 0.95);
  padding: 45px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px rgba(0,0,0,0.9);
}

.contact-box h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  text-align: center;
  color: #ffffff;
}

.contact-box p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.92rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: #2b2b2b;
  border: 1px solid #3d3d3d;
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 16px; /* Previne auto-zoom no iOS Safari */
  font-family: inherit;
  transition: border-color var(--transition-fast);
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--netflix-red);
  background: #333;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  background-color: var(--netflix-red);
  color: var(--text-primary);
  padding: 14px;
  border-radius: 4px;
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 4px 15px var(--netflix-red-glow);
}

.btn-submit:hover {
  background-color: var(--netflix-red-hover);
  transform: translateY(-2px);
}

.btn-whatsapp-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25D366;
  color: #ffffff;
  padding: 14px;
  border-radius: 4px;
  font-size: 0.98rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  margin-top: 12px;
  font-family: inherit;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-whatsapp-contact:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   11. PAINEL DE ADMINISTRADOR PROTEGIDO (#view-admin)
   -------------------------------------------------------------------------- */
.admin-page-view {
  padding: 100px 4% 80px;
  min-height: 90vh;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-login-card {
  max-width: 440px;
  width: 100%;
  background: rgba(24, 24, 24, 0.95);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0,0,0,0.9);
  text-align: center;
}

.admin-login-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.admin-login-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.admin-dashboard-container {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1f1f1f;
  padding: 20px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}

.admin-header-bar h2 {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-logout {
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.btn-logout:hover {
  background: var(--netflix-red);
}

.admin-section-box {
  background: #181818;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}

.admin-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 12px;
}

.admin-project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #242424;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
  gap: 16px;
}

.admin-project-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-project-thumb {
  width: 70px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
}

.admin-project-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-project-cat {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-delete-project {
  background: rgba(229, 9, 20, 0.15);
  color: var(--netflix-red);
  border: 1px solid rgba(229, 9, 20, 0.4);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-delete-project:hover {
  background: var(--netflix-red);
  color: #fff;
  box-shadow: 0 0 10px var(--netflix-red-glow);
}

.btn-edit-project {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-edit-project:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Sistema de Abas do Admin */
.admin-tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 2px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.admin-tabs-nav::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.admin-tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-tab-btn:hover {
  color: var(--text-primary);
}

.admin-tab-btn.active {
  color: var(--netflix-red);
  border-bottom-color: var(--netflix-red);
}

.badge-count {
  background: var(--netflix-red);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 800;
  display: inline-block;
  line-height: 1;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
  animation: adminFadeIn 0.3s ease-in-out;
}

@keyframes adminFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid de Estatísticas */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.admin-stat-card {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-stat-card .stat-icon {
  font-size: 2rem;
  min-width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-stat-card .stat-info {
  display: flex;
  flex-direction: column;
}

.admin-stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

/* Listagem de Mensagens do Admin */
.admin-messages-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-message-card {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  transition: all var(--transition-fast);
}

.admin-message-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: #1c1c1c;
}

.admin-message-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.admin-message-sender h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-message-sender p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin-message-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-message-badge {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.admin-message-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.btn-delete-msg {
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-delete-msg:hover {
  color: var(--netflix-red);
  background: rgba(229, 9, 20, 0.1);
}

.admin-project-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-section-box input.form-control,
.admin-section-box select.form-control,
.admin-section-box textarea.form-control {
  background: #222 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.admin-section-box input.form-control:focus,
.admin-section-box select.form-control:focus,
.admin-section-box textarea.form-control:focus {
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 0 5px rgba(255,255,255,0.08) !important;
}

.admin-section-box input[type="file"].form-control {
  padding-top: 8px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   12. Modais
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-modal);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 16px;
  padding-top: max(30px, env(safe-area-inset-top));
  padding-bottom: max(30px, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 860px;
  background-color: var(--bg-modal);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.95);
  transform: translateY(30px);
  transition: transform var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.85);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  touch-action: manipulation;
}

.modal-close-btn:hover {
  background: var(--netflix-red);
  transform: scale(1.1);
}

.modal-hero {
  position: relative;
  height: 380px;
  width: 100%;
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(24, 24, 24, 1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.modal-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.modal-body {
  padding: 0 30px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.modal-details-left p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.modal-meta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.modal-gallery-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 24px 0 12px;
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-img {
  border-radius: 4px;
  overflow: hidden;
  height: 115px;
  border: 1px solid rgba(255,255,255,0.08);
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.gallery-img img:hover {
  transform: scale(1.06);
}

.modal-details-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-group label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.info-group span {
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 600;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--netflix-red);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   13. Rodapé Netflix Real
   -------------------------------------------------------------------------- */
.netflix-footer {
  padding: 70px 4% 45px;
  background: #08080a;
  color: #a1a1aa;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 45px;
}



.footer-columns-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-bottom-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 780px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 40px;
}

.footer-logo-vitor {
  font-size: 3.4rem !important;
  line-height: 0.82 !important;
  text-shadow: 0 4px 18px rgba(229, 9, 20, 0.45) !important;
}

.footer-logo-portfolio {
  font-size: 0.82rem !important;
  letter-spacing: 5.5px !important;
  margin-top: 4px !important;
}

.footer-bio {
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.65;
  font-weight: 400;
  margin: 0;
}

.footer-copy-bottom {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-top: 4px;
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
  margin-top: 0;
}

.footer-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.footer-col-list a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-col-list a:hover {
  color: #e50914;
  transform: translateX(3px);
}

.footer-static-text {
  color: #d1d5db;
  font-size: 0.88rem;
  line-height: 1.5;
  display: block;
}

.footer-social-list a svg {
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.footer-social-list a:hover svg {
  stroke: #e50914;
  transform: scale(1.1);
}

.footer-bottom-badge {
  display: flex;
  justify-content: flex-start;
  margin-top: 5px;
}

.supabase-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #3ecf8e;
  background: rgba(62, 207, 142, 0.1);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(62, 207, 142, 0.3);
  margin-top: 10px;
  font-weight: 600;
}

.supabase-status-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 6px #3ecf8e;
}

/* --------------------------------------------------------------------------
   14. Responsividade
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .project-card {
    flex: 0 0 calc(33.333% - 9px);
  }
  
  .top10-card-wrapper {
    flex: 0 0 calc(40% - 10px);
  }
  
  .about-container {
    grid-template-columns: 1fr;
  }
  
  .modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .profiles-grid {
    gap: 16px;
  }
  
  .avatar-box {
    width: 100px;
    height: 100px;
  }
  
  .avatar-smile {
    width: 50px;
    height: 50px;
  }

  .nav-links {
    gap: 12px;
  }
  
  .project-card {
    flex: 0 0 calc(50% - 7px);
  }
  
  .top10-card-wrapper {
    flex: 0 0 calc(60% - 10px);
  }
  
  .hero-carousel {
    height: 70vh;
  }
  
  .slide-title {
    font-size: 2rem;
  }
  
  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .admin-project-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .admin-project-actions {
    width: 100%;
    justify-content: flex-start;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 10px;
  }

  .admin-message-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .admin-message-meta {
    width: 100%;
    justify-content: space-between;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .project-card {
    flex: 0 0 85%;
  }
  
  .top10-card-wrapper {
    flex: 0 0 90%;
  }

  .top10-number {
    font-size: 110px;
    margin-right: -30px;
    -webkit-text-stroke: 3px #595959;
  }
  
  .slide-buttons {
    flex-direction: column;
  }
  
  .contact-box {
    padding: 24px 16px;
  }
  
  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* --------------------------------------------------------------------------
   15. Suporte Touch & Scroll Snap para Mobile
   -------------------------------------------------------------------------- */
.row-slider {
  scroll-snap-type: x mandatory;
}

.project-card, .top10-card-wrapper {
  scroll-snap-align: start;
}

/* --------------------------------------------------------------------------
   16. Barra de Navegação Inferior Mobile (Bottom Nav)
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  background: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 4px 10px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }
  .netflix-header nav {
    display: none; /* Oculta menu superior em telas pequenas, usando a bottom nav */
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: 6px 12px;
}

.mobile-nav-item svg {
  transition: transform var(--transition-fast);
}

.mobile-nav-item.active {
  color: var(--netflix-red);
  font-weight: 700;
}

.mobile-nav-item.active svg {
  transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   17. Simulador Mobile ("Antes do Link Real")
   -------------------------------------------------------------------------- */
.simulator-overlay {
  padding: 20px 10px;
  align-items: center;
}

.simulator-modal-container {
  width: 100%;
  max-width: 1050px;
  height: 92vh;
  background: #0f0f11;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.simulator-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #18181c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 15px;
  flex-wrap: wrap;
}

.simulator-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.simulator-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--netflix-red);
  letter-spacing: 1.5px;
}

.simulator-toolbar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.device-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
}

.device-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.device-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.device-btn.active {
  background: var(--netflix-red);
  color: #fff;
  box-shadow: 0 2px 8px var(--netflix-red-glow);
}

.simulator-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-real-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #000000;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-real-link:hover {
  background: #e6e6e6;
  transform: scale(1.04);
}

.modal-close-btn.sim-close {
  position: static;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

/* Shell & Frame do Dispositivo */
.simulator-viewport-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
  background: radial-gradient(circle at center, #1b1b22 0%, #0a0a0d 100%);
  transition: all var(--transition-normal);
}

/* Visão Celular (Mobile 375px) */
.simulator-viewport-wrapper.mode-mobile .phone-frame {
  width: 375px;
  height: 680px;
  max-height: 100%;
  border-radius: 40px;
  border: 12px solid #28282e;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  background: #000;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition-normal);
}

/* Visão Desktop (Tela Cheia no Container) */
.simulator-viewport-wrapper.mode-desktop .phone-frame {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  background: #000;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.simulator-viewport-wrapper.mode-desktop .phone-notch,
.simulator-viewport-wrapper.mode-desktop .phone-status-bar,
.simulator-viewport-wrapper.mode-desktop .phone-home-bar {
  display: none;
}

/* Notch & Status Bar Smartphone */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 24px;
  background: #28282e;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.notch-speaker {
  width: 40px;
  height: 4px;
  background: #141416;
  border-radius: 2px;
}

.notch-camera {
  width: 9px;
  height: 9px;
  background: #141416;
  border-radius: 50%;
}

.phone-status-bar {
  height: 38px;
  padding: 8px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  z-index: 9;
  background: #000;
}

.status-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.phone-screen {
  flex: 1;
  position: relative;
  width: 100%;
  background: #000;
}

.phone-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

.phone-home-bar {
  height: 18px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-home-bar::after {
  content: '';
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

/* Fallback de Demonstração */
.simulator-fallback-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.simulator-fallback-view img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.fallback-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
}

.fallback-content h4 {
  font-size: 1.25rem;
  font-weight: 800;
}

.fallback-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.fallback-actions {
  margin-top: 10px;
}

@media (max-width: 600px) {
  .simulator-toolbar {
    padding: 10px 14px;
  }
  .device-btn-text {
    display: none;
  }
  .simulator-toolbar h3 {
    max-width: 140px;
    font-size: 0.95rem;
  }
  .simulator-viewport-wrapper.mode-mobile .phone-frame {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border-width: 6px;
  }
}

/* --------------------------------------------------------------------------
   14. Sistema de Notificações Toast & Popovers (Tema Netflix Real)
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(24, 24, 24, 0.96);
  border-left: 4px solid var(--netflix-red);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(229, 9, 20, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast-message.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-message.success {
  border-left-color: #22c55e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(34, 197, 94, 0.2);
}

.toast-message.warning {
  border-left-color: #eab308;
}

.toast-message.error {
  border-left-color: #ef4444;
}

/* Popovers do Header */
.header-popover {
  position: absolute;
  top: 48px;
  right: 0;
  width: 320px;
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 15px rgba(229, 9, 20, 0.15);
  z-index: 3000;
  overflow: hidden;
  animation: popoverFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popover-header {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.popover-header h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.popover-body {
  padding: 16px;
}

.popover-item p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 4px;
}

.badge-popover {
  display: inline-block;
  background: var(--netflix-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.notif-time {
  font-size: 0.72rem;
  color: var(--netflix-red);
  font-weight: 600;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   16. Seletor de Idioma / País (i18n)
   -------------------------------------------------------------------------- */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 22px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  touch-action: manipulation;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.25);
}

.lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lang-code {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.lang-popover {
  width: 220px !important;
  right: 0 !important;
}

.lang-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.lang-option-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.lang-option-btn.active {
  color: #ffffff;
  background: rgba(229, 9, 20, 0.2);
  border-left: 3px solid var(--netflix-red);
  font-weight: 700;
}

.lang-option-flag {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-option-text small {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.75rem;
  margin-left: 4px;
}



