/* 🚀 HERO SECTION BLUR FIX - Crystal Clear Display
   شركة تسليك مجارى بالرياض - Hero Section Clear Fix */

/* Remove any blur effects from hero section and ensure crystal clear display */
.hero-section,
.hero-section *,
.hero-content-optimized,
.hero-title-optimized,
.hero-subtitle-optimized {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Ensure hero section is crystal clear */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #007bff, #10b981);
    contain: layout style paint;
    will-change: transform;
    overflow: hidden;
    transform: translateZ(0);
}

/* Hero Background - Clear and Optimized */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    contain: strict;
    transform: translateZ(0);
    filter: none !important;
    backdrop-filter: none !important;
}

/* Hero Overlay - Clean and Clear */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
    filter: none !important;
    backdrop-filter: none !important;
}

/* Hero Content - Crystal Clear Text */
.hero-content-optimized {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem 1rem;
    contain: layout style;
    width: 100%;
    filter: none !important;
    backdrop-filter: none !important;
}

/* Hero Title - Clear and Readable */
.hero-title-optimized {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    contain: layout style;
    font-family: 'Cairo', 'Arial', sans-serif;
    filter: none !important;
    backdrop-filter: none !important;
}

/* Hero Subtitle - Clear and Readable */
.hero-subtitle-optimized {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.4;
    contain: layout style;
    font-family: 'Cairo', 'Arial', sans-serif;
    filter: none !important;
    backdrop-filter: none !important;
}

/* Call-to-Action Buttons - Clear and Functional */
.hero-cta-primary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin: 2rem 0;
    contain: layout;
    filter: none !important;
    backdrop-filter: none !important;
}

.btn-cta-call,
.btn-cta-whatsapp {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    min-width: 250px;
    min-height: 100px;
    transition: all 0.3s ease;
    justify-content: center;
    will-change: transform;
    contain: layout style;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-family: 'Cairo', 'Arial', sans-serif;
    filter: none !important;
    backdrop-filter: none !important;
}

.btn-cta-call {
    background: #007bff;
    color: #fff;
}

.btn-cta-whatsapp {
    background: #25D366;
    color: #fff;
}

/* Hero Features - Minimal Blur for Glass Effect Only */
.hero-features-optimized {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    filter: none !important;
}

.feature-item-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1rem;
    border-radius: 15px;
    backdrop-filter: blur(2px) !important; /* Minimal blur for glass effect */
    -webkit-backdrop-filter: blur(2px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.feature-item-opt:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-item-opt i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #25D366;
}

.feature-item-opt span {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Cairo', 'Arial', sans-serif;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .hero-cta-primary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-cta-call,
    .btn-cta-whatsapp {
        min-width: 280px;
        min-height: 90px;
        padding: 0.8rem 1rem;
    }
    
    .hero-features-optimized {
        gap: 1rem;
    }
    
    .feature-item-opt {
        min-width: 100px;
    }
    
    .feature-item-opt i {
        font-size: 1.3rem;
    }
}

@media (min-width: 768px) {
    .hero-cta-primary {
        flex-direction: row;
        gap: 2rem;
    }
}

/* Ensure carousel elements are clear */
.carousel-indicators,
.carousel-control-prev,
.carousel-control-next {
    filter: none !important;
    backdrop-filter: none !important;
}

/* Performance optimizations */
.hero-section * {
    font-display: swap;
}

.hero-section:hover * {
    will-change: auto;
}

/* Additional mobile responsiveness */
@media (max-width: 480px) {
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .hero-content-optimized {
        padding: 1.5rem 1rem;
    }
    
    .hero-title-optimized {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    .hero-subtitle-optimized {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }
}
