/* ========== ABOUT — SCROLL STORY ========== */
.about-section {
    position: relative;
    z-index: 2;
    height: 400vh;
    margin-top: -2px;
    background: var(--bg-intro, #0e0c0a);
}

.about-viewport {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    clip-path: inset(0);
    background: var(--bg-intro, #0e0c0a);
}

/* ---- background image ---- */
.about-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 1;
    background: url('../images/gallery/exclusive-interior-space.jpg') center / cover no-repeat;
}

.about-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(14, 12, 10, 0.4) 0%,
        rgba(14, 12, 10, 0.3) 40%,
        rgba(14, 12, 10, 0.5) 70%,
        rgba(14, 12, 10, 0.75) 100%
    );
}

/* ---- side glow bars ---- */
.about-glow-left,
.about-glow-right {
    position: absolute;
    top: 0;
    width: 6px;
    height: 100%;
    z-index: 20;
    opacity: 0;
    transition: none;
}

.about-glow-left {
    left: 0;
    background: linear-gradient(180deg,
        rgba(201, 149, 106, 0) 0%,
        rgba(255, 200, 150, 1) 30%,
        rgba(255, 230, 190, 1) 50%,
        rgba(255, 200, 150, 1) 70%,
        rgba(201, 149, 106, 0) 100%);
    box-shadow:
        0 0 30px 12px rgba(201, 149, 106, 0.6),
        0 0 80px 30px rgba(201, 149, 106, 0.35),
        0 0 160px 60px rgba(201, 149, 106, 0.15),
        0 0 250px 100px rgba(201, 149, 106, 0.06);
}

.about-glow-right {
    right: 0;
    background: linear-gradient(180deg,
        rgba(201, 149, 106, 0) 0%,
        rgba(255, 200, 150, 1) 30%,
        rgba(255, 230, 190, 1) 50%,
        rgba(255, 200, 150, 1) 70%,
        rgba(201, 149, 106, 0) 100%);
    box-shadow:
        0 0 30px 12px rgba(201, 149, 106, 0.6),
        0 0 80px 30px rgba(201, 149, 106, 0.35),
        0 0 160px 60px rgba(201, 149, 106, 0.15),
        0 0 250px 100px rgba(201, 149, 106, 0.06);
}

/* ---- split title (blends with furniture) ---- */
.about-title-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    display: flex;
    align-items: baseline;
    gap: 0;
    white-space: nowrap;
    pointer-events: none;
    mix-blend-mode: difference;
}

.about-title-half {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 10vw, 10rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
    will-change: transform, opacity;
}

.about-title-left {
    transform: translateX(-120vw);
}

.about-title-right {
    transform: translateX(120vw);
}

/* ---- logo subject (ON TOP of text, creates depth) ---- */
.about-subject {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.6));
}

.about-subject img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.about-logo-circle {
    width: 220px !important;
    height: 220px !important;
    border-radius: 50%;
    object-fit: cover !important;
    border: 3px solid rgba(201, 149, 106, 0.3);
    box-shadow:
        0 0 40px rgba(201, 149, 106, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.4);
    opacity: 0.85;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ---- stat glass cards ---- */
.about-stats {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 20px;
    opacity: 0;
    will-change: opacity, transform;
}

.stat-card {
    position: relative;
    width: 160px;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    text-align: center;
    cursor: default;
    overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.3s;
}

.stat-card:hover {
    border-color: rgba(201, 149, 106, 0.4);
    box-shadow:
        0 0 30px rgba(201, 149, 106, 0.15),
        inset 0 0 30px rgba(201, 149, 106, 0.05);
    transform: translateY(-4px);
}

/* skeleton shimmer */
.stat-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 2s ease-in-out infinite;
    pointer-events: none;
    border-radius: 18px;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.stat-card:hover .stat-skeleton {
    animation: none;
    background: none;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.stat-card:hover .stat-number {
    color: rgba(201, 149, 106, 1);
}

.stat-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

/* ---- story paragraphs (topmost layer) ---- */
.about-story-layer {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.about-story-text {
    position: absolute;
    max-width: 620px;
    text-align: center;
    padding: 0 30px;
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

.about-story-text p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.9;
    color: #fff;
    text-shadow:
        0 2px 30px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(0, 0, 0, 0.3);
}

.about-story-text .story-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: rgba(201, 149, 106, 0.9);
    margin-bottom: 20px;
    font-weight: 500;
}

/* ---- floating icons (right side) ---- */
.about-floating-icons {
    position: fixed;
    right: 28px;
    bottom: 30px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: translateX(160px);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    pointer-events: none;
}

.about-floating-icons.visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* robo hi text */
.robo-hi-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.8s ease;
    z-index: 30;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 6px;
}

.about-float-robo:hover .robo-hi-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(-15px);
}

.about-float-robo {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: aboutFloat 3s ease-in-out infinite;
    transition: transform 0.3s;
}

.about-float-robo:hover {
    transform: scale(1.1);
}

.about-float-robo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-float-whatsapp {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: aboutFloat 3s ease-in-out 0.5s infinite;
    transition: box-shadow 0.3s, transform 0.3s;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.about-float-whatsapp:hover {
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
    transform: scale(1.1);
}

.about-float-whatsapp svg {
    width: 28px;
    height: 28px;
}

@keyframes aboutFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---- carpenter robo chatbox ---- */
.robo-chatbox {
    position: fixed;
    right: 28px;
    bottom: 160px;
    z-index: 9001;
    width: 360px;
    max-height: 520px;
    border-radius: 20px;
    background: rgba(20, 18, 16, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(201, 149, 106, 0.08);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.robo-chatbox.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.robo-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(201, 149, 106, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.robo-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(201, 149, 106, 0.5);
    flex-shrink: 0;
}

.robo-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.robo-chat-header-info {
    flex: 1;
}

.robo-chat-header-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.robo-status {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #25d366;
    display: flex;
    align-items: center;
    gap: 5px;
}

.robo-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #25d366;
    display: inline-block;
    animation: roboPulse 2s ease-in-out infinite;
}

@keyframes roboPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.robo-chat-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.robo-chat-close:hover {
    color: #fff;
}

.robo-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 260px;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 149, 106, 0.3) transparent;
}

.robo-chat-body::-webkit-scrollbar {
    width: 4px;
}

.robo-chat-body::-webkit-scrollbar-thumb {
    background: rgba(201, 149, 106, 0.3);
    border-radius: 4px;
}

.robo-msg {
    max-width: 85%;
    animation: roboMsgIn 0.3s ease;
}

@keyframes roboMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.robo-msg-bot {
    align-self: flex-start;
}

.robo-msg-bot p {
    background: rgba(201, 149, 106, 0.15);
    border: 1px solid rgba(201, 149, 106, 0.2);
    border-radius: 16px 16px 16px 4px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.robo-msg-user {
    align-self: flex-end;
}

.robo-msg-user p {
    background: rgba(201, 149, 106, 0.5);
    border-radius: 16px 16px 4px 16px;
    padding: 10px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #fff;
    margin: 0;
}

.robo-typing {
    align-self: flex-start;
}

.robo-typing p {
    background: rgba(201, 149, 106, 0.15);
    border: 1px solid rgba(201, 149, 106, 0.2);
    border-radius: 16px 16px 16px 4px;
    padding: 12px 18px;
    margin: 0;
    display: flex;
    gap: 5px;
}

.robo-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(201, 149, 106, 0.6);
    animation: roboTypingBounce 1.2s ease-in-out infinite;
}

.robo-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.robo-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes roboTypingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

.robo-quick-btns {
    padding: 0 16px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.robo-quick-btns button {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(201, 149, 106, 0.3);
    background: rgba(201, 149, 106, 0.08);
    color: rgba(201, 149, 106, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.robo-quick-btns button:hover {
    background: rgba(201, 149, 106, 0.25);
    border-color: rgba(201, 149, 106, 0.6);
    color: #fff;
}

.robo-chat-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.robo-chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.robo-chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.robo-chat-input input:focus {
    border-color: rgba(201, 149, 106, 0.5);
}

.robo-chat-input button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(201, 149, 106, 0.7);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
}

.robo-chat-input button:hover {
    background: rgba(201, 149, 106, 1);
}

.robo-chat-input button svg {
    width: 18px;
    height: 18px;
}

/* ---- responsive ---- */
@media (max-width: 1024px) {
    .about-section {
        height: 380vh;
    }

    .about-bg {
        background-position: center center;
    }
}

@media (max-width: 768px) {
    .about-section {
        height: 350vh;
    }

    .about-bg {
        background-position: center center;
    }

    .about-title-half {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    .about-logo-circle {
        width: 150px !important;
        height: 150px !important;
    }

    .about-story-text {
        max-width: 90%;
    }

    .about-story-text p {
        font-size: clamp(0.95rem, 2vw, 1.2rem);
        line-height: 1.7;
    }

    .about-stats {
        gap: 10px;
        top: 50px;
        flex-wrap: wrap;
        justify-content: center;
        width: 92%;
    }

    .stat-card {
        width: 130px;
        padding: 20px 14px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .robo-chatbox {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 140px;
        max-height: 420px;
    }

    .robo-chat-body {
        max-height: 200px;
    }

    .about-floating-icons {
        right: 14px;
        bottom: 14px;
    }

    .about-float-robo {
        width: 72px;
        height: 72px;
    }

    .about-float-whatsapp {
        width: 48px;
        height: 48px;
    }

    .about-float-whatsapp svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .about-section {
        height: 300vh;
    }

    .about-title-half {
        font-size: clamp(2rem, 11vw, 3.5rem);
    }

    .about-stats {
        gap: 8px;
        top: 40px;
        width: 96%;
    }

    .stat-card {
        width: 110px;
        padding: 16px 10px;
        border-radius: 14px;
    }

    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

    .stat-label {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    .about-story-text {
        max-width: 95%;
        padding: 0 16px;
    }

    .about-story-text p {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }

    .about-story-text .story-label {
        font-size: 0.7rem;
        letter-spacing: 4px;
        margin-bottom: 14px;
    }

    .robo-chatbox {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 120px;
        max-height: 380px;
        border-radius: 16px;
    }

    .robo-quick-btns {
        gap: 4px;
        padding: 0 12px 8px;
    }

    .robo-quick-btns button {
        font-size: 10px;
        padding: 5px 10px;
    }

    .about-floating-icons {
        right: 10px;
        bottom: 10px;
        gap: 10px;
    }

    .about-float-robo {
        width: 60px;
        height: 60px;
    }

    .about-float-whatsapp {
        width: 42px;
        height: 42px;
    }
}
