:root {
    --blue: #0000da;
    --dark-blue: #020970;
    --light-blue: #8fd0ff;
    --beige: #f1e4d0;
    --white: #ffffff;
    --red: #f13c20;
    --orange: #f2bb5f;
    --text-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Utilities */
.bg-blue {
    background-color: var(--blue);
}

.bg-dark-blue {
    background-color: var(--dark-blue);
}

.bg-beige {
    background-color: var(--beige);
}

.bg-white {
    background-color: var(--white);
}

.text-blue {
    color: var(--blue);
}

.text-white {
    color: var(--white);
}

.text-orange {
    color: var(--orange);
}

.uppercase {
    text-transform: uppercase;
}

.p-rel {
    position: relative;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-align {
    display: flex;
    align-items: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.fw-normal {
    font-weight: 400;
}

.center {
    text-align: center;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.3;
}

h3 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 600;
    line-height: 1.3;
}


/* 1. HERO SECTION */
.hero {
    min-height: 100vh;
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 0;
}

.brand-logo {
    height: 35px;
}

.hero-container {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.txt-float {
    display: inline-block;
    will-change: transform;
}

.word-float {
    display: inline-block;
    white-space: pre-wrap;
    will-change: transform;
}

.hero-text {
    flex: 1;
    color: var(--white);
}

.flex-align {
    display: flex;
    align-items: center;
}

.flex-align-end {
    display: flex;
    align-items: flex-end;
}

.hero-text h1 span {
    display: inline-block;
}

.hero-text h1 .text-orange {
    font-size: .8em;
    font-weight: 400;
    line-height: 1.2;
    display: block;
}

.hero-text h1 .text-shrink {
    font-size: 1.4em;
    line-height: 1.3;
    display: block;
}

.hero-graphic {
    flex: 1;
    position: relative;
    height: 570px;
    /* Bao trọn toàn bộ nội dung khối (340 + 230 = 570) */
    align-self: flex-end;
    /* Đẩy khối xuống đáy của flex container */
    margin-bottom: -2rem;
    /* Bù trừ đi padding-bottom: 2rem của .hero để chạm hẳn mép dưới màu xanh */
    overflow: visible;
}

/* Base rule cho tất cả các block */
.block {
    position: absolute;
    overflow: hidden;
}

/* ── BƯỚC 1: Khối trắng đầu tiên ── */
.b1 {
    background-color: #ffffff;
    width: 80px;
    height: 80px;
    top: 0;
    right: 230px;
    border-radius: 0 50px 0 0;
    z-index: 2;
    overflow: visible;
}

/* Mascot nằm ngoài khối, sát bên phải, hơi chạm vào mép */
.b1-mascot {
    position: absolute;
    width: 70px;
    bottom: 0px;
    left: 75px;
    /* Đặt ngay bên phải khối (100px - 5px chạm vào) */
    z-index: 3;
}

/* ── BƯỚC 2: 3 khối chính ── */

/* b2 – Idea: chỉ bo góc trái-trên */
.b2 {
    background-color: #8fd0ff;
    width: 179px;
    height: 120px;
    top: 80px;
    right: 310px;
    border-radius: 50px 0 0 0;
    z-index: 2;
    overflow: visible;
}

/* b3 – Logo: không bo góc, màu mới */
.b3 {
    background-color: #2961ee;
    width: 179px;
    height: 140px;
    top: 200px;
    right: 310px;
    /* cạnh trái b3 = 310+179 = 489px từ phải */
    border-radius: 0;
    z-index: 2;
    overflow: hidden;
}

/* b4 – Branding: chỉ bo góc phải-trên */
.b4 {
    background-color: #4fc3f7;
    width: 210px;
    height: 260px;
    top: 80px;
    right: 100px;
    border-radius: 0 50px 0 0;
    z-index: 2;
    overflow: hidden;
}

/* Badge chung */
.badge {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Badge riêng cho khối b4 (Branding) */
.b4 .badge {
    top: 30px;
}

/* Mascot b2 (Idea) – to, nằm giữa-dưới, tràn xuống b3 */
.b2-mascot {
    position: absolute;
    width: 140px;
    bottom: -30px;
    /* Tràn xuống qua ranh giới b2/b3 */
    left: 63%;
    transform: translateX(-50%);
    z-index: 5;
}

/* Mascot b3 (Logo) – hiện nguyên con, đẩy lên cao */
.b3-mascot {
    position: absolute;
    width: 110px;
    bottom: 15px;
    left: 22%;
    z-index: 3;
}

/* Mascot b4 (Branding) – lớn, căn giữa dưới */
.b4-mascot {
    position: absolute;
    width: 192px;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}


/* ── BƯỚC 3: Khối b5 và b6 ── */

/* b5: xanh nhạt, dưới b3, có shapes + mascot nhỏ */
.b5 {
    background-color: #8fd0ff;
    width: 140px;
    height: 230px;
    top: 340px;
    right: 489px;
    /* cạnh phải b5 = 489px từ phải = cạnh trái b3 */
    border-radius: 100px 0 0 0;
    z-index: 5;
    overflow: hidden;
}

/* b6: trắng, trải rộng 2 cột, bo góc trên */
.b6 {
    background-color: #ffffff;
    width: 539px;
    /* Tăng thêm 50px: 489 + 50 = 539 */
    height: 230px;
    top: 340px;
    right: -50px;
    /* Dịch sang phải 50px để cạnh trái vẫn ở vị trí 489px, thẳng hàng với b3 */
    border-radius: 0 100px 0 0;
    z-index: 3;
    overflow: hidden;
}

/* Shapes trong b5 */
.b5-shape {
    position: absolute;
    opacity: 0.9;
}

.s1 {
    width: 20px;
    top: 55px;
    left: 33px;
}

.s2 {
    width: 32px;
    top: 25px;
    left: 50px;
}

.s3 {
    width: 18px;
    top: 63px;
    left: 70px;
}

/* Mascot nhỏ trong b5 */
.b5-mascot {
    position: absolute;
    width: 110px;
    bottom: 20px;
    left: 22px;
    z-index: 4;
}

/* Mascot lớn trong b6 – căn giữa, cách top 30px */
.b6-mascot {
    position: absolute;
    width: 350px;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

/* 2. INTRO SECTION */
.intro.bg-gradient-pink {
    background: linear-gradient(to bottom left, #e96053 0%, #dcc8cb 50%, #d8e5ed 100%);
    padding: 10rem 5%;
}

.intro-container {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-mark {
    display: flex;
    align-items: baseline;
    color: var(--white);
}

.intro-mark img {
    transition: transform 0.3s ease;
}

.delta-symbol {
    font-size: clamp(10rem, 25vw, 22rem);
    line-height: 0.8;
    font-weight: 400;
}

.red-dot {
    width: clamp(30px, 8vw, 60px);
    height: clamp(30px, 8vw, 60px);
    background-color: var(--red);
    border-radius: 50%;
    margin-left: 10px;
}

.intro-text {
    min-width: 50%;
}

.intro-text h2 {
    color: var(--blue);
    cursor: default;
}

.intro-text .line {
    transition: font-weight 0.3s ease;
    display: inline-block;
}

.intro-text .line:hover {
    font-weight: 700;
}

.intro-text .char {
    display: inline-block;
    will-change: transform, opacity, filter;
}


/* 3. BENTO GRID SECTION */
.bento {
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    position: relative;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: minmax(350px, auto) minmax(500px, auto);
    grid-auto-rows: minmax(350px, auto);
    gap: 0;
    /* Bo sát viền */
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 15px solid var(--red);
}

.bento-box {
    padding: 3rem;
    overflow: hidden;
}

.bento-desc {
    font-size: 1.1rem;
    line-height: 1.5;
}

.bento-links {
    color: #221f20;
}

.bento-links a {
    color: #221f20;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.bento-links a:hover {
    text-decoration: underline;
}

.bento-block-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bento-block-link:hover {
    text-decoration: underline;
    text-decoration-color: #ffffff;
}

.bento-block-link-blue {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.bento-block-link-blue:hover {
    text-decoration: underline;
    text-decoration-color: var(--blue);
}

.text-small {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 50px 30px 30px;
}

.bottom-right {
    position: absolute;
    bottom: -200px;
    right: -10px;
    width: 380px;
}

.top-right {
    position: absolute;
    bottom: -15%;
    right: 20px;
    width: 200px;
}

.shapes-container {
    position: absolute;
    top: 30%;
    right: 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 30px;
    z-index: 5;
    width: 90px;
    align-items: center;
    justify-items: center;
}

/* shape 4 – nhỏ, hàng dưới trái */
.shape-icon:nth-child(1) {
    grid-column: 1;
    grid-row: 2;
    width: 28px;
    object-fit: contain;
}

/* shape 5 – to nhất, hàng trên giữa */
.shape-icon:nth-child(2) {
    grid-column: 1 / 3;
    grid-row: 1;
    width: 52px;
    object-fit: contain;
}

/* shape 6 – nhỏ, hàng dưới phải */
.shape-icon:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    width: 28px;
    object-fit: contain;
}

.bento-mascot-huge {
    width: 92%;
    max-width: 370px;
    position: absolute;
    bottom: -20%;
}

.gradient-light-blue {
    background: linear-gradient(135deg, #cbe9f7 0%, #83ccf2 100%);
    padding: 0;
    gap: 15px;
    /* Added spacing between images */
}

.gradient-light-blue .bento-mascot-huge {
    height: 100%;
    width: auto;
    max-width: none;
    position: relative;
    object-fit: contain;
    top: 0;
}

.floating-mark-2 {
    position: absolute;
    bottom: 0px;
    left: 66.666%;
    transform: translateX(-50%);
    width: 10%;
    min-width: 110px;
    z-index: 10;
    pointer-events: none;
}

.delta-symbol-large {
    font-size: 20rem;
    color: var(--white);
    line-height: 1;
}

.red-dot-large {
    width: 40px;
    height: 40px;
    background-color: var(--red);
    border-radius: 50%;
    position: absolute;
    bottom: 50px;
    right: 50px;
}

.split-box {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.split-top,
.split-bottom {
    flex: 1;
    padding: 2rem 3rem;
}


/* 4. PROJECTS SECTION */
.projects {
    padding: 6rem 0 0;
    background: linear-gradient(to bottom left, #f17e74 0%, #dcc8cb 30%, #d8e5ed 100%);

}

.projects-container .section-title {
    margin-bottom: 4rem;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: clamp(210px, 28vw, 350px);
    gap: 0;
    max-width: 100%;
    margin: 0 auto;
}

.m-item {
    border-radius: 0;
    overflow: hidden;
    position: relative;
    box-shadow: none;
}

.m-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.m-item:hover img {
    transform: scale(1.05);
}

.m-item.tall {
    grid-row: span 2;
}


/* 5. CLIENTS SECTION */
.clients {
    padding: 6rem 10%;
}

.clients-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4rem;
}

.clients-text {
    width: 100%;
}

.clients-logos {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

@media (max-width: 992px) {
    .clients-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
}

.c-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 1;
    transition: all 0.3s ease;
}

.c-logo:hover {
    transform: scale(1.1);
}


/* 6. FOOTER SECTION */
.footer {
    background: linear-gradient(to bottom left, #e96053 0%, #dcc8cb 50%, #d8e5ed 100%);
    padding: 8rem 5%;
}

.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 15%;
}

.footer-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.footer-right-column {
    grid-column: 3;
}

.footer-left h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.delta-symbol-footer-container {
    background-color: var(--white);
    border-top-left-radius: 80px;
    padding: 1.5rem;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.footer-logo-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-mascot {
    width: 120px;
    height: auto;
    margin-left: -25px;
    /* Nhích thêm sang trái để chạm vào khối trắng */
}

.footer-connect-title {
    font-size: 1.5rem;
    color: #555;
    font-weight: 500;
}

.line-dash {
    display: inline-block;
    width: 80px;
    height: 3px;
    background-color: #555;
    margin: 0 15px;
    vertical-align: middle;
    position: relative;
}

.line-dash::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 14px;
    height: 14px;
    border-top: 3px solid #555;
    border-right: 3px solid #555;
    transform: translateY(-50%) rotate(45deg);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-divider {
    height: 3px;
    background-color: #555;
    margin: 25px 0;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: var(--blue);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.footer-info {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}


/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-grid> :nth-child(1) {
        order: 1;
    }

    .bento-grid> :nth-child(2) {
        order: 2;
    }

    .bento-grid> :nth-child(3) {
        order: 4;
    }

    /* Đẩy mascot màu xanh dương xuống */
    .bento-grid> :nth-child(4) {
        order: 3;
    }

    /* Kéo block VÌ SAO lên trước */
    .bento-grid> :nth-child(5) {
        order: 5;
    }

    .bento-grid> :nth-child(6) {
        order: 6;
    }

    .floating-mark-2 {
        left: 50%;
    }

    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: clamp(300px, 36.4vw, 500px);
        /* Tăng chiều cao thêm 30% (từ base 210px-350px/28vw) */
    }

    .m-item.tall {
        grid-row: span 1;
    }

    .proj-1,
    .proj-4,
    .proj-7 {
        grid-column: span 2;
    }

    .intro-container {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .intro-text {
        min-width: unset;
        flex: 1;
    }

    .hero-text {
        padding: 3em 0 0;
        text-align: center;
    }

    .hero-container {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    /* Scaling the entire hero-graphic based on original width ~680px */
    .hero-graphic {
        width: 680px;
        height: 570px;
        flex: none;
        align-self: center;
        margin-top: 4rem;
        margin-bottom: -2rem;
        /* Keep it touching the bottom */
        transform-origin: bottom center;
        /* Shrink an additional 30%: 72vw * 0.7 ≈ 50vw */
        transform: translateX(-40px) scale(calc(90vw / 680px));
    }

    .line-dash {
        width: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
    }

    .hero-text {
        padding: 3em 0 0;
        text-align: center;
    }

    .hero-graphic {
        height: 320px;
        transform: translateX(-25px) scale(calc(80vw / 680px));
        margin-bottom: 12rem;
    }


    .footer-container {
        flex-direction: column;
    }

    .clients-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 540px) {
    .hero-graphic {
        margin-bottom: 8rem;
    }

    .masonry-grid {
        grid-auto-rows: clamp(210px, 28vw, 350px);
        /* Phục hồi chiều cao gốc cho các khối màn hình < 540px */
    }

    h3 {
        font-size: clamp(2.4rem, 4vw, 4rem);
        /* Giảm ~20% so với nguyên bản (3rem) */
    }

    .bento-box.bg-blue .bento-desc {
        font-size: 1.76rem !important;
        /* Giảm 20% so với style inline (2.2rem) */
    }

    .intro.bg-gradient-pink {
        padding: 3rem 5%;
    }

    .intro-text h2 {
        font-size: clamp(1rem, 4.5vw, 1.8rem);
    }

    .intro-text .line {
        white-space: nowrap;
    }

    .intro-mark img {
        width: 35vw !important;
        /* Ghi đè thuộc tính inline clamp(200px...) để logo có thể nhỏ hơn 200px */
        max-width: 160px;
    }

    .bento-grid {
        grid-template-rows: minmax(280px, auto) minmax(325px, auto);
        /* Giữ hàng 1 ở mức -20%, hàng 2 lúc này giảm 35% (từ 500px xuống 325px) */
    }

    .bento-box {
        padding: 1rem 1.5rem .5rem 1rem;
    }

    .floating-mark-2 {
        width: 5%;
        min-width: 60px;
    }

    .split-top,
    .split-bottom {
        padding: 2rem .5rem 3rem 1rem;
    }

    .text-small {
        font-size: 0.7rem;
        line-height: 1.5;
        padding: 20px 5px 10px;
    }

    .bento-m1.bottom-right {
        width: 228px;
        /* Tỉ lệ 60% của 380px ban đầu (~giảm 40%) */
        bottom: -120px;
        /* Cân đối chiều cao do ảnh bị thu nhỏ */
        right: -6px;
    }

    .bento-m3.top-right {
        width: 100px;
        /* Giảm một nửa so với thực tế ở bản chuẩn (200px) */
        right: 5%;
    }

    .shapes-container {
        transform: scale(0.65);
        /* Thu nhỏ toàn bộ cụm ảnh và khoảng cách bên trong đi 35% */
        transform-origin: right top;
        /* Thu về phía lề phải để tránh đè chữ */
        right: 0%;
    }

    .gradient-light-blue {
        padding: 0 !important;
        /* Xóa khoảng đệm lề do class bento-box áp đặt để hình có thể chạm sát khung */
        justify-content: flex-end !important;
        /* Ép canh phải (ghi đè flex-center) */
    }
}

@media (max-width: 430px) {
    .hero {
        min-height: 40vh;
    }

    .hero-text {
        padding: 3em 0 0;
        text-align: center;
    }

    .hero-graphic {
        width: 680px;
        height: 270px;
        flex: none;
        align-self: center;
        margin-top: 0rem;
        margin-bottom: 8rem;
        /* Shrink an additional 30%: 72vw * 0.7 ≈ 50vw */
        transform: translateX(-25px) scale(calc(85vw / 680px));
    }

    .clients {
        padding: 6rem 5%;
    }

    .footer {
        padding: 4rem 5%;
    }

    .footer-left {
        margin-bottom: 2rem;
    }

    .footer-container {
        padding: 0 5%;
    }
}

@media (max-width: 420px) {
    .hero-graphic {
        height: 250px;
        margin-bottom: 8.2rem;
    }
}

@media (max-width: 390px) {
    .hero-graphic {
        height: 270px;
        margin-bottom: 7rem;
    }
}