/* Profile Image Styles */

.profile-container {
  display: grid;
  grid-template-columns: 768px 1fr;
  gap: 20px;
  padding: 15px;
  background: #000;
  border: 3px solid #00ff00;
}

.profile-image-wrapper {
  position: relative;
  width: fit-content; /* or specific width */
}

.profile-image,
.overlay-image {
  display: block;
  width: 100%; /* or specific size */
  height: auto;
}

.overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2; /* higher than the GIF */
  /* Optional: make the image partially transparent */
  /* opacity: 0.7; */
  /* Optional: blend modes */
  /* mix-blend-mode: multiply; */
}

.profile-image {
  position: relative;
  z-index: 1;
}

.profile-image-wrapper {
  position: relative;
  width: 650px;
  height: 550px;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border: 2px solid #00ff00;
  filter: grayscale(100%) contrast(100%) brightness(100%) saturate(100%);
  transition: all 0.3s;
}

.profile-image:hover {
  filter: grayscale(0%) contrast(100%);
  border-color: #ff0000;
}

.profile-image-border {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid #ff0000;
  z-index: 1;
  animation: border-pulse 2s infinite alternate;
}

.profile-image-glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(0, 255, 0, 0.1) 45%,
    rgba(0, 255, 0, 0.1) 55%,
    transparent 55%
  );
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s;
}

.profile-image-wrapper:hover .profile-image-glitch {
  opacity: 1;
  animation: glitch-anim 0.5s infinite;
}

.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status-active {
  color: #00ff00;
  font-weight: bold;
  text-shadow: 0 0 5px #00ff00;
}

.text-glitch {
  position: relative;
  display: inline-block;
}

.text-glitch::before {
  content: attr(data-text);
  position: absolute;
  left: -2px;
  text-shadow: 2px 0 #ff0000;
  background: #000;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  animation: noise-anim 2s infinite linear alternate-reverse;
}

@keyframes border-pulse {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

@keyframes glitch-anim {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-3px, 3px);
  }
  40% {
    transform: translate(-3px, -3px);
  }
  60% {
    transform: translate(3px, 3px);
  }
  80% {
    transform: translate(3px, -3px);
  }
  100% {
    transform: translate(0);
  }
}

@keyframes noise-anim {
  0% {
    clip: rect(61px, 9999px, 52px, 0);
  }
  10% {
    clip: rect(33px, 9999px, 144px, 0);
  }
  20% {
    clip: rect(121px, 9999px, 115px, 0);
  }
  30% {
    clip: rect(144px, 9999px, 162px, 0);
  }
  40% {
    clip: rect(62px, 9999px, 180px, 0);
  }
  50% {
    clip: rect(34px, 9999px, 42px, 0);
  }
  60% {
    clip: rect(67px, 9999px, 179px, 0);
  }
  70% {
    clip: rect(95px, 9999px, 153px, 0);
  }
  80% {
    clip: rect(178px, 9999px, 175px, 0);
  }
  90% {
    clip: rect(138px, 9999px, 187px, 0);
  }
  100% {
    clip: rect(102px, 9999px, 149px, 0);
  }
}
