/* ===========================
   Features Section
=========================== */

.features-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #eef4ff 100%);
}

.features-section::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    top: -180px;
    right: -180px;
    background: rgba(37, 99, 235, .08);
    border-radius: 50%;
    filter: blur(100px);
}

.features-section::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    left: -120px;
    bottom: -120px;
    background: rgba(59, 130, 246, .08);
    border-radius: 50%;
    filter: blur(100px);
}

/* ===========================
   Section Header
=========================== */

.section-header {
    position: relative;
    text-align: center;
    margin-bottom: 70px;
    z-index: 2;
}

.section-header span {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0f172a;
}

.section-header p {
    max-width: 720px;
    margin: auto;
    color: #64748b;
    font-size: 16px;
    line-height: 2;
}

/* ===========================
   Feature Card
=========================== */

.feature-card {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);

    border: 1px solid #e5e7eb;
    border-radius: 24px;

    padding: 45px 30px;

    text-align: center;

    height: 100%;

    transition: .45s ease;

    box-shadow:
        0 5px 15px rgba(15,23,42,.04);

    animation: fadeUp .8s both;
}

.feature-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        #2563eb,
        #3b82f6,
        #60a5fa
    );

    transform: scaleX(0);

    transition: .45s;

}

.feature-card::after {

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.45),
        transparent
    );

    transform: translateX(-120%);

    transition: .8s;

}

.feature-card:hover::before {

    transform: scaleX(1);

}

.feature-card:hover::after {

    transform: translateX(120%);

}

.feature-card:hover {

    transform: translateY(-12px);

    border-color: #3b82f6;

    box-shadow:
        0 25px 45px rgba(37,99,235,.18);

}

/* ===========================
   Icon
=========================== */

.feature-icon {

    width: 90px;
    height: 90px;

    margin: auto auto 25px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 38px;

    color: #fff;

    position: relative;

    overflow: hidden;

    background: linear-gradient(
        135deg,
        #2563eb,
        #3b82f6
    );

    transition: .5s;

    box-shadow:
        0 10px 25px rgba(37,99,235,.35);

}

.feature-icon::before {

    content: "";

    position: absolute;

    width: 140%;
    height: 140%;

    background:
        rgba(255,255,255,.18);

    transform:
        rotate(45deg);

    top: -140%;
    left: -140%;

    transition: .7s;

}

.feature-card:hover .feature-icon {

    transform:
        rotate(360deg)
        scale(1.08);

}

.feature-card:hover .feature-icon::before {

    top: 100%;
    left: 100%;

}

/* ===========================
   Text
=========================== */

.feature-card h4 {

    font-size: 24px;

    font-weight: 700;

    margin-bottom: 15px;

    color: #0f172a;

    transition: .3s;

}

.feature-card:hover h4 {

    color: #2563eb;

}

.feature-card p {

    color: #64748b;

    line-height: 2;

    font-size: 15px;

}

/* ===========================
   Equal Height
=========================== */

.row.g-4 > [class*="col-"]{

    display:flex;

}

.row.g-4 > [class*="col-"] > .feature-card{

    width:100%;

}

/* ===========================
   Animation
=========================== */

.features-section .col-lg-4:nth-child(1) .feature-card{
    animation-delay:.1s;
}

.features-section .col-lg-4:nth-child(2) .feature-card{
    animation-delay:.2s;
}

.features-section .col-lg-4:nth-child(3) .feature-card{
    animation-delay:.3s;
}

.features-section .col-lg-4:nth-child(4) .feature-card{
    animation-delay:.4s;
}

.features-section .col-lg-4:nth-child(5) .feature-card{
    animation-delay:.5s;
}

.features-section .col-lg-4:nth-child(6) .feature-card{
    animation-delay:.6s;
}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:
            translateY(40px);

    }

    to{

        opacity:1;

        transform:
            translateY(0);

    }

}

/* ===========================
   Responsive
=========================== */

@media(max-width:991px){

    .features-section{

        padding:70px 0;

    }

    .section-header{

        margin-bottom:50px;

    }

    .section-header h2{

        font-size:32px;

    }

    .feature-card{

        padding:35px 25px;

    }

    .feature-icon{

        width:75px;
        height:75px;

        font-size:30px;

    }

}

@media(max-width:576px){

    .section-header h2{

        font-size:28px;

    }

    .section-header p{

        font-size:15px;

    }

}