/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: calc(100vh - 100px);
    min-height: 500px;
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(37, 99, 235, 0.85) 50%, rgba(59, 130, 246, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

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

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

.slider-dot.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

.slider-arrows {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    align-items: center;
}

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

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.15);
}

.slider-prev:hover {
    transform: translateX(-3px) scale(1.1);
}

.slider-next:hover {
    transform: translateX(3px) scale(1.1);
}

@media (max-width: 768px) {
    .hero-slider {
        min-height: 450px;
        height: calc(85vh - 50px);
    }

    .slider-arrows {
        bottom: 20px;
        padding: 0 10px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-dots {
        bottom: 20px;
    }
}

/* Extra small screens - reduce arrow size more */
@media (max-width: 480px) {
    .slider-arrows {
        bottom: 40px;
        padding: 0 5px;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }

    .slider-dots {
        bottom: 15px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .slider-dot.active {
        width: 30px;
    }
}

/* Corporate Service Icons */
.service-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.service-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #2563eb);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.service-card:hover .service-icon-wrapper::before {
    opacity: 1;
}

.service-icon-wrapper i {
    font-size: 2.5rem;
    color: white;
}

/* Gradient backgrounds for different services */
.service-icon-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.service-icon-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.service-icon-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.service-icon-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.service-icon-yellow {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

/* Trust Badge Enhancement */
.trust-badge-enhanced {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.trust-badge-enhanced:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Animated background patterns */
@keyframes float-pattern {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.animated-pattern {
    position: absolute;
    opacity: 0.1;
    animation: float-pattern 20s ease-in-out infinite;
}

/* Professional CTA buttons */
.cta-button-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.cta-button-primary:hover::before {
    width: 400px;
    height: 400px;
}

/* Enhanced testimonial cards */
.testimonial-card-enhanced {
    position: relative;
    overflow: hidden;
}

.testimonial-card-enhanced::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.testimonial-card-enhanced:hover::after {
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        top: -50%;
        right: -50%;
    }
    100% {
        top: 150%;
        right: 150%;
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .service-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .service-icon-wrapper i {
        font-size: 1.75rem;
    }
}