/* 1. Floating Movable AI Trigger Button */
    .gary-ai-trigger {
        position: fixed;
        bottom: 24px;
        right: 24px;
        top: auto;
        left: auto;
        z-index: 999990;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: rgba(10, 10, 18, 0.96);
        border: 2.5px solid #FF5500;
        box-shadow: 0 10px 30px rgba(255, 85, 0, 0.6), 0 0 25px rgba(6, 182, 212, 0.5);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    }

    .gary-ai-trigger:active { cursor: grabbing; }
    .gary-ai-trigger:hover {
        border-color: #FF7700;
        box-shadow: 0 14px 35px rgba(255, 85, 0, 0.8), 0 0 30px rgba(6, 182, 212, 0.7);
    }
    .gary-ai-trigger * {
        user-select: none;
        -webkit-user-select: none;
        -webkit-user-drag: none;
        pointer-events: none;
    }

    .gary-ai-avatar-box {
        position: relative;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gary-ai-avatar-img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.9);
        display: block;
    }

    .gary-ai-pulse-ring {
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        border: 2px solid #10b981;
        animation: aiNeuralPulse 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
    }

    @keyframes aiNeuralPulse {
        0% { transform: scale(0.95); opacity: 1; }
        70% { transform: scale(1.35); opacity: 0; }
        100% { transform: scale(1.35); opacity: 0; }
    }

    /* 2. Speech Bubble on Load */
    .sophie-greeting-bubble {
        position: absolute;
        right: 72px;
        left: auto;
        top: 50%;
        transform: translateY(-50%) translateX(12px) scale(0.85);
        background: rgba(12, 12, 22, 0.97);
        border: 1.5px solid #FF5500;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 85, 0, 0.45);
        border-radius: 16px;
        padding: 9px 16px;
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        font-weight: 600;
        color: #ffffff;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
        display: flex;
        align-items: center;
        gap: 6px;
        z-index: 999992;
    }

    .sophie-greeting-bubble::before {
        content: '';
        position: absolute;
        right: -7px;
        left: auto;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        border-left: 7px solid #FF5500;
        border-right: none;
    }

    .sophie-greeting-bubble.show {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(-50%) translateX(0) scale(1) !important;
    }

    .sophie-greeting-bubble.hide {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-50%) translateX(-8px) scale(0.85) !important;
    }

    /* 3. Modal Backdrop */
    .gary-ai-modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 999998;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .gary-ai-modal-backdrop.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* 4. Chat Window Container */
    .gary-ai-chat-window {
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 440px;
        max-width: calc(100vw - 32px);
        height: 660px;
        max-height: calc(100vh - 80px);
        background: #09090f;
        border: 1.5px solid rgba(255, 85, 0, 0.4);
        border-radius: 28px;
        box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 85, 0, 0.3);
        backdrop-filter: blur(32px);
        -webkit-backdrop-filter: blur(32px);
        z-index: 999999;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px) scale(0.96);
        pointer-events: none;
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    }

    .gary-ai-chat-window.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) scale(1) !important;
        pointer-events: auto !important;
    }

    @media (max-width: 767px) {
        .gary-ai-chat-window {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: auto !important;
            width: 100vw !important;
            max-width: 100vw !important;
            height: 100dvh !important;
            height: 100vh !important;
            border-radius: 0 !important;
            border: none !important;
            transform: translateY(100%) !important;
            box-shadow: none !important;
            display: flex !important;
            flex-direction: column !important;
            overflow: hidden !important;
        }

        .gary-ai-chat-window.active {
            transform: translateY(0) !important;
        }
    }

    /* 5. Header Area */
    .gary-ai-header {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(10, 10, 16, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        flex-grow: 0;
        z-index: 10;
    }

    /* 6. Messages Area */
    .gary-ai-messages-area {
        flex: 1 1 0%;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 16px;
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 85, 0, 0.3) transparent;
    }

    .gary-ai-messages-area::-webkit-scrollbar { width: 5px; }
    .gary-ai-messages-area::-webkit-scrollbar-thumb {
        background: rgba(255, 85, 0, 0.3);
        border-radius: 9999px;
    }

    /* Message Bubbles */
    .ai-msg {
        max-width: 88%;
        padding: 12px 16px;
        font-size: 15px;
        line-height: 1.55;
        word-break: break-word;
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        position: relative;
    }

    @media (max-width: 767px) {
        .ai-msg {
            max-width: 92%;
            font-size: 15px;
            padding: 13px 16px;
        }
    }

    .ai-msg-assistant {
        align-self: flex-start;
        background: rgba(22, 22, 34, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #e2e8f0;
        border-radius: 20px 20px 20px 6px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    .ai-msg-user {
        align-self: flex-end;
        background: #FF5500;
        color: #ffffff;
        border-radius: 20px 20px 6px 20px;
        font-weight: 500;
        box-shadow: 0 4px 16px rgba(255, 85, 0, 0.3);
    }

    /* Voice Speaker Audio Button */
    .sophie-speaker-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0 12px;
        margin: 0;
        height: 30px;
        line-height: 28px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.16);
        color: #93c5fd;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
    }
    .sophie-speaker-btn:hover {
        background: rgba(255, 85, 0, 0.35);
        border-color: #FF5500;
        color: #ffffff;
    }
    .sophie-speaker-btn.speaking {
        background: #FF5500;
        color: #ffffff;
        animation: speakerPulse 1s infinite alternate;
    }
    @keyframes speakerPulse {
        from { opacity: 0.85; }
        to { opacity: 1; transform: scale(1.04); }
    }

    /* Typing Animation Indicator */
    .ai-typing-indicator {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 8px 14px;
        background: rgba(22, 22, 34, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px 18px 18px 6px;
        width: fit-content;
        align-self: flex-start;
    }

    .ai-typing-indicator span {
        width: 6px;
        height: 6px;
        background: #FF5500;
        border-radius: 50%;
        animation: typingDot 1.4s infinite ease-in-out both;
    }

    .ai-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
    .ai-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

    @keyframes typingDot {
        0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
        40% { transform: scale(1.1); opacity: 1; background: #FF7700; }
    }

    /* Small Authentic Round Brand Icons Row */
    .sophie-action-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 12px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .sophie-round-action-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        cursor: pointer;
        flex-shrink: 0;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
        border: 1.5px solid rgba(255, 255, 255, 0.15);
    }

    .sophie-round-action-btn:hover {
        transform: scale(1.12);
        filter: brightness(1.12);
    }

    .sophie-round-action-btn.active {
        transform: scale(0.94);
    }

    .sophie-round-action-btn.wa {
        background: #25D366;
        box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
    }

    .sophie-round-action-btn.sms {
        background: #FF5500;
        box-shadow: 0 4px 14px rgba(255, 85, 0, 0.45);
    }

    .sophie-round-action-btn.call {
        background: #10b981;
        box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
    }

    /* Quick Action Prompt Chips */
    .ai-chips-container {
        padding: 8px 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(8, 8, 14, 0.7);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        gap: 8px;
        scrollbar-width: none;
        flex-shrink: 0;
        flex-grow: 0;
    }

    .ai-chips-container::-webkit-scrollbar {
        display: none;
    }

    .ai-prompt-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        min-height: 36px;
        border-radius: 9999px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: #cbd5e1;
        font-size: 12px;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
        user-select: none;
        -webkit-user-select: none;
        flex-shrink: 0;
    }

    .ai-prompt-chip:active, .ai-prompt-chip:hover {
        background: rgba(255, 85, 0, 0.25);
        border-color: #FF5500;
        color: #ffffff;
    }

    /* 7. Bottom Input Bar with Mic Button */
    .gary-ai-input-bar {
        padding: 10px 16px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(10, 10, 16, 0.98);
        flex-shrink: 0;
        flex-grow: 0;
        position: relative;
        z-index: 50;
        width: 100%;
    }

    .gary-ai-pill-input-container {
        background: rgba(24, 24, 34, 0.95);
        border: 1.5px solid rgba(255, 255, 255, 0.14);
        border-radius: 28px;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 4px 6px 4px 14px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .gary-ai-pill-input-container:focus-within {
        border-color: #FF5500;
        box-shadow: 0 4px 25px rgba(255, 85, 0, 0.35);
    }

    .gary-ai-input-field {
        flex: 1;
        background: transparent;
        border: none;
        outline: none;
        color: #ffffff;
        font-size: 16px !important;
        line-height: 1.4;
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        padding: 8px 0;
        min-height: 40px;
    }

    .gary-ai-input-field::placeholder {
        color: #71717a;
        font-size: 14px;
    }

    /* Microphone Voice Recording Button */
    .gary-ai-mic-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.16);
        color: #94a3b8;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .gary-ai-mic-btn:hover {
        background: rgba(255, 85, 0, 0.25);
        color: #ffffff;
        border-color: #FF5500;
    }

    .gary-ai-mic-btn.recording {
        background: #ef4444 !important;
        color: #ffffff !important;
        border-color: #f87171 !important;
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
        animation: micPulse 1.2s infinite ease-in-out;
    }

    @keyframes micPulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.15); }
    }

    .gary-ai-send-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #FF5500;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .gary-ai-send-btn:active {
        transform: scale(0.92);
        background: #005bb5;
    }
    
    .parallax-bg-text {
        position: absolute;
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", "Inter", sans-serif;
        font-weight: 900;
        font-size: clamp(80px, 12vw, 180px);
        line-height: 0.9;
        letter-spacing: -0.04em;
        color: rgba(29, 29, 31, 0.04);
        white-space: nowrap;
        user-select: none;
        pointer-events: none;
        z-index: 0;
        text-transform: uppercase;
        will-change: transform;
    }
    

        
        
        /* Responsive Parallax Service Stages (Zero Content Clipping) */
        .parallax-section {
            position: relative;
            min-height: auto; padding-top: 5rem; padding-bottom: 5rem; overflow: hidden; display: flex; flex-direction: column; /* justify-content: center; removed to fix clipping */
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            will-change: transform, opacity;
        }
        
        /* Review Cards Scroll-Driven Slide & Fade System */
        .review-card-col-1,
        .review-card-col-2,
        .review-card-col-3 {
            will-change: transform, opacity;
             /* transition removed to stop scroll-driven jumping */ 
}
    
    
    
    
        #horizontal-track {
            will-change: transform;
            transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
        }
    
    
        /* Review Cards 3D Staggered Parallax */
        .review-parallax-card {
            will-change: transform, opacity;
            transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
        }