.home-slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ویدیو پس‌زمینه */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    animation: zoomInOut 40s ease-in-out infinite;
}

/* لایه تاریک شفاف روی ویدیو */
.home-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.home-slider > .position-absolute {
    z-index: 2;
}

.home-slide-title-fa,
.home-slide-title-en {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.home-slide-title-en {
    font-weight: 900 !important;
    letter-spacing: 0.15em;
    font-stretch: expanded;
    text-transform: uppercase;
}

/* انیمیشن‌ها */
.home-slide-contents {
    animation: slideInUp 1.2s ease-out forwards;
    opacity: 0;
}
.home-slide-title-fa {
    animation: fadeInDown 1s ease-out 0.3s forwards;
    opacity: 0;
}
.home-slide-title-en {
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}
.custom-btn {
    animation: fadeInUp 1s ease-out 0.9s forwards;
    opacity: 0;
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
@keyframes fadeInDown {
    from { transform: translateY(-30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.home-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25vh; /* کمی بلندتر تا نرمی بیشتر حس بشه */
    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.2) 25%,
            rgba(0, 0, 0, 0.5) 60%,
            rgba(0, 0, 0, 0.85) 85%,
            #000000 100%
    );
    z-index: 2;
    pointer-events: none;
}

.bg-dark-r
{
    background-color: #000 !important;
}

.header-home-top-slider {
    position: relative;
    z-index: 3;
}

.header-home-top-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: -1;
    pointer-events: none;
}

.profile-home-slider i {
    color: #ffffff;
    transition: color 0.3s ease;
}

.profile-home-slider:hover i {
    color: #EB0A1E;
}


