/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Courier New", monospace;
  background-color: #0a0e1a;
  /* Changed to brighter cybersecurity green */
  color: #00ff41;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Matrix Background */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.matrix-char {
  position: absolute;
  font-family: "Courier New", monospace;
  font-size: 20px;
  /* Updated matrix rain color to bright green */
  color: rgba(0, 255, 65, 0.3);
  animation: matrix-rain linear infinite;
}

@keyframes matrix-rain {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Container */
.container {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

/* Card */
.card {
  background: rgba(15, 20, 30, 0.9);
  backdrop-filter: blur(10px);
  /* Changed border color to bright green */
  border: 2px solid rgba(0, 255, 65, 0.5);
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  /* Updated glow effect to bright green */
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.5), 0 0 20px rgba(0, 255, 65, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    /* Bright green glow animation */
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5), 0 0 20px rgba(0, 255, 65, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.8), 0 0 40px rgba(0, 255, 65, 0.5), 0 0 60px rgba(0, 255, 65, 0.3);
  }
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  /* Updated avatar colors to bright green */
  background: rgba(0, 255, 65, 0.1);
  border: 2px solid #00ff41;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.5), 0 0 20px rgba(0, 255, 65, 0.3);
  /* Added overflow hidden for proper image clipping */
  overflow: hidden;
}

/* New styles for avatar image */
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-text {
  font-size: 32px;
  font-weight: bold;
  /* Bright green text */
  color: #00ff41;
}

.title {
  font-size: 36px;
  font-weight: bold;
  /* Bright green title */
  color: #00ff41;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.glitch-text {
  animation: glitch 0.3s infinite;
}

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

.subtitle {
  font-size: 14px;
  /* Darker green for subtitle */
  color: #00cc33;
}

.cursor {
  /* Bright green cursor */
  color: #00ff41;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}

/* Links */
.links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-button {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: rgba(20, 25, 35, 0.6);
  backdrop-filter: blur(5px);
  /* Bright green border */
  border: 2px solid rgba(0, 255, 65, 0.5);
  border-radius: 8px;
  /* Bright green text */
  color: #00ff41;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.link-button:hover {
  /* Bright green hover effect */
  background: rgba(0, 255, 65, 0.15);
  border-color: #00ff41;
  box-shadow: 0 4px 20px rgba(0, 255, 65, 0.4), 0 0 30px rgba(0, 255, 65, 0.2);
  transform: translateY(-2px);
}

.link-button.donation {
  /* Special styling for donation button */
  border-color: rgba(255, 215, 0, 0.5);
  color: #ffd700;
}

.link-button.donation:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: #ffd700;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.2);
}

.icon {
  /* Larger icons for better visibility */
  width: 24px;
  height: 24px;
  margin-right: 12px;
  transition: transform 0.3s ease;
}

.link-button:hover .icon {
  transform: scale(1.2) rotate(5deg);
}

.link-text {
  flex: 1;
  text-align: left;
}

.arrow {
  /* Bright green arrow */
  color: #00ff41;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-weight: bold;
}

.link-button:hover .arrow {
  opacity: 1;
  transform: translateX(5px);
}

.link-button.donation .arrow {
  color: #ffd700;
}

/* Footer */
.footer {
  margin-top: 40px;
  text-align: center;
}

.footer p {
  font-size: 12px;
  /* Darker green for footer */
  color: #00cc33;
  letter-spacing: 1px;
}

/* Decorative Corners */
.corner {
  position: absolute;
  width: 32px;
  height: 32px;
  /* Bright green corners */
  border-color: rgba(0, 255, 65, 0.6);
}

.corner-tl {
  top: -16px;
  left: -16px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.corner-tr {
  top: -16px;
  right: -16px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.corner-bl {
  bottom: -16px;
  left: -16px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.corner-br {
  bottom: -16px;
  right: -16px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* Responsive */
@media (max-width: 600px) {
  .card {
    padding: 30px 20px;
  }

  .title {
    font-size: 28px;
  }

  .avatar {
    width: 80px;
    height: 80px;
  }

  .avatar-text {
    font-size: 28px;
  }

  /* Smaller icons on mobile */
  .icon {
    width: 20px;
    height: 20px;
  }
}
