/* =========================
   HORIZONTAL FEATURES
========================= */

#features {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    /* SPACE FOR ABSOLUTE TITLE */
    padding-top: 240px;
}


/* Track wrapper */
.features-track-wrapper {
    overflow: hidden;
    flex: 1;

    height: 100%;
    display: flex;
    align-items: center;
}

/* Horizontal track */
.features-track {
    display: flex;
    gap: 4rem;
    padding-left: 15vw;
    padding-right: 15vw;
    will-change: transform;
}

/* =========================
   FEATURE CARD
========================= */

.feature-panel {
    min-width: 450px;
    max-width: 450px;

    background: linear-gradient(180deg,
            #ffffff 0%,
            #f7fbff 60%,
            #f1fbff 100%);

    border-radius: 28px;
    border-left: 3px solid rgba(87, 211, 241, 0.8);
    overflow: hidden;

    display: flex;
    flex-direction: column;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.05),
        0 30px 60px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);

    transition: box-shadow 0.45s ease;
}

/* Image */
.feature-image {
    height: 200px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Content */
.feature-content {
    padding: 1.5rem 1.8rem 2rem;
}

.feature-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    color: #111827;
}

.feature-content p {
    font-size: 1rem;
    line-height: 1.65;
    color: #6a6b6d;
}

.feature-content h3::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 0.6rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #3b82f6);
}



/* =========================
   MOBILE EXPERIENCE
========================= */


@media (max-width: 1366px),
(max-height: 820px) {

    .features-track {
        gap: 3rem;
        padding-left: 10vw;
        padding-right: 10vw;
    }

    .feature-panel {
        min-width: 380px;
        max-width: 380px;
    }

    .feature-image {
        height: 180px;
    }

    .feature-content {
        padding: 1.3rem 1.5rem 1.6rem;
    }

    .feature-content h3 {
        font-size: 1.35rem;
    }

    .feature-content p {
        font-size: 0.95rem;
        line-height: 1.55;
    }
}


@media (max-height: 820px) {
    #features {
        padding-top: 200px;
    }
}

@media (max-height: 720px) {
    #features {
        padding-top: 170px;
    }
}

@media (max-width: 1024px) {
    #features {
        padding-top: 180px;
    }
}

@media (max-width: 768px) {
    #features {
        min-height: auto;
        padding-top: 7rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 1024px) {

    .features-track {
        gap: 2.25rem;
        padding-left: 6vw;
        padding-right: 6vw;
    }

    .feature-panel {
        min-width: 360px;
        max-width: 360px;
        height: 450px;
    }

    .features-title {
        margin-top: 10%;
    }

    .feature-image {
        height: 150px;
    }

    .feature-content h3 {
        font-size: 1.4rem;
    }

    .feature-content p {
        font-size: 1rem;
    }
}

@media (max-height: 720px) {
    body {
        overflow-x: hidden;
    }



    .features-track {
        gap: 2.5rem;
        padding-left: 8vw;
        padding-right: 8vw;
    }

    .feature-panel {
        min-width: 420px;
        max-width: 420px;
        height: 300px;
    }

    .feature-image {
        height: 180px !important;
        object-fit: cover !important;
    }

    .feature-content {
        padding: 1.2rem 1.4rem 1.4rem;
    }

    .feature-content h3 {
        font-size: 1rem;
    }

    .feature-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {


    .features-track-wrapper {
        overflow: visible;
    }

    .features-track {
        flex-direction: column;
        transform: none !important;
        gap: 1.75rem;
        padding: 1.5rem 1rem;
        margin-top: 50%;
    }

    .feature-panel {
        min-width: 100%;
        max-width: 100%;
        border-left: none;
        border-radius: 22px;
    }

    .feature-image {
        height: 160px;
    }

    .feature-content {
        padding: 1.25rem 1.25rem 1.6rem;
    }

    .feature-content h3 {
        font-size: 1.15rem;
    }

    .feature-content p {
        font-size: 0.9rem;
    }
}