@font-face {
  font-family: "IRANSans";
  src: url("../fonts/IRANSans.ttf");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "iranSans";
  background: #f0f0f0;
  padding-bottom: 60px;
}
header {
  background: #ff9900;
  color: white;
  padding: 1rem;
  text-align: center;
  position: relative;
  z-index: 10;
  animation: fadeInDown 1s ease-out;
}
.hero-section {
  position: relative;
  max-width: 1200px;
  margin: 20px auto;
  min-height: 300px; /* حداقل ارتفاع برای موبایل */
  animation: slideInRight ease-out 1.5s forwards; /* انیمیشن متن */
}
.image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomIn 1.5s ease-out;
}
.text-overlay {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2rem;
  max-width: 400px;
  border-radius: 8px;
  text-align: right;
}
.text-overlay h2 {
  font-size: 24px;
  margin-bottom: 1rem;
  border-right: 3px solid #ff9900;
  padding-right: 1rem;
}
.text-overlay p {
  line-height: 1.6;
  font-size: 16px;
}
.contact-section {
  background: #ff9900;
  color: white;
  padding: 1rem;
  position: fixed;
  width: 100%;
  bottom: 0;
  text-align: center;
  z-index: 10;
  display: flex; /* افزودن flexbox */
  justify-content: center; /* مرکز چین کردن آیکون‌ها */
  gap: 20px; /* فاصله بین آیکون‌ها */
  animation: fadeInUp 1.5s ease-out; /* انیمیشن فوتر */
}
.icon {
  width: 40px; /* اندازه ثابت برای دسکتاپ */
  height: 40px;
  transition: 0.3s; /* افکت هوور نرم */
  transition: all 0.3s ease;
}
.icon:hover {
  transform: scale(1.2) rotate(360deg);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}
.w-44 {
  width: 178px;
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* افزودن این انیمیشن */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
  .image {
    display: none;
  }
  .hero-section {
    background-size: cover;
    background-position: center;
    padding: 20px;
  }
  .text-overlay {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    max-width: 100%;
    margin: 0;
    background: rgba(0, 0, 0, 0.8);
  }
  .text-overlay h2 {
    font-size: 20px;
  }
  .text-overlay p {
    font-size: 14px;
  }
  body {
    background-image: url(../img/3.jpg);
  }
  .icon {
    width: 35px; /* کاهش اندازه در موبایل */
    height: 35px;
    animation: float 3s ease-in-out infinite;
  }
  .icon:hover {
    transform: scale(1.1); /* اثر ساده‌تر برای تاچ */
  }
}
@media (max-width: 480px) {
  .text-overlay {
    padding: 1rem;
  }
  .contact-section p {
    font-size: 14px;
  }
  h1 {
    font-size: 18px;
  }
  .icon {
    width: 30px; /* اندازه کوچک‌تر برای موبایل‌های بسیار کوچک */
    height: 30px;
    animation: float 3s ease-in-out infinite;
  }
  .contact-section {
    gap: 15px; /* کاهش فاصله بین آیکون‌ها */
    padding: 0.5rem;
  }
}
