/* ================= GLOBAL RESET (برای اطمینان) ================= */
* {
    box-sizing: border-box; /* این خط خیلی مهم است تا پدینگ‌ها باعث بهم ریختگی نشوند */
}

/* در ابتدای فایل style.css اضافه کنید */
body {
    background-color: #000; /* رنگ پس‌زمینه کل صفحه مشکی شود */
    margin: 0; /* حذف مارجین‌های پیش‌فرض */
}

/* ================= DESKTOP (Default Style) ================= */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh; 
    background: #000;
    overflow: hidden; 
}

/* --- لایه ۱: ویدیو (کف) --- */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- لایه ۲: تاریکی روی ویدیو --- */
.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 2; 
}

/* --- لایه ۳: محتوا (رو) --- */
.hero-content-container {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; 
    
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
    text-align: center;
    padding: 0 20px;
}

/* --- استایل المان‌های داخلی --- */
.hero-center-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

.hero-center-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    font-weight: 400;
}

/* دکمه */
.hero-start-btn {
    display: inline-block;
    padding: 16px 45px;
    background: #fff;
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.hero-start-btn:hover {
    transform: scale(1.05);
    background: #f0f0f0;
}


.hero-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00000;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.logo-item img {
    height: 24px;
    width: auto;
}

/* ================= DESKTOP: Move Logos to Bottom of Video ================= */
@media (min-width: 1024px) {

    .hero-logo-glass {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);

        margin-top: 0 !important;

        background: rgb(255 255 255 / 36%);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 20px;

        padding: 18px 40px; /* بزرگ‌تر برای جا شدن لوگوها */

        display: flex; 
        justify-content: center;
        align-items: center;

        white-space: nowrap;   /* جلوگیری از رفتن لوگوها به خط بعد */
        width: auto;           /* عرض فقط به اندازه محتوا */
        max-width: none;       /* محدودیت قبلی حذف شود */
        z-index: 20;
    }

    .hero-logos {
        display: flex;
        flex-wrap: nowrap;    /* جلوگیری از شکسته شدن به خط بعد */
        gap: 35px;            /* فاصله بیشتر تا لوگوها فشرده نشن */
    }

    .hero-content-container {
        padding-bottom: 160px; /* مقدار کمی بیشتر برای فاصله ایمن */
    }

}

/* ================= MOBILE FIXED (حذف فاصله اضافه) ================= */
@media (max-width: 768px) {
    
    .hero-video-section {
        display: block; 
        height: auto;
        
        /* ✅ تغییر مهم: ارتفاع اجباری حذف شد */
        min-height: auto; 
        
        background-color: #000;
        overflow-x: hidden;
        padding-bottom: 0; /* حذف پدینگ اضافه پایین کل سکشن */
    }

    /* 1. ویدیو افقی */
    .hero-video-wrapper {
        position: relative; 
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9; 
        z-index: 1;
        background: #000;
    }

    .hero-overlay-dark {
        display: none; 
    }

    /* 2. محتوا پایین ویدیو */
    .hero-content-container {
        position: relative; 
        top: auto;
        left: auto;
        height: auto;
        width: 100%;
        display: block; 
        
        box-sizing: border-box; 
        
        /* پدینگ پایین را تنظیم کنید (الان 40px است) */
        padding: 40px 20px 40px 20px;
        
        margin-top: -60px; 
        background: linear-gradient(to bottom, transparent 0%, #000 25%, #000 100%);
        z-index: 10;
    }

    .hero-center-text h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-center-text p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-logo-glass {
        margin-top: 30px;
        background: rgb(255 255 255 / 46%);
        width: 100%;
        box-sizing: border-box; 
        padding: 15px;
        border-radius: 10px;
    }
    
    .hero-logos {
        gap: 8px;
    }
    
    .logo-item span {
    }
    
    .logo-item {
    font-size: 12px;
}
    
    .logo-item img {
        height: 20px;
    }
}


/* ================= بخش ابزارهای هوش مصنوعی ================= */
.ai-tools-section {
    background-color: #000;
    padding: 0px 20px 100px 20px;
    color: #fff;
    text-align: center;
    overflow: hidden; /* جلوگیری از بیرون زدگی */
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 400; /* فونت نازک‌تر مثل عکس */
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1.1;
    font-family: serif; /* فونت مشابه عکس */
}

.section-header p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 40px;
}

/* دکمه طلایی پایین متن */
.explore-btn-gold {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(255, 215, 0, 0.1) 100%);
    transition: all 0.3s ease;
    margin-bottom: 60px;
}

.explore-btn-gold:hover {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* ================= استایل کروسل سه بعدی ================= */
.custom-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 400px; /* ارتفاع اسلایدر */
    margin: 0 auto;
    perspective: 1000px; /* برای ایجاد عمق سه بعدی */
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item {
    position: absolute;
    width: 60%; /* عرض کارت وسط */
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #111;
    opacity: 0; /* پیش فرض مخفی */
    transform: translateX(0) scale(0.8);
    z-index: 0;
}

/* حالت Active (کارت وسط) */
.carousel-item.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* حالت Prev (کارت چپ) */
.carousel-item.prev {
    opacity: 0.4;
    transform: translateX(-65%) scale(0.85); /* رفتن به چپ و کوچک شدن */
    z-index: 5;
    filter: blur(2px); /* کمی تار */
    cursor: pointer;
}

/* حالت Next (کارت راست) */
.carousel-item.next {
    opacity: 0.4;
    transform: translateX(65%) scale(0.85); /* رفتن به راست و کوچک شدن */
    z-index: 5;
    filter: blur(2px);
    cursor: pointer;
}

/* محتویات داخل اسلاید */
.media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.media-wrapper img,
.media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* متن و بج روی اسلاید */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.1);
    position: absolute;
    top: 20px;
    left: 20px;
}

.slide-info h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.slide-info p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: #ccc;
}

/* دکمه‌های چپ و راست */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
    line-height: 40px; /* تنظیم ارتفاع خط برای وسط چین شدن کاراکتر */
    padding-bottom: 5px;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .section-header h2 { font-size: 2rem; }
    .custom-carousel { height: 250px; }
    .carousel-item { width: 85%; }
    .carousel-item.prev { transform: translateX(-105%) scale(0.85); opacity: 0; } /* در موبایل بغلی‌ها مخفی شوند */
    .carousel-item.next { transform: translateX(105%) scale(0.85); opacity: 0; }
}
/* ================= نسخه موبایل برای بخش ابزارها ================= */
@media (max-width: 768px) {
    .ai-tools-section {
        /* در موبایل فاصله پایین را کم می‌کنیم تا فضای گوشی هدر نرود */
        /* بالا: 0 | راست: 20 | پایین: 60 | چپ: 20 */
        padding: 0px 20px 0px 20px;
    }
}

/* ================= بخش انتخاب ۳۳ میلیون کاربر (Creators Choice) ================= */
.creators-choice-section {
    position: relative;
    background-color: #000;
    padding: 100px 20px;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ✅ گرادینت جذاب پشت زمینه (سبز/آبی ملایم) */
.teal-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    
    /* تغییر مهم: استفاده از ellipse برای کنترل جداگانه عرض و ارتفاع فید */
    /* 70% عرض و 40% ارتفاع: یعنی در ارتفاع خیلی زودتر محو می‌شود */
    background: radial-gradient(ellipse 41% 31% at center, rgb(1 86 234 / 36%) 0%, rgba(0, 0, 0, 0) 100%);
    
    pointer-events: none;
    z-index: 0;
}

/* کانتینر محتوا - جمع و جورتر */
.choice-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center; /* وسط چین */
    
    /* ✅ محدود کردن عرض برای نزدیک شدن دو بخش به هم */
    max-width: 850px; 
    width: 100%;
    margin: 0 auto;
    
    /* ✅ فاصله کم بین چپ و راست (طبق درخواست شما) */
    gap: 50px; 
}

/* --- سمت چپ: تیتر --- */
.choice-left {
    flex: 1; /* فضای مساوی */
    text-align: right; /* متن سمت چپ به سمت لیست متمایل شود */
}

.choice-left h2 {
    font-family: "Times New Roman", Times, serif; /* فونت سریف کلاسیک */
    font-size: 4rem;
    font-weight: 400;
    line-height: 0.95; /* فاصله خطوط فشرده */
    margin: 0;
    letter-spacing: -1.5px;
    white-space: nowrap; /* جلوگیری از شکستن نامناسب خط */
}

.serif-font {
    /* اگر فونت خاصی دارید اینجا اعمال کنید، وگرنه از همان سریف بالا ارث می‌برد */
}

/* --- سمت راست: لیست --- */
.choice-right {
    flex: 1.2; /* فضای کمی بیشتر برای لیست */
    display: flex;
    justify-content: flex-start; /* چسبیدن به سمت چپ (نزدیک تیتر) */
}

.choice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.choice-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: sans-serif; /* فونت مدرن */
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
}

.check-mark {
    font-weight: bold;
    font-size: 1rem;
    color: #fff; /* تیک سفید */
}

/* ================= ریسپانسیو موبایل ================= */
@media (max-width: 768px) {
    .creators-choice-section {
        padding: 60px 20px;
    }

    .choice-content-wrapper {
        flex-direction: column; /* زیر هم */
        text-align: center;
        gap: 30px;
    }

    .choice-left {
        text-align: center;
    }

    .choice-left h2 {
        font-size: 2.8rem;
        white-space: normal;
    }

    .choice-right {
        justify-content: center;
    }
    
    .choice-list li {
        font-size: 0.95rem;
        justify-content: flex-start;
        text-align: left;
    }
    
    .teal-glow-bg {
        width: 100%;
        height: 400px;
    }
}

/* ================= Vertical Reels Section ================= */
.vertical-reels-section {
    background-color: #000;
    padding: 60px 0 100px 0;
    overflow: hidden;
    color: #fff;
    width: 100%;
}

/* هدر هم محدود به کادر شود تا با ویدیوها هماهنگ باشد */
.reels-header {
    padding: 0 20px 30px 20px;
    max-width: 1600px; /* همان عرض ویدیوها */
    margin: 0 auto;    /* وسط چین */
}

.reels-header h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.reels-header p {
    color: #888;
    font-size: 1rem;
}

/* ✅ تغییر مهم: ایجاد محدودیت عرض برای کانتینر اسلایدر */
.reels-relative-wrapper {
    position: relative;
    width: 100%;
    max-width: 1600px; /* در مانیتورهای بزرگتر از این، عرض ثابت می‌ماند */
    margin: 0 auto;    /* وسط چین کردن کل باکس در صفحه */
}

/* --- کانتینر اسکرول --- */
.reels-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 20px 40px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.reels-scroll-container::-webkit-scrollbar { display: none; }

/* --- کارت ویدیو --- */
.reel-card {
    position: relative;
    flex: 0 0 auto;
    height: 500px; 
    
    /* عرض کارت: در دسکتاپ کمی باریک‌تر تا تعداد بیشتری جا شود */
    width: 260px; 
    
    border-radius: 24px; 
    overflow: hidden;
    background: #111;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.reel-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reel-card:hover video { transform: scale(1.05); }

.reel-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.reel-info {
    position: absolute;
    top: 20px; left: 20px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
}

/* --- دکمه لایک --- */
.like-btn {
    position: absolute;
    bottom: 20px; right: 20px;
    width: 45px; height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0; 
    transform: translateY(10px);
    transition: all 0.3s ease;
    color: #fff;
}

.reel-card:hover .like-btn {
    opacity: 1;
    transform: translateY(0);
}

.like-btn:hover {
    background: #fff;
    color: #ff0000;
}

.like-btn.liked {
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
    color: #ff0000;
    fill: #ff0000;
}
.like-btn.liked svg { fill: #ff0000; }

.like-btn svg { width: 24px; height: 24px; transition: transform 0.2s; }
.like-btn:active svg { transform: scale(0.8); }

.spacer-box { flex: 0 0 100px; }

/* --- لایه فید و ناوبری --- */
/* --- اصلاحیه: حذف سفیدی گوشه بالا سمت راست --- */
.reels-fade-overlay {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 180px; 
    
    /* استفاده از rgba برای اطمینان از شفافیت کامل */
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, #000 80%);
    
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; 
    z-index: 20;
    
    /* ❌ این خطوط قبلی باعث سفیدی می‌شدند، حذف شدند: */
    /* border-top-right-radius: 20px; */
    /* border-bottom-right-radius: 20px; */
    
    /* ✅ جایگزین: گوشه‌ها تخت باشند تا به لبه کادر بچسبند */
    border-radius: 0; 
}

.reels-nav-btn {
    pointer-events: auto; 
    width: 70px; height: 70px;
    border-radius: 50%; 
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 2rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-right: -20px; 
}

.reels-nav-btn:hover {
    background: #fff;
    color: #000;
    transform: scale(1.15) rotate(-45deg);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {
    .reel-card {
        height: 400px;
        /* موبایل: کارت دوم نصفه بیفتد */
        width: 75vw; 
    }
    
    .reels-fade-overlay {
        width: 120px; 
        background: linear-gradient(to right, transparent 0%, #000 90%);
    }
    
    .reels-nav-btn {
        width: 55px; height: 55px;
        font-size: 1.5rem;
        margin-right: -10px;
    }
    
    .like-btn {
        opacity: 1;
        width: 40px; height: 40px;
        bottom: 15px; right: 15px;
        background: rgba(0,0,0,0.5);
    }
}



/* ================= بخش دمو تبدیل عکس به ویدیو (Grid Style) ================= */
.process-demo-section {
    background-color: #000;
    padding: 0px 20px;
    color: #fff;
    position: relative;
}

/* ✅ اصلاح مهم: وسط‌چین کردن تیتر و متن بالای تصویر */
.process-demo-section .section-header {
    text-align: center; /* وسط‌چین کردن متن */
    display: flex;
    flex-direction: column;
    align-items: center; /* وسط‌چین کردن آیتم‌ها */
    justify-content: center;
    max-width: 800px;
    margin: 0 auto 0px auto; /* فاصله از پایین (60px) و وسط‌چین در صفحه */
}

.process-demo-section .section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #ccc); /* گرادینت متن */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.process-demo-section .section-header p {
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.6;
}

/* --- کانتینر کروسل --- */
.process-carousel {
    position: relative;
    max-width: 1100px; /* عرض مناسب برای دسکتاپ */
    margin: 0 auto;
    overflow: hidden;
}

.process-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.process-slide {
    min-width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* --- لی‌اوت اصلی گرید (چپ و راست) --- */
.demo-grid-layout {
    display: flex;
    align-items: stretch; /* هم‌ارتفاع کردن ستون‌ها */
    justify-content: center;
    gap: 10px;
    height: 550px; /* ارتفاع کلی باکس‌ها */
}

/* --- ستون چپ: ورودی‌ها --- */
.inputs-column {
    flex: 1; /* عرض برابر */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* استایل کادرهای عمومی (حبابی و تمیز) */
.input-card, .output-card {
    position: relative;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px; /* کاملا گرد و حبابی */
    overflow: hidden;
    /* سایه نرم و عمیق */
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.input-card:hover, .output-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* بج (برچسب) روی کادرها */
.card-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: #eee;
    font-weight: 600;
    z-index: 5;
    border: 1px solid rgba(255,255,255,0.1);
    letter-spacing: 0.5px;
}

.result-badge {
    background: rgba(46, 139, 119, 0.9); /* سبز برای نتیجه */
    color: #fff;
    border: none;
    box-shadow: 0 0 15px rgba(46, 139, 119, 0.4);
}

/* کادر عکس (بالا چپ) */
.image-card {
    flex: 1.6; /* فضای بیشتر نسبت به پرامپت */
}
.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* کادر پرامپت (پایین چپ) */
.prompt-card {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    background: #0a0a0a; 
}

.type-container {
    margin-top: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: #eee;
}

.typing-text {
    display: inline;
    margin: 0;
}

.cursor {
    display: inline-block;
    color: #2e8b77; /* رنگ کرسر */
    animation: blink 1s infinite;
    font-weight: bold;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- فلش وسط --- */
.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    opacity: 0.5;
}
.arrow-anim {
    display: block;
    animation: slideRight 1.5s infinite ease-in-out;
}
@keyframes slideRight {
    0%, 100% { transform: translateX(0); opacity: 0.3; }
    50% { transform: translateX(6px); opacity: 1; }
}

/* --- ستون راست: خروجی --- */
.output-column {
    flex: 1; /* عرض برابر با ستون چپ */
    display: flex;
}

.output-card {
    width: 100%;
    height: 100%; /* پر کردن کل ارتفاع */
}

.output-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- ناوبری (نقطه‌ها) --- */
.process-nav-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    margin-bottom: 10px;
}
.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.dot.active {
    background: #fff;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* ================= ریسپانسیو موبایل ================= */
@media (max-width: 768px) {
    .process-demo-section .section-header h2 {
        font-size: 2rem;
    }
    
    .demo-grid-layout {
        flex-direction: column; /* زیر هم */
        height: auto;
        gap: 0px;
    }
    
    .process-arrow {
        transform: rotate(90deg); /* فلش رو به پایین */
        margin: 10px 0;
    }
    
    .inputs-column {
        height: auto;
        gap: 15px;
    }
    
    .image-card {
        height: 250px;
    }
    
    .prompt-card {
        height: auto;
        min-height: 180px; 
        padding: 20px;
    }
    
    .output-column {
        height: 450px; /* ارتفاع ویدیو در موبایل */
    }
}