body {
  background-color: #0d0d0d;
  color: #e0e0e0;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 2rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  color: #ff0055;
  text-transform: lowercase;
  text-shadow: 0 0 8px #ff0055;
}

img {
  width: 150px;
  height: auto;
  border-radius: 10px;
  margin: 0.5rem;
  transition: all 0.3s ease;
}
img:hover {
  transform: scale(1.25) rotate(-15deg);
  filter: brightness(1.2);
}

a {
  color: #a84aff;
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  text-shadow: 0 0 10px #a84aff;
}
.glitch {
  position: relative;
  display: inline-block;
  color: #ff0055;
  font-size: 2.5rem;
  text-transform: lowercase;
  text-shadow: 0 0 8px #ff0055;
  animation: flicker 1.5s infinite alternate;
}


.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #00fff9;
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #ff00c1;
  animation: glitch-anim2 3s infinite linear alternate-reverse;
}

/* Glitch keyframes */
@keyframes glitch-anim {
  0% { clip: rect(10px, 9999px, 51px, 0); }
  5% { clip: rect(85px, 9999px, 140px, 0); }
  10% { clip: rect(35px, 9999px, 90px, 0); }
  15% { clip: rect(0, 9999px, 50px, 0); }
  20% { clip: rect(70px, 9999px, 120px, 0); }
  100% { clip: rect(10px, 9999px, 130px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(20px, 9999px, 70px, 0); }
  5% { clip: rect(100px, 9999px, 120px, 0); }
  10% { clip: rect(50px, 9999px, 100px, 0); }
  20% { clip: rect(80px, 9999px, 150px, 0); }
  100% { clip: rect(10px, 9999px, 130px, 0); }
}

/* Faint flicker animation for realism */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.8; }
}
section {
  border: 1px solid #ff0055;
  padding: 1rem;
  margin-top: 2rem;
  background: rgba(255, 0, 85, 0.05);
  box-shadow: 0 0 8px #ff0055;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  justify-items: center;
  margin-top: 1rem;
}

.image-grid img {
  width: 150px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #ff0055;
  box-shadow: 0 0 8px #ff0055;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.15) rotate(-5deg);
  filter: brightness(1.3);
}

.image-grid {
  display: block; /* remove grid */
  position: relative;
  width: 100%;
  height: auto;
}

.image-grid {
  position: relative;
  width: 100%;
  height: 500px; /* set enough height so images don’t overlap too much */
}

.image-grid img {
  position: absolute;
  width: 120px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ff0055;
  box-shadow: 0 0 12px #ff0055;
  transition: transform 0.4s ease, filter 0.3s ease;
  cursor: crosshair;

  /* adjustable offsets and rotation */
  transform: rotate(calc(-15deg + 30deg * var(--i))) translate(var(--x), var(--y));
}

.image-grid img:hover {
  transform: scale(1.3) rotate(0deg) translate(var(--x), var(--y));
  filter: brightness(1.4) hue-rotate(20deg);
}



