/* کانتینر اصلی */
.hero {
    position: relative;
    width: 100%;
    min-height: 60vh; /* یا ارتفاع دلخواه */
    height: 100vh; /* اگر می‌خواهی تمام صفحه باشه */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111; /* زمانی که ویدیو لود نشده */
}

/* ویدیو */
.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* پوشاندن کل کانتینر بدون کشیدگی */
    object-position: center;
    z-index: 0;
    /* بهتر است preload را metadata بزنیم (در HTML) */
}

/* پوستر/فیلتر نیمه‌شفاف روی ویدیو (اختیاری) */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* overlay برای خوانایی متن */
    z-index: 1;
    pointer-events: none;
}

/* محتوا روی ویدیو */
.hero__content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 2rem;
    max-width: 1100px;
}

.hero__title {
    font-size: clamp(1.5rem, 6vw, 1rem);
    margin-bottom: 0.5rem;
    font-family: 'IRANSans';
    line-height: 2.5;
    margin-bottom: 15px;
}
.btn-hero{
    display: inline-block;
    background: #E91E63;
    padding: 9px 25px 11px 25px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    line-height: 1;
    font-size: 13px;
}

.hero__desc {
    font-size: clamp(1rem, 3.5vw, 0.65rem);
    opacity: 0.95;
    margin-bottom: 17px;
}

/* برای موبایل: خاموش کردن ویدیو یا جایگزینی با پوستر (بهینه‌سازی داده) */
@media (max-width: 820px) {

    /* یا visibility:hidden */
    .hero {
        background-size: cover;
        background-position: center;
    }
}

/* احترام به prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .hero__video {
        display: none;
    }
}

/* دکمه‌های کنترلی کوچک (اختیاری) */
.video-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.video-controls button {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.55rem;
}

/*استایل برای انیمشن متن ها*/
/* افکت ورود نرم از پایین با شفافیت */
.hero__content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 2rem;
    max-width: 1100px;

    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 1.2s ease-out forwards;
    animation-delay: 0.5s; /* کمی تأخیر برای جذابیت */
}

/* انیمیشن تعریف شده */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.head-ul li a {
    color: #ffffff ;
}
/*!*استایل دونه دونه*!*/
/*.hero__title {*/
/*    animation: fadeSlideUp 1s ease-out forwards;*/
/*    animation-delay: 0.3s;*/
/*}*/

/*.hero__desc {*/
/*    animation: fadeSlideUp 1s ease-out forwards;*/
/*    animation-delay: 0.6s;*/
/*}*/

/*.hero__content a {*/
/*    animation: fadeSlideUp 1s ease-out forwards;*/
/*    animation-delay: 0.9s;*/
/*}*/