/* استايل الهيرو الرئيسي */
.hero-slider-container {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 60px);
    overflow: hidden;
    margin: 0;
    padding: 0;
    margin-top: 60px; /* مسافة بين الهيدر وقسم الهيرو */
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
}

/* تنسيقات خلفية الصورة */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 10s ease-out;
}

.hero-slide.active .slide-bg {
    transform: scale(1.05);
}

/* تنسيقات الفيديو */
.slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-video iframe,
.slide-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* طبقة التعتيم للفيديو */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* ============================================================
   🔥 فلتر متوهج دوّار مستوحى من عمود الحلاق
   ============================================================ */
.hero-slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* حتى لا يمنع النقر على الأزرار */
    z-index: 1; /* فوق الصور وتحت النصوص */
    
    /* ✨ شكل التدرج الدائري المتوهج */
    background: conic-gradient(
        from 0deg,
        rgba(255, 0, 0, 0.35),   /* 🔴 أحمر */
        rgba(255, 255, 255, 0.25), /* ⚪ أبيض */
        rgba(0, 0, 255, 0.35),   /* 🔵 أزرق */
        rgba(255, 255, 255, 0.25),
        rgba(255, 0, 0, 0.35)    /* 🔴 نهاية لتكرار الدوران */
    );

    animation: barberRotate 10s linear infinite; /* ⚙️ دوران مستمر */
    opacity: 0.45; /* 💡 شفافية الفلتر */
    mix-blend-mode: overlay; /* مزج ناعم مع الصور */
    backdrop-filter: blur(4px); /* 🧊 ضبابية لطيفة */
}

/* 🔄 حركة الدوران المستمرة */
@keyframes barberRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* تنسيقات عناصر التحكم في السلايدر */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* النقاط الدالة على الشرائح */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* تأثيرات الحركة للعناصر */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تنسيقات متجاوبة */
@media (max-width: 768px) {
    .hero-content {
        position: relative;
        top: 0;
        padding-top: 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-top: 0;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin: 0.5rem 0 1.5rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        top: 0;
        padding-top: 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .slider-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}


.hero-slide:hover::after {
    opacity: 1;
}

/* تحسين ظهور النص على الصور */
.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}


/* طبقة المحتوى */
.hero-section > .container {
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section h1 {
    color: #fff;
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-size: 3rem;
    line-height: 1.2;
}

.hero-section p {
    color: #f0f8ff;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* أزرار القسم الرئيسي */
.hero-buttons .btn {
    border-radius: 30px;
    padding: 0.9rem 1.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.hero-buttons .btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
}

.hero-buttons .btn-outline-light {
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-buttons .btn-success:hover {
    background: linear-gradient(45deg, #218838, #1aa179);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-buttons .btn i {
    margin-left: 8px;
    font-size: 1.1em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* استايل السلايدر */
.hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    text-align: center;
    color: white;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-nav.prev {
    right: 20px;
}

.slider-nav.next {
    left: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* تأثيرات الحركة */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__fadeInDown {
    animation-name: fadeInDown;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .hero-slider-container {
        height: 90vh;/*  مسافة ارتفاع قسم الهيرو على الهاتف */
        min-height: 500px;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn i {
        margin-left: 5px;
        font-size: 1em;
    }
    
    .hero-content {
        background: rgba(0, 0, 0, 0.1); /* خلفية سوداء شفافة بنسبة 1% */
        backdrop-filter: blur(3px); /* تأثير ضبابي */
        padding: 20px; /* هامش داخلي */
        border-radius: 10px; /* زوايا دائرية */
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
        padding: 0;
        margin-bottom: 30px;  /* هامش سفلي للعنوان الرئيسي */
    }
    
    .hero-content p {
        font-size: 1rem !important;
        padding: 20px; /* مسافة بين االعنوان والعنوان الفرعي */
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
