/* Reset only for this section */
#shurjopay-features-section .section-title.style1 h2 {
   
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

#shurjopay-features-section .section-title.style1 p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.shurjopay-features {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.shurjopay-features .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title.style1 {
    opacity: 0;
    transform: translateY(-30px);
}

.section-title.style1.animate-in {
    animation: titleSlideDown 0.8s ease forwards;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    position: relative;
    background: white;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

/* FIX: Make the link cover the entire card */
.card-link-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    text-decoration: none;
    color: transparent;
    cursor: pointer;
}

/* Ensure content is above the link but clickable */
.card-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    pointer-events: none; /* Allow clicks to pass through to the link */
}

/* Make sure text and icons are not clickable, only the link */
.feature-icon,
.feature-icon i,
.feature-card h3,
.feature-card p {
    pointer-events: none;
}

/* Left animation classes - for LEFT SIDE cards (first 2) */
.feature-card.animate-from-left {
    transform: translateX(-150px);
}

.feature-card.animate-from-left.animate-in {
    animation: slideInFromLeft 0.8s ease forwards;
}

/* Right animation classes - for RIGHT SIDE cards (last 2) */
.feature-card.animate-from-right {
    transform: translateX(150px);
}

.feature-card.animate-from-right.animate-in {
    animation: slideInFromRight 0.8s ease forwards;
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 169, 164, 0.1) 0%,
        rgba(51, 52, 147, 0.05) 40%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    z-index: 1;
    pointer-events: none;
}

.feature-card:hover .card-hover-effect {
    opacity: 1;
}

.feature-card:hover .card-content {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 169, 164, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #009247, #046935);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

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

.icon-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x-icon) var(--mouse-y-icon),
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 40%,
        transparent 100%
    );
    opacity: 0;
    border-radius: 50%;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover .icon-hover-effect {
    opacity: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #00A9A4, #333493);
    box-shadow: 0 10px 25px rgba(0, 169, 164, 0.3);
}

.feature-icon i {
    font-size: 32px;
    color: white;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

/* .feature-card:hover .feature-icon i {
    transform: scale(1.1);
} */

.feature-card h3 {
    font-size: 1.3rem;
    color: #1a365d;
    margin-bottom: 15px;
    font-weight: 700;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

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

.feature-card:hover h3 {
    color: #333493;
}

.feature-card p {
    color: #5a6c7d;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    flex-grow: 1;
}

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

.feature-card:hover p {
    color: #4a5568;
}

/* Animation keyframes */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-150px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(150px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes titleSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-hover-effect {
        background: radial-gradient(
            400px circle at var(--mouse-x) var(--mouse-y),
            rgba(0, 169, 164, 0.1) 0%,
            rgba(51, 52, 147, 0.05) 40%,
            transparent 100%
        );
    }
}

@media (max-width: 768px) {
    #shurjopay-features-section .section-title.style1 h2 {
        font-size: 2rem;
    }
    
    #shurjopay-features-section .section-title.style1 p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .card-content {
        padding: 25px 20px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .feature-icon i {
        font-size: 28px;
    }
    
    .card-hover-effect {
        background: radial-gradient(
            300px circle at var(--mouse-x) var(--mouse-y),
            rgba(0, 169, 164, 0.1) 0%,
            rgba(51, 52, 147, 0.05) 40%,
            transparent 100%
        );
    }
}

@media (max-width: 576px) {
    .shurjopay-features {
        padding: 60px 0;
    }
    
    .section-title.style1 {
        margin-bottom: 40px;
    }
    
    #shurjopay-features-section .section-title.style1 h2 {
        font-size: 1.8rem;
    }
    
    .card-hover-effect {
        background: radial-gradient(
            250px circle at var(--mouse-x) var(--mouse-y),
            rgba(0, 169, 164, 0.1) 0%,
            rgba(51, 52, 147, 0.05) 40%,
            transparent 100%
        );
    }
}


/* Icon rotation on hover */

 @keyframes iconRotateOnceBack {
  0% {
    transform: rotate(0deg) scale(1);
  }
  60% {
    transform: rotate(360deg) scale(1.1);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

/* animation class */
.icon-rotate-once {
  animation: iconRotateOnceBack 0.7s ease-in-out;
}