/* --- Sticky footer (flex wrapper) --- */
html, body {
    height: 100%;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
    position: relative;
    z-index: 2;
}

footer {
    position: relative;
    z-index: 30;
    margin-top: auto;
}

/* Enhanced Animated Background */
.animated-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    will-change: transform;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(200, 20, 31, 0.15), rgba(0, 139, 69, 0.15));
    animation: floatComplex 12s ease-in-out infinite;
    filter: blur(25px);
    opacity: 0.7;
    will-change: transform, opacity;
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
}

.shape:nth-child(1) { width:250px; height:250px; top:15%; left:8%; animation-delay:0s; }
.shape:nth-child(2) { width:180px; height:180px; top:65%; right:12%; animation-delay:3s; }
.shape:nth-child(3) { width:220px; height:220px; bottom:25%; left:25%; animation-delay:6s; }
.shape:nth-child(4) { width:150px; height:150px; top:35%; right:25%; animation-delay:9s; }

@keyframes floatComplex { 
    0%,100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
    10% { transform: translate3d(20px,-30px,0) rotate(36deg) scale(1.05); }
    20% { transform: translate3d(-15px,-50px,0) rotate(72deg) scale(0.98); }
    30% { transform: translate3d(30px,-20px,0) rotate(108deg) scale(1.02); }
    40% { transform: translate3d(-25px,10px,0) rotate(144deg) scale(0.95); }
    50% { transform: translate3d(15px,25px,0) rotate(180deg) scale(1.08); }
    60% { transform: translate3d(-30px,15px,0) rotate(216deg) scale(0.97); }
    70% { transform: translate3d(25px,-15px,0) rotate(252deg) scale(1.03); }
    80% { transform: translate3d(-20px,-25px,0) rotate(288deg) scale(0.99); }
    90% { transform: translate3d(10px,20px,0) rotate(324deg) scale(1.06); }
}

/* Enhanced Service Card with Moving Gradient Border */
.service-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(80px) scale(0.9) rotateX(15deg);
    z-index: 1;
    height: 100%;
    margin-bottom: 30px;
    perspective: 1000px;
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
}

/* Enhanced Moving Gradient Border */
.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg, 
        #c8141f, 
        #008b45, 
        #c8141f, 
        #008b45,
        #c8141f
    );
    background-size: 400% 400%;
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
    filter: blur(15px);
    animation: movingGradient 8s ease-in-out infinite;
    animation-play-state: paused;
}

.service-card:hover::before {
    opacity: 0.8;
    animation-play-state: running;
}

@keyframes movingGradient {
    0%, 100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    25% {
        background-position: 50% 100%;
    }
    50% {
        background-position: 100% 50%;
        transform: scale(1.02);
    }
    75% {
        background-position: 50% 0%;
    }
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.8s ease;
    z-index: 2;
}

.service-card:hover::after {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-20px) scale(1.05) rotateY(5deg);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.95) inset,
        0 0 80px rgba(200, 20, 31, 0.1);
}

/* Enhanced Icon with Pulsing Gradient Border */
.service-card-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #c8141f, #008b45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 10px 30px rgba(200,20,31,0.3), 
        inset 0 2px 4px rgba(255,255,255,0.2);
    overflow: hidden;
}

/* Moving Gradient Border for Icon */
.service-card-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(
        45deg,
        #c8141f,
        #008b45,
        #c8141f,
        #008b45,
        #c8141f
    );
    background-size: 400% 400%;
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
    animation: iconBorderPulse 4s linear infinite;
    animation-play-state: paused;
}

.service-card:hover .service-card-icon::before {
    opacity: 1;
    animation-play-state: running;
}

@keyframes iconBorderPulse {
    0% {
        background-position: 0% 50%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        background-position: 50% 100%;
    }
    50% {
        background-position: 100% 50%;
        transform: rotate(180deg) scale(1.05);
    }
    75% {
        background-position: 50% 0%;
    }
    100% {
        background-position: 0% 50%;
        transform: rotate(360deg) scale(1);
    }
}

.service-card-icon img {
    width: 50px;
    height: 50px;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover .service-card-icon {
    transform: scale(1.2) rotate(15deg);
    box-shadow:
        0 15px 40px rgba(200, 20, 31, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.3);
}

.service-card:hover .service-card-icon img {
    transform: scale(1.3) rotate(-15deg);
    filter: brightness(1.2);
}

/* Enhanced Content Animations */
.service-card-content p {
    color: #718096;
    font-size: 16px;
    margin-bottom: 12px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.service-card.animate-in .service-card-content p {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

.service-card-content h3 {
    font-size: 26px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 20px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.service-card.animate-in .service-card-content h3 {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.service-card:hover .service-card-content h3 {
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
}

.service-card:hover .service-card-content p,
.service-card:hover .service-card-content h3,
.service-card:hover .service-card-content a {
    color: #ffffff !important;            
}


.service-card-content a {
    color: #E03C33;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    padding: 10px 0;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-flex;
    align-items: center;
}

.service-card.animate-in .service-card-content a {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.4s;
}

.service-card-content a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #c8141f, #008b45);
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    border-radius: 2px;
}

.service-card-content a::after {
    content: '→';
    margin-left: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.service-card-content a:hover {
    color: #008F4A;
    padding-left: 5px;
    padding-right: 5px;
}

.service-card-content a:hover::before {
    width: 100%;
}

.service-card-content a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Vector Animation */
.service-card-vector {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.1;
    z-index: -1;
    transition: all 0.8s ease;
}

.service-card:hover .service-card-vector {
    opacity: 0.3;
    transform: scale(1.3) rotate(15deg);
    animation: vectorFloat 3s ease-in-out infinite;
}

@keyframes vectorFloat {
    0%, 100% {
        transform: scale(1.3) rotate(15deg) translateY(0);
    }
    50% {
        transform: scale(1.3) rotate(15deg) translateY(-10px);
    }
}

.service-card-vector img {
    width: 80px;
    height: 80px;
    transition: all 0.6s ease;
}

/* Enhanced Particle Effects */
.service-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #c8141f, #008b45);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.6s ease;
}

.service-card:hover .particle {
    opacity: 0.6;
    animation: floatParticle 3s ease-in-out infinite;
}

@keyframes floatParticle {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% { 
        transform: translate(10px, -15px) rotate(120deg) scale(1.2);
    }
    66% { 
        transform: translate(-5px, 10px) rotate(240deg) scale(0.8);
    }
}

/* Staggered Animation Delays */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }

/* Section Heading Animation */
.services-heading {
    text-align: center;
    margin-bottom: 80px;
}

.services-heading h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a202c;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.services-heading.animate-in h2 {
    opacity: 1;
    transform: translateY(0);
}

.color_big_heading {
    background: linear-gradient(135deg, #c8141f, #008b45);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.services-heading p {
    font-size: 18px;
    color: #8E8E8E;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.services-heading.animate-in p {
    opacity: 1;
    transform: translateY(0);
}

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

.contact-hero {
    position: relative;
    width: 100%;
    height: 600px;
    background: url('../uploads/images/about-us.webp') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
    box-sizing: border-box;
}

.elementor-kit-6 a:hover{
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-section-padding {
        padding: 60px 0 !important;
    }

    .service-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .service-card-icon {
        width: 80px;
        height: 80px;
    }

    .service-card-icon img {
        width: 40px;
        height: 40px;
    }

    .service-card-content h3 {
        font-size: 22px;
    }

    .services-heading h2 {
        font-size: 36px;
    }

    .services-heading {
        margin-bottom: 50px;
    }

    .shape {
        filter: blur(15px);
    }

    .shape:nth-child(1) {
        width: 150px;
        height: 150px;
    }

    .shape:nth-child(2) {
        width: 120px;
        height: 120px;
    }

    .shape:nth-child(3) {
        width: 140px;
        height: 140px;
    }

    .shape:nth-child(4) {
        width: 100px;
        height: 100px;
    }
}