* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base settings for the page  */
body {
  background: radial-gradient(
    ellipse at 30% 40%,
    #0a0a1a 0%,
    #020210 80%,
    #000000 100%
  );
  font-family:
    -apple-system, "Segoe UI", "Vazir", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  position: relative;
  /* Add overflow-y to let it scroll */
  overflow-y: auto;
  overflow-x: hidden;
}

/*  Kill user-select for everybody */
body {
  user-select: none;
  -webkit-user-select: none;
}

/* ========== Dusty galaxy ========== */
.galaxy-dust {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.galaxy-core {
  position: absolute;
  width: 35vw;
  height: 35vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 220, 150, 0.5) 0%,
    rgba(255, 180, 100, 0.2) 30%,
    rgba(255, 140, 80, 0.05) 60%,
    transparent 100%
  );
  border-radius: 50%;
  filter: blur(30px);
  animation: corePulse 8s ease-in-out infinite;
}

.dust-ring-1,
.dust-ring-2,
.dust-ring-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  opacity: 0.35;
}

.dust-ring-1 {
  width: 70vw;
  height: 70vw;
  background: conic-gradient(
    from 0deg,
    rgba(80, 100, 200, 0.3),
    rgba(140, 100, 200, 0.2),
    rgba(200, 140, 100, 0.25),
    rgba(255, 180, 100, 0.3),
    rgba(80, 100, 200, 0.3)
  );
  animation: rotateGalaxy 45s linear infinite;
}

.dust-ring-2 {
  width: 85vw;
  height: 85vw;
  background: conic-gradient(
    from 45deg,
    rgba(100, 80, 180, 0.25),
    rgba(180, 120, 80, 0.2),
    rgba(220, 160, 100, 0.2),
    rgba(100, 80, 180, 0.25)
  );
  animation: rotateGalaxyReverse 55s linear infinite;
  opacity: 0.25;
}

.dust-ring-3 {
  width: 55vw;
  height: 55vw;
  background: conic-gradient(
    from 120deg,
    rgba(60, 70, 180, 0.35),
    rgba(160, 100, 80, 0.2),
    rgba(60, 70, 180, 0.35)
  );
  animation: rotateGalaxy 35s linear infinite;
  opacity: 0.3;
}

.dust-cloud {
  position: absolute;
  background: radial-gradient(ellipse, rgba(80, 70, 120, 0.15), transparent);
  border-radius: 50%;
  filter: blur(60px);
}

.cloud-1 {
  width: 40vw;
  height: 30vw;
  top: 15%;
  left: 5%;
  transform: rotate(25deg);
}

.cloud-2 {
  width: 50vw;
  height: 35vw;
  bottom: 10%;
  right: 0%;
  transform: rotate(-15deg);
  background: radial-gradient(ellipse, rgba(120, 90, 70, 0.12), transparent);
}

.cloud-3 {
  width: 35vw;
  height: 25vw;
  top: 55%;
  left: 55%;
  transform: rotate(40deg);
  background: radial-gradient(ellipse, rgba(100, 80, 140, 0.1), transparent);
}

@keyframes rotateGalaxy {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes rotateGalaxyReverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes corePulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* ستاره‌های چشمک‌زن */
.star {
  position: fixed;
  background-color: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: starTwinkle 4s ease-in-out infinite;
}

@keyframes starTwinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
  30% {
    opacity: 0.7;
    transform: scale(1.1);
  }
  60% {
    opacity: 0.3;
    transform: scale(0.95);
  }
  85% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* کادر شیشه‌ای */
.glass-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 60px auto;
  padding: 20px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 48px 40px;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.glass-card:hover {
  border-color: rgba(255, 200, 100, 0.4);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(255, 180, 100, 0.15);
}

.title {
  font-size: 2.8rem;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 40px rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-family: -apple-system, "Segoe UI", system-ui;
}

.section {
  margin-bottom: 32px;
}
.section-title {
  font-size: 1.5rem;
  color: #ffdd99;
  margin-bottom: 12px;
  border-right: 3px solid rgba(255, 255, 255, 0.5);
  padding-right: 16px;
  font-weight: 500;
}
.section-text {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: 1rem;
  text-align: justify;
}
.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.4),
    transparent
  );
  margin: 30px 0;
}
.footer-text {
  text-align: center;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
}

/* ========== Responsing Mobile ========== */
@media (max-width: 768px) {
  .glass-card {
    padding: 28px 20px;
    border-radius: 32px;
  }
  .title {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .glass-container {
    margin: 20px auto;
  }
  .galaxy-core {
    width: 50vw;
    height: 50vw;
  }
  .dust-ring-1 {
    width: 85vw;
    height: 85vw;
  }
  .dust-ring-2 {
    width: 100vw;
    height: 100vw;
  }
  .dust-ring-3 {
    width: 70vw;
    height: 70vw;
  }
}
