.pixelated-image-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.pixelated-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pixel-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(20, 1fr);
  gap: 0;
  pointer-events: none;
}

.pixel {
  background-color: #262550; /* Cor de fundo do site */
  opacity: 1;
  transition: opacity 0.3s ease;
}

.pixel.fade-in {
  opacity: 0;
}

/* Hero section pixel overlay */
.hero-pixel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  grid-template-rows: repeat(20, 1fr);
  gap: 0;
  pointer-events: none;
  z-index: 5; /* Above video but below content */
}

.hero-pixel-overlay .pixel {
  opacity: 1;
  transition: opacity 0.8s ease;
}

.hero-pixel-overlay .pixel.fade-in {
  opacity: 0;
}

/* Variações de tons de branco para o efeito de loop */
.hero-pixel-overlay .pixel.tone-1 { background-color: rgba(255, 255, 255, 0.9); }
.hero-pixel-overlay .pixel.tone-2 { background-color: rgba(255, 255, 255, 0.8); }
.hero-pixel-overlay .pixel.tone-3 { background-color: rgba(255, 255, 255, 0.7); }
.hero-pixel-overlay .pixel.tone-4 { background-color: rgba(255, 255, 255, 0.6); }
.hero-pixel-overlay .pixel.tone-5 { background-color: rgba(255, 255, 255, 0.5); }

/* Custom Pixelated Cursor */
#custom-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 9999;
  display: none;
  transition: transform 0.1s ease;
}

.cursor-pixel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  height: 100%;
}

.cursor-pixel {
  background-color: #edc628; /* Amarelo padrão */
  opacity: 0.9;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.cursor-pixel:nth-child(1),
.cursor-pixel:nth-child(2),
.cursor-pixel:nth-child(3),
.cursor-pixel:nth-child(4),
.cursor-pixel:nth-child(5),
.cursor-pixel:nth-child(8),
.cursor-pixel:nth-child(9),
.cursor-pixel:nth-child(12),
.cursor-pixel:nth-child(13),
.cursor-pixel:nth-child(16),
.cursor-pixel:nth-child(14),
.cursor-pixel:nth-child(15),
.cursor-pixel:nth-child(11),
.cursor-pixel:nth-child(7) {
  opacity: 0.3;
}

/* Cores do cursor para diferentes seções */
.cursor-blue .cursor-pixel {
  background-color: #262550; /* Azul */
}

.cursor-white .cursor-pixel {
  background-color: #edc628; /* Amarelo */
}

.cursor-yellow .cursor-pixel {
  background-color: #262550; /* Azul */
}

/* Hide default cursor */
body {
  cursor: none;
}

/* Show default cursor on input elements */
input, textarea, select, button {
  cursor: auto;
}