/* هيرو فيديو - تصميم فندقي فاخر */
.hero-video {
    width: 100vw;
    height: calc(100vh - 80px); /* تقليل الارتفاع بمقدار الهيدر */
    margin: 0;
    margin-left: calc(-50vw + 50%);
    margin-top: 80px; /* إضافة مسافة من الأعلى لتجنب تداخل الهيدر */
    padding: 0;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-video .hero-video .hero-video .video-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px); /* تقليل الارتفاع بمقدار الهيدر */
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* يضمن ظهور الفيديو كاملاً بدون قطع */
    z-index: 1;
    filter: brightness(0.7) contrast(1.1);
}

.hero-video .hero-video .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

/* محتوى النص */
.hero-content {
    position: absolute;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    text-align: right;
    color: white;
    z-index: 3;
    max-width: 500px;
    padding: 0 20px;
    border: none;
    outline: none;
    box-shadow: none;
    background: none;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    color: white;
    letter-spacing: 2px;
}

/* التصميم البسيط والأنيق */
.hero-title-simple {
    font-family: 'Cairo', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    color: white;
    letter-spacing: 1px;
    box-shadow: none;
}

/* إزالة أي تأثيرات غير مرغوبة */
.hero-content *,
.hero-title-simple {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.hero-content:focus,
.hero-title-simple:focus {
    outline: none !important;
    border: none !important;
}

/* فرض موضع اليمين بقوة */
.hero-video .hero-content {
    position: absolute !important;
    top: 50% !important;
    right: 80px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    text-align: right !important;
    max-width: 500px !important;
}

.hero-video .hero-title-simple {
    text-align: right !important;
    direction: rtl !important;
}

/* التصميم الجديد المحسن */
.hero-title-animated {
    font-family: 'Amiri', 'Cairo', serif;
    font-size: 5.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow:
        0 4px 8px rgba(0, 0, 0, 0.9),
        0 8px 30px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.3);
    line-height: 1.1;
    color: #fff;
    letter-spacing: 3px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.title-decoration {
    font-size: 3rem;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: sparkle 2s ease-in-out infinite;
}

.typewriter-text {
    position: relative;
    overflow: hidden;
    border-right: 3px solid #ffd700;
    white-space: nowrap;
    animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
    background: linear-gradient(45deg, #fff, #f0f8ff, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #ffd700;
    }
}

@keyframes titleGlow {
    0% {
        text-shadow:
            0 4px 8px rgba(0, 0, 0, 0.9),
            0 8px 30px rgba(0, 0, 0, 0.6),
            0 0 40px rgba(255, 215, 0, 0.3);
    }

    100% {
        text-shadow:
            0 4px 8px rgba(0, 0, 0, 0.9),
            0 8px 30px rgba(0, 0, 0, 0.6),
            0 0 60px rgba(255, 215, 0, 0.5),
            0 0 80px rgba(255, 215, 0, 0.3);
    }
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    opacity: 0.95;
    line-height: 1.4;
    color: #f8fafc;
}

/* أزرار الهيرو */
.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.hero-btn {
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btn.primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
    border: 2px solid transparent;
}

.hero-btn.primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    font-weight: 600;
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

/* مؤشر التمرير للأسفل */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateY(-8px);
}

/* مؤشر التمرير في المنتصف */
.scroll-indicator-center {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s ease;
    padding: 15px;
}

.scroll-indicator-center:hover {
    transform: translateX(-50%) translateY(-10px);
}

.scroll-text {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.9;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 18px;
}

.scroll-indicator:hover .scroll-arrow {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-12px);
    }

    60% {
        transform: translateY(-6px);
    }
}

/* تأثيرات إضافية للفخامة */
.hero-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
    pointer-events: none;
}

/* الاستجابة للشاشات المختلفة */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-content {
        max-width: 700px;
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-content {
        right: 60px;
        max-width: 450px;
        padding: 0 25px;
    }

    .hero-btn {
        padding: 16px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-video {
        height: 60vh !important; /* ارتفاع أقل للشاشات الصغيرة */
        margin-top: 60px;
        margin-left: 0 !important;
        width: 100% !important;
    }

    .hero-video .video-container {
        height: 60vh !important;
    }

    .hero-video-bg {
        object-fit: cover !important;
        width: 100% !important;
        height: 100% !important;
    }

    .hero-video .hero-content {
        position: absolute !important;
        top: 50% !important;
        right: 20px !important;
        left: 20px !important;
        transform: translateY(-50%) !important;
        text-align: center !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    .hero-video .hero-title-simple {
        font-size: 2.5rem !important;
        text-align: center !important;
        margin: 0 !important;
        direction: rtl !important;
    }

    .scroll-indicator-center {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-video {
        height: 50vh !important; /* ارتفاع أقل للشاشات الصغيرة جداً */
        margin-top: 60px;
        margin-left: 0 !important;
        width: 100% !important;
    }

    .hero-video .video-container {
        height: 50vh !important;
    }

    .hero-video-bg {
        object-fit: cover !important;
        width: 100% !important;
        height: 100% !important;
    }

    .hero-video .hero-content {
        position: absolute !important;
        top: 50% !important;
        right: 15px !important;
        left: 15px !important;
        transform: translateY(-50%) !important;
        text-align: center !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    .hero-video .hero-title-simple {
        font-size: 1.8rem !important;
        text-align: center !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        direction: rtl !important;
    }

    .scroll-indicator-center {
        bottom: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 15px 25px;
        font-size: 1rem;
    }

    .scroll-indicator {
        right: 25px;
        bottom: 25px;
    }

    .scroll-text {
        font-size: 0.9rem;
    }

    .scroll-arrow {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}



/* تحسينات الأداء */
.hero-video-bg {
    will-change: transform;
}

.hero-content {
    will-change: transform;
}

/* تأثيرات تحميل الفيديو */
.hero-video .video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a 25%, transparent 25%),
        linear-gradient(-45deg, #1a1a1a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1a1a1a 75%),
        linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: loading 2s linear infinite;
    z-index: 0;
}

@keyframes loading {
    0% {
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }

    100% {
        background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px;
    }
}

/* إخفاء تأثير التحميل عند تشغيل الفيديو */
.hero-video .video-container.loaded::before {
    display: none;
}