/* =========================================================
   N-FLUX ABOUT / WHY N-FLUX
========================================================= */

.about-section {

    position: relative;

    padding:
        var(--section-space-lg)
        0;

    overflow: hidden;

    background: var(--bg);

}


/* =========================================================
   SUBTLE BACKGROUND
========================================================= */

.about-section::before {

    content: "";

    position: absolute;

    width: 420px;

    height: 420px;

    top: -180px;

    left: -180px;

    border-radius: 50%;

    background:
        rgba(22,141,226,.055);

    pointer-events: none;

}


.about-section::after {

    content: "";

    position: absolute;

    width: 320px;

    height: 320px;

    right: -160px;

    bottom: -150px;

    border-radius: 50%;

    background:
        rgba(53,168,83,.045);

    pointer-events: none;

}


/* =========================================================
   CONTAINER
========================================================= */

.about-container {

    position: relative;

    z-index: 2;

}


/* =========================================================
   MAIN GRID
========================================================= */

.about-grid {

    display: grid;

    grid-template-columns:
        minmax(0, .95fr)
        minmax(420px, 1fr);

    align-items: center;

    gap: clamp(40px, 7vw, 90px);

}


/* =========================================================
   CONTENT
========================================================= */

.about-content {

    max-width: 620px;

}


/* =========================================================
   EYEBROW
========================================================= */

.section-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 14px;

    color: var(--primary);

    font-size: .72rem;

    font-weight: 800;

    letter-spacing: .10em;

    text-transform: uppercase;

}


.section-eyebrow::before {

    content: "";

    width: 25px;

    height: 2px;

    border-radius: var(--radius-pill);

    background: var(--accent);

}


/* =========================================================
   HEADING
========================================================= */

.section-heading {

    margin: 0 0 18px;

    color: var(--text);

    font-size:
        clamp(
            2rem,
            4vw,
            3.35rem
        );

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -.045em;

}


.section-heading span {

    color: var(--primary);

}


/* =========================================================
   DESCRIPTION
========================================================= */

.about-description {

    max-width: 590px;

    margin: 0 0 22px;

    color: var(--text-muted);

    font-size: .96rem;

    line-height: 1.8;

}


/* =========================================================
   BENEFITS
========================================================= */

.about-benefits {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px 18px;

    margin-bottom: 26px;

}


.about-benefit {

    display: flex;

    align-items: center;

    gap: 9px;

    color: var(--text-soft);

    font-size: .85rem;

    font-weight: 700;

}


.about-benefit i {

    color: var(--accent);

    font-size: .92rem;

}


/* =========================================================
   VISUAL
========================================================= */

.about-visual {

    position: relative;

    min-height: 500px;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* =========================================================
   IMAGE FRAME
========================================================= */

.about-image-frame {

    position: relative;

    width: min(100%, 510px);

    aspect-ratio: 1 / 1;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border-radius: 32px;

    background:
        linear-gradient(
            145deg,
            var(--primary-light),
            var(--surface)
        );

    border: 1px solid var(--border);

    box-shadow: var(--shadow-lg);

}


/* =========================================================
   IMAGE
========================================================= */

.about-image {

    position: relative;

    z-index: 2;

    width: 88%;

    height: 88%;

    object-fit: cover;

    border-radius: 25px;

    transition:
        transform var(--transition);

}


.about-image-frame:hover
.about-image {

    transform: scale(1.025);

}


/* =========================================================
   IMAGE DECORATION
========================================================= */

.about-image-ring {

    position: absolute;

    width: 76%;

    height: 76%;

    border: 1px solid
        rgba(22,141,226,.16);

    border-radius: 50%;

    animation:
        aboutRotate 18s linear infinite;

}


.about-image-ring::before {

    content: "";

    position: absolute;

    width: 10px;

    height: 10px;

    top: 3%;

    right: 14%;

    border-radius: 50%;

    background: var(--water);

    box-shadow:
        0 0 0 7px
        rgba(22,141,226,.10);

}


/* =========================================================
   FLOATING INFO CARD
========================================================= */

.about-floating-card {

    position: absolute;

    z-index: 5;

    left: -25px;

    bottom: 35px;

    display: flex;

    align-items: center;

    gap: 11px;

    min-width: 190px;

    padding: 13px 15px;

    background:
        rgba(255,255,255,.90);

    border: 1px solid var(--border);

    border-radius: 17px;

    box-shadow: var(--shadow-md);

    backdrop-filter: blur(15px);

    -webkit-backdrop-filter: blur(15px);

    animation:
        aboutCardFloat 5s ease-in-out infinite;

}


[data-theme="dark"] .about-floating-card {

    background:
        rgba(13,27,45,.90);

}


.about-floating-icon {

    width: 40px;

    height: 40px;

    display: grid;

    place-items: center;

    flex: 0 0 40px;

    border-radius: 12px;

    background: var(--accent-light);

    color: var(--accent);

}


.about-floating-content {

    display: flex;

    flex-direction: column;

}


.about-floating-title {

    color: var(--text);

    font-size: .76rem;

    font-weight: 800;

}


.about-floating-text {

    margin-top: 3px;

    color: var(--text-muted);

    font-size: .61rem;

    font-weight: 600;

}


/* =========================================================
   TOP LABEL
========================================================= */

.about-top-label {

    position: absolute;

    z-index: 5;

    top: 40px;

    right: -15px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 9px 13px;

    border-radius: var(--radius-pill);

    background: var(--primary);

    color: #fff;

    font-size: .67rem;

    font-weight: 800;

    box-shadow: var(--shadow-md);

}


.about-top-label i {

    color: #fff;

}


/* =========================================================
   STATS
========================================================= */

.about-stats {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;

    margin-top: 35px;

    padding-top: 25px;

    border-top: 1px solid var(--border);

}


.about-stat {

    padding-right: 15px;

    border-right: 1px solid var(--border);

}


.about-stat:last-child {

    border-right: 0;

    padding-right: 0;

}


.about-stat-number {

    display: block;

    margin-bottom: -5px;

    color: var(--primary);

    font-size: 1.45rem;

    font-weight: 800;

    letter-spacing: -.03em;

}


.about-stat-label {

    color: var(--text-muted);

    font-size: .65rem;

    font-weight: 700;

}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes aboutRotate {

    from {

        transform: rotate(0deg);

    }

    to {

        transform: rotate(360deg);

    }

}


@keyframes aboutCardFloat {

    0%,
    100% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(-8px);

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .about-grid {

        grid-template-columns:
            1fr 1fr;

        gap: 35px;

    }


    .about-visual {

        min-height: 430px;

    }


    .about-floating-card {

        left: -10px;

    }


    .about-top-label {

        right: -5px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .about-section {

        padding:
            var(--section-space)
            0;

    }


    .about-grid {

        display: flex;

        flex-direction: column;

        gap: 32px;

    }


    .about-content {

        max-width: none;

        text-align: center;

    }


    .section-eyebrow {

        justify-content: center;

        margin-bottom: 11px;

        font-size: .8rem;

    }


    .section-heading {

        margin-bottom: 14px;

        font-size:
            clamp(
                2rem,
                9vw,
                2.7rem
            );

    }


    .about-description {

        margin-inline: auto;

        font-size: .88rem;

        line-height: 1.7;

    }


    .about-benefits {

        text-align: left;

        grid-template-columns:
            1fr 1fr;

        gap: 9px;

        margin-bottom: 22px;

    }


    .about-benefit {

        font-size: .69rem;

    }


    .about-content .btn {

        min-height: 48px;

    }


    .about-visual {

        width: 100%;

        min-height: auto;

        padding: 10px 8px 35px;

    }


    .about-image-frame {

        width: 100%;

        max-width: 390px;

        border-radius: 25px;

    }


    .about-image {

        border-radius: 20px;

    }


    .about-floating-card {

        left: 0;

        bottom: 5px;

        min-width: 175px;

        padding: 10px 12px;

    }


    .about-floating-icon {

        width: 35px;

        height: 35px;

        flex-basis: 35px;

    }


    .about-floating-title {

        font-size: .69rem;

    }


    .about-floating-text {

        font-size: .57rem;

    }


    .about-top-label {

        top: 20px;

        right: 0;

        padding: 8px 11px;

        font-size: .6rem;

    }


    .about-stats {

        margin-top: 28px;

        padding-top: 20px;

    }


    .about-stat-number {

        font-size: 1.15rem;

    }


    .about-stat-label {

        font-size: .57rem;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .about-benefit {

        font-size: .64rem;

    }


    .about-floating-card {

        transform: scale(.92);

        transform-origin: left bottom;

    }


    .about-top-label {

        transform: scale(.92);

        transform-origin: right top;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .about-image-ring,
    .about-floating-card {

        animation: none !important;

    }

}