/* Import IranSans font */
@font-face {
    font-family: 'IRANSans';
    src: url('https://cdn.fontcdn.ir/Font/Persian/IRANSans/v15.1.0/Farsi_numerals/WebFonts/fonts/woff/IRANSansWeb.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('https://cdn.fontcdn.ir/Font/Persian/IRANSans/v15.1.0/Farsi_numerals/WebFonts/fonts/woff/IRANSansWeb_Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('https://cdn.fontcdn.ir/Font/Persian/IRANSans/v15.1.0/Farsi_numerals/WebFonts/fonts/woff/IRANSansWeb_Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
        
body {
    font-family: 'IRANSans', sans-serif;
    direction: rtl;
}

:root {
    --color-brand-500: #6366f1;
    --color-brand-secondary-600: #8b5cf6;
}

/* Gradient Text - Cannot be replicated with Tailwind utilities */
.gradient-text {
    background: linear-gradient(90deg, var(--color-brand-500) 0%, var(--color-brand-secondary-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}




/*  */
@keyframes marquee-rtl {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }
  
  .animate-marquee-rtl {
    animation: marquee-rtl 5s linear infinite; /* سرعت: 35 ثانیه (قابل تنظیم) */
    will-change: transform; /* بهینه‌سازی performance */
  }
  
  /* Pause on Hover (تجربه کاربری عالی) */
  .animate-marquee-rtl:hover {
    animation-play-state: paused !important;
  }
  
  /* موبایل: کندتر برای خوانایی بهتر */
  @media (max-width: 768px) {
    .animate-marquee-rtl {
      animation-duration: 50s !important;
    }
  }

/* Question Rotator Animations */
@keyframes fadeInSoft {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.question-rotator {
    min-height: 2.75rem; /* reserve space to prevent layout shift */
}

.fade-in-soft {
    animation: fadeInSoft 500ms ease forwards;
}

.fade-out-soft {
    animation: fadeOutSoft 500ms ease forwards;
}

/* Chat bubble styling for the questions card */
.chat-bubble {
    position: relative; /* rest styled by Tailwind utilities in markup */
}

.chat-bubble::after {
    content: "";
    position: absolute;
    bottom: -12px; /* tail height */
    right: 42px; /* RTL: tail on the right */
    border-width: 12px 12px 0 12px;
    border-style: solid;
    border-color: transparent transparent transparent transparent; /* overridden unless tail is enabled */
    filter: drop-shadow(0 -1px 0 rgba(17, 24, 39, 0.06));
}

.chat-bubble.no-tail::after {
    content: none;
}

.chat-icon {
    position: absolute;
    top: -14px;
    right: -14px; /* RTL alignment */
}

.chat-icon i {
    font-size: 18px;
}


#zibal{
    margin: auto;
}
#zibal img{
  height: 150px!important;
}

/* Contact Form Success Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: backwards;
}