/* ========================================
   REDESIGNED SERVICE CARDS - MODERN STYLE
   ======================================== */

/* Main Service Area Styling */
.feature-area-1 {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.feature-area-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.feature-area-1 > .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Enhanced Service Cards */
.feature-card-redesigned {
    background: linear-gradient(145deg, #0471de 0%, #0369d1 50%, #0260c4 100%);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    min-height: 380px;
    max-height: 420px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(4, 113, 222, 0.4);
    box-shadow: 
        0 8px 30px rgba(4, 113, 222, 0.3),
        0 2px 8px rgba(4, 113, 222, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
}

.feature-card-redesigned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card-redesigned:hover::before {
    transform: scaleX(1);
}

.feature-card-redesigned:hover {
    transform: translateY(-12px) scale(1.02);
    background: linear-gradient(145deg, #0369d1 0%, #0260c4 50%, #0252b3 100%);
    box-shadow: 
        0 20px 40px rgba(4, 113, 222, 0.35),
        0 8px 16px rgba(4, 113, 222, 0.2);
    border-color: rgba(4, 113, 222, 0.6);
}

/* Service Icon Container */
.feature-icon-redesigned {
    width: 250px;
    height:250px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.feature-icon-redesigned::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0471de, #0369d1, #0260c4);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card-redesigned:hover .feature-icon-redesigned::before {
    opacity: 0.4;
}

.feature-card-redesigned:hover .feature-icon-redesigned {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
}

.service-icon-inner img {
    width:100px;
    height: 100px;
    padding: 12px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0.8);
}

.feature-card-redesigned:hover .service-icon-inner img {
    transform: scale(1.1);
    filter: brightness(1) saturate(1.2);
}

/* Service Content */
.service-content-redesigned {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    align-items: center;
}

.service-title-redesigned {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.3;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    text-align: center;
}

.service-title-redesigned a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.feature-card-redesigned:hover .service-title-redesigned a {
    color: #f8fafc;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.service-description-redesigned {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 26px;
    flex: 1;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feature-card-redesigned:hover .service-description-redesigned {
    color: rgba(255, 255, 255, 1);
}

/* Modern Action Button */
.service-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: auto;
    align-self: center;
}

.service-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.service-action-btn:hover::before {
    left: 100%;
}

.service-action-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.service-action-btn .btn-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.service-action-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* View All Services Button */
.view-all-services-btn {
    background: #1d262e;
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid #1d262e;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 40px;
}

.view-all-services-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.view-all-services-btn:hover::before {
    left: 100%;
}

.view-all-services-btn:hover {
    background: #2d3748;
    border-color: #2d3748;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(29, 38, 46, 0.4);
    color: white;
}

.view-all-services-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Section Title Styling */
.feature-area-1 .section-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.feature-area-1 .section-title h2 {
    color: white;
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-area-1 .section-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 400;
}
/* Responsive Design */
@media (max-width: 768px) {
    .feature-card-redesigned {
        min-height: 260px;
        max-height: 300px;
        padding: 20px 16px;
        margin-bottom: 20px;
    }
    
    .feature-icon-redesigned {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .feature-title-redesigned {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .feature-description-redesigned {
        font-size: 13px;
        margin-bottom: 16px;
        -webkit-line-clamp: 2;
    }
    
    .feature-btn-redesigned {
        padding: 8px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .feature-card-redesigned {
        min-height: 240px;
        max-height: 280px;
        padding: 16px 12px;
    }
    
    .feature-icon-redesigned {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }
    
    .feature-title-redesigned {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .feature-description-redesigned {
        font-size: 12px;
        margin-bottom: 14px;
        -webkit-line-clamp: 2;
    }
    
    .feature-btn-redesigned {
        padding: 7px 18px;
        font-size: 11px;
    }
}

/* Grid Layout Fixes */
.feature-static-wrap {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)) !important;
    gap: 40px !important;
    align-items: stretch !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

@media (max-width: 1200px) {
    .feature-static-wrap {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
        gap: 35px !important;
    }
}

@media (max-width: 768px) {
    .feature-static-wrap {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 25px !important;
    }
    
    .feature-area-1 {
        padding: 60px 0;
    }
    
    .feature-area-1 > .container {
        padding: 0 20px;
    }
    
    .feature-card-redesigned {
        min-height: 320px;
        max-height: 360px;
        padding: 30px 25px;
    }
    
    .feature-icon-redesigned {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .feature-title-redesigned {
        font-size: 20px;
        margin-bottom: 14px;
    }
    
    .feature-description-redesigned {
        font-size: 15px;
        margin-bottom: 20px;
        -webkit-line-clamp: 3;
    }
    
    .feature-btn-redesigned {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .feature-static-wrap {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .feature-area-1 {
        padding: 40px 0;
    }
    
    .feature-area-1 > .container {
        padding: 0 15px;
    }
    
    .feature-card-redesigned {
        min-height: 280px;
        max-height: 320px;
        padding: 24px 20px;
        max-width: 100%;
    }
    
    .feature-icon-redesigned {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }
    
    .feature-title-redesigned {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .feature-description-redesigned {
        font-size: 14px;
        margin-bottom: 18px;
        -webkit-line-clamp: 3;
    }
    
    .feature-btn-redesigned {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.feature-card-redesigned:nth-child(odd) {
    animation: float 6s ease-in-out infinite;
}

.feature-card-redesigned:nth-child(even) {
    animation: float 6s ease-in-out infinite reverse;
}