* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><text y="15" font-size="15">🎺</text></svg>'),
    auto;
}

body {
  font-family: "Comic Sans MS", "Chalkboard SE", "Arial Black", cursive;
  background: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 50% / 40px 40px,
    repeating-linear-gradient(
      -45deg,
      #ff00ff 0px,
      #ff00ff 10px,
      #00ffff 10px,
      #00ffff 20px
    );
  background-blend-mode: multiply;
  animation: bg-scroll 20s linear infinite,
    checkerboard-slide 8s linear infinite;
  overflow-x: hidden;
  min-height: 100vh;
}

@keyframes checkerboard-slide {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 40px 40px, 200px 200px;
  }
}

@keyframes bg-scroll {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 1000px 1000px, -1000px 1000px;
  }
}

/* Sparkly background layer */
.sparkle-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.8) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 60% 80%,
      rgba(255, 0, 255, 0.8) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(0, 255, 255, 0.8) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 80% 40%,
      rgba(255, 255, 0, 0.8) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(255, 255, 255, 0.8) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 0, 255, 0.8) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 30% 60%,
      rgba(0, 255, 255, 0.8) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(255, 255, 0, 0.8) 1px,
      transparent 1px
    );
  background-size: 200px 200px, 180px 180px, 220px 220px, 190px 190px,
    210px 210px, 170px 170px, 230px 230px, 160px 160px;
  background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 200px 50px,
    150px 180px, 50px 240px, 180px 20px;
  animation: sparkle-move 15s linear infinite,
    sparkle-twinkle 2s ease-in-out infinite;
}

@keyframes sparkle-move {
  0% {
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 200px 50px,
      150px 180px, 50px 240px, 180px 20px;
  }
  100% {
    background-position: 200px 200px, 240px 260px, 330px 470px, 270px 300px,
      400px 250px, 350px 380px, 250px 440px, 380px 220px;
  }
}

@keyframes sparkle-twinkle {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Container */
.container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 20px;
  position: relative;
  z-index: 10;
}

/* Header */
header {
  background: linear-gradient(45deg, #ff0080, #8000ff, #00ff80, #ffff00);
  background-size: 400% 400%;
  animation: gradient-shift 3s ease infinite, shake 0.3s infinite;
  padding: 30px;
  text-align: center;
  border: 10px solid #000;
  border-image: repeating-linear-gradient(
      45deg,
      #000 0,
      #000 20px,
      #fff 20px,
      #fff 40px
    )
    10;
  box-shadow: 10px 10px 0 #ff00ff, 20px 20px 0 #00ffff;
  margin-bottom: 20px;
  transform-origin: center;
  position: relative;
}

header h1 {
  font-size: 4rem;
  color: #fff;
  text-shadow: 3px 3px 0 #000, 6px 6px 0 #ff0000, 9px 9px 0 #00ff00,
    12px 12px 0 #0000ff;
  animation: spin-colors 2s linear infinite;
  letter-spacing: 5px;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

@keyframes spin-colors {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

.subtitle {
  font-size: 1.5rem;
  color: #ffff00;
  text-shadow: 2px 2px 0 #000;
  font-weight: bold;
}

/* Spinning text */
.spinning-text {
  animation: spin-3d 4s linear infinite, wobble 1s ease-in-out infinite;
}

@keyframes spin-3d {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes wobble {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.05) rotate(2deg);
  }
  75% {
    transform: scale(0.95) rotate(-2deg);
  }
}

/* Visitor counter */
.counter-box {
  background: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 50% / 20px 20px,
    #000;
  background-blend-mode: overlay;
  color: #00ff00;
  padding: 15px;
  text-align: center;
  border: 6px solid #000;
  border-image: repeating-conic-gradient(#fff 0% 25%, #000 0% 50%) 6;
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  margin-bottom: 20px;
  animation: pulse 2s infinite, glitch 3s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
}

.fire-gif {
  width: 30px;
  height: 30px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glitch {
  0%,
  90%,
  100% {
    transform: translate(0);
  }
  92% {
    transform: translate(-2px, 2px);
  }
  94% {
    transform: translate(2px, -2px);
  }
  96% {
    transform: translate(-2px, -2px);
  }
  98% {
    transform: translate(2px, 2px);
  }
}

/* Retro Audio Player - Winamp Style */
.audio-player-retro {
  background: linear-gradient(145deg, #00ff00, #00cc00);
  border: 3px solid #000;
  border-radius: 10px;
  box-shadow: 0 0 0 2px #00ff00, 0 0 20px rgba(0, 255, 0, 0.5),
    5px 5px 15px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
  font-family: "Arial", sans-serif;
  max-width: 700px;
  animation: float 6s ease-in-out infinite;
}

.player-top-bar {
  background: linear-gradient(180deg, #33ff33, #00cc00);
  border-bottom: 2px solid #000;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 7px 7px 0 0;
}

.player-title {
  font-size: 0.8rem;
  font-weight: bold;
  color: #000;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.player-buttons {
  display: flex;
  gap: 3px;
}

.titlebar-btn {
  background: #222;
  color: #0f0;
  border: 1px solid #0f0;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.titlebar-btn:hover {
  background: #0f0;
  color: #000;
  box-shadow: 0 0 10px #0f0;
}

.player-main {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #1a1a1a;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.player-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.visualizer-container {
  background: #000;
  border: 2px solid #0f0;
  border-radius: 5px;
  padding: 5px;
  box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.3);
}

#visualizer {
  display: block;
  width: 100%;
  height: 80px;
}

.display-screen {
  background: #000;
  border: 2px solid #0f0;
  border-radius: 5px;
  padding: 10px;
  color: #0f0;
  font-family: "Courier New", monospace;
  box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.3);
}

#now-playing-retro {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  height: 20px;
  overflow: hidden;
}

.time-display-retro {
  font-size: 12px;
  text-align: right;
}

.progress-bar-retro {
  background: #000;
  border: 2px solid #0f0;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 0 5px rgba(0, 255, 0, 0.3);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0f0, #0ff, #0f0);
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.1s;
  animation: rainbow-slide 2s linear infinite;
  box-shadow: 0 0 10px #0f0;
}

.player-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}

.main-controls {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.control-btn {
  background: linear-gradient(180deg, #444, #222);
  color: #0f0;
  border: 2px solid #0f0;
  width: 35px;
  height: 35px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.control-btn:hover {
  background: linear-gradient(180deg, #0f0, #0a0);
  color: #000;
  box-shadow: 0 0 15px #0f0;
  transform: scale(1.1);
}

.control-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 5px #0f0;
}

.play-btn-retro {
  width: 45px;
  height: 45px;
  font-size: 20px;
}

.volume-section {
  background: #222;
  border: 2px solid #0f0;
  border-radius: 5px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.volume-section label {
  color: #0f0;
  font-size: 12px;
  font-weight: bold;
}

.volume-slider-retro {
  flex: 1;
  height: 8px;
}

#volume-display {
  color: #0f0;
  font-size: 12px;
  font-weight: bold;
  min-width: 30px;
  font-family: "Courier New", monospace;
}

.equalizer-section {
  background: #222;
  border: 2px solid #0f0;
  border-radius: 5px;
  padding: 10px;
}

.eq-label {
  color: #0f0;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 5px;
}

.eq-sliders {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 5px;
  height: 80px;
}

.eq-slider {
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
  width: 20px;
  height: 70px;
  cursor: pointer;
}

.playlist-retro {
  background: #1a1a1a;
  border-top: 2px solid #0f0;
}

.playlist-header {
  background: #222;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #0f0;
}

.playlist-header span {
  color: #0f0;
  font-size: 12px;
  font-weight: bold;
}

.playlist-toggle {
  background: none;
  border: none;
  color: #0f0;
  cursor: pointer;
  font-size: 12px;
}

.playlist-items {
  max-height: 150px;
  overflow-y: auto;
  padding: 5px;
}

.playlist-item {
  color: #0f0;
  font-size: 12px;
  padding: 5px 10px;
  cursor: pointer;
  font-family: "Courier New", monospace;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.playlist-item:hover {
  background: #2a2a2a;
  border-left: 3px solid #0f0;
}

.playlist-item.active {
  background: #0f0;
  color: #000;
  font-weight: bold;
  border-left: 3px solid #fff;
}

.rainbow-text {
  font-size: 2rem;
  background: linear-gradient(
    90deg,
    #ff0000,
    #ff7700,
    #ffff00,
    #00ff00,
    #0000ff,
    #8b00ff
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-slide 2s linear infinite;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes rainbow-slide {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.play-button {
  background: #ff0000;
  color: #fff;
  border: 5px solid #fff;
  padding: 20px 40px;
  font-size: 1.5rem;
  font-family: "Comic Sans MS", cursive;
  font-weight: bold;
  cursor: pointer;
  animation: wiggle 0.5s infinite, grow-shrink 1s infinite;
  box-shadow: 0 5px 0 #990000;
  transition: all 0.1s;
}

.play-button:hover {
  animation: spin 0.5s linear infinite, grow-shrink 0.3s infinite;
  background: #00ff00;
  color: #000;
}

.play-button:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 #990000;
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

@keyframes grow-shrink {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#now-playing {
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 15px;
  animation: color-cycle 3s infinite;
}

.volume-container {
  margin-top: 15px;
  color: #fff;
  font-weight: bold;
  text-shadow: 2px 2px 0 #000;
}

.volume-container input {
  width: 200px;
  margin-left: 10px;
}

.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.track-nav {
  display: flex;
  gap: 10px;
}

.nav-button {
  background: #8000ff;
  color: #fff;
  border: 3px solid #fff;
  padding: 10px 20px;
  font-size: 1rem;
  font-family: "Comic Sans MS", cursive;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 3px 0 #400080;
}

.nav-button:hover {
  background: #ff00ff;
  transform: scale(1.1) rotate(5deg);
}

.nav-button:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 #400080;
}

.progress-container {
  width: 300px;
  height: 20px;
  background: #000;
  border: 3px solid #fff;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    #ff0000,
    #ff7700,
    #ffff00,
    #00ff00,
    #0000ff,
    #8b00ff
  );
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.1s;
  animation: rainbow-slide 2s linear infinite;
}

.time-display {
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  text-shadow: 2px 2px 0 #000;
}

/* Content boxes */
.content-box {
  background: rgba(255, 255, 255, 0.95);
  border: 8px solid #000;
  border-image: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 8;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.content-box:hover {
  transform: rotate(-2deg) scale(1.05);
  box-shadow: 15px 15px 0 rgba(255, 0, 255, 0.5);
}

.content-box h2 {
  color: #ff0080;
  font-size: 2rem;
  margin-bottom: 15px;
  text-decoration: underline;
  animation: color-cycle 3s infinite;
}

@keyframes color-cycle {
  0% {
    color: #ff0080;
  }
  33% {
    color: #0080ff;
  }
  66% {
    color: #80ff00;
  }
  100% {
    color: #ff0080;
  }
}

.wobble {
  animation: wobble-box 2s infinite;
}

@keyframes wobble-box {
  0%,
  100% {
    transform: skew(0deg, 0deg);
  }
  25% {
    transform: skew(2deg, 1deg);
  }
  75% {
    transform: skew(-2deg, -1deg);
  }
}

/* Image grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.spinning-box {
  background: linear-gradient(45deg, #ff00ff, #00ffff);
  border: 3px solid #000;
  padding: 50px;
  text-align: center;
  font-weight: bold;
  animation: spin-slow 10s linear infinite;
  transition: all 0.3s;
}

.spinning-box a {
  display: block;
  width: 100%;
  height: 100%;
}

.spinning-box:hover {
  animation: spin-fast 1s linear infinite;
  transform: scale(1.2);
}

@keyframes spin-slow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-fast {
  0% {
    transform: rotate(0deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1.2);
  }
}

/* Tracklist */
.tracklist {
  list-style: none;
  counter-reset: track;
}

.track-item {
  counter-increment: track;
  padding: 10px;
  margin: 5px 0;
  background: linear-gradient(90deg, #ffff00, #ff00ff);
  border: 2px solid #000;
  font-weight: bold;
  transition: all 0.2s;
  position: relative;
  cursor: pointer;
}

.track-item::before {
  content: counter(track) ". ";
  font-size: 1.5rem;
  color: #000;
}

.track-item:hover {
  transform: translateX(20px) rotate(2deg);
  background: linear-gradient(90deg, #00ff00, #0000ff);
  animation: shake-track 0.1s infinite;
}

.track-item.playing {
  background: linear-gradient(
    90deg,
    #ff0000,
    #ff7700,
    #ffff00,
    #00ff00,
    #0000ff,
    #8b00ff
  );
  background-size: 200% 100%;
  animation: rainbow-slide 2s linear infinite, pulse 1s infinite;
  border: 3px solid #fff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

.track-item.playing::after {
  content: " ♫";
  animation: spin 1s linear infinite;
}

@keyframes shake-track {
  0%,
  100% {
    transform: translateX(20px) rotate(2deg);
  }
  50% {
    transform: translateX(25px) rotate(-2deg);
  }
}

/* Guestbook */
.fake-guestbook {
  background: #fff;
  border: 3px inset #999;
  padding: 10px;
  min-height: 100px;
  font-family: "Courier New", monospace;
}

/* Construction */
.construction {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  background: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 50% / 25px 25px;
  border: 8px solid #000;
  border-image: repeating-linear-gradient(
      90deg,
      #ff0000 0,
      #ff0000 30px,
      #ffff00 30px,
      #ffff00 60px
    )
    8;
  animation: pulse 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

.construction img {
  width: 50px;
  height: 50px;
}

.construction span {
  font-weight: bold;
  color: #ff0000;
  text-shadow: 2px 2px 0 #000;
  font-size: 1.2rem;
}

/* Footer */
footer {
  background: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 50% / 30px 30px,
    #000;
  background-blend-mode: overlay;
  color: #00ff00;
  padding: 20px;
  text-align: center;
  border: 8px solid #000;
  border-image: repeating-conic-gradient(#fff 0% 25%, #000 0% 50%) 8;
  margin-top: 30px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.copyright {
  margin-top: 10px;
  font-family: "Courier New", monospace;
}

/* Floating emojis */
.floating-emoji {
  position: fixed;
  font-size: 3rem;
  animation: float-random 5s infinite ease-in-out;
  pointer-events: none;
  z-index: 9999;
}

.floating-emoji:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 4s;
}

.floating-emoji:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: 1s;
  animation-duration: 6s;
}

.floating-emoji:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 2s;
  animation-duration: 5s;
}

.floating-emoji:nth-child(4) {
  bottom: 10%;
  right: 10%;
  animation-delay: 1.5s;
  animation-duration: 7s;
}

.floating-emoji:nth-child(5) {
  top: 50%;
  left: 5%;
  animation-delay: 3s;
  animation-duration: 4.5s;
}

.floating-emoji:nth-child(6) {
  top: 30%;
  right: 25%;
  animation-delay: 0.5s;
  animation-duration: 5.5s;
}

.floating-emoji:nth-child(7) {
  bottom: 30%;
  right: 30%;
  animation-delay: 2.5s;
  animation-duration: 6.5s;
}

.floating-emoji:nth-child(8) {
  top: 15%;
  left: 40%;
  animation-delay: 1.8s;
  animation-duration: 5.2s;
}

.floating-emoji:nth-child(9) {
  bottom: 15%;
  left: 35%;
  animation-delay: 0.8s;
  animation-duration: 4.8s;
}

.floating-emoji:nth-child(10) {
  top: 40%;
  right: 5%;
  animation-delay: 3.2s;
  animation-duration: 5.8s;
}

.floating-emoji:nth-child(11) {
  bottom: 40%;
  left: 50%;
  animation-delay: 1.2s;
  animation-duration: 6.2s;
}

.floating-emoji:nth-child(12) {
  top: 60%;
  left: 15%;
  animation-delay: 2.8s;
  animation-duration: 4.2s;
}

.floating-emoji:nth-child(13) {
  top: 70%;
  right: 20%;
  animation-delay: 0.3s;
  animation-duration: 5.7s;
}

.floating-emoji:nth-child(14) {
  bottom: 50%;
  right: 40%;
  animation-delay: 2.2s;
  animation-duration: 6.8s;
}

.floating-emoji:nth-child(15) {
  top: 25%;
  left: 60%;
  animation-delay: 1.5s;
  animation-duration: 5.3s;
}

@keyframes float-random {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -20px) rotate(90deg);
  }
  50% {
    transform: translate(-20px, 20px) rotate(180deg);
  }
  75% {
    transform: translate(20px, 20px) rotate(270deg);
  }
}

/* DVD Logo Bouncer */
#dvd-logo {
  position: fixed;
  width: 300px;
  height: auto;
  z-index: 9998;
  pointer-events: none;
  transition: filter 0.3s;
}

/* Cursor follower */
#cursor-follower {
  position: fixed;
  width: 50px;
  height: 50px;
  border: 3px solid #ff00ff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
  box-shadow: 0 0 20px #ff00ff;
}

/* Trail container */
#trail-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

.trail {
  position: absolute;
  pointer-events: none;
  animation: fade-trail 1s forwards;
}

@keyframes fade-trail {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(0) rotate(360deg);
  }
}

/* Glitch text effect */
.glitch-text {
  position: relative;
  animation: glitch-anim 2s infinite;
}

.glitch-text h1 {
  position: relative;
  z-index: 1;
}

/* Shake effect */
.shake {
  animation: shake-intense 0.5s infinite;
}

@keyframes shake-intense {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  10% {
    transform: translate(-5px, -5px) rotate(-1deg);
  }
  20% {
    transform: translate(5px, 5px) rotate(1deg);
  }
  30% {
    transform: translate(-5px, 5px) rotate(-1deg);
  }
  40% {
    transform: translate(5px, -5px) rotate(1deg);
  }
  50% {
    transform: translate(-5px, -5px) rotate(-1deg);
  }
  60% {
    transform: translate(5px, 5px) rotate(1deg);
  }
  70% {
    transform: translate(-5px, 5px) rotate(-1deg);
  }
  80% {
    transform: translate(5px, -5px) rotate(1deg);
  }
  90% {
    transform: translate(-5px, -5px) rotate(-1deg);
  }
}

/* Photo explosion modal */
.photo-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s;
}

.photo-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.5s forwards;
}

@keyframes modalFadeIn {
  to {
    opacity: 1;
  }
}

.photo-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  padding: 30px;
  background: linear-gradient(45deg, #ff0080, #8000ff, #00ff80, #ffff00);
  background-size: 400% 400%;
  animation: gradient-shift 3s ease infinite;
  border: 8px solid #000;
  border-image: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 8;
  box-shadow: 0 0 50px rgba(255, 0, 255, 0.8);
}

.photo-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff0000;
  color: #fff;
  border: 3px solid #000;
  width: 40px;
  height: 40px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.2s;
  animation: pulse 2s infinite;
}

.photo-close-btn:hover {
  background: #fff;
  color: #ff0000;
  transform: rotate(90deg) scale(1.2);
}

.photo-grid-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 3px 3px 0 #000, 6px 6px 0 #ff0000;
  animation: shake 0.3s infinite, rainbow-text 2s infinite;
}

@keyframes rainbow-text {
  0% {
    color: #ff0000;
  }
  16% {
    color: #ff7700;
  }
  33% {
    color: #ffff00;
  }
  50% {
    color: #00ff00;
  }
  66% {
    color: #0000ff;
  }
  83% {
    color: #8b00ff;
  }
  100% {
    color: #ff0000;
  }
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.photo-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 5px solid #000;
  border-image: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 5;
  background: #000;
  opacity: 0;
  transform: scale(0) rotate(360deg);
}

.photo-modal.active .photo-item {
  animation: photoExplode 0.6s forwards;
}

.photo-modal.active .photo-item:nth-child(1) {
  animation-delay: 0.1s;
}
.photo-modal.active .photo-item:nth-child(2) {
  animation-delay: 0.15s;
}
.photo-modal.active .photo-item:nth-child(3) {
  animation-delay: 0.2s;
}
.photo-modal.active .photo-item:nth-child(4) {
  animation-delay: 0.25s;
}
.photo-modal.active .photo-item:nth-child(5) {
  animation-delay: 0.3s;
}
.photo-modal.active .photo-item:nth-child(6) {
  animation-delay: 0.35s;
}
.photo-modal.active .photo-item:nth-child(7) {
  animation-delay: 0.4s;
}
.photo-modal.active .photo-item:nth-child(8) {
  animation-delay: 0.45s;
}
.photo-modal.active .photo-item:nth-child(9) {
  animation-delay: 0.5s;
}

@keyframes photoExplode {
  0% {
    opacity: 0;
    transform: scale(0) rotate(360deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo-item:hover img {
  transform: scale(1.1) rotate(5deg);
}

.photo-item:hover {
  border-color: #0f0;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
  animation: shake 0.1s infinite;
}

.photo-trigger {
  cursor: pointer;
  transition: all 0.3s;
}

.photo-trigger:hover {
  background: linear-gradient(
    90deg,
    #ff0000,
    #ff7700,
    #ffff00,
    #00ff00,
    #0000ff,
    #8b00ff
  );
  background-size: 200% 100%;
  animation: rainbow-slide 2s linear infinite, shake 0.2s infinite !important;
  transform: scale(1.1) rotate(0deg) !important;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 10px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .photo-grid-title {
    font-size: 2rem;
  }
}
