/* ==================================================
   Amin Home Hero - Grid Text Hero V1
================================================== */

.amin-home-hero {
  --amin-hero-bg: #f8fafc;
  --amin-hero-line: rgba(148, 163, 184, 0.28);
  --amin-hero-text: #030712;
  --amin-hero-muted: #0f172a;
  --amin-hero-green: #34a853;
  --amin-hero-pink: #ff0f78;
  --amin-hero-purple: #6d4cff;
  --amin-hero-purple-2: #7c3aed;
  --amin-hero-nav-overlap: 92px;

  direction: rtl;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  min-height: 680px;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.08), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, var(--amin-hero-bg) 100%);
}

/* اگر هیرو باید پشت نویگیشن بیاید */
body.home .amin-home-hero {
  margin-top: calc(var(--amin-hero-nav-overlap) * -1) !important;
}

.amin-home-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--amin-hero-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--amin-hero-line) 1px, transparent 1px);
  background-size: 28px 34px;
  opacity: 0.58;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 100%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 100%, #000 58%, transparent 100%);
}

/*.amin-home-hero__glow {
  position: absolute;
  left: 50%;
  bottom: -52%;
  z-index: 1;
  width: 110vw;
  height: 72%;
  transform: translateX(-50%);
  pointer-events: none;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96) 0 18%, transparent 19%),
    radial-gradient(ellipse at 50% 16%, rgba(124, 58, 237, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(124, 58, 237, 0.045), rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(124, 58, 237, 0.07);
}
*/
.amin-home-hero__inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1360px;
  min-height: 680px;
  margin: 0 auto;
  padding: calc(60px + var(--amin-hero-nav-overlap)) 18px 82px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.amin-home-hero__content {
  width: min(1180px, 100%);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 8;
}

.amin-home-hero__title {
  margin: 0;
  color: var(--amin-hero-text);
  font-family: "Far_Ketab", "IRANSansX", "Vazirmatn", Tahoma, sans-serif;
  font-size: clamp(56px, 6.45vw, 108px);
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -1.8px;
  text-wrap: balance;
  white-space: nowrap;
  text-shadow: 0 14px 24px rgba(15, 23, 42, 0.11);
}
/* ==================================================
   Amin Hero Title - Animated Elegant Border
================================================== */
/* ==================================================
   Amin Hero Title - Border only / transparent background
================================================== */

@property --amin-title-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

body.home .amin-home-hero__title {
  position: relative !important;
  display: block !important;

  width: fit-content !important;
  max-width: min(760px, calc(100vw - 32px)) !important;
  margin: 0 auto !important;

  padding: 25px 26px 16px !important;
  box-sizing: border-box !important;

  text-align: center !important;
  white-space: normal !important;
  overflow: visible !important;

  font-size: clamp(75px, 4.2vw, 62px) !important;
  line-height: 1.34 !important;
  font-weight: 950 !important;
  letter-spacing: -0.8px !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 28px !important;
  box-shadow: none !important;

  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  isolation: isolate !important;
}

/* بوردر متحرک */
body.home .amin-home-hero__title::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  border-radius: inherit !important;
  padding: 2px !important;

  background: conic-gradient(
    from var(--amin-title-angle),
    rgba(184, 145, 70, 0.16) 0deg,
    rgba(184, 145, 70, 0.16) 230deg,
    rgba(184, 145, 70, 0.95) 275deg,
    rgba(255, 255, 255, 0.95) 300deg,
    rgba(20, 184, 166, 0.55) 326deg,
    rgba(184, 145, 70, 0.16) 360deg
  ) !important;

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask-composite: exclude !important;

  animation: amin-title-border-spin 8s linear infinite !important;
  pointer-events: none !important;
}

/* حذف بکگراند داخلی قبلی */
body.home .amin-home-hero__title::after {
  content: none !important;
}

@keyframes amin-title-border-spin {
  to {
    --amin-title-angle: 360deg;
  }
}

/* موبایل: فاصله با نویگیشن کمتر، متن داخل کادر */
@media (max-width: 767px) {
  body.home .amin-home-hero__inner {
    padding-top: 64px !important;
  }

  body.home .amin-home-hero__content {
    transform: translate(0, -14px) !important;
  }

  body.home .amin-home-hero__title {
    max-width: calc(100vw - 28px) !important;
    padding: 45px 30px 15px !important;
    border-radius: 22px !important;

    font-size: clamp(55px, 8.4vw, 42px) !important;
    line-height: 1.42 !important;
    letter-spacing: -0.4px !important;
  }

  body.home .amin-home-hero__title::before {
    padding: 1.5px !important;
  }
}
/* ==================================================
   Desktop Hero Title - Keep in one line
================================================== */

@media (min-width: 1025px) {
  body.home .amin-home-hero__content {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: visible !important;
  }

  body.home .amin-home-hero__title {
    white-space: nowrap !important;
    width: max-content !important;
    max-width: calc(100vw - 120px) !important;

    margin-right: auto !important;
    margin-left: auto !important;

    font-size: clamp(42px, 3.7vw, 64px) !important;
    line-height: 1.32 !important;

    padding: 35px 34px 16px !important;
    overflow: visible !important;
  }
}

/* لپ‌تاپ‌های کوچک‌تر */
@media (min-width: 1025px) and (max-width: 1350px) {
  body.home .amin-home-hero__title {
    font-size: clamp(75px, 3.4vw, 50px) !important;
    padding-right: 28px !important;
    padding-left: 28px !important;
  }
}
















.amin-home-hero__title span {
  display: inline-block;
  vertical-align: baseline;
}

.amin-home-hero__title-outline {
  color: rgba(255, 255, 255, 0.38);
  -webkit-text-stroke: 1.45px #111827;
  text-stroke: 1.45px #111827;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 22px rgba(15, 23, 42, 0.08);
}

.amin-home-hero__desc {
  max-width: 880px;
  margin: 42px auto 0;
  color: #050814;
  font-family: "Far_Ketab", "IRANSansX", "Vazirmatn", Tahoma, sans-serif;
  font-size: clamp(27px, 3.1vw, 48px);
  font-weight: 950;
  line-height: 1.48;
  letter-spacing: -0.7px;
  text-shadow: 0 9px 16px rgba(15, 23, 42, 0.12);
}

.amin-home-hero__word {
  font-weight: 950;
  font-style: normal;
}

.amin-home-hero__word--green {
  color: var(--amin-hero-green);
  text-shadow: 0 8px 18px rgba(52, 168, 83, 0.22);
}

.amin-home-hero__word--pink {
  color: var(--amin-hero-pink);
  text-shadow: 0 8px 18px rgba(255, 15, 120, 0.22);
}

.amin-home-hero__actions {
  margin-top: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.amin-home-hero__btn {
  min-width: 130px;
  height: 72px;
  padding: 0 34px;
  border-radius: 18px;
  border: 1px solid transparent;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-decoration: none !important;
  font-family: "IRANSansX", "Vazirmatn", Tahoma, sans-serif;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(0);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
  will-change: transform;
}

.amin-home-hero__btn-icon {
  flex: 0 0 auto;
}

.amin-home-hero__btn--primary {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 25% 0%, rgba(255, 255, 255, 0.34), transparent 26%),
    linear-gradient(135deg, #8b5cf6 0%, #6d4cff 48%, #4f46e5 100%);
  box-shadow:
    0 20px 42px rgba(109, 76, 255, 0.33),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.amin-home-hero__btn--secondary {
  color: #060914 !important;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(109, 76, 255, 0.26);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.amin-home-hero__btn--secondary .amin-home-hero__btn-icon {
  color: #c7a151;
}

.amin-home-hero__btn:hover,
.amin-home-hero__btn:focus-visible {
  transform: translateY(-3px);
  text-decoration: none !important;
}

.amin-home-hero__btn--primary:hover,
.amin-home-hero__btn--primary:focus-visible {
  box-shadow:
    0 24px 52px rgba(109, 76, 255, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.amin-home-hero__btn--secondary:hover,
.amin-home-hero__btn--secondary:focus-visible {
  border-color: rgba(109, 76, 255, 0.42);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1);
}

.amin-home-hero__shape {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  filter: blur(0.1px);
  opacity: 0.78;
}

.amin-home-hero__shape--one {
  right: 13%;
  bottom: 150px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c4b5fd, #eef2ff);
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.18);
}

.amin-home-hero__shape--two {
  left: 12%;
  bottom: 128px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #bbf7d0, #86efac);
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.16);
}

.amin-home-hero__shape--three {
  right: 20%;
  bottom: 52px;
  width: 0;
  height: 0;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
  border-bottom: 28px solid rgba(255, 15, 120, 0.18);
}

.amin-home-hero__shape--four {
  left: 19%;
  bottom: 68px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(165, 180, 252, 0.34));
  transform: rotate(34deg);
}

.entry-content .amin-home-hero,
.wp-block-shortcode .amin-home-hero {
  margin-top: 0 !important;
}

body.home .entry-content .amin-home-hero,
body.home .wp-block-shortcode .amin-home-hero {
  margin-top: calc(var(--amin-hero-nav-overlap) * -1) !important;
}

@media (max-width: 1180px) {
  .amin-home-hero__title {
    font-size: clamp(48px, 6.2vw, 76px);
    letter-spacing: -1.2px;
  }

  .amin-home-hero__desc {
    font-size: clamp(25px, 3vw, 38px);
  }
}

@media (max-width: 767px) {
  .amin-home-hero {
    --amin-hero-nav-overlap: 78px;
    min-height: 700px;
  }

  .amin-home-hero__grid {
    background-size: 22px 30px;
    opacity: 0.48;
    -webkit-mask-image: radial-gradient(ellipse 98% 66% at 50% 100%, #000 55%, transparent 100%);
    mask-image: radial-gradient(ellipse 98% 66% at 50% 100%, #000 55%, transparent 100%);
  }

  .amin-home-hero__glow {
    width: 150vw;
    height: 58%;
    bottom: -36%;
  }

  .amin-home-hero__inner {
    min-height: 700px;
    padding: calc(72px + var(--amin-hero-nav-overlap)) 18px 58px;
    align-items: flex-start;
  }

  .amin-home-hero__title {
    font-size: clamp(42px, 13vw, 58px);
    line-height: 1.22;
    letter-spacing: -0.8px;
    white-space: normal;
  }

  .amin-home-hero__title span {
    display: block;
  }

  .amin-home-hero__title-outline {
    -webkit-text-stroke-width: 1.15px;
    text-stroke-width: 1.15px;
  }

  .amin-home-hero__desc {
    max-width: 360px;
    margin-top: 28px;
    font-size: clamp(23px, 7.2vw, 32px);
    line-height: 1.58;
    letter-spacing: -0.3px;
  }

  .amin-home-hero__actions {
    width: min(340px, 100%);
    margin: 34px auto 0;
    flex-direction: column;
    gap: 14px;
  }

  .amin-home-hero__btn {
    width: 100%;
    min-width: 0;
    height: 58px;
    border-radius: 16px;
    font-size: 18px;
    gap: 13px;
    padding: 0 22px;
  }

  .amin-home-hero__shape--one {
    right: 9%;
    bottom: 118px;
    width: 22px;
    height: 22px;
  }

  .amin-home-hero__shape--two {
    left: 8%;
    bottom: 132px;
    width: 22px;
    height: 22px;
  }

  .amin-home-hero__shape--three,
  .amin-home-hero__shape--four {
    display: none;
  }
}

@media (max-width: 390px) {
  .amin-home-hero {
    min-height: 660px;
  }

  .amin-home-hero__inner {
    min-height: 660px;
    padding-top: calc(62px + var(--amin-hero-nav-overlap));
  }

  .amin-home-hero__desc {
    font-size: 23px;
  }
}
/* ==================================================
   Amin Home Hero - Smaller Buttons + Dark Grid Primary
================================================== */

.amin-home-hero__actions {
  margin-top: 18px;
  gap: 10px;
}

.amin-home-hero__btn {
  position: relative;
  overflow: hidden;
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  gap: 7px;
}

.amin-home-hero__btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.amin-home-hero__btn--primary {
  background-color: #0f172a;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.55) 1px, transparent 1.4px);
  background-size: 20px 20px, 20px 20px, 20px 20px;
  background-position: 0 0, 0 0, 0 0;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

.amin-home-hero__btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 25% 15%, rgba(255,255,255,0.16), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 62%);
  pointer-events: none;
}

.amin-home-hero__btn--primary span,
.amin-home-hero__btn--primary svg {
  position: relative;
  z-index: 1;
}

.amin-home-hero__btn--secondary {
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.amin-home-hero__btn:hover {
  transform: translateY(-1.5px);
}

@media (max-width: 767px) {
  .amin-home-hero__actions {
    margin-top: 16px;
    gap: 8px;
  }

  .amin-home-hero__btn {
    height: 50px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13px;
  }

  .amin-home-hero__btn svg {
    width: 15px;
    height: 15px;
  }
}
/* ==================================================
   Amin Home Hero - White Grid Secondary Button
================================================== */

.amin-home-hero__btn--secondary.amin-contact-open,
.amin-home-hero__btn--secondary {
  background-color: #ffffff;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.06) 1px, transparent 1px),
    radial-gradient(circle, rgba(51,65,85,0.38) 1px, transparent 1.4px);
  background-size: 20px 20px, 20px 20px, 20px 20px;
  background-position: 0 0, 0 0, 0 0;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.16);
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.amin-home-hero__btn--secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(15,23,42,0.05), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.12));
  pointer-events: none;
}

.amin-home-hero__btn--secondary span,
.amin-home-hero__btn--secondary svg {
  position: relative;
  z-index: 1;
}
/* ==================================================
   Amin Home Hero - Animated Button Icons
================================================== */

.amin-home-hero__btn-icon,
.amin-home-hero__icon-animated {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
  color: currentColor;
}

.amin-home-hero__icon-animated path,
.amin-home-hero__icon-animated polyline,
.amin-home-hero__icon-animated line {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: 1;
}

/* اجرای انیمیشن هنگام هاور روی دکمه */
.amin-home-hero__btn:hover .amin-home-hero__icon-animated path,
.amin-home-hero__btn:hover .amin-home-hero__icon-animated polyline,
.amin-home-hero__btn:hover .amin-home-hero__icon-animated line {
  animation: aminHeroIconDraw 0.34s ease forwards;
  animation-delay: calc(var(--i) * 0.08s);
}

@keyframes aminHeroIconDraw {
  0% {
    stroke-dashoffset: 1;
    opacity: 0;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* یک حرکت خیلی ظریف برای خود آیکون */
.amin-home-hero__btn:hover .amin-home-hero__btn-icon {
  transform: translateY(-1px) scale(1.04);
}

.amin-home-hero__btn-icon {
  transition: transform 0.22s ease;
}

/* در موبایل آیکون کمی کوچک‌تر */
@media (max-width: 767px) {
  .amin-home-hero__btn-icon,
  .amin-home-hero__icon-animated {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
}

html,
body {
    font-feature-settings: "ss01" 1;
    -webkit-font-feature-settings: "ss01" 1;
    -moz-font-feature-settings: "ss01" 1;
}