/* Enhanced Services Section Styling for ByteServices */

/* Services Section Background */
.apps-craft-feature-section {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.apps-craft-feature-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(120deg, rgba(248, 249, 250, 0.8) 0%, rgba(248, 249, 250, 0.4) 100%);
    z-index: 1;
}

.apps-craft-feature-section .container {
    position: relative;
    z-index: 2;
}

/* Section Heading Enhancement */
.apps-craft-feature-section .apps-craft-section-heading h2 {
    position: relative;
    margin-bottom: 50px;
    padding-bottom: 15px;
}

.apps-craft-feature-section .apps-craft-section-heading h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-image: linear-gradient(to right, #f2504d, #fa326f);
    border-radius: 2px;
}

/* Service Cards Enhancement */
#apps-craft-feature .apps-craft-feature-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 30px;
    margin: 0;
    padding: 0;
    height: auto;
}

#apps-craft-feature .apps-craft-single-feature {
    width: 100%;
    text-align: center;
    transition: transform 0.3s ease;
    padding: 0;
    margin: 0;
}

#apps-craft-feature .apps-craft-feature-content {
    background-color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 30px 25px;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

/* Icon Enhancement */
#apps-craft-feature .apps-craft-feature-content i {
    color: #FFFFFF;
    font-size: 2.5em;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-image: linear-gradient(135deg, #f2504d 0%, #fa326f 100%);
    box-shadow: 0 10px 20px rgba(250, 50, 111, 0.3);
    line-height: 80px;
    display: inline-block;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

#apps-craft-feature .apps-craft-feature-content i::before {
    position: relative;
    z-index: 2;
}

#apps-craft-feature .apps-craft-feature-content i::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, #fa326f 0%, #f2504d 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* Text Enhancement */
#apps-craft-feature .apps-craft-feature-content h3 {
    margin: 0;
    color: #333333;
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#apps-craft-feature .apps-craft-feature-content p {
    margin: 0;
    color: #666666;
    line-height: 1.6;
    transition: all 0.4s ease;
}

/* Hover Effects */
#apps-craft-feature .apps-craft-feature-content::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(135deg, #f2504d 0%, #fa326f 100%);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
    border-radius: 8px;
}

#apps-craft-feature .apps-craft-feature-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 3;
}

#apps-craft-feature .apps-craft-feature-content:hover::before {
    opacity: 1;
}

#apps-craft-feature .apps-craft-feature-content:hover h3,
#apps-craft-feature .apps-craft-feature-content:hover p {
    color: #FFFFFF;
}

#apps-craft-feature .apps-craft-feature-content:hover i {
    background-image: none;
    background-color: #ffffff;
    color: #fa326f;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

/* Feature Image Enhancement */
.apps-craft-feature-img {
    position: relative;
    margin-top: 80px;
    transition: all 0.5s ease;
}

.apps-craft-feature-img figure {
    position: relative;
    display: inline-block;
}

.apps-craft-feature-ico {
    position: absolute;
    transition: all 0.5s ease !important;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.apps-craft-feature-ico img {
    transition: all 0.3s ease;
}

.apps-craft-feature-ico:hover img {
    transform: scale(1.15);
}

/* Equal Height Row Fix */
.row-eq-height {
    display: flex;
    flex-wrap: wrap;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    #apps-craft-feature .apps-craft-feature-container {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
    
    #apps-craft-feature .apps-craft-feature-content {
        height: 100%;
        min-height: 220px;
    }
}

@media (max-width: 767px) {
    .apps-craft-feature-img {
        margin-bottom: 50px;
    }
    
    .apps-craft-feature-section .apps-craft-section-heading h2 {
        font-size: 3em;
    }
}
