/* ─────────────────────────────────────────
   Container اصلی
───────────────────────────────────────── */
.gsap-scroll-animation-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;

    /* ✅ RTL برای کل container */
    direction: rtl;
}

/* ─────────────────────────────────────────
   بکگراند Blob
───────────────────────────────────────── */
.bg-blobs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    transition: background 1.2s ease;
}

.blob-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, #4f46e5, transparent);
    animation: blobMove1 8s ease-in-out infinite alternate;
}

.blob-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -50px;
    background: radial-gradient(circle, #7c3aed, transparent);
    animation: blobMove2 10s ease-in-out infinite alternate;
}

.blob-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #2563eb, transparent);
    animation: blobMove3 6s ease-in-out infinite alternate;
}

@keyframes blobMove1 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(60px, 80px) scale(1.2); }
}

@keyframes blobMove2 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-80px, -60px) scale(1.15); }
}

@keyframes blobMove3 {
    from { transform: translate(-50%, -50%) scale(1); }
    to   { transform: translate(-50%, -50%) scale(1.3); }
}

/* ─────────────────────────────────────────
   Step Counter
───────────────────────────────────────── */
.step-counter {
    position: absolute;
    top: 32px;

    /* ✅ در RTL باید left باشه نه right */
    left: 40px;

    z-index: 20;
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: monospace;

    /* ✅ اعداد همیشه LTR هستند */
    direction: ltr;
}

.step-current {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    transition: opacity 0.3s;
}

.step-divider {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.3);
}

.step-total {
    font-size: 1rem;
    color: rgba(255,255,255,0.4);
}

/* ─────────────────────────────────────────
   Nav Dots
───────────────────────────────────────── */
.nav-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;

    /* ✅ جلوگیری از برعکس شدن ترتیب dots در RTL */
    direction: ltr;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: all 0.4s ease;
    cursor: pointer;
}

.nav-dot.active {
    background: #ffffff;
    transform: scale(1.4);
}

/* ─────────────────────────────────────────
   Animation Wrapper
───────────────────────────────────────── */
.animation-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1100px;
    display: grid;

    /* ✅ در RTL: متن راست، تصویر چپ - همین ترتیب در grid درسته */
    /* چون direction:rtl روی container هست، ستون اول از راست شروع میشه */
    grid-template-columns: 1fr 1fr;

    gap: 60px;
    align-items: center;
    padding: 0 40px;
}

/* ─────────────────────────────────────────
   تصاویر
───────────────────────────────────────── */
.images-side {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-image {
    position: absolute;
    width: 100%;
    max-width: 420px;
    height: 380px;
    object-fit: cover;
    border-radius: 20px;
}

/* ─────────────────────────────────────────
   توضیحات
───────────────────────────────────────── */
.descriptions-side {
    position: relative;
    height: 300px;

    /* ✅ RTL برای بخش متن */
    direction: rtl;
    text-align: right;
}

.scroll-description {
    position: absolute;
    top: 0;

    /* ✅ در RTL باید right باشه نه left */
    right: 0;

    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;

    /* ✅ تراز راست */
    align-items: flex-start;
    text-align: right;
}

.desc-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(79, 70, 229, 0.3);
    border: 1px solid rgba(79, 70, 229, 0.5);
    border-radius: 100px;
    font-size: 0.8rem;
    color: #a5b4fc;
    width: fit-content;
}

.desc-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.desc-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    margin: 0;
}

.desc-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #818cf8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 8px;
    transition: gap 0.3s;

    /* ✅ جهت لینک */
    direction: rtl;
}

.desc-cta:hover {
    gap: 14px;
    color: #a5b4fc;
}
