@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Vazirmatn", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 2rem;
  text-align: center;
  color: #fff;
}

/* بک گراند */
#bgCanvas {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #0a0a0a, #000);
  top: 0;
  left: 0;
  z-index: 1;
}

/* دکمه برگشت */
.back-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
}
.back-btn a {
  background: linear-gradient(45deg, #f39c12, #e67e22);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 35px;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(243, 156, 18, 0.6);
  transition: all 0.3s ease;
}
.back-btn a::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.4),
    transparent 60%
  );
  top: -50%;
  left: -50%;
  transform: scale(0);
  transition: transform 0.5s ease;
}
.back-btn a:hover::after {
  transform: scale(1);
}
.back-btn a:hover {
  box-shadow: 0 0 35px #f39c12, 0 0 70px rgba(243, 156, 18, 0.7);
  background: linear-gradient(45deg, #fff, #f39c12);
  color: #000;
}

/* کانتینر اصلی */
.container {
  background: rgba(30, 30, 30, 0.6);
  padding: 2.5rem;
  border-radius: 25px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95),
    inset 0 0 25px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  max-width: 950px;
  width: 100%;
  z-index: 3;
}
.container h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #f39c12;
  text-shadow: 0 0 20px rgba(243, 156, 18, 0.8);
}

/* کارت‌ها */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  perspective: 1500px;
}
.card {
  background: rgba(15, 15, 15, 0.9);
  padding: 1.8rem;
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.9), 0 0 25px rgba(243, 156, 18, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.7) rotateX(20deg);
}

/* ورود موجی کارت‌ها */
.card.show {
  animation: cardEnter 1s ease forwards;
}
@keyframes cardEnter {
  0% {
    opacity: 0;
    transform: scale(0.7) rotateX(25deg) translateY(30px);
    filter: blur(8px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) rotateX(0deg) translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateX(0deg);
  }
}

/* افکت نور اطراف کارت */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(130deg, #f39c12, transparent, #f39c12);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover::before {
  opacity: 1;
}

/* هاور کارت */
.card:hover {
  box-shadow: 0 0 40px rgba(243, 156, 18, 0.7), 0 0 80px rgba(243, 156, 18, 0.3);
}
.card:hover i {
  animation: pulseGlow 1.5s infinite ease;
}
@keyframes pulseGlow {
  0%,
  100% {
    text-shadow: 0 0 15px #f39c12;
  }
  50% {
    text-shadow: 0 0 30px #f39c12;
  }
}

.card i {
  font-size: 2.2rem;
  color: #f39c12;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(243, 156, 18, 0.7);
}
.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.card p {
  font-size: 1rem;
  color: #ddd;
}

/* شبکه‌های اجتماعی */
.socials a {
  margin: 0 10px;
  color: #fff;
  font-size: 1.7rem;
  transition: all 0.3s;
}
.socials a:hover {
  color: #f39c12;
  text-shadow: 0 0 20px #f39c12;
}
