.features {
    background: linear-gradient(135deg, #0b1020, #1d4ed8, #7c3aed, #111827);
    min-height: 800px;
    height: auto;
    border-radius: 40px;
    margin: 60px 20px 0;
    padding: 40px 20px 65px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

/* optional glow layer */
.features::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    top: -60px;
    right: -60px;
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.15);
    filter: blur(50px);
    pointer-events: none;
}

.features::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    bottom: -60px;
    left: -60px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.12);
    filter: blur(50px);
    pointer-events: none;
}

/* heading container */
.feature-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 35px;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* heading title */
.features .features-container .feature-heading h1 {
    color: #ffffff;
    font-weight: 800;
    font-size: 36px;
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    letter-spacing: 0.5px;
}

/* top button */
.feature-heading button {
    height: 50px;
    width: 130px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.35s ease;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.28);
    position: static;
}

.feature-heading button:hover {
    background: linear-gradient(135deg, #06b6d4, #4f46e5);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.28);
}

/* cards row */
.features .features-container .row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin: 20px 10px 0;
    position: relative;
    z-index: 2;
}

/* feature card */
.features .features-container .row .col {
    width: 220px;
    min-height: 320px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: all 0.35s ease;
}

.features .features-container .row .col:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.35),
        0 0 22px rgba(236, 72, 153, 0.18);
    border-color: rgba(236, 72, 153, 0.22);
}

/* card image */
.features .features-container .row .col img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    transition: all 0.35s ease;
}

.features .features-container .row .col:hover img {
    transform: scale(1.04);
}

/* content area */
.features .features-container .row .col .feature {
    text-align: center;
    margin-top: 16px;
}

/* feature title */
.features .features-container .row .col .feature a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
}

/* feature button */
.features .features-container .row .col .feature button {
    height: 44px;
    width: 130px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25);
}

.features .features-container .row .col .feature button:hover {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

/* responsive */
@media (max-width: 768px) {
    .features {
        border-radius: 28px;
        margin: 40px 10px 0;
        padding: 30px 12px 50px;
    }

    .features .features-container .feature-heading h1 {
        font-size: 28px;
    }

    .features .features-container .row .col {
        width: 100%;
        max-width: 300px;
    }

    .feature-heading {
        justify-content: center;
        text-align: center;
    }
}