/* =========================================
   VALUE SECTION
   ========================================= */
.value-section {
    width: 100%;
}

.value-section__wrapper {
    display: flex;
    /* align-items: center; */
    gap: 207px;
}

/* ---- Content ---- */
.value-section__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 624px;
}

.value-section__title {
    color: var(--secondary-black-color);
    margin: 0;
}

.value-section__divider {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--yellow);
    margin-block: 40px;
}

.value-section__text {
    margin: 0;
    color: var(--text-light-gray);
}

/* ---- Media ---- */
.value-section__media {
    width: 100%;
    height: 100%;
}

.value-section__figure {
    width: 100%;
    /* aspect-ratio: 4 / 3; */
    margin: 0;
    overflow: hidden;
}

.value-section__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* =========================================
   PORTFOLIO GRID SECTION
   ========================================= */
.portfolio-grid {
    width: 100%;
    background-color: var(--text-cream);
}

.portfolio-grid__header {
    margin-bottom: 64px;
}

.portfolio-grid__title {
    margin: 0;
    color: var(--secondary-black-color);
}

.portfolio-grid__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 64px;
}

/* ---- Card ---- */
.portfolio-card {
    display: flex;
    flex-direction: column;
}

.portfolio-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 13.1;
    overflow: hidden;
}

.portfolio-card__figure {
    width: 100%;
    height: 100%;
    margin: 0;
}

.portfolio-card__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card__figure img {
    transform: scale(1.05);
}

/* ---- Logo Badge ---- */
.portfolio-card__badge {
    position: absolute;
    top: 0;
    right: 80px;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    /* width: clamp(70px, 8vw, 96px); */
    /* aspect-ratio: 1.4 / 1; */
    padding: 80px 10px 20px 10px;

    background-color: var(--primary-white-color);
}

.portfolio-card__badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---- Content ---- */
.portfolio-card__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    /* padding-top: 24px; */
}

.portfolio-card__category {
    color: var(--text-brown);
    /* text-transform: uppercase; */
}

.portfolio-card__title {
    margin-top: 8px;
    color: var(--secondary-black-color);
}

.portfolio-card__text {
    margin-top: 12px;
    color: var(--text-light-gray);
    flex-grow: 1;
    /* max-width: 340px; */
}

.portfolio-card__divider {
    display: block;
    width: 100%;
    height: 1px;
    background-color: #E5E5E5;
    margin-top: 32px;
    /* margin-bottom: 16px; */
}

.portfolio-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 3.08px;
    color: var(--text-brown);
    transition: gap 0.3s ease;
}

.portfolio-card__link-arrow {
    display: inline-flex;
    transition: transform 0.3s ease;
}

.portfolio-card__link:hover .portfolio-card__link-arrow {
    transform: translateX(4px);
}

/* =========================================
   PRINCIPLES INTRO SECTION
   ========================================= */
.principles-intro {
    width: 100%;
    padding-top: 100px;
}

.principles-intro__wrapper {
    display: flex;
    flex-direction: column;
}

.principles-intro__title {
    margin: 0;
}

.principles-intro__row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    margin-top: 41px;
}

/* ---- Blank graphic slot (image added manually) ---- */
.principles-intro__graphic {
    width: 100%;
    margin-top: 21px;
}

.principles-intro__graphic img {
    width: auto;
    height: auto;
}

.principles-intro__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 464px;
    margin-left: auto;
}

.principles-intro__text {
    margin: 0;
    color: var(--text-light-gray);
}

.principles-intro__btn {
    margin-top: 40px;
}

/* =========================================
   INDUSTRIES SLIDER SECTION
   ========================================= */
.industries-slider {
    position: relative;
    width: 100%;
    min-height: 650px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
}

/* ---- Full-width background, fades between slides ---- */
.industries-slider__bg-wrap {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.industries-slider__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.industries-slider__bg.is-active {
    opacity: 1;
}

.industries-slider__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.30) 0%,
            rgba(0, 0, 0, 0.45) 55%,
            rgba(0, 0, 0, 0.65) 100%);
}

/* ---- Content stays inside container ---- */
.industries-slider__container {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-bottom: 164px;
}

/* ---- Dots pagination ---- */
.industries-slider__dots {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;

}

.industries-slider__dot {
    width: 6px;
    height: 6px;
    padding: 0;
    background-color: rgba(248, 247, 244, 0.5);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: width 0.4s ease, height 0.4s ease, background-color 0.4s ease;
}

.industries-slider__dot.is-active {
    width: 10px;
    height: 10px;
    background-color: var(--text-white);
}

.industries-slider__divider {
    width: 100%;
    height: 1px;
    background-color: rgba(248, 247, 244, 0.3);
    margin-bottom: 32px;
}

/* ---- Text content ---- */
.industries-slider__content {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.industries-slider__title {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 0;
    max-width: 620px;
    color: var(--text-white);

    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.industries-slider__title.is-active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.15s;
}

.industries-slider__text {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
    max-width: 411px;
    color: var(--text-white);
    /* text-align: right; */

    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.industries-slider__text.is-active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.3s;
}



/* =========================================
   VALUE SECTION — RESPONSIVE
   ========================================= */
@media (max-width: 1366px) {
    .value-section__wrapper {
        gap: 150px;
    }

    .value-section__content {
        /* max-width: 420px; */
    }

    .portfolio-grid__header {
        margin-bottom: 40px;
    }

    .portfolio-card__divider {
        margin-top: 24px;
    }

    .principles-intro {
        padding-top: 80px;
    }

    .industries-slider {
        min-height: 460px;
    }

    .industries-slider__container {
        padding-bottom: 40px;
    }

    .industries-slider__dots,
    .industries-slider__divider {
        margin-bottom: 24px;
    }

    /* .principles-intro__content {
        max-width: 320px;
    } */

    /* .portfolio-grid__list {
        gap: 36px 24px;
    } */
}

@media (max-width: 1199px) {
    .value-section__wrapper {
        gap: 50px;
    }

    .value-section__content {
        /* max-width: 380px; */
    }

    .value-section__divider {
        margin-block: 24px;
    }

    .value-section__content {
        max-width: 560px;
    }

    .portfolio-card__text {
        max-width: 100%;
    }

    .portfolio-grid__list {
        gap: 30px;
    }

    .portfolio-card__divider {
        margin-top: 20px;
    }

    .principles-intro {
        padding-top: 60px;
    }

    .industries-slider__title {
        max-width: 480px;
    }

    .industries-slider__text {
        max-width: 260px;
    }

    /* paddn {
        grid-template-columns: 1fr;
        gap: 32px;
    } */

    /* .principles-intro__graphic {
        aspect-ratio: 16 / 9;
    } */

    /* .principles-intro__content {
        max-width: 420px;
        margin-left: 0;
    } */
}

@media only screen and (max-width:1024px) {
    .principles-intro {
        padding-top: 50px;
    }
}

@media (max-width: 991px) {
    .value-section__wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .industries-slider {
        min-height: 420px;
    }

    .industries-slider__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .industries-slider__title,
    .industries-slider__text {
        position: static;
        max-width: 100%;
    }

    .industries-slider__title.is-active,
    .industries-slider__text.is-active {
        position: static;
    }

    .industries-slider__text {
        text-align: left;
    }





    /* .portfolio-card__badge {
        width: clamp(64px, 20vw, 84px);
    } */

    /* .value-section__content {
        max-width: 100%;
        order: 2;
    } */

    /* .value-section__media {
        order: 1;
    } */
}

@media (max-width: 767px) {

    /* .value-section__figure {
        aspect-ratio: 3 / 2;
    } */
    .value-section__wrapper {
        flex-direction: column;
        gap: 24px;
    }

    .value-section__content {
        max-width: 100%;
    }

    .value-section__divider {
        margin-block: 20px;
    }

    .value-section__figure {
        width: 70%;
        margin: 0 auto;
    }

    .portfolio-grid__header {
        margin-bottom: 32px;
    }

    /* .portfolio-card__badge {
        top: 12px;
        right: 12px;
        padding: 10px 14px;
    } */

    .portfolio-card__divider {
        margin-top: 20px;
    }

    /* .principles-intro__graphic {
        aspect-ratio: 4 / 3;
    } */
    .principles-intro__graphic {
        display: none;
    }

    .principles-intro__content {
        max-width: 100%;
    }

    .principles-intro__btn {
        margin-top: 20px;
    }

    .portfolio-grid__list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .principles-intro__row {
        grid-template-columns: 1fr;
        margin-top: 15px;
        gap: 24px;
    }

    .principles-intro {
        padding-bottom: 50px;
    }

    .industries-slider {
        min-height: 380px;
    }

    .industries-slider__container {
        padding-bottom: 28px;
    }

    .industries-slider__dots,
    .industries-slider__divider {
        margin-bottom: 20px;
    }
}

@media (max-width: 575px) {
    .value-section__wrapper {
        gap: 24px;
    }

    .value-section__figure {
        width: 100%;
    }

    .portfolio-grid__list {
        gap: 32px;
    }

    .portfolio-card__content {
        padding-top: 16px;
    }

    .principles-intro__row {
        gap: 20px;
    }

    .industries-slider {
        min-height: 340px;
    }
}
