/* ===== تنظیمات پایه ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  min-height: 100vh;
  padding: 10px;
}

/* ===== Container ===== */
.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* ===== Header ===== */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
  animation: slideDown 0.6s ease-out;
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  animation: zoomIn 0.8s ease-out;
}

.header p {
  font-size: 1.1em;
  opacity: 0.95;
  font-weight: 300;
}

/* ===== Content ===== */
.content {
  padding: 40px 20px;
}

/* ===== Sections ===== */
.section {
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out both;
}

.section:nth-child(2) {
  animation-delay: 0.2s;
}

.section:nth-child(3) {
  animation-delay: 0.4s;
}

.section:nth-child(4) {
  animation-delay: 0.6s;
}

.section:nth-child(5) {
  animation-delay: 0.8s;
}

.section-title {
  font-size: 1.5em;
  color: #667eea;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
  font-weight: 600;
}

/* ===== Text Container ===== */
.text-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.text-item {
  padding: 15px 20px;
  background: #f8f9ff;
  border-left: 4px solid #667eea;
  border-radius: 8px;
  line-height: 1.6;
  font-size: 1em;
  transition: all 0.3s ease;
}

.text-item:hover {
  background: #eef2ff;
  transform: translateX(-5px);
}

.text-item.highlight {
  background: #fff3cd;
  border-left-color: #ffc107;
}

.text-item.success {
  background: #d4edda;
  border-left-color: #28a745;
}

.text-item.danger {
  background: #f8d7da;
  border-left-color: #dc3545;
}

/* ===== Images Grid ===== */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.image-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-item:hover {
  transform: scale(1.05) rotateZ(2deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.image-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.image-item:hover img {
  transform: scale(1.1);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 15px 10px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.image-item:hover .image-caption {
  transform: translateY(0);
}

/* ===== List Container ===== */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  padding: 15px 20px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.list-item:hover {
  background: #f5f5f5;
  border-color: #667eea;
  transform: translateX(-5px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.list-item-icon {
  font-size: 1.5em;
  min-width: 30px;
  text-align: center;
}

.list-item-content {
  flex: 1;
}

.list-item-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
}

.list-item-description {
  font-size: 0.9em;
  color: #666;
}

/* ===== Features List ===== */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.feature-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.feature-description {
  font-size: 0.9em;
  color: #666;
  line-height: 1.5;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  margin-top: 30px;
}

.cta-button {
  padding: 15px 40px;
  font-size: 1.1em;
  font-weight: 600;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-button:active {
  transform: scale(0.95);
}

.cta-text {
  color: white;
  font-size: 0.95em;
}

/* ===== Footer ===== */
.footer {
  background: #f5f5f5;
  color: #666;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  border-top: 1px solid #e0e0e0;
}

/* ===== Animations ===== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* ===== Responsive Design ===== */
@media (max-width: 600px) {
  .header h1 {
    font-size: 2em;
  }

  .section-title {
    font-size: 1.2em;
  }

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

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

  .content {
    padding: 20px 15px;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
}

@media (max-width: 400px) {
  body {
    padding: 5px;
  }

  .header {
    padding: 25px 15px;
  }

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

  .header p {
    font-size: 0.9em;
  }
}
