/* Modern Service Cards - Redesigned Layout */

.services-section-redesigned {
    position: relative;
    padding: 100px 0 70px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.services-section-redesigned .sec-title {
    margin-bottom: 60px;
}

/* Service Card Container */
.service-card-modern {
    position: relative;
    margin-bottom: 30px;
    perspective: 1000px;
}

.service-card-modern .inner-box {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-modern .inner-box:hover {
    transform: translateY(-15px) rotateX(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Image Container */
.service-card-modern .image-box {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.service-card-modern .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-modern .inner-box:hover .image-box img {
    transform: scale(1.1);
}

/* Gradient Overlay */
.service-card-modern .image-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    transition: opacity 0.3s ease;
}

.service-card-modern .inner-box:hover .image-box::after {
    opacity: 0.8;
}

/* Category Badge */
.service-card-modern .category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.service-card-modern .inner-box:hover .category-badge {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Category Colors - All Orange Theme */
.category-crop,
.category-seeds,
.category-nutrition,
.category-equipment,
.category-health,
.category-animal {
    background: linear-gradient(135deg, #ff5f15 0%, #ff8c42 100%);
}

/* Icon Box - Moved to header */
.service-card-modern .icon-header {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ff5f15;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card-modern .inner-box:hover .icon-header {
    transform: scale(1.15) rotate(5deg);
    background: #ff5f15;
    color: #fff;
}

/* Content Area */
.service-card-modern .content {
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
}

/* Title */
.service-card-modern h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

.service-card-modern h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff5f15 0%, #ff8c42 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.service-card-modern .inner-box:hover h4::after {
    width: 100%;
}

/* Description Text */
.service-card-modern .text {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card-modern .text p {
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Feature List */
.service-card-modern .features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.service-card-modern .features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.service-card-modern .features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #ff5f15;
    font-size: 12px;
}



/* Responsive Adjustments */
@media (max-width: 1199px) {
    .service-card-modern .image-box {
        height: 200px;
    }
    
    .service-card-modern h4 {
        font-size: 20px;
    }
}

@media (max-width: 991px) {
    .services-section-redesigned {
        padding: 80px 0 50px;
    }
    
    .service-card-modern {
        margin-bottom: 25px;
    }
}

@media (max-width: 767px) {
    .service-card-modern .image-box {
        height: 180px;
    }
    
    .service-card-modern .content {
        padding: 25px 20px;
    }
    
    .service-card-modern h4 {
        font-size: 18px;
    }
    
    .service-card-modern .icon-header {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card-modern.wow {
    animation: fadeInUp 0.6s ease forwards;
}

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