/* ============================================================
   DIGITAL EXPERIENCE SECTION  — Redesigned & Scoped
   ============================================================ */

.digital-experience-section {
    --primary-color: #004a99;
    --primary-dark: #003366;
    --primary-light: #337ab7;
    --accent-color: #f1c40f;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 30px rgba(0, 74, 153, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 74, 153, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    position: relative;
    min-height: 100vh;
    background: #010d1f;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Background --- */
.digital-experience-section .exp-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.22) saturate(0.7);
    transform: scale(1.08);
    z-index: 1;
}

.digital-experience-section .exp-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 60%, rgba(0, 74, 153, 0.4) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 20%, rgba(252, 163, 17, 0.07) 0%, transparent 45%),
        linear-gradient(to bottom, rgba(1,13,31,0.35) 0%, rgba(1,13,31,0.15) 50%, rgba(1,13,31,0.75) 100%);
    z-index: 2;
}

/* --- Inner wrapper --- */
.digital-experience-section .exp-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 70px 30px 60px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
}

/* --- Section header --- */
.digital-experience-section .exp-header {
    text-align: center;
}

.digital-experience-section .exp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(151, 234, 144, 0.1);
    border: 1px solid rgba(151, 234, 144, 0.3);
    color: #97ea90;
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.digital-experience-section .exp-title {
    font-size: 50px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 14px;
}

.digital-experience-section .exp-title span {
    color: #97ea90;
    background: none;
    -webkit-text-fill-color: #97ea90;
}

.digital-experience-section .exp-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}

/* --- Two-column body --- */
.digital-experience-section .exp-body {
    display: grid;
    grid-template-columns: 370px 1fr;
    gap: 36px;
    width: 100%;
    align-items: center;
}

/* ============================
   LEFT: Chat panel (glass)
   ============================ */
.digital-experience-section .exp-chat-panel {
    height: 420px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}

.digital-experience-section .chat-panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: rgba(0, 74, 153, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.digital-experience-section .chat-panel-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.digital-experience-section .online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 13px;
    height: 13px;
    background: #2ecc71;
    border-radius: 50%;
    border: 2px solid #010d1f;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

.digital-experience-section .chat-panel-info h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
}

.digital-experience-section .chat-panel-info span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
}

.digital-experience-section .chat-messages {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow-y: auto;
}

/* Custom scrollbar for chat messages */
.digital-experience-section .chat-messages::-webkit-scrollbar {
    width: 6px;
}
.digital-experience-section .chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.digital-experience-section .chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
.digital-experience-section .chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat messages */
.digital-experience-section .chat-msg {
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                max-height 0.5s ease;
}

.digital-experience-section .chat-msg.show {
    opacity: 1;
    max-height: 300px;
    overflow: visible;
    transform: translateY(0);
}

.digital-experience-section .chat-msg.assistant-msg { align-items: flex-start; }
.digital-experience-section .chat-msg.user-msg      { align-items: flex-end; }

.digital-experience-section .chat-msg-bubble {
    padding: 13px 18px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
    max-width: 100%;
}

.digital-experience-section .assistant-msg .chat-msg-bubble {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.digital-experience-section .user-msg .chat-msg-bubble {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 74, 153, 0.35);
}

.digital-experience-section .chat-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.28);
    padding: 0 4px;
}

.digital-experience-section .cursor {
    display: inline-block;
    color: var(--accent-color);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink { 50% { opacity: 0; } }

/* Chat hint */
.digital-experience-section .chat-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.38);
    font-size: 13px;
    font-weight: 500;
    animation: hintPulse 2.5s ease-in-out infinite;
    opacity: 1;
    visibility: visible;
    max-height: 80px;
    overflow: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease, padding 0.3s ease, border-top-width 0.3s ease;
}

.digital-experience-section .chat-hint.hide {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-width: 0;
    border-top-color: transparent;
}

.digital-experience-section .chat-hint i {
    color: var(--accent-color);
    opacity: 0.75;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

/* ============================
   RIGHT: 3-D scene
   ============================ */
.digital-experience-section .exp-scene {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 420px;
}

/* Spotlight cone */
.digital-experience-section .exp-spotlight {
    position: absolute;
    top: -5%;
    left: 50%;
    transform: translateX(-50%);
    width: 560px;
    height: 560px;
    background: radial-gradient(ellipse at top,
        rgba(255, 255, 255, 0.13) 0%,
        rgba(0, 74, 153, 0.06) 40%,
        transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Avatar */
.digital-experience-section .assistant-character {
    position: absolute;
    bottom: 148px;
    left: 50%;
    transform: translateX(-50%);
    width: 210px;
    height: 252px;
    z-index: 4;
}

.digital-experience-section .avatar-svg {
    width: 100%;
    height: 100%;
    filter:
        drop-shadow(0 24px 40px rgba(0, 0, 0, 0.7))
        drop-shadow(0 0 35px rgba(0, 74, 153, 0.35));
}

.digital-experience-section #assistant-head {
    transform-origin: 100px 182px;
    transition: transform 0.3s ease;
}

.digital-experience-section #assistant-head.nodding {
    animation: headNod 0.9s ease-in-out 3;
}

@keyframes headNod {
    0%, 100% { transform: rotate(0deg); }
    35%       { transform: rotate(13deg); }
    70%       { transform: rotate(-4deg); }
}

/* Desk surface */
.digital-experience-section .exp-desk {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 680px;
    height: 145px;
    background: linear-gradient(180deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.04) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 26px 26px 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 2px solid rgba(255, 255, 255, 0.38);
    box-shadow:
        0 -10px 50px rgba(0, 74, 153, 0.22),
        inset 0 10px 30px rgba(255, 255, 255, 0.07),
        0 25px 50px rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 32px;
}



/* ---- Desk items (exp-object) ---- */
.digital-experience-section .exp-object {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.3s ease;
}

/* White Circle icon containers (matching ms-icon-circle) */
.digital-experience-section .ms-icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.digital-experience-section .ms-icon-circle:hover {
    transform: scale(1.1);
}

.digital-experience-section .ms-icon-circle svg {
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
}

/* Custom glow effects for category circles on hover */
.digital-experience-section .exp-object[data-type="branding"]:hover .ms-icon-circle {
    box-shadow: 0 15px 40px rgba(165, 94, 234, 0.45);
}
.digital-experience-section .exp-object[data-type="webdesign"]:hover .ms-icon-circle {
    box-shadow: 0 15px 40px rgba(45, 152, 218, 0.45);
}
.digital-experience-section .exp-object[data-type="grafikdesign"]:hover .ms-icon-circle {
    box-shadow: 0 15px 40px rgba(255, 107, 129, 0.45);
}
.digital-experience-section .exp-object[data-type="motion"]:hover .ms-icon-circle {
    box-shadow: 0 15px 40px rgba(32, 191, 107, 0.45);
}
.digital-experience-section .exp-object[data-type="packaging"]:hover .ms-icon-circle {
    box-shadow: 0 15px 40px rgba(247, 183, 49, 0.45);
}

/* Labels */
.digital-experience-section .obj-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.digital-experience-section .exp-object:hover .obj-label {
    color: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .digital-experience-section .exp-body {
        grid-template-columns: 320px 1fr;
        gap: 26px;
    }
}

@media (max-width: 900px) {
    .digital-experience-section .exp-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .digital-experience-section .exp-scene {
        height: 380px;
    }

    .digital-experience-section .assistant-character {
        bottom: 150px;
        width: 165px;
        height: 198px;
    }

    .digital-experience-section .exp-desk {
        max-width: 540px;
        padding: 0 20px;
    }

    .digital-experience-section .ms-icon-circle {
        width: 68px;
        height: 68px;
    }

    .digital-experience-section .obj-label {
        font-size: 10px;
    }

    .digital-experience-section .exp-title { font-size: 38px; }
}

@media (max-width: 640px) {
    .digital-experience-section .exp-inner {
        padding: 50px 16px 48px;
        gap: 32px;
    }

    .digital-experience-section .exp-title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .digital-experience-section .exp-subtitle { font-size: 14px; }

    .digital-experience-section .exp-scene {
        height: 310px;
    }

    .digital-experience-section .assistant-character {
        bottom: 128px;
        width: 130px;
        height: 156px;
    }

    .digital-experience-section .exp-desk {
        height: 110px;
        padding: 0 10px;
        max-width: 350px;
    }

    .digital-experience-section .ms-icon-circle {
        width: 50px;
        height: 50px;
        margin: 0 auto 5px;
    }

    .digital-experience-section .obj-label {
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .digital-experience-section .chat-messages { min-height: 160px; }
    .digital-experience-section .chat-msg-bubble { font-size: 13px; padding: 11px 14px; }
}

/* Mobile Accordion Icon Placeholder Styles */
.mobile-icon-placeholder {
    display: none;
    width: 100%;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.mobile-icon-placeholder:has(.ms-icon-item) {
    display: block;
    animation: slideDownFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-icon-placeholder .ms-icon-item {
    margin: 0 auto;
    width: 220px;
}

.mobile-icon-placeholder .ms-icon-title {
    color: var(--color-contrast-higher) !important;
}

body[data-theme="light"] .mobile-icon-placeholder .ms-icon-title {
    color: #000000 !important;
}

body[data-theme="dark"] .mobile-icon-placeholder .ms-icon-title {
    color: #ffffff !important;
}

@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

