@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap");

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

body {
  font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0118;
  background-image: 
    radial-gradient(at 20% 30%, rgba(120, 40, 200, 0.3) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(150, 50, 255, 0.25) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(90, 30, 180, 0.2) 0px, transparent 50%);
  min-height: 100vh;
  padding: 20px;
  direction: rtl;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(120, 40, 200, 0.03) 2px,
      rgba(120, 40, 200, 0.03) 4px
    );
  pointer-events: none;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(15, 5, 30, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  box-shadow: 
    0 8px 32px rgba(120, 40, 200, 0.3),
    0 0 0 1px rgba(150, 80, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: radial-gradient(circle at 50% 0%, rgba(150, 50, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.header {
  background: linear-gradient(135deg, rgba(100, 40, 180, 0.4) 0%, rgba(130, 50, 220, 0.4) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px;
  color: white;
  border-bottom: 1px solid rgba(150, 80, 255, 0.2);
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 80, 255, 0.5), transparent);
}

.app-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 
    0 12px 40px rgba(120, 40, 200, 0.5),
    0 0 0 1px rgba(150, 80, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(150, 80, 255, 0.3);
  transition: all 0.4s ease;
}

.app-icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 16px 50px rgba(120, 40, 200, 0.6),
    0 0 0 1px rgba(150, 80, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.app-details {
  flex: 1;
}

.app-name {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 
    0 2px 10px rgba(150, 80, 255, 0.5),
    0 0 30px rgba(120, 40, 200, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #e4d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-category {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 12px;
  color: #c4b5fd;
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  color: #fbbf24;
  font-size: 20px;
  text-shadow: 
    0 0 10px rgba(251, 191, 36, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

.rating-text {
  font-size: 18px;
  font-weight: 600;
  color: #e4d4ff;
}

.download-section {
  padding: 32px 40px;
  background: rgba(20, 10, 40, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(150, 80, 255, 0.15);
  position: relative;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(120, 40, 200, 0.8) 0%, rgba(150, 50, 255, 0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 18px 44px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 
    0 8px 24px rgba(120, 40, 200, 0.4),
    0 0 0 1px rgba(150, 80, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.download-button::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 ease;
}

.download-button:hover::before {
  left: 100%;
}

.download-button:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 32px rgba(120, 40, 200, 0.6),
    0 0 0 1px rgba(150, 80, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 30px rgba(150, 50, 255, 0.4);
}

.download-button:active {
  transform: translateY(-1px);
}

.description-section,
.features-section {
  padding: 40px;
  border-bottom: 1px solid rgba(150, 80, 255, 0.15);
  background: rgba(15, 5, 30, 0.3);
}

h2 {
  font-size: 24px;
  font-weight: 700;
  color: #e4d4ff;
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(150, 80, 255, 0.3);
}

.description {
  font-size: 16px;
  line-height: 1.8;
  color: #c4b5fd;
}

.screenshots-section {
  padding: 40px;
  background: rgba(20, 10, 40, 0.4);
}

.screenshots-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.screenshots-container::-webkit-scrollbar {
  height: 8px;
}

.screenshots-container::-webkit-scrollbar-track {
  background: rgba(30, 20, 60, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 4px;
}

.screenshots-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(120, 40, 200, 0.8), rgba(150, 50, 255, 0.8));
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(150, 50, 255, 0.5);
}

.screenshots-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(130, 50, 210, 0.9), rgba(160, 60, 255, 0.9));
}

.screenshot-wrapper {
  flex-shrink: 0;
  width: 280px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 8px 24px rgba(120, 40, 200, 0.3),
    0 0 0 1px rgba(150, 80, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(30, 20, 60, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.screenshot-wrapper:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 
    0 16px 40px rgba(120, 40, 200, 0.5),
    0 0 0 1px rgba(150, 80, 255, 0.5),
    0 0 40px rgba(150, 50, 255, 0.3);
}

.screenshot {
  width: 100%;
  height: auto;
  display: block;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.feature-item {
  background: rgba(30, 20, 60, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 28px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(150, 80, 255, 0.2);
  box-shadow: 
    0 4px 16px rgba(120, 40, 200, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-item:hover {
  background: rgba(40, 25, 70, 0.6);
  transform: translateY(-6px);
  box-shadow: 
    0 12px 32px rgba(120, 40, 200, 0.4),
    0 0 0 1px rgba(150, 80, 255, 0.4),
    0 0 30px rgba(150, 50, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(150, 80, 255, 0.4);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(150, 80, 255, 0.5));
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(150, 80, 255, 0.8));
}

.feature-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: #e4d4ff;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: #a78bfa;
  line-height: 1.6;
}

.footer {
  padding: 32px 40px;
  background: rgba(15, 5, 30, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  color: #a78bfa;
  font-size: 14px;
  border-top: 1px solid rgba(150, 80, 255, 0.15);
}

.footer p {
  margin: 4px 0;
}

@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .container {
    border-radius: 0;
  }

  .header {
    padding: 24px;
  }

  .app-info {
    flex-direction: column;
    text-align: center;
  }

  .app-icon {
    width: 100px;
    height: 100px;
  }

  .app-name {
    font-size: 28px;
  }

  .download-section,
  .description-section,
  .screenshots-section,
  .features-section,
  .footer {
    padding: 24px;
  }

  .screenshot-wrapper {
    width: 220px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}