/* Features */

#features .feature-li {
    list-style: none;
}

.feature-li .icon-box {
    position: relative;
}
.feature-li .content {
    background-color: #EAEAEA;
    border-radius: 20px;
    position: relative;
    transition: background-color 0.3s;
    z-index: 2;
    padding: 4rem 2rem 3rem;
}
.feature-li:hover .content {
    background-color: var(--primary);
}
.feature-li .content > * {
    color: #1A1E25;
}
.feature-li:hover .content > * {
    color: var(--bodyTextColorWhite);
}
.feature-li:hover .feature-btn::before {
    background-color: var(--bodyTextColorWhite);
}
.feature-li .icon-box {
    display: inline-block;
    background-color: var(--primaryDark);
    padding: 1.25rem;
    border-radius: 20px;
    z-index: 4;
    transform: translateY(50%);
    margin-left: 2rem;
}
.feature-btn {
    text-decoration: none;
    position: relative;
    z-index: 10;
    transition: color 0.3s;
}
.feature-btn:hover {
    color: var(--bodyTextColorWhite);
}
.feature-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: #1A1E25;
    z-index: -1;
    border-radius: 5px;
    transition: left 0.3s, bottom 0.3s, height 0.3s, width 0.3s, background-color 0.3s;
}
.feature-btn:hover::before {
    content: '';
    position: absolute;
    width: 110%;
    bottom: -5%;
    left: -5%;
    height: 110%;
    background-color: var(--primaryLight) !important;
}

.feature-li .feature-bg {
    z-index: 2;
    position: absolute;
    right: 0;
    bottom: -100%;
    filter: brightness(10);
    opacity: 0;
    transform: rotate(-15deg) translateX(20%);
    transition: opacity 0.3s, bottom 0.3s;
    pointer-events: none;

}
.feature-li:hover .feature-bg {
    bottom: -30%;
    filter: brightness(10);
    opacity: 0.1;
}

#portfolio {
    background-color: var(--primary);
}

@media (min-width: 64rem) {
    #features .feature-ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
        gap: 1rem;
    }

    #features .feature-ul .feature-li {
        display: flex;
        flex-direction: column;
    }

    #features .feature-ul .feature-li .content {
        height: 100%;
    }

    #features .feature-ul .feature-li .icon-box {
        width: 94px;
    }

    #features .feature-ul .feature-li .feature-btn {
        margin-bottom: 0;
    }

    #portfolio .header {
        display: flex;
    }
    #portfolio .header .text-contents {
        width: 50%;
    }
    #portfolio .header .text {
        width: 50%;
        margin-top: auto;
    }
    #portfolio .portfolio-ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

}