/* ===== GALERIA ===== */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  padding: 60px;
}

/* ===== POLAROID ===== */
.artwork {
  width: 220px;
  background: #f8f6f2;
  padding: 14px 14px 26px;
  border-radius: 16px;
  overflow: hidden;

  border: 1px solid rgba(255, 0, 200, 0.4);
  box-shadow:
    0 0 18px rgba(255, 0, 200, 0.35),
    inset 0 0 10px rgba(255, 255, 255, 0.08);

  transform: rotate(var(--rot));
  transition: transform 0.25s ease, box-shadow 0.25s ease;

  animation: float 6s ease-in-out infinite;
}

/* tortinhas */
.artwork:nth-child(odd)  {
  --rot: -2.5deg;
  animation-duration: 7s;
}

.artwork:nth-child(even) {
  --rot: 2deg;
  animation-duration: 5.5s;
}

/* hover */
.artwork:hover {
  transform: rotate(0deg) scale(1.06);
  box-shadow:
    0 0 35px rgba(255, 0, 200, 0.6),
    inset 0 0 14px rgba(255, 249, 249, 0.15);
}

/* ===== IMAGEM ===== */
.artwork img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;

  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  pointer-events: none;

  transition: transform 0.35s ease;
}
/* ===== LINHA HOLOGRÁFICA ===== */
.artwork::after {
  content: "";
  display: block;
  width: 60%;
  height: 2px;
  margin: 12px auto 0;

  background: linear-gradient(
    90deg,
    transparent,
    #ff7bff,
    #9b4cff,
    transparent
  );

  opacity: 0.7;
  filter: blur(0.5px);
}
@keyframes scan {
  0%   { opacity: 0.3; }
  50%  { opacity: 1; }
  100% { opacity: 0.3; }
}

.artwork::after {
  animation: scan 2.5s ease-in-out infinite;
}


/* zoom suave */
.artwork:hover img {
  transform: scale(1.08);
}
.artwork:hover::after {
  width: 80%;
  opacity: 1;
}


/* ===== BRILHO ALIEN PULSANTE ===== */
@keyframes glowPulse {
  0% {
    box-shadow:
      0 0 18px rgba(255, 0, 200, 0.35),
      inset 0 0 10px rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow:
      0 0 28px rgba(180, 0, 255, 0.6),
      inset 0 0 14px rgba(255, 255, 255, 0.12);
  }
  100% {
    box-shadow:
      0 0 18px rgba(255, 0, 200, 0.35),
      inset 0 0 10px rgba(255, 255, 255, 0.08);
  }
}

.artwork {
  animation:
    float 6s ease-in-out infinite,
    glowPulse 4s ease-in-out infinite;
}


/* ===== DATA ===== */
.artwork .date {
  display: block;
  margin-top: 10px;
  text-align: center;

  font-size: 0.7rem;
  letter-spacing: 1px;
  font-family: monospace;
  color: #9b4cff;
  opacity: 0.85;
}

/* ===== FLUTUAÇÃO ALIEN ===== */
@keyframes float {
  0%   { transform: rotate(var(--rot)) translateY(0); }
  50%  { transform: rotate(var(--rot)) translateY(-10px); }
  100% { transform: rotate(var(--rot)) translateY(0); }
}

/* ===== TÍTULO ===== */
.page-title {
  text-align: center;
  margin: 40px 0;
  letter-spacing: 2px;
}
/* ================================ */
/* ===== GLITCH ALIEN TITLE ===== */
/* ================================ */

.glitch {
  position: relative;
  font-size: 3rem;
  letter-spacing: 4px;
  color: #e6d6ff;
  text-transform: uppercase;
}

/* camadas fantasmas */
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

/* camada roxa */
.glitch::before {
  color: #9b4cff;
  z-index: -1;
  animation: glitchTop 2.5s infinite linear alternate-reverse;
}

/* camada rosa */
.glitch::after {
  color: #ff7bff;
  z-index: -2;
  animation: glitchBottom 3s infinite linear alternate-reverse;
}

/* ===== ANIMAÇÕES ===== */
@keyframes glitchTop {
  0%   { clip-path: inset(0 0 80% 0); transform: translate(-2px, -2px); }
  20%  { clip-path: inset(10% 0 60% 0); transform: translate(2px, -1px); }
  40%  { clip-path: inset(30% 0 40% 0); transform: translate(-2px, 1px); }
  60%  { clip-path: inset(50% 0 20% 0); transform: translate(1px, 2px); }
  80%  { clip-path: inset(20% 0 60% 0); transform: translate(-1px, -1px); }
  100% { clip-path: inset(0 0 80% 0); transform: translate(0, 0); }
}

@keyframes glitchBottom {
  0%   { clip-path: inset(60% 0 10% 0); transform: translate(2px, 2px); }
  20%  { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 1px); }
  40%  { clip-path: inset(20% 0 50% 0); transform: translate(1px, -1px); }
  60%  { clip-path: inset(30% 0 40% 0); transform: translate(-1px, -2px); }
  80%  { clip-path: inset(50% 0 20% 0); transform: translate(2px, -1px); }
  100% { clip-path: inset(60% 0 10% 0); transform: translate(0, 0); }
}

@media (max-width: 768px) {
  header.top {
    padding: 20px 0;
  }

  .logo {
    font-size: 32px;
  }

  .menu {
    margin-top: 8px;
    gap: 12px;
  }
}
