/* Enhanced Animations for service-style5 Section */
.service-style5 {
    position: relative;
    overflow: hidden;
}

/* Enhanced Card Animations */
.single-service-style5 {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(30, 102, 208, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    height: 100%;
    will-change: transform, box-shadow;
}

.single-service-style5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E66D0, #E11D2E);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.single-service-style5::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 102, 208, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Enhanced Icon Box Animation */
.single-service-style5 .icon-box {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    height: 200px;
    transform: translateZ(10px);
}

.single-service-style5 .icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.1);
    filter: brightness(0.95);
}

.single-service-style5 .icon-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(11, 60, 138, 0.8));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

/* Enhanced Title Box Animation */
.single-service-style5 .title-box {
    padding: 25px;
    position: relative;
    background: white;
    transform: translateZ(20px);
}

.single-service-style5 .title-box h3 {
    position: relative;
    overflow: hidden;
}

.single-service-style5 .title-box h3 a {
    display: inline-block;
    position: relative;
    color: #0B3C8A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-service-style5 .title-box h3 a span {
    color: #E11D2E;
    position: relative;
    display: inline-block;
}

/* Enhanced Service Description */
.single-service-style5 .service-desc {
    color: #5c6475;
    line-height: 1.6;
    margin-top: 12px;
    position: relative;
    transform: translateY(5px);
    opacity: 0.9;
    transition: all 0.4s ease;
}

/* Enhanced Button Animation */
.single-service-style5 .btn-box {
    padding: 0 25px 25px;
    position: relative;
    transform: translateZ(15px);
}

.single-service-style5 .btn-animate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1E66D0;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(30, 102, 208, 0.08);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 102, 208, 0.15);
}

.single-service-style5 .btn-animate::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(30, 102, 208, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    border-radius: 50%;
}

.single-service-style5 .btn-animate::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: left 0.8s ease;
}

.single-service-style5 .btn-animate span {
    font-size: 12px;
    margin-left: 2px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

/* ===========================================
   ENHANCED HOVER ANIMATIONS
   =========================================== */

.single-service-style5:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(30, 102, 208, 0.15),
        0 0 0 1px rgba(30, 102, 208, 0.1),
        inset 0 0 30px rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.single-service-style5:hover::before {
    transform: scaleX(1);
}

.single-service-style5:hover::after {
    opacity: 1;
}

/* Icon Box Hover Effects */
.single-service-style5:hover .icon-box img {
    transform: scale(1.15);
    filter: brightness(1.05);
}

.single-service-style5:hover .icon-box::before {
    opacity: 1;
}

/* Title Hover Effects */
.single-service-style5:hover .title-box h3 a {
    color: #1E66D0;
    transform: translateX(0);
}

.single-service-style5:hover .title-box h3 a span {
    animation: colorPulse 2s infinite;
    transform: translateX(3px);
}

@keyframes colorPulse {
    0%, 100% { color: #E11D2E; }
    50% { color: #ff4d4d; }
}


/* .single-service-style5:hover .service-desc {
    transform: translateY(0);
    opacity: 1;
    color: #374151;
}


.single-service-style5:hover .btn-animate {
    background: linear-gradient(135deg, #1E66D0, #0B3C8A);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 102, 208, 0.3);
    padding-right: 25px;
}

.single-service-style5:hover .btn-animate::before {
    width: 200px;
    height: 200px;
}

.single-service-style5:hover .btn-animate::after {
    left: 100%;
}

.single-service-style5:hover .btn-animate span {
    transform: translateX(5px) rotate(-45deg);
} */

/* ===========================================
   ENHANCED ENTRANCE ANIMATIONS
   =========================================== */

/* .single-service-style5.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px) rotateX(10deg);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.single-service-style5.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.single-service-style5.delay-100.animate-on-scroll.animated {
    transition-delay: 0.1s;
}

.single-service-style5.delay-200.animate-on-scroll.animated {
    transition-delay: 0.2s;
}

.single-service-style5.delay-300.animate-on-scroll.animated {
    transition-delay: 0.3s;
}

.single-service-style5.delay-400.animate-on-scroll.animated {
    transition-delay: 0.4s;
}

.single-service-style5.delay-500.animate-on-scroll.animated {
    transition-delay: 0.5s;
}

.single-service-style5.delay-600.animate-on-scroll.animated {
    transition-delay: 0.6s;
}

.single-service-style5.delay-700.animate-on-scroll.animated {
    transition-delay: 0.7s;
} */




/* ===========================================
   ENHANCED PARALLAX EFFECT ON HOVER
   =========================================== */

.single-service-style5 {
    transition: transform 0.3s ease-out;
}

/* Mouse move parallax effect */
.service-style5__content:hover .single-service-style5 {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===========================================
   PULSE ANIMATION FOR ATTENTION
   =========================================== */

@keyframes subtlePulse {
    0%, 100% { 
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08),
                    0 0 0 1px rgba(30, 102, 208, 0.1); 
    }
    50% { 
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12),
                    0 0 0 1px rgba(30, 102, 208, 0.15),
                    0 0 20px rgba(30, 102, 208, 0.1); 
    }
}

.single-service-style5:hover {
    animation: subtlePulse 2s infinite;
}

/* ===========================================
   GLOW EFFECT FOR ACTIVE STATE
   =========================================== */

.single-service-style5:active {
    animation: clickGlow 0.3s ease-out;
}

@keyframes clickGlow {
    0% { box-shadow: 0 0 0 0 rgba(30, 102, 208, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(30, 102, 208, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 102, 208, 0); }
}

/* ===========================================
   RESPONSIVE ENHANCEMENTS
   =========================================== */

@media (max-width: 768px) {
    .single-service-style5:hover {
        transform: translateY(-8px) scale(1.01);
    }
    
    .single-service-style5.animate-on-scroll {
        transform: translateY(20px) rotateX(5deg);
    }
}

/* Ensure smooth scrolling for animations */
html {
    scroll-behavior: smooth;
}

/* Performance optimization */
.single-service-style5 {
    will-change: transform, opacity, box-shadow;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}