/* Modern Responsive Hero Slider */
.modern-hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 400px;
    max-height: 800px;
    overflow: hidden;
    background: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-item {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide-item.active {
    opacity: 1;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
}

.slide-item.active .slide-image {
    transform: scale(1.05);
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
}

.content-wrapper {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.slide-item.active .content-wrapper {
    transform: translateY(0);
    opacity: 1;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slide-btn.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
}

.slide-btn.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.slide-btn.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.slide-btn.btn-outline:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Navigation Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
    pointer-events: none;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: all;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-btn i {
    font-size: 18px;
}

/* Dots Indicator */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .modern-hero-slider {
        height: 80vh;
        min-height: 350px;
        max-height: 700px;
    }
    
    .slide-title {
        font-size: 3rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .modern-hero-slider {
        height: 70vh;
        min-height: 300px;
        max-height: 600px;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slider-controls {
        padding: 0 15px;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .modern-hero-slider {
        height: 45vh;
        min-height: 250px;
        max-height: 350px;
    }
    
    .slide-image {
        object-fit: cover;
        object-position: center 30%;
        transform: scale(1.1);
    }
    
    .slide-item.active .slide-image {
        transform: scale(1.15);
    }
    
    .content-wrapper {
        padding: 0 15px;
        max-width: 90%;
    }
    
    .slide-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }
    
    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }
    
    .slide-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .slide-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        width: auto;
        min-width: 120px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .slider-btn i {
        font-size: 16px;
    }
    
    .slider-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .modern-hero-slider {
        height: 40vh;
        min-height: 220px;
        max-height: 300px;
    }
    
    .slide-image {
        object-fit: cover;
        object-position: center 25%;
        transform: scale(1.2);
    }
    
    .slide-item.active .slide-image {
        transform: scale(1.25);
    }
    
    .content-wrapper {
        max-width: 95%;
        padding: 0 10px;
    }
    
    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
        line-height: 1.1;
    }
    
    .slide-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .slide-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .slider-controls {
        display: none;
    }
    
    .slider-dots {
        bottom: 10px;
        gap: 6px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* Extra small screens - للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .modern-hero-slider {
        height: 35vh;
        min-height: 200px;
        max-height: 280px;
    }
    
    .slide-image {
        object-position: center 20%;
        transform: scale(1.3);
    }
    
    .slide-item.active .slide-image {
        transform: scale(1.35);
    }
    
    .slide-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .slide-description {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }
}

/* Very small screens - للشاشات الأصغر */
@media (max-width: 360px) {
    .modern-hero-slider {
        height: 30vh;
        min-height: 180px;
        max-height: 250px;
    }
    
    .slide-image {
        object-position: center 15%;
        transform: scale(1.4);
    }
    
    .slide-item.active .slide-image {
        transform: scale(1.45);
    }
    
    .slide-title {
        font-size: 1.1rem;
    }
    
    .slide-description {
        font-size: 0.7rem;
    }
}

/* RTL Support */
html[dir="rtl"] .slider-controls {
    direction: rtl;
}

html[dir="rtl"] .prev-btn {
    transform: scaleX(-1);
}

html[dir="rtl"] .next-btn {
    transform: scaleX(-1);
}

/* Touch and Accessibility */
@media (hover: none) and (pointer: coarse) {
    .slider-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: none;
    }
    
    .dot:hover {
        background: rgba(255, 255, 255, 0.4);
        transform: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .slider-track,
    .slide-item,
    .slide-image,
    .content-wrapper,
    .slider-btn,
    .dot {
        transition: none;
    }
    
    .slide-item.active .slide-image {
        transform: none;
    }
}