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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    #000000 0%,
    #1a1a1a 25%,
    #2d2d00 50%,
    #1a1a1a 75%,
    #000000 100%
  );
  background-size: 400% 400%;
  animation: galaxyMove 15s ease infinite;
  position: relative;
  overflow-x: hidden;
}

@keyframes galaxyMove {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ستاره‌های پس‌زمینه */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  background: #ffd700;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* کانتینر اصلی */
.container {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* پروفایل */
.profile {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #ffd700;
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.6),
    0 0 60px rgba(255, 215, 0, 0.4);
  margin-bottom: 20px;
  object-fit: cover;
  animation: float 3s ease-in-out infinite;
}

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

.profile h1 {
  color: #ffd700;
  font-size: 2em;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.profile p {
  color: #ccc;
  font-size: 1.1em;
}

/* لینک‌ها */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.link-item {
  background: rgba(255, 215, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid #ffd700;
  border-radius: 15px;
  padding: 20px;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease backwards;
}

.link-item:nth-child(1) {
  animation-delay: 0.1s;
}
.link-item:nth-child(2) {
  animation-delay: 0.2s;
}
.link-item:nth-child(3) {
  animation-delay: 0.3s;
}
.link-item:nth-child(4) {
  animation-delay: 0.4s;
}
.link-item:nth-child(5) {
  animation-delay: 0.5s;
}
.link-item:nth-child(6) {
  animation-delay: 0.6s;
}
.link-item:nth-child(7) {
  animation-delay: 0.7s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.link-item:hover::before {
  left: 100%;
}

.link-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
  border-color: #ffcc00;
  background: rgba(255, 215, 0, 0.25);
}

.link-icon {
  width: 50px;
  height: 50px;
  background: #ffd700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.link-content {
  flex: 1;
  text-align: right;
}

.link-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 5px;
  color: #ffd700;
}

.link-description {
  font-size: 0.9em;
  color: #ccc;
}

/* فوتر */
.footer {
  margin-top: 40px;
  text-align: center;
  color: #888;
  font-size: 0.9em;
}

/* ریسپانسیو */
@media (max-width: 480px) {
  .container {
    padding: 30px 15px;
  }

  .profile h1 {
    font-size: 1.5em;
  }

  .profile-image {
    width: 100px;
    height: 100px;
  }

  .link-item {
    padding: 15px;
  }

  .link-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .link-title {
    font-size: 1em;
  }

  .link-description {
    font-size: 0.85em;
  }
}
