/* Modern refinements for the lower home-page sections. Scoped to avoid layout regressions. */
.home-showcase-section {
    --home-blue: #0648b3;
    --home-blue-dark: #07366f;
    --home-red: #d13939;
    --home-ink: #11233f;
    --home-muted: #66738a;
    --home-surface: #ffffff;
    --home-soft: #f4f7fc;
    scroll-margin-top: 6rem;
}

.home-showcase-section .home-section-heading,
.home-showcase-section .title-skill,
.home-showcase-section .title-comment,
.home-showcase-section .title-customer {
    display: block;
    width: min(100%, 610px);
    color: var(--home-ink);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.home-showcase-section .home-section-heading__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: .85rem;
    padding: .35rem 1rem;
    color: var(--home-red);
    background: rgba(209, 57, 57, .09);
    border: 1px solid rgba(209, 57, 57, .16);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.home-showcase-section .home-section-heading > .home-section-heading__eyebrow {
    display: flex;
    width: fit-content;
    margin-inline: auto;
}

.home-showcase-section .home-section-heading h2 {
    position: relative;
    display: block;
    width: fit-content;
    margin-inline: auto !important;
    padding-bottom: .8rem;
    color: var(--home-blue-dark);
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 900;
    line-height: 1.45;
}

.home-showcase-section .home-section-heading h2::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 54px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--home-red), var(--home-blue));
    transform: translateX(50%);
}

.home-showcase-section .home-section-heading .home-section-heading__lead {
    width: min(100%, 540px);
    height: auto;
    margin: .9rem auto 0;
    color: var(--home-muted);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    font-size: .95rem;
    line-height: 1.9;
}

/* Skills */
#skills .main-sec {
    align-items: stretch;
    margin-bottom: 5rem !important;
    padding: 1rem !important;
    overflow: visible;
    background: linear-gradient(145deg, #fff 0%, #f4f8ff 100%);
    border: 1px solid rgba(6, 72, 179, .1);
    border-radius: 28px;
    box-shadow: 0 20px 55px rgba(13, 55, 112, .11);
}

#skills .main-sec > .col-4 {
    padding: 0;
}

#skills .main-sec > .col-4 > img {
    min-height: 100%;
    object-fit: cover;
    border-radius: 22px;
    filter: saturate(.92) contrast(1.03);
}

#skills .main-sec > .col-md-8 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .7rem;
}

#skills .top-caption {
    margin-bottom: 0;
    color: var(--home-red);
    font-weight: 700;
}

#skills .skill-us {
    margin-bottom: .25rem;
    color: var(--home-blue-dark);
    font-size: 1.45rem;
}

#skills .paint,
#skills .magic {
    justify-content: flex-start !important;
    gap: .25rem;
    padding: .85rem !important;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(6, 72, 179, .09);
    border-radius: 18px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

#skills .paint:hover,
#skills .magic:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 72, 179, .2);
    box-shadow: 0 12px 25px rgba(6, 72, 179, .08);
}

#skills .paint > div:first-child,
#skills .magic > div:first-child {
    display: grid;
    place-items: center;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    background: rgba(6, 72, 179, .08);
    border-radius: 16px;
}

#skills .paint-img,
#skills .magic-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

#skills .paint h6,
#skills .magic h6,
#skills .paint h3,
#skills .magic h3 {
    margin-bottom: .3rem;
    color: var(--home-blue-dark);
    line-height: 1.75 !important;
}

#skills .paint p,
#skills .magic p {
    margin-bottom: 0;
    color: #566b87;
    font-size: .82rem;
    line-height: 1.85;
}

#skills .abso-sec {
    right: 15%;
    bottom: -48px;
    width: 70%;
    padding: .85rem;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(6, 72, 179, .1);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(13, 55, 112, .16);
    backdrop-filter: blur(10px);
}

#skills .abso-sec > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 64px;
    padding-inline: .75rem;
}

#skills .abso-sec p {
    margin-bottom: .25rem;
    color: #385575;
    line-height: 1.55;
}

#skills .abso-sec p:last-child {
    color: var(--home-red);
    font-size: 1.15rem;
    font-weight: 900;
}

#skills .sub-abso {
    border-left-color: rgba(6, 72, 179, .14);
}

/* Testimonials */
#comment .slider-comment {
    position: relative;
    margin-top: 2.25rem !important;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(209, 57, 57, .09), transparent 30%),
        linear-gradient(180deg, #f7f9fd 0%, #eef4fc 100%);
    border-block: 1px solid rgba(6, 72, 179, .08);
}

#comment .myComment {
    overflow: hidden;
}

#comment .comment-wrapper {
    align-items: stretch;
    padding: 6.5rem 0 4.5rem;
}

#comment .swiper-slide {
    height: auto;
    padding: .75rem;
}

#comment .card-comment {
    width: 100%;
    min-height: 245px;
    padding: 68px 1.25rem 1.1rem;
    overflow: visible;
    color: var(--home-blue-dark);
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(6, 72, 179, .09);
    border-radius: 24px !important;
    box-shadow: 0 18px 38px rgba(27, 60, 105, .12) !important;
}

#comment .card-comment::before {
    content: "“";
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    color: rgba(209, 57, 57, .16);
    font-family: Georgia, serif;
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
}

#comment .profile-img {
    top: -48px;
    right: 50%;
    width: 96px !important;
    height: 96px !important;
    padding: 4px;
    background: #fff;
    border: 3px solid rgba(209, 57, 57, .86);
    box-shadow: 0 12px 28px rgba(20, 55, 105, .2);
    transform: translateX(50%);
}

#comment .profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

#comment .card-comment h3 {
    position: relative;
    margin-bottom: .65rem;
    color: var(--home-blue-dark);
    font-size: 1rem;
}

#comment .card-comment > p {
    min-height: 58px;
    margin-bottom: .65rem;
    color: #5e6c80;
    font-size: .79rem;
    line-height: 1.9;
}

#comment .card-comment .date-comment {
    color: #7b8799;
    font-size: .7rem;
}

#comment .card-comment .fa-star {
    color: #f2a900 !important;
    font-size: .68rem !important;
}

#comment .swiper-button-next,
#comment .swiper-button-prev {
    width: 42px !important;
    height: 42px !important;
    margin-top: -4px;
    background: #fff !important;
    color: var(--home-blue) !important;
    border: 1px solid rgba(6, 72, 179, .12);
    box-shadow: 0 9px 22px rgba(6, 72, 179, .14);
}

#comment .swiper-pagination-bullet-active {
    width: 20px;
    border-radius: 999px;
    background: var(--home-red);
}

/* Customers */
#customer > .container > .row.py-5 {
    align-items: center;
    margin: 1rem 0 0;
    padding: 1.25rem !important;
    overflow: hidden;
    background: linear-gradient(135deg, #f4f8ff 0%, #fff 62%);
    border: 1px solid rgba(6, 72, 179, .1);
    border-radius: 28px;
    box-shadow: 0 20px 55px rgba(13, 55, 112, .1);
}

#customer .customer-circle {
    display: grid;
    min-height: 310px;
    place-items: center;
    isolation: isolate;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 50%, rgba(6, 72, 179, .12), transparent 56%),
        rgba(255, 255, 255, .65);
}

#customer .bg-custommer {
    width: min(100%, 390px);
    height: auto;
}

#customer .imgs-customer {
    top: 0;
    right: 0;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    pointer-events: none;
}

#customer .info-customer {
    flex: 1 1 0;
    padding: 1.35rem 2rem;
}

#customer .info-customer h4, #customer .info-customer h3 {
    color: var(--home-blue-dark);
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.9 !important;
}

#customer .info-customer > p {
    color: #64738a;
    font-size: .92rem;
    line-height: 2 !important;
}

#customer .customer-slider {
    padding: .75rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(6, 72, 179, .09);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(13, 55, 112, .08);
}

#customer .myCustomer .swiper-slide {
    min-height: 76px;
    padding: .6rem;
    background: #fbfcff;
    border: 1px solid #eef2f8;
    border-radius: 14px;
}

#customer .myCustomer img {
    width: 100% !important;
    max-width: 120px;
    max-height: 58px;
    object-fit: contain;
    filter: grayscale(.18);
    transition: filter .2s ease, transform .2s ease;
}

#customer .myCustomer .swiper-slide:hover img {
    filter: grayscale(0);
    transform: scale(1.04);
}

@media (max-width: 991.98px) {
    .home-showcase-section {
        margin-block: 2.5rem !important;
        padding-top: 2rem !important;
    }

    #skills > .container {
        overflow: visible !important;
    }

    #skills .d-block.d-lg-none > .container {
        overflow: visible !important;
        padding-inline: .85rem;
    }

    #skills .d-block.d-lg-none .row.position-relative {
        display: block;
        margin: 0;
        padding: .65rem;
        overflow: visible;
        background: linear-gradient(145deg, #fff, #f4f8ff);
        border: 1px solid rgba(6, 72, 179, .1);
        border-radius: 24px;
        box-shadow: 0 16px 38px rgba(13, 55, 112, .1);
    }

    #skills .d-block.d-lg-none .row.position-relative > .col-7 {
        width: 100%;
        padding: 0;
    }

    #skills .d-block.d-lg-none .row.position-relative > .col-7 img {
        width: 100%;
        height: 245px !important;
        object-fit: cover;
        border-radius: 18px;
    }

    #skills .abso-mobile {
        position: relative;
        right: auto;
        bottom: auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: calc(100% - 1.2rem);
        margin: -34px auto 0;
        padding: .55rem;
        background: rgba(255, 255, 255, .96);
        border: 1px solid rgba(6, 72, 179, .1);
        border-radius: 18px;
        box-shadow: 0 14px 32px rgba(13, 55, 112, .15);
        backdrop-filter: blur(9px);
    }

    #skills .sub-absomobile,
    #skills .sub-2abso {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        padding: .4rem;
        border-bottom: 0;
        border-left: 1px solid rgba(6, 72, 179, .12);
        font-size: .68rem;
        line-height: 1.55;
    }

    #skills .sub-2abso {
        border-left: 0;
    }

    #skills .abso-mobile p:last-child {
        margin-top: .25rem !important;
        color: var(--home-red);
        font-size: .95rem;
    }

    #skills .d-block.d-lg-none .col-12.mt-2 {
        padding-inline: .2rem !important;
    }

    #customer > .container > .row.py-5 {
        padding: .85rem !important;
    }

    #customer .customer-circle {
        min-height: 250px;
        margin-bottom: .5rem;
    }

    #customer .info-customer {
        padding: 1.2rem .85rem;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .home-showcase-section .container {
        padding-inline: 1rem;
    }

    .home-showcase-section .home-section-heading__eyebrow {
        margin-bottom: .65rem;
        font-size: .72rem;
    }

    .home-showcase-section .home-section-heading h2 {
        font-size: 1.45rem;
    }

    .home-showcase-section .home-section-heading .home-section-heading__lead {
        margin-top: .75rem;
        font-size: .84rem;
        line-height: 1.8;
    }

    #skills .d-block.d-lg-none {
        margin-top: .75rem !important;
    }

    #skills .top-caption,
    #skills .skill-us {
        text-align: center;
    }

    #skills .paint,
    #skills .magic {
        align-items: flex-start !important;
        padding: .75rem !important;
    }

    #skills .paint > div:first-child,
    #skills .magic > div:first-child {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }

    #skills .paint-img,
    #skills .magic-img {
        width: 29px;
        height: 29px;
    }

    #skills .paint > div:last-child,
    #skills .magic > div:last-child {
        min-width: 0;
        padding-inline: .65rem !important;
    }

    #skills .paint p,
    #skills .magic p {
        font-size: .76rem;
        line-height: 1.75;
    }

    #comment .slider-comment {
        margin-top: 1.5rem !important;
        padding-block: 1.25rem !important;
    }

    #comment .slider-comment > .container {
        padding-inline: .65rem;
    }

    #comment .slider-comment .row.pb-5 {
        padding-bottom: 1rem !important;
    }

    #comment .slider-comment .col-10 {
        width: 100%;
    }

    #comment #carouselcomment {
        padding: 0 2rem 2.5rem;
    }

    #comment .carousel-inner {
        overflow: visible;
    }

    #comment .carousel-item {
        padding-top: 4.8rem !important;
    }

    #comment .card-comment {
        min-height: 265px;
        padding: 64px 1rem 1rem;
    }

    #comment .card-comment > p {
        min-height: auto;
        font-size: .78rem;
    }

    #comment .carousel-control-prev,
    #comment .carousel-control-next {
        top: 50%;
        width: 36px;
        height: 36px;
        padding: .6rem;
        background: #fff;
        border: 1px solid rgba(6, 72, 179, .12);
        border-radius: 50%;
        box-shadow: 0 7px 18px rgba(6, 72, 179, .14);
        opacity: 1;
        transform: translateY(-50%);
    }

    #comment .carousel-indicators {
        bottom: .3rem;
        gap: .2rem;
        margin-bottom: 0;
    }

    #comment .carousel-indicators [data-bs-target] {
        width: 7px;
        height: 7px;
        margin: 0 2px;
        background-color: var(--home-blue);
        border: 0;
        border-radius: 999px;
    }

    #comment .carousel-indicators .active {
        width: 20px;
        background-color: var(--home-red);
    }

    #customer > .container > .row.py-5 {
        margin-inline: 0;
        border-radius: 22px;
    }

    #customer .customer-circle {
        min-height: 210px;
    }

    #customer .bg-custommer {
        width: min(84%, 300px);
    }

    #customer .info-customer h4, #customer .info-customer h3 {
        font-size: 1.08rem;
    }

    #customer .info-customer > p {
        margin-block: .8rem 1.2rem !important;
        font-size: .82rem;
        line-height: 1.9 !important;
    }

    #customer .customer-slider {
        padding: .55rem;
        border-radius: 15px;
    }

    #customer .myCustomer .swiper-slide {
        min-height: 70px;
        padding: .5rem;
    }
}

@media (max-width: 430px) {
    #skills .d-block.d-lg-none .row.position-relative > .col-7 img {
        height: 210px !important;
    }

    #skills .abso-mobile {
        grid-template-columns: 1fr;
        width: calc(100% - 1rem);
        margin-top: -26px;
    }

    #skills .sub-absomobile,
    #skills .sub-2abso {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: .6rem;
        min-height: 42px;
        border-left: 0;
        border-bottom: 1px solid rgba(6, 72, 179, .1);
        text-align: right;
    }

    #skills .sub-2abso {
        border-bottom: 0;
    }

    #skills .abso-mobile p:last-child {
        margin-top: 0 !important;
    }

    #comment #carouselcomment {
        padding-inline: 1.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #skills .paint,
    #skills .magic,
    #customer .myCustomer img {
        transition: none;
    }

    #customer .animate-vibrate {
        animation: none;
    }
}

/* Theme images carry width/height (no layout shift); the CSS width decides, the height follows. */
.img-auto { height: auto; }
