/* Index Page Specific CSS Fixes */

/* ===== PROFESSIONAL SCIENTIFIC SLIDER STYLES ===== */
.industries-slider-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    max-height: 1000px;
    overflow: hidden;
    background: 
        linear-gradient(135deg, #f8f9fa 0%, #e9ecef 25%, #ffffff 50%, #f1f3f4 75%, #e8eaf6 100%),
        radial-gradient(circle at 20% 80%, rgba(63, 81, 181, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(33, 150, 243, 0.04) 0%, transparent 50%);
    display: flex;
    align-items: center;
    position: relative;
}

.industries-slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="scientific-grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(63,81,181,0.08)" stroke-width="1"/><circle cx="20" cy="20" r="1" fill="rgba(63,81,181,0.1)"/></pattern></defs><rect width="80" height="80" fill="url(%23scientific-grid)"/></svg>'),
        linear-gradient(45deg, transparent 0%, rgba(63, 81, 181, 0.02) 50%, transparent 100%);
    pointer-events: none;
    opacity: 0.6;
}

@keyframes scientificFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2px, -2px) rotate(0.5deg); }
    50% { transform: translate(-1px, 1px) rotate(-0.5deg); }
    75% { transform: translate(1px, 2px) rotate(0.3deg); }
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.industries-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(30px);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
    animation: slideIn 1.2s ease-out;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(0.98);
    }
    50% {
        opacity: 0.7;
        transform: translateX(10px) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: 0;
}

.slide-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(248, 249, 250, 0.12) 30%,
        rgba(241, 243, 244, 0.08) 60%,
        rgba(255, 255, 255, 0.18) 100%
    );
    z-index: 2;
}

.slide-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 30%, rgba(63, 81, 181, 0.01) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(33, 150, 243, 0.008) 0%, transparent 50%);
    z-index: 3;
}

.slide-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 8s ease-out;
    filter: brightness(1.1) contrast(1.05) saturate(1.1);
    opacity: 1;
}

.slide.active .slide-background img {
    transform: scale(1.02);
    filter: brightness(1.15) contrast(1.08) saturate(1.15);
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(
            135deg,
            rgba(63, 81, 181, 0.01) 0%,
            transparent 40%,
            transparent 60%,
            rgba(33, 150, 243, 0.01) 100%
        );
    z-index: 4;
}

.slide-content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 3rem;
}

.slide-text {
    color: #263238;
    max-width: 700px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.slide.active .slide-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
    animation: textFadeIn 1.5s ease-out 0.4s both;
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide:not(.active) .slide-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in;
    transition-delay: 0s;
}

.slide-category {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: 
        linear-gradient(135deg, rgba(63, 81, 181, 0.05) 0%, rgba(33, 150, 243, 0.03) 100%);
    border: 1px solid rgba(63, 81, 181, 0.1);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #3f51b5;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 
        0 2px 8px rgba(63, 81, 181, 0.1);
}

.slide-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(63, 81, 181, 0.05) 50%, 
        transparent 100%);
    transition: left 0.4s ease;
}

.slide.active .slide-category::before {
    left: 100%;
}

.slide-category::after {
    display: none;
}

@keyframes categoryPulse {
    0%, 100% { 
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateY(-50%) scale(1.1);
        opacity: 0.8;
    }
}

.slide-category i {
    font-size: 1rem;
    color: #3f51b5;
}

.slide-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1a237e;
    position: relative;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.slide.active .slide-title {
    color: #1a237e;
}

@keyframes titleGlow {
    0% {
        color: #1a237e;
    }
    100% {
        color: #3f51b5;
    }
}

.slide-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #3f51b5 0%, 
        #2196f3 50%, 
        #03a9f4 100%);
    border-radius: 2px;
    transition: all 0.8s ease;
    transition-delay: 0.5s;
}

.slide.active .slide-title::after {
    width: 80px;
}

@keyframes underlineGlow {
    0% {
        background: linear-gradient(90deg, 
            #3f51b5 0%, 
            #2196f3 50%, 
            #03a9f4 100%);
    }
    100% {
        background: linear-gradient(90deg, 
            #2196f3 0%, 
            #03a9f4 50%, 
            #3f51b5 100%);
    }
}

.slide-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 1;
    max-width: 600px;
    font-weight: 400;
    color: #546e7a;
    letter-spacing: 0.02em;
    position: relative;
}

.slide-description::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, 
        #3f51b5 0%, 
        #2196f3 50%, 
        #03a9f4 100%);
    border-radius: 2px;
    opacity: 0;
    transition: all 0.6s ease;
}

.slide.active .slide-description::before {
    opacity: 1;
    transition-delay: 0.8s;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    border: 2px solid #3f51b5;
    background: #3f51b5;
    color: white;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.slide-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.slide-btn:hover::before {
    left: 0;
}

.slide-btn:hover {
    background: #2c387e;
    border-color: #2c387e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(63, 81, 181, 0.3);
}

.slide-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.slide-btn:hover i {
    transform: translateX(4px);
}

/* Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(63, 81, 181, 0.2);
    color: #3f51b5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.slider-nav::before {
    display: none;
}

.slider-nav:hover {
    background: #3f51b5;
    color: white;
    transform: translateY(-50%) scale(1.1);
    border-color: #3f51b5;
    box-shadow: 0 8px 20px rgba(63, 81, 181, 0.4);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav.prev {
    left: 2.5rem;
}

.slider-nav.next {
    right: 2.5rem;
}

/* Modern Indicators */
.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 15;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    border: 1px solid rgba(63, 81, 181, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(63, 81, 181, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.indicator::before {
    display: none;
}

.indicator.active {
    background: #3f51b5;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(63, 81, 181, 0.4);
}

.indicator:hover {
    background: #2196f3;
    transform: scale(1.1);
}

/* Professional Progress Bar */
.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #3f51b5 0%, 
        #2196f3 50%, 
        #03a9f4 100%);
    width: 0%;
    transition: width 6s linear;
    z-index: 10;
    opacity: 0.8;
}

.slide-progress::before {
    display: none;
}

.slide.active .slide-progress {
    width: 100%;
    animation: progressGlow 6s linear infinite;
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(63, 81, 181, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(63, 81, 181, 0.6);
    }
}

/* Auto-slide Animation Enhancement */
@keyframes autoSlideIndicator {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

.indicator.active {
    background: #3f51b5;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(63, 81, 181, 0.4);
    animation: autoSlideIndicator 6s linear infinite;
}

/* Slider Auto-Start Enhancement */
.industries-slider {
    position: relative;
    width: 100%;
    height: 100%;
    animation: sliderReady 0.5s ease-in-out;
}

@keyframes sliderReady {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Add spacing between slider and featured products */
.products-section {
    padding: 8rem 0 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

/* ========== SLIDER AUTO-START IMPROVEMENT ========== */
/*
لتحسين التحريك التلقائي، تأكد من إضافة هذا الكود في JavaScript:

// Auto-start slider immediately
document.addEventListener('DOMContentLoaded', function() {
    const slider = document.querySelector('.industries-slider');
    if (slider) {
        // Force first slide to be active
        const firstSlide = slider.querySelector('.slide:first-child');
        if (firstSlide) {
            firstSlide.classList.add('active');
        }
        
        // Start auto-slide immediately
        setTimeout(function() {
            // Your auto-slide function here
            startAutoSlider();
        }, 100);
    }
});

function startAutoSlider() {
    setInterval(function() {
        nextSlide(); // Your next slide function
    }, 6000); // 6 seconds
}
*/

/* ===== ULTRA RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .slide-content {
        padding: 0 2rem;
    }
    
    .slide-text {
        max-width: 650px;
    }
    
    .slide-title {
        font-size: clamp(2.2rem, 5vw, 4rem);
    }
    
    .slider-nav {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .slider-nav.prev {
        left: 2rem;
    }
    
    .slider-nav.next {
        right: 2rem;
    }
}

@media (max-width: 768px) {
    .industries-slider-section {
        min-height: 650px;
        max-height: 750px;
    }
    
    .slide-content {
        padding: 0 1.5rem;
    }
    
    .slide-text {
        max-width: 100%;
        text-align: center;
    }
    
    .slide-category {
        padding: 0.875rem 1.75rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .slide-title {
        font-size: clamp(2rem, 7vw, 3rem);
        margin-bottom: 1.5rem;
        letter-spacing: -0.5px;
    }
    
    .slide-title::after {
        width: 120px;
        height: 5px;
    }
    
    .slide-description {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        max-width: 100%;
        line-height: 1.6;
    }
    
    .slide-btn {
        padding: 1.1rem 2.5rem;
        font-size: 1rem;
        gap: 0.75rem;
    }
    
    .slider-nav {
        width: 55px;
        height: 55px;
        font-size: 1.1rem;
    }
    
    .slider-nav.prev {
        left: 1.5rem;
    }
    
    .slider-nav.next {
        right: 1.5rem;
    }
    
    .slider-indicators {
        bottom: 2rem;
        padding: 1.25rem 2.5rem;
        gap: 1.25rem;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 576px) {
    .industries-slider-section {
        min-height: 550px;
        max-height: 650px;
    }
    
    .slide-content {
        padding: 0 1rem;
    }
    
    .slide-category {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
        gap: 0.4rem;
    }
    
    .slide-category i {
        font-size: 1rem;
    }
    
    .slide-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
        margin-bottom: 1.25rem;
        letter-spacing: -0.3px;
    }
    
    .slide-title::after {
        width: 100px;
        height: 4px;
        bottom: -0.75rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
        margin-bottom: 1.75rem;
        line-height: 1.55;
        letter-spacing: 0.2px;
    }
    
    .slide-description::before {
        left: -15px;
        width: 3px;
    }
    
    .slide-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        gap: 0.6rem;
        letter-spacing: 1px;
    }
    
    .slider-nav {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .slider-nav.prev {
        left: 1rem;
    }
    
    .slider-nav.next {
        right: 1rem;
    }
    
    .slider-indicators {
        bottom: 1.5rem;
        padding: 1rem 2rem;
        gap: 1rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .slide-progress {
        height: 5px;
    }
}

@media (max-width: 400px) {
    .industries-slider-section {
        min-height: 500px;
        max-height: 600px;
    }
    
    .slide-content {
        padding: 0 0.75rem;
    }
    
    .slide-title {
        font-size: clamp(1.6rem, 10vw, 2.2rem);
    }
    
    .slide-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.85rem;
    }
    
    .slider-nav {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .slider-indicators {
        padding: 0.75rem 1.5rem;
        gap: 0.75rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}

/* Advanced Performance and Animation Optimizations */
@media (prefers-reduced-motion: reduce) {
    .slide,
    .slide-text,
    .slide-background img,
    .slide-btn,
    .slider-nav,
    .indicator,
    .slide-progress {
        transition: none !important;
        animation: none !important;
    }
    
    .slide-background::before,
    .slide-background::after {
        animation: none !important;
    }
}

/* High-end device optimizations */
@media (min-width: 1200px) and (min-height: 800px) {
    .industries-slider-section::before {
        animation-duration: 30s;
    }
    
    .slide-background img {
        transition-duration: 15s;
    }
    
    .slide.active .slide-background img {
        transform: scale(1.2) rotate(1deg);
    }
}

/* Performance optimizations for older devices */
@media (max-width: 768px) {
    .slide-background::before,
    .slide-background::after {
        display: none;
    }
    
    .industries-slider-section::before {
        animation: none;
        opacity: 0.5;
    }
    
    .slide-background img {
        transition-duration: 8s;
        filter: brightness(0.8) contrast(1.1);
    }
}

/* Accessibility enhancements */
@media (prefers-color-scheme: dark) {
    .slide-category {
        background: 
            linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%),
            linear-gradient(45deg, rgba(0, 86, 179, 0.3) 0%, rgba(0, 123, 255, 0.2) 100%);
    }
    
    .slider-nav {
        background: 
            linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%),
            radial-gradient(circle at center, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    }
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23000000" fill-opacity="0.02"><circle cx="30" cy="30" r="2"/></g></g></svg>');
    pointer-events: none;
}

/* Section Title Enhancement */
.section-heading {
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark, #343a40);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary, #0056b3), var(--primary-dark, #004494));
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.3);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Featured Products Grid with Advanced Animations */
.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: stretch;
}

/* Product Card Enhancements */
.product-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 2rem;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    min-height: 550px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

/* Enhanced hover state */
.product-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 12px 32px rgba(0, 123, 255, 0.2);
    border-color: rgba(0, 86, 179, 0.3);
}

/* Top border animation */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--primary, #0056b3) 0%, 
        #007bff 50%, 
        var(--primary-dark, #004494) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover::before {
    transform: scaleX(1);
}

/* Product Image Enhancements */
.product-image {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fafbfc 0%, #f1f3f4 100%);
    padding: 2.5rem;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

/* Shimmer effect */
.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.6) 50%, 
        transparent 100%);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
}

.product-card:hover .product-image::after {
    left: 150%;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-image img {
    transform: scale(1.12) rotate(3deg);
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.2));
}

/* Product Body Enhancements */
.product-body {
    padding: 2.5rem;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(248, 249, 250, 0.5) 100%);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--dark, #343a40);
    line-height: 1.3;
    transition: all 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--primary, #0056b3);
    transform: translateY(-2px);
}

/* Enhanced Badge */
.product-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    border: 2px solid rgba(0, 86, 179, 0.1);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #6c757d;
    margin-bottom: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card:hover .product-badge {
    background: linear-gradient(135deg, var(--primary, #0056b3), var(--primary-dark, #004494));
    color: white;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.4);
    border-color: transparent;
}

.product-description {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: auto;
    font-size: 1rem;
    font-weight: 400;
    flex-grow: 1;
}

.product-btn-wrapper {
    margin-top: 2rem;
    padding-top: 1rem;
}

/* Enhanced Button */
.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 3px solid var(--primary, #0056b3);
    color: var(--primary, #0056b3);
    text-decoration: none;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.product-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary, #0056b3), var(--primary-dark, #004494));
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.product-btn span,
.product-btn i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.product-btn:hover {
    color: white;
    border-color: var(--primary-dark, #004494);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 86, 179, 0.4);
}

.product-btn:hover::before {
    left: 0;
}

.product-btn:hover i {
    transform: translateX(6px);
}

/* View All Products Button Enhancement */
.btn-view-all {
    background: linear-gradient(135deg, var(--primary, #0056b3), var(--primary-dark, #004494)) !important;
    border: none !important;
    padding: 1.2rem 4rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    box-shadow: 0 10px 32px rgba(0, 86, 179, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 3rem !important;
    font-size: 1rem !important;
}

.btn-view-all:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 15px 48px rgba(0, 86, 179, 0.5) !important;
}

/* Loading Animation for Product Cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Loading State and Empty State Enhancements */
.products-loading {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary, #0056b3);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: none;
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.empty-state-icon {
    font-size: 4rem;
    color: #1976d2;
    margin-bottom: 1.5rem;
    display: block;
}

.empty-state h4 {
    color: #1565c0;
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.empty-state p {
    color: #424242;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Pulse animation for loading cards */
.product-card-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 2rem;
    height: 500px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Improved responsive design */
@media (max-width: 1200px) {
    .featured-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
    
    .product-card {
        min-height: 520px;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 7rem 0 4rem 0;
        margin-top: 2.5rem;
    }
    
    .section-heading {
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .featured-products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .products-section {
        padding: 6rem 0 4rem 0;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .product-image {
        height: 200px;
        padding: 1.5rem;
    }
    
    .product-body {
        padding: 1.8rem;
    }
    
    .product-btn {
        padding: 0.8rem 2rem;
        font-size: 0.85rem;
    }
    
    .btn-view-all {
        padding: 1rem 2.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .product-card {
        min-height: 480px;
    }
}

/* Advanced hover effects for the entire section */
.products-section:hover .product-card:not(:hover) {
    opacity: 0.7;
    transform: scale(0.95);
}

.products-section .product-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Parallax effect for background pattern */
@media (prefers-reduced-motion: no-preference) {
    .products-section::before {
        animation: float 20s ease-in-out infinite;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Categories Section - Enhanced */
.categories-section {
    padding: 6rem 0;
    background: 
        linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #e9ecef 100%),
        radial-gradient(circle at 30% 20%, rgba(63, 81, 181, 0.03) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="category-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="rgba(63,81,181,0.05)"/><path d="M 30 0 L 0 0 0 30" fill="none" stroke="rgba(63,81,181,0.02)" stroke-width="0.5"/></pattern></defs><rect width="60" height="60" fill="url(%23category-pattern)"/></svg>');
    pointer-events: none;
    opacity: 0.7;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.category-card {
    background: 
        linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%),
        radial-gradient(circle at top right, rgba(63, 81, 181, 0.02) 0%, transparent 60%);
    border-radius: 2rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.08),
        0 6px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    min-height: 380px;
    border: 2px solid rgba(63, 81, 181, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--primary, #0056b3) 0%, 
        #2196f3 50%, 
        #03a9f4 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 12px 40px rgba(63, 81, 181, 0.2);
    border-color: rgba(63, 81, 181, 0.3);
}

.category-icon-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    display: inline-block;
    flex-shrink: 0;
}

.category-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: 
        linear-gradient(135deg, var(--primary, #0056b3) 0%, var(--primary-dark, #004494) 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    color: white;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 40px rgba(63, 81, 181, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.category-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    transform: rotate(-45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.category-card:hover .category-icon::before {
    transform: rotate(-45deg) translateX(100%);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 48px rgba(63, 81, 181, 0.4),
        inset 0 4px 0 rgba(255, 255, 255, 0.3);
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark, #343a40);
    transition: all 0.3s ease;
    line-height: 1.3;
    flex-shrink: 0;
}

.category-card:hover .category-title {
    color: var(--primary, #0056b3);
    transform: translateY(-2px);
}

.category-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
}

.category-card:hover .category-description {
    opacity: 1;
    color: #495057;
}

.category-count {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.08) 0%, rgba(33, 150, 243, 0.06) 100%);
    border: 1px solid rgba(63, 81, 181, 0.1);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary, #0056b3);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: auto;
}

.category-card:hover .category-count {
    background: linear-gradient(135deg, var(--primary, #0056b3) 0%, var(--primary-dark, #004494) 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(63, 81, 181, 0.3);
}

/* Services Section - Enhanced */
.services-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #3a0ca3, #480ca8);
    color: white;
    position: relative;
    overflow: hidden;
}

.services-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.service-shape {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.service-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
}

.service-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* CTA Section - Enhanced */
.cta-section {
    padding: 5rem 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary, #0056b3), var(--primary-dark, #004494));
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.cta-shape-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -50px;
}

.cta-shape-2 {
    width: 150px;
    height: 150px;
    bottom: -70px;
    left: -70px;
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Clients Section - Enhanced */
.clients-section {
    padding: 5rem 0;
    background-color: var(--light, #f8f9fa);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
}

.client-logo {
    background-color: white;
    border-radius: 1rem;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    flex-direction: column;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.client-icon {
    font-size: 2rem;
    color: var(--primary, #0056b3);
    margin-bottom: 0.5rem;
}

.client-name {
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Animation classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 1400px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.8rem;
    }
}

@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .category-card {
        min-height: 360px;
        padding: 2rem 1.2rem;
    }
    
    .category-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .categories-section {
        padding: 5rem 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 2rem 1.2rem;
        min-height: 340px;
    }
    
    .category-icon {
        width: 75px;
        height: 75px;
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .category-title {
        font-size: 1.3rem;
        margin-bottom: 0.7rem;
    }
    
    .category-description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1.5rem;
    }
    
    .client-logo {
        height: 100px;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-title:after {
        width: 60px;
    }
    
    .categories-section {
        padding: 4rem 0;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .category-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .category-description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .category-count {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
}
