﻿/* ========================================
   Hero Video Section - Enhanced
   ======================================== */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.video-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 213, 0, 0.1) 0%, transparent 70%);
    animation: pulse-overlay 4s ease-in-out infinite;
}

@keyframes pulse-overlay {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.video-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #FFFFFF;
    animation: fadeInUp 1s ease-out;
    pointer-events: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-text-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.video-title {
    font-size: 4rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.btn-video-primary,
.btn-video-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-video-primary {
    background: linear-gradient(135deg, #FFD500 0%, #FFC400 100%);
    color: #000;
    box-shadow: 0 8px 25px rgba(255, 213, 0, 0.5);
    border: 2px solid transparent;
}

.btn-video-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-video-primary:hover::before {
    left: 100%;
}

.btn-video-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 213, 0, 0.7);
    color: #000;
}

.btn-video-primary:hover i {
    transform: translateX(-5px);
}

.btn-video-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-video-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    color: #FFFFFF;
}

.btn-video-secondary:hover i {
    animation: bounce-arrow 0.6s ease-in-out infinite;
}

@keyframes bounce-arrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

.btn-video-primary i,
.btn-video-secondary i {
    transition: all 0.3s ease;
}

.scroll-indicator-video {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce-indicator 2s infinite;
}

@keyframes bounce-indicator {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.mouse-scroll {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 213, 0, 0.7);
    border-radius: 20px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: #FFD500;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel-video 2s infinite;
}

@keyframes scroll-wheel-video {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 30px;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-video-section {
        height: 80vh;
    }

    .video-title {
        font-size: 3rem;
    }

    .video-subtitle {
        font-size: 1.25rem;
        margin-bottom: 2.5rem;
    }

    .btn-video-primary,
    .btn-video-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-video-section {
        height: 70vh;
    }

    .video-title {
        font-size: 2.25rem;
    }

    .video-subtitle {
        font-size: 1.0625rem;
        margin-bottom: 2rem;
    }

    .video-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-video-primary,
    .btn-video-secondary {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
        width: 100%;
        max-width: 300px;
    }

    .scroll-indicator-video {
        bottom: 1rem;
    }
}

/* RTL: Arrow animation direction */
html[dir="rtl"] .btn-video-primary:hover i {
    transform: translateX(5px);
}

/* LTR: Arrow animation direction */
html[dir="ltr"] .btn-video-primary:hover i {
    transform: translateX(-5px);
}