/* BuildUs Style Feature Cards CSS */
.buildus-cards-section {
    background-color: #fbfbfd;
    padding: 160px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buildus-section-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #111;
    text-align: center;
    margin-bottom: 70px;
    letter-spacing: -0.04em;
    line-height: 1.3;
    word-break: keep-all;
}

.buildus-cards-container {
    max-width: 1300px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.buildus-card {
    background: #ffffff;
    border-radius: 36px;
    padding: 48px 48px 0 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 580px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 10;
}

.buildus-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.buildus-card-text {
    margin-bottom: 48px;
    z-index: 2;
    position: relative;
}

.buildus-card-sub {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #666;
    margin-bottom: 16px;
}

.buildus-card-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.04em;
    margin: 0;
    line-height: 1.35;
    word-break: keep-all;
}

/* Mockup Interactions (Hover Effects) */
.buildus-card:hover .mockup-checklist {
    transform: scale(0.85) translateY(-8px) !important;
}

.mockup-item {
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.3s ease;
}

.buildus-card:hover .mockup-item {
    transform: translateX(6px);
}

.buildus-card:hover .mockup-item:nth-child(2) {
    transition-delay: 0.05s;
}

.buildus-card:hover .mockup-item:nth-child(3) {
    transition-delay: 0.1s;
}

.buildus-card:hover .mockup-item:nth-child(4) {
    transition-delay: 0.15s;
}

.buildus-card:hover .mockup-item:nth-child(5) {
    transition-delay: 0.2s;
}

.buildus-card:hover .mockup-item:nth-child(6) {
    transition-delay: 0.25s;
}

.mockup-chat-phone,
.mockup-insurance-card {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.buildus-card:hover .mockup-chat-phone {
    transform: translateX(-50%) translateY(-12px) !important;
}

.buildus-card:hover .mockup-insurance-card {
    transform: translateX(-50%) translateY(-12px) !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.08) !important;
}

/* Scroll-Triggered Mockup Interactions */
.mockup-chat-row {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    transform: translateY(15px);
    opacity: 0;
}

.buildus-card.is-active .mockup-chat-row {
    transform: translateY(0);
    opacity: 1;
}

.buildus-card.is-active .mockup-chat-row:nth-child(1) {
    transition-delay: 0.2s;
}

.buildus-card.is-active .mockup-chat-row:nth-child(2) {
    transition-delay: 0.6s;
}

.buildus-card.is-active .mockup-chat-row:nth-child(3) {
    transition-delay: 1.0s;
}

.mockup-item.active .mockup-check {
    position: relative;
}

.mockup-item.active .mockup-check::after {
    content: "✔";
    color: #4a6ee0;
    font-size: 14px;
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.3);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.buildus-card.is-active .mockup-item.active .mockup-check::after {
    transform: scale(1);
    opacity: 1;
    transition-delay: 0.6s;
}

.mockup-ins-row {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    transform: translateX(-10px);
    opacity: 0;
}

.buildus-card.is-active .mockup-ins-row {
    transform: translateX(0);
    opacity: 1;
}

.buildus-card.is-active .mockup-ins-row:nth-child(4) {
    transition-delay: 0.3s;
}

.buildus-card.is-active .mockup-ins-row:nth-child(5) {
    transition-delay: 0.6s;
}

.buildus-card-image-wrap {
    flex: 1;
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: visible;
    /* To allow floating app cards to overflow safely internally */
    position: relative;
    background-color: #f4f4f7;
    margin: 0 auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
    /* This is meant to house the image provided by the user later */
}

.buildus-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* Mockup UI CSS (Pure HTML replacements for images) */
.mockup-checklist {
    width: 85%;
    margin: 20px auto 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mockup-header {
    padding: 16px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #111;
}

.mockup-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f9f9f9;
    font-size: 14px;
    color: #555;
    background: #fff;
}

.mockup-item.active {
    background: #eef2ff;
    color: #111;
    font-weight: 600;
}

.mockup-check {
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    background: #fff;
}

.mockup-item.active .mockup-check {
    border-color: #4a6ee0;
}

.mockup-chat-phone {
    width: 260px;
    height: 320px;
    margin: auto auto 0 auto;
    background: #f4f5f8;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.06);
    border: 6px solid #e1e4e8;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mockup-chat-body {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-chat-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.mockup-msg {
    background: #fff;
    padding: 12px 14px;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    color: #111;
    word-break: keep-all;
    display: inline-block;
    margin-right: auto;
}

.mockup-chat-row.right {
    display: flex;
    flex-direction: row-reverse;
}

.mockup-chat-row.right .mockup-msg {
    background: #0055ff;
    color: #fff;
    margin-right: 0;
    margin-left: auto;
    border-radius: 14px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 14px;
}

.mockup-insurance-card {
    width: 260px;
    height: 320px;
    background-color: #fff;
    background-image: linear-gradient(135deg, #ffffff 0%, #fcfcfd 100%);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 24px 0 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: none;
    box-sizing: border-box;
}

.mockup-ins-badge {
    display: inline-block;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.mockup-ins-title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.mockup-ins-divider {
    width: 100%;
    height: 1px;
    background: #f0f0f0;
    margin-bottom: 16px;
}

.mockup-ins-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 16px;
}

.mockup-ins-row span {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    margin-bottom: 6px;
}

.mockup-ins-row strong {
    font-size: 15px;
    color: #111;
    font-weight: 600;
}

.mockup-ins-row strong.highlight {
    font-size: 24px;
    color: #0055ff;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 4px;
}

@media (max-width: 1024px) {
    .buildus-card {
        padding: 40px 40px 0 40px;
        height: 540px;
    }
}

@media (max-width: 768px) {
    .buildus-cards-section {
        padding: 100px 20px;
    }

    .buildus-cards-container {
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 100%;
    }

    .buildus-card {
        /* PC버전의 완벽한 형태와 배율을 그대로 유지한 채 모바일 사이즈에 맞게 화면 자체를 스케일 다운 */
        zoom: 0.82;
        height: 640px;
        /* 모바일에서 텍스트가 줄바꿈되어도 사진 위 여백이 충분하도록 추가 공간 부여 */
    }

    .mockup-checklist {
        width: 72%; /* 모바일에서 너무 뚱뚱해 보이지 않도록 85%에서 축소 */
    }

    .buildus-section-title {
        font-size: 32px;
        margin-bottom: 48px;
    }
}

/* Direct Team Section */
.direct-team-section {
    padding: 120px 0;
    background-color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.direct-team-title {
    font-size: 42px;
    font-weight: 800;
    color: #111;
    margin-bottom: 60px;
    letter-spacing: -0.04em;
    text-align: center;
    word-break: keep-all;
}

.direct-team-wrapper {
    width: 100vw;
    overflow: hidden;
    position: relative;
    /* Fading edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.direct-team-slider {
    display: flex;
    width: max-content;
    animation: scroll-left 30s linear infinite;
}

.direct-team-slider:hover {
    animation-play-state: paused;
}

.direct-team-item {
    width: 400px;
    height: 280px;
    margin: 0 15px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    background-color: #f4f5f8;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.direct-team-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.direct-team-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-430px * 5));
    }
}

@media (max-width: 768px) {
    .direct-team-section {
        padding: 100px 0;
    }

    .direct-team-title {
        font-size: 32px;
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .direct-team-item {
        width: 280px;
        height: 200px;
        margin: 0 10px;
    }

    @keyframes scroll-left {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-300px * 5));
        }
    }
}

/* Office Cleaning Pinned Side-Scrolling */
