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

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  background-color: #f0f8ff;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url('assets/images/alphabet-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.6; /* پررنگ‌تر شد */
  z-index: -1;
}

/* کانتینر مرکزی با تصویر دوم و افکت برجسته */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  background-image: url('assets/images/english-letters.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: normal;
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  border: 4px solid #007BFF;
  box-shadow:
    0 0 0 4px rgba(0, 123, 255, 0.3),
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 40px rgba(0, 123, 255, 0.3);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease;
}

.container:hover {
  transform: scale(1.015);
}

/* هدر */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
  color: #034784;
  animation: fadeInLogo 1.2s ease-in-out;
  text-align: center;
  background: linear-gradient(135deg, #e0f7ff, #d0eaff);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0, 123, 255, 0.5));
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.logo p {
  margin-top: 5px;
  font-size: 1rem;
  color: #034784;
}

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

/* نوار لینک‌ها */
.top-bar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  overflow-x: auto;
  background: linear-gradient(90deg, #e0f0ff, #ffffff);
  border: 2px dashed #FFA500;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* دکمه‌ها با ۱۰٪ کاهش اندازه و افکت لرزش */
.platform-button {
  background: linear-gradient(135deg, #007BFF, #00BFFF);
  color: #ffffff;
  padding: 14px 22px; /* کاهش ارتفاع */
  border: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.26rem; /* کاهش اندازه فونت */
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  white-space: nowrap;
  display: inline-block;
  line-height: 1;
}

.platform-button:hover {
  background: linear-gradient(135deg, #0056b3, #0099cc);
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

/* محتوای اصلی */
.main {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.character,
.features {
  flex: 1 1 300px;
  min-height: 300px;
  background-color: #fff;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character img,
.features img {
  max-width: 100%;
  height: auto;
}

/* واکنش‌گرا برای موبایل */
@media (max-width: 600px) {
  .main {
    flex-direction: column;
  }

  .logo p {
    font-size: 0.9rem;
  }

  .platform-button {
    font-size: 1.1rem;
    padding: 12px 18px;
  }

  .top-bar {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}
