body {
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://static.vecteezy.com/system/resources/previews/048/891/912/large_2x/abstract-luxury-gold-ribbon-line-wave-curve-on-black-design-modern-background-vector.jpg');
  background-position: 50% 50%;
  background-size: cover;
}

.u-section-1 .u-sheet-1 {
  min-height: 685px;
}

.u-section-1 .u-image-1 {
  width: 283px;
  height: 283px;
  margin: 103px auto 0;
  filter: drop-shadow(0 0 6px #B38728) drop-shadow(0 0 12px #D4B969);
}

/* کوچیک و بزرگ شدن از مرکز */
.img-pulse {
  display: inline-block;
  transform-origin: center center;         /* مرکزِ عنصر */
  -webkit-transform-origin: center center; /* پیشوند برای برخی وب‌ویوها */
  animation: pulse 1.6s ease-in-out infinite alternate;
  -webkit-animation: pulse 1.6s ease-in-out infinite alternate;
  will-change: transform;
}
.img-pulse-2 {
  display: inline-block;
  transform-origin: center center;
  -webkit-transform-origin: center center;
  animation: pulse 1.6s ease-in-out infinite alternate;
  -webkit-animation: pulse 1.6s ease-in-out infinite alternate;
  animation-delay: 1s;
  -webkit-animation-delay: 1s;
  will-change: transform;
}

@-webkit-keyframes pulse {
  from { -webkit-transform: scale(0.92); transform: scale(0.92); }   /* کمی کوچک‌تر از نرمال */
  to   { -webkit-transform: scale(0.98); transform: scale(0.98); }   /* کمی بزرگ‌تر از نرمال */
}
@keyframes pulse {
  from { transform: scale(0.92); }
  to   { transform: scale(0.98); }
}

/* فقط یک المنت – بدون جابجایی در صفحه */
.typewrite {
  --chars: 28;         /* حدود تعداد کاراکترها */
  --duration: 3s;

  /* حالت پیش‌فرض (fallback) با clip-path برای سازگاری گسترده */
  clip-path: inset(0 100% 0 0);
  animation: clip-reveal var(--duration) steps(var(--chars)) infinite both;
}

/* اگر mask پشتیبانی شود، همون را ترجیح بده (بدون تغییر لِی‌اوت) */
@supports (mask: linear-gradient(#fff 0 0)) or (-webkit-mask: linear-gradient(#fff 0 0)) {
  .typewrite {
    clip-path: none; /* دیگه لازم نیست */
    -webkit-mask: linear-gradient(#fff 0 0) left / 0% 100% no-repeat;
    mask: linear-gradient(#fff 0 0) left / 0% 100% no-repeat;
    animation: mask-reveal var(--duration) steps(var(--chars)) infinite both;
  }
}

/* انیمیشنِ fallback با clip-path */
@keyframes clip-reveal {
  0%   { clip-path: inset(0 100% 0 0); }   /* نامرئی از چپ */
  60%,
  100% { clip-path: inset(0 0 0 0); }      /* کامل، بعد کمی مکث تا 3s */
}

/* انیمیشن با mask (ترجیحی) */
@keyframes mask-reveal {
  0%   { -webkit-mask-size: 0% 100%; mask-size: 0% 100%; }
  60%,
  100% { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
}

/* احترام به کاهش حرکت کاربر */
@media (prefers-reduced-motion: reduce) {
  .typewrite {
    /*animation: none !important;*/
    clip-path: inset(0 0 0 0);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
}

/* احترام به تنظیمات کاربر */
@media (prefers-reduced-motion: reduce) {
  /* .img-pulse { animation: none; } */
}

.u-section-1 .u-text-1 {
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 3rem;
  width: 589px;
  margin: 9px auto 0;
}

/* === FIX: به‌جای filter از text-shadow استفاده شد تا مربع مشکی موبایل رفع شود === */
.u-section-1 .u-text-2 {
  font-size: 4.5rem;
  /* filter: drop-shadow(...) حذف شد */
  text-shadow:
          0 0 3px  #000,
          0 0 6px  #000,
          0 0 12px #000,
          0 0 18px #000;       /* هاله‌ی مشکی پررنگ و کراس‌براوزر */
  letter-spacing: 4px;
  text-transform: uppercase;
  font-family: Raleway, sans-serif;
  font-weight: 700;
  width: 861px;
  margin: -7px auto 0;
}

.u-section-1 .u-text-3 {
  letter-spacing: normal;
  font-weight: 400;
  font-size: 2.25rem;
  font-family: Roboto, sans-serif;
  text-transform: none;
  width: 714px;
  margin: -4px auto 60px;
}

@media (max-width: 1199px) {
  .u-section-1 .u-sheet-1 {
    min-height: 565px;
  }

  .u-section-1 .u-text-2 {
    margin-left: 40px;
    margin-right: 40px;
  }

  .u-section-1 .u-text-3 {
    letter-spacing: 0px;
    line-height: 1.4;
    font-weight: 300;
    font-size: 1.875rem;
    font-family: Lato, sans-serif;
  }
}

@media (max-width: 991px) {
  .u-section-1 .u-sheet-1 {
    min-height: 877px;
  }

  .u-section-1 .u-image-1 {
    margin-top: 223px;
  }

  /* === FIX موبایل: text-shadow به‌جای filter برای تیتر بالا === */
  .u-section-1 .u-text-1 {
    /* filter: drop-shadow(...) حذف شد */
    text-shadow:
            0 0 3px  #000,
            0 0 6px  #000,
            0 0 12px #000,
            0 0 18px #000;
    width: auto;
    margin-left: 65px;
    margin-right: 65px;
  }

  .u-section-1 .u-text-2 {
    width: auto;
    margin-top: -6px;
    margin-left: 0;
    margin-right: 0;
  }

  .u-section-1 .u-text-3 {
    width: auto;
    font-weight: 700;
    margin-top: -7px;
    margin-left: 3px;
    margin-right: 3px;
  }
}

@media (max-width: 767px) {
  .u-section-1 .u-sheet-1 {
    min-height: 961px;
  }

  .u-section-1 .u-image-1 {
    width: 107px;
    height: 165px;
  }

  .u-section-1 .u-text-1 {
    font-size: 2.5rem;
    margin-left: 0;
    margin-right: 0;
  }

  .u-section-1 .u-text-2 {
    font-size: 3.75rem;
  }

  .u-section-1 .u-text-3 {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 575px) {
  .u-section-1 .u-sheet-1 {
    min-height: 800px;
  }

  .u-section-1 .u-image-1 {
    width: 210px;
    height: 326px;
    margin-top: 138px;
  }

  .u-section-1 .u-text-1 {
    font-size: 2rem;
    margin-top: -53px;
  }

  .u-section-1 .u-text-2 {
    font-size: 2.25rem;
    margin-top: 0;
  }

  .u-section-1 .u-text-3 {
    font-size: 1.125rem;
    margin-top: -3px;
  }
}
