* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  width: 100vw;
  height: 100vh;
  display: flex;
  padding: 20px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.container {
  perspective: 1000px;
}

.card {
  background: linear-gradient(135deg, #bfeabf 0%, #86e586 100%);
  border-radius: 20px;
  max-width: 650px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 50px #86e586, 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: all 0.3s ease;
  animation: glow 2s ease-in-out infinite alternate;
  margin: auto auto;
  overflow: hidden;
}

@keyframes glow {
  from {
    box-shadow: 0 0 50px #f5f5dc, 0 20px 40px rgba(0, 0, 0, 0.3);
  }
  to {
    box-shadow: 0 0 80px #a8d8a8, 0 25px 50px rgba(0, 0, 0, 0.4);
  }
}

.card:hover {
  transform: translateY(-5px) rotateX(5deg);
  box-shadow: 0 0 100px rgba(218, 165, 32, 0.7), 0 30px 60px rgba(0, 0, 0, 0.4);
}

.profile-section {
  flex: 1;
  color: #2f4f2f;
  margin: 20px;
}

.name {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #2f4f2f;
}

.description {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.highlight {
  font-weight: 600;
  color: #2f4f2f;
}

.location {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #4f6f4f;
}

.friendship {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 15px;
  color: #2f4f2f;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.social-icon {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.social-icon:hover::before {
  left: 100%;
}

.discord {
  background: #5865f2;
}
.instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}
.linkedin {
  background: #0077b5;
}
.github {
  background: #333;
}
.website {
  background: #27ae60;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.website-btn {
  background: #daa520;
  color: white;
  max-width: fit-content;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.website-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.website-btn:hover::before {
  left: 100%;
}

.website-btn:hover {
  background: #b8860b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
}

.badge {
  background-color: #e51b14ab;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-left: 8px;
}

.character-section {
  justify-self: end;
  align-self: flex-end;
  padding-right: 5px;
}

.character-img {
  width: 350px;
  object-fit: contain;
  border-radius: 21px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.character-img:hover {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
}

@media (max-width: 600px) {
  .card {
    padding: 20px;
    flex-direction: column-reverse;
    align-items: center;
  }

  .card-content {
    flex-direction: column;
    text-align: center;
  }

  .name {
    font-size: 1.5rem;
  }

  .description {
    font-size: 1rem;
  }

  .character-section {
    width: 100%;
    align-self: center;
    justify-self: center;
    padding: 0;
  }

  .character-img {
    width: 90vw;
    max-width: 100%;
    height: auto;
    display: block;
  }

  .social-icons {
    justify-content: center;
  }

  .website-btn {
    max-width: 100%;
  }
}

.card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 50px 50px;
  animation: float 20s linear infinite;
  pointer-events: none;
  opacity: 0.3;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-50px, -50px) rotate(360deg);
  }
}
