/**
 * FRESH PROFESSIONAL SLIDER - سلايدر احترافي جديد
 * تصميم من الصفر بألوان الثيم والتناغم المثالي
 */

/* ========== متغيرات الثيم ========== */
:root {
    --primary-color: #D4AA40;
    --secondary-color: #BF9835;
    --accent-color: #FF6B35;
    --dark-color: #000000;
    --light-color: #ECF0F1;
    --gradient-primary: linear-gradient(135deg, #D4AA40, #BF9835);
    --gradient-accent: linear-gradient(135deg, #FF6B35, #F7931E);
    --gradient-dark: linear-gradient(135deg, #000000, #1a1a1a);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== السلايدر الرئيسي ========== */
.hero-section {
    position: relative !important;
    height: calc(100vh - 80px) !important;
    min-height: 600px !important;
    overflow: hidden !important;
    background: var(--dark-color) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 5 !important;
    margin-top: 80px !important;
    padding-top: 0 !important;
    top: 0 !important;
}

.hero-slider {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.swiper-wrapper {
    height: 100% !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.swiper-slide {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ========== خلفيات الشرائح بألوان الثيم ========== */
.hero-slide {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-slide.slide-1 {
    background: var(--gradient-primary);
}

.hero-slide.slide-2 {
    background: var(--gradient-accent);
}

.hero-slide.slide-3 {
    background: linear-gradient(135deg, #3498DB, #2980B9);
}

.hero-slide.slide-4 {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
}

.hero-slide.slide-5 {
    background: var(--gradient-dark);
}

/* طبقة التداخل */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* ========== محتوى الشرائح ========== */
.hero-content {
    position: relative !important;
    z-index: 10 !important;
    text-align: center !important;
    color: white !important;
    padding: 0px !important;
    max-width: 900px !important;
    margin: 0px auto !important;
    padding-top: 170px !important;
}

/* العناوين */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    color: #D4AA40 !important;
    text-shadow: none !important;
    filter: none !important;
    animation: none !important;
}

@keyframes textGlow {
    from {
        filter: drop-shadow(0 2px 4px rgba(212, 170, 64, 0.4));
    }
    to {
        filter: drop-shadow(0 4px 8px rgba(212, 170, 64, 0.6)) brightness(1.1);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

/* الشارة والأيقونات */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.badge-icon {
    color: #D4AA40;
    font-size: 1.2rem;
}

/* الإحصائيات المطورة */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    position: relative;
    text-align: center;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 170, 64, 0.3);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    min-width: 180px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(212, 170, 64, 0.1);
    animation: floatUp 6s ease-in-out infinite alternate;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4AA40, #BF9835, #A58230);
    border-radius: 20px 20px 0 0;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes floatUp {
    0% {
        transform: translateY(0px) scale(1);
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-8px) scale(1.02);
        opacity: 0.95;
    }
}

.stat-item:hover {
    transform: translateY(-15px) scale(1.08) rotateX(5deg);
    border-color: rgba(212, 170, 64, 0.8);
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    box-shadow:
        0 25px 50px rgba(212, 170, 64, 0.3),
        0 0 30px rgba(212, 170, 64, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation-play-state: paused;
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #D4AA40, #BF9835, #A58230);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    text-shadow: none;
    margin-bottom: 0.8rem;
    animation: numberGlow 3s ease-in-out infinite alternate, gradientShift 4s ease-in-out infinite;
    position: relative;
}

@keyframes numberGlow {
    0% {
        transform: scale(1);
        text-shadow: none;
    }
    100% {
        transform: scale(1.1);
        text-shadow: none;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.stat-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-label {
    color: rgba(255, 255, 255, 1);
    text-shadow: none;
    transform: translateY(-2px);
}

/* تأثير الجزيئات المتحركة */
.stat-item:hover::before {
    animation: particleGlow 1s ease-in-out;
}

@keyframes particleGlow {
    0% {
        height: 4px;
        background: linear-gradient(90deg, #D4AA40, #BF9835, #A58230);
    }
    50% {
        height: 6px;
        background: linear-gradient(90deg, #D4AA40, #BF9835, #A58230);
        box-shadow: 0 0 20px rgba(212, 170, 64, 0.8);
    }
    100% {
        height: 4px;
        background: linear-gradient(90deg, #D4AA40, #BF9835, #A58230);
    }
}

/* تأثير النبض للأرقام عند الhover */
.stat-item:hover .stat-number {
    animation-play-state: paused;
    transform: scale(1.15);
    text-shadow: none;
}

/* المميزات والشبكة */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.hero-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: nowrap;
}

.grid-item {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    min-width: 0;
    max-width: 300px;
}

.grid-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.grid-item .icon {
    font-size: 3rem;
    color: #D4AA40;
    margin-bottom: 1rem;
}

.grid-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.grid-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* أنواع الحماية والخدمات */
.protection-types,
.services-showcase {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.type-card,
.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.type-card:hover,
.service-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.service-number {
    background: var(--gradient-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 10px;
}

/* الأزرار */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--gradient-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-3px);
}

/* ========== أزرار التنقل ========== */
.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: white;
    z-index: 10;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: var(--shadow-soft);
}

.swiper-button-next {
    right: 30px;
}

.swiper-button-prev {
    left: 30px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-strong);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    content: '';
    display: none;
}

/* أيقونات RTL صحيحة */
.swiper-button-next::before {
    content: '‹';
    font-size: 36px;
    line-height: 1;
}

.swiper-button-prev::before {
    content: '›';
    font-size: 36px;
    line-height: 1;
}

/* ========== نقاط التنقل ========== */
.swiper-pagination {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    top: auto !important;
    width: auto !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    display: flex !important;
    gap: 15px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 15px 25px !important;
    border-radius: 30px !important;
    backdrop-filter: blur(10px) !important;
}

/* إعدادات خاصة لـ pagination الأفقية */
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
    bottom: 30px !important;
    top: auto !important;
    left: 50% !important;
    width: auto !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 15px 25px !important;
    border-radius: 30px !important;
    backdrop-filter: blur(10px) !important;
}

.swiper-pagination-bullet {
    width: 20px !important;
    height: 20px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    opacity: 1 !important;
    margin: 0 !important;
    position: relative !important;
}

.swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.2) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    border-color: white !important;
    box-shadow: 0 0 0 4px rgba(212, 170, 64, 0.3) !important;
    transform: scale(1.3) !important;
}

/* ========== أشكال متحركة ========== */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* ========== أيقونات متحركة ========== */
.slide-icon,
.protection-shield,
.service-icon {
    font-size: 4rem;
    color: #D4AA40;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 15px rgba(212, 170, 64, 0.4));
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 15px rgba(212, 170, 64, 0.4));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 6px 25px rgba(212, 170, 64, 0.6));
    }
}

/* مجموعة الأيقونات */
.slide-icon-group {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.slide-icon-group i {
    font-size: 3rem;
    color: #D4AA40;
    filter: drop-shadow(0 4px 15px rgba(212, 170, 64, 0.4));
}

.animate-float {
    animation: float-up 3s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-up 3s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-float-slow {
    animation: float-up 4s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float-up {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ========== تصميم متجاوب ========== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-grid {
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .grid-item {
        padding: 1rem 0.8rem;
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 600px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .swiper-button-next {
        right: 20px;
    }

    .swiper-button-prev {
        left: 20px;
    }

    .swiper-pagination {
        bottom: 20px;
        padding: 12px 20px;
        gap: 12px;
    }

    .swiper-pagination-bullet {
        width: 16px;
        height: 16px;
    }

    .hero-features,
    .protection-types,
    .services-showcase {
        flex-direction: column;
        align-items: center;
    }

    .hero-grid {
        gap: 0.8rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 10px;
    }

    .grid-item {
        min-width: 120px;
        max-width: 150px;
        padding: 1rem 0.5rem;
        font-size: 0.8rem;
    }

    .grid-item h4 {
        font-size: 1rem;
    }

    .grid-item p {
        font-size: 0.7rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .swiper-button-next::before,
    .swiper-button-prev::before {
        font-size: 28px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .hero-grid {
        gap: 0.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .hero-grid::-webkit-scrollbar {
        display: none;
    }

    .grid-item {
        min-width: 100px;
        max-width: 120px;
        padding: 0.8rem 0.4rem;
        font-size: 0.7rem;
        flex-shrink: 0;
    }

    .grid-item h4 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .grid-item p {
        font-size: 0.6rem;
        line-height: 1.2;
    }

    .grid-item .icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .slide-icon,
    .protection-shield,
    .service-icon {
        font-size: 3rem;
    }
}

/* ========== تحسينات الأداء ========== */
.hero-slide {
    will-change: transform;
}

.swiper-slide {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* التأكد من سلاسة الانتقالات */
.swiper-wrapper {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-slide-active .hero-content {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== تنسيق الأقسام بعد السلايدر ========== */
.about-section,
.companies-section,
.services-section,
.contact-section {
    position: relative !important;
    z-index: 10 !important;
    background: white !important;
    margin-top: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.section-padding {
    padding: 80px 0 !important;
}