/* === CUSTOM FONTS === */
@font-face {
  font-family: 'PixelFont';
  src: url('IMAGES/ThatThatNewPixelVF.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at center, #0b0710, #050307);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'PixelFont', 'Courier New', monospace;
  color: white;
  background: url("IMAGES/bg.gif") no-repeat center center fixed;
  background-size: cover;
  transition: all 0.3s ease;
}

/* Body glitch effect */
body.glitch-effect {
  animation: bodyGlitch 0.5s linear;
}

@keyframes bodyGlitch {
  0% { filter: hue-rotate(0deg) brightness(1); }
  20% { filter: hue-rotate(300deg) brightness(1.5); transform: translateX(2px); }
  40% { filter: hue-rotate(330deg) brightness(2); transform: translateX(-2px); }
  60% { filter: hue-rotate(0deg) brightness(1.8); transform: translateY(2px); }
  80% { filter: hue-rotate(300deg) brightness(1.3); transform: translateY(-2px); }
  100% { filter: hue-rotate(0deg) brightness(1); transform: translateX(0) translateY(0); }
}

/* === MAIN CONTAINER === */
.portal-container {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
}

/* === HEART === */
.heart-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  z-index: 2;
}

/* Heart link */
#heart-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  text-decoration: none;
}

/* Heart itself */
.heart {
  width: 100%;
  height: auto;
  transition: transform 0.15s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 15px rgba(255,0,150,0.4));
  transform-origin: center;
  position: relative;
  z-index: 2;
}

/* Heart click effect */
.heart.clicked {
  animation: heartClickEffect 0.8s ease-out;
}

@keyframes heartClickEffect {
  0% { transform: scale(1); filter: drop-shadow(0 0 15px #8B00FF); }
  25% { transform: scale(1.8) rotate(5deg); filter: drop-shadow(0 0 40px #FF00FF) hue-rotate(0deg); }
  50% { transform: scale(2) rotate(-5deg); filter: drop-shadow(0 0 60px #DA70D6) hue-rotate(30deg); }
  75% { transform: scale(1.5) rotate(3deg); filter: drop-shadow(0 0 50px #BA55D3) hue-rotate(60deg); }
  100% { transform: scale(1); filter: drop-shadow(0 0 15px #8B00FF) hue-rotate(0deg); }
}

/* Fixed soft glow behind heart */
.heart-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,0,150,0.4) 0%, transparent 70%);
  filter: blur(30px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

/* Heart hover */
.heart-container:hover .heart {
  transform: scale(1.1);
  filter: drop-shadow(0 0 30px rgba(255,0,150,0.9)) brightness(1.3) saturate(1.4);
}

.heart-container:hover .heart-glow {
  opacity: 1;
}

/* === ENTER TEXT === */
.enter-text {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translateX(-50%) scale(1.1);
  color: white;
  font-size: 32px;
  font-family: 'PixelFont', 'Courier New', monospace;
  text-shadow: 
    0 0 10px #000,
    0 0 20px #000, 
    0 0 30px #000,
    2px 0 #ff5bb8, 
    -2px 0 #7b3cff;
  animation: textGlitch 0.5s infinite;
  cursor: default;
  letter-spacing: 2px;
  text-align: center;
  white-space: nowrap;
  z-index: 1001;
}

@keyframes textGlitch {
  0% { 
    text-shadow: 
      0 0 10px #000, 0 0 20px #000, 0 0 30px #000,
      2px 0 #ff5bb8, -2px 0 #7b3cff;
    transform: translateX(-50%) scale(1.1) translateX(0);
  }
  25% { 
    text-shadow: 
      0 0 10px #000, 0 0 20px #000, 0 0 30px #000,
      -2px 0 #ff5bb8, 2px 0 #7b3cff;
    transform: translateX(-50%) scale(1.1) translateX(2px);
  }
  50% { 
    text-shadow: 
      0 0 10px #000, 0 0 20px #000, 0 0 30px #000,
      2px 0 #ff5bb8, -2px 0 #7b3cff;
    transform: translateX(-50%) scale(1.1) translateX(-2px);
  }
  75% { 
    text-shadow: 
      0 0 10px #000, 0 0 20px #000, 0 0 30px #000,
      -2px 0 #ff5bb8, 2px 0 #7b3cff;
    transform: translateX(-50%) scale(1.1) translateX(1px);
  }
  100% { 
    text-shadow: 
      0 0 10px #000, 0 0 20px #000, 0 0 30px #000,
      2px 0 #ff5bb8, -2px 0 #7b3cff;
    transform: translateX(-50%) scale(1.1) translateX(0);
  }
}

/* === MUSIC PLAYER === */
.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.play-pause-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #ff5bb8;
  background: rgba(0, 0, 0, 0.7);
  color: #ff5bb8;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 91, 184, 0.5);
  padding: 0;
  margin: 0;
  line-height: 1;
}

.play-pause-btn:hover {
  background: rgba(255, 91, 184, 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 91, 184, 0.8);
}





/* === MOBILE === */
@media (max-width: 768px) {
  .heart-container {
    width: 300px;
    height: 300px;
  }
  
  .heart-glow {
    width: 200px;
    height: 200px;
  }
  
  .enter-text {
    font-size: 24px;
    top: 70%;
  }
}

@media (max-width: 480px) {
  .heart-container {
    width: 250px;
    height: 250px;
  }
  
  .heart-glow {
    width: 180px;
    height: 180px;
  }
  
  .enter-text {
    font-size: 20px;
    top: 65%;
  }
  
  .music-player {
    bottom: 15px;
    right: 15px;
  }
  
  .play-pause-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}