/* IMMERSIVE HOLOGRAPHIC CONSOLE AESTHETIC */

.demo-experience {
    background-color: var(--bg-color, #0f1011);
    color: #fff;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Deep Space / Matrix glow background */
.demo-experience::before {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 238, 255, 0.08) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    animation: slowPulseBackground 8s infinite alternate ease-in-out;
}

@keyframes slowPulseBackground {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.dx-container {
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dx-header {
    text-align: center;
    margin-bottom: 50px;
}

.dx-header h2 {
    font-size: 3.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #0ef 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(0, 238, 255, 0.3);
}

.dx-header p {
    font-size: 1.2rem;
    color: #0ef;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* THE CONSOLE */
.dx-console {
    width: 90vw;
    max-width: 800px;
    min-height: 700px;
    height: auto;
    background: rgba(10, 15, 20, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(0, 238, 255, 0.15);
    border-radius: 30px;
    box-shadow: 0 0 50px rgba(0, 238, 255, 0.05), inset 0 0 30px rgba(0, 238, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* ORB HEADER */
.dx-orb-container {
    padding: 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    position: relative;
}

.dx-orb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #0ef 30%, #0077ff 70%, #000 100%);
    box-shadow: 0 0 20px #0ef, 0 0 50px #0077ff;
    position: relative;
    z-index: 2;
    animation: orbBreathe 4s infinite alternate ease-in-out;
    margin-bottom: 15px;
}

.dx-orb-pulse {
    position: absolute;
    top: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #0ef;
    z-index: 1;
    animation: orbPulseRipple 2s infinite linear;
}

@keyframes orbBreathe {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px #0ef, 0 0 40px #0077ff;
    }

    100% {
        transform: scale(1.1);
        box-shadow: 0 0 30px #0ef, 0 0 60px #0077ff, inset 0 0 20px #fff;
    }
}

@keyframes orbPulseRipple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.dx-agent-info {
    text-align: center;
}

.dx-agent-info h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.dx-status {
    color: #0ef;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.8;
    text-shadow: 0 0 10px #0ef;
}

/* CHAT AREA */
.dx-chat-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dx-chat-area::-webkit-scrollbar {
    width: 4px;
}

.dx-chat-area::-webkit-scrollbar-track {
    background: transparent;
}

.dx-chat-area::-webkit-scrollbar-thumb {
    background: #0ef;
    border-radius: 2px;
}

.dx-message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    animation: slideInUp 0.3s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dx-message.user {
    align-self: flex-end;
}

.dx-message.ai {
    align-self: flex-start;
}

.dx-bubble {
    padding: 15px 22px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
}

/* AI GLOW BUBBLE */
.dx-bubble.ai-glow {
    background: rgba(0, 238, 255, 0.05);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-top-left-radius: 4px;
    color: #e0fbfc;
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.05);
}

/* USER GRADIENT BUBBLE */
.dx-message.user .dx-bubble {
    background: linear-gradient(135deg, #0ef 0%, #0077ff 100%);
    border-top-right-radius: 4px;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 119, 255, 0.3);
}

.dx-time {
    display: block;
    font-size: 0.7rem;
    margin-top: 8px;
    opacity: 0.6;
    text-align: right;
    letter-spacing: 1px;
}

/* TYPING ORB */
.dx-typing {
    display: flex;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 238, 255, 0.05);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 20px;
    border-top-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
}

.dx-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #0ef;
    box-shadow: 0 0 10px #0ef;
    animation: dxTypingPulse 1.5s infinite ease-in-out;
}

.dx-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dx-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dxTypingPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
        box-shadow: 0 0 15px #0ef;
    }
}

/* INPUT ZONE */
.dx-input-zone {
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 238, 255, 0.1);
}

.dx-btn {
    background: none;
    border: none;
    color: #0ef;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.dx-attach:hover {
    background: rgba(0, 238, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.2);
}

.dx-input-wrapper {
    flex: 1;
    position: relative;
}

#chat-input,
#chat-input-es {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 18px 25px;
    border-radius: 30px;
    font-size: 1.4rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.3s;
}

#chat-input:focus,
#chat-input-es:focus {
    background: rgba(0, 238, 255, 0.05);
    border-color: rgba(0, 238, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.1) inset;
}

.dx-send {
    background: linear-gradient(135deg, #0077ff, #0ef);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.4);
}

.dx-send:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 238, 255, 0.6);
}

.dx-send:disabled {
    background: #333;
    color: #666;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* FILE PREVIEW */
.dx-file-preview {
    padding: 15px 30px;
    background: rgba(0, 238, 255, 0.05);
    border-top: 1px solid rgba(0, 238, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dx-badge {
    color: #0ef;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dx-remove {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.dx-remove:hover {
    transform: scale(1.2);
}

.attached-image {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 10px;
    display: block;
}

/* CONTACT EXPERIENCE */
.contact-experience {
    background-color: var(--bg-color, #0f1011);
    color: #fff;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.contact-console {
    height: auto;
    padding: 40px;
    background: rgba(10, 15, 20, 0.5);
    border: 1px solid rgba(0, 238, 255, 0.15);
    box-shadow: 0 0 50px rgba(0, 238, 255, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.form-group label {
    font-size: 14px;
    color: #0ef;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Futuristic Glassmorphism Inputs */
.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(10, 15, 25, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 238, 255, 0.15);
    color: #fff;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: inset 0 0 0 rgba(0, 238, 255, 0);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Neon animated border on focus */
.form-group input:focus,
.form-group textarea:focus {
    background: rgba(0, 238, 255, 0.05);
    border-color: #0ef;
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.4), inset 0 0 15px rgba(0, 238, 255, 0.2);
    transform: translateY(-3px);
}

/* Magnetic Submit Button */
.contact-submit {
    width: 100%;
    border-radius: 30px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.8), rgba(0, 238, 255, 0.8));
    border: 1px solid rgba(0, 238, 255, 0.5);
    color: #fff;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Transformation updated dynamically via JS */
    transform: translate(var(--mx, 0px), var(--my, 0px));
    transition: transform 0.05s linear, box-shadow 0.3s ease;
}

/* Liquid / Pulse Ripple Effect */
.contact-submit::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 300%; height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    pointer-events: none;
}

.contact-submit:hover {
    box-shadow: 0 10px 30px rgba(0, 238, 255, 0.5);
}

.contact-submit:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.contact-submit:active {
    transform: translate(var(--mx, 0px), var(--my, 0px)) scale(0.96) !important;
}

.contact-status {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.contact-status.hidden {
    display: none;
}

.contact-status.success {
    background: rgba(0, 255, 128, 0.1);
    color: #00ff80;
    border: 1px solid rgba(0, 255, 128, 0.3);
}

.contact-status.error {
    background: rgba(255, 50, 50, 0.1);
    color: #ff3333;
    border: 1px solid rgba(255, 50, 50, 0.3);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}

/* Fix for browser autofill background on dark inputs */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active,
.form-group textarea:-webkit-autofill,
.form-group textarea:-webkit-autofill:hover,
.form-group textarea:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 500px #111418 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* INLINE FORM VALIDATION ERRORS */
.field-error {
    color: #ff4757;
    font-size: 13px;
    margin-top: 5px;
    animation: slideInUp 0.3s ease-out forwards;
}

.form-group input.has-error,
.form-group textarea.has-error {
    border-color: rgba(255, 71, 87, 0.5) !important;
    background: rgba(255, 71, 87, 0.05) !important;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.1) inset !important;
}

/* SUCCESS MODAL POPUP */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 20, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.success-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-modal-box {
    background: rgba(15, 20, 25, 0.95);
    border: 1px solid rgba(0, 238, 255, 0.3);
    box-shadow: 0 0 50px rgba(0, 238, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-modal-overlay.active .success-modal-box {
    transform: scale(1) translateY(0);
}

.success-icon {
    font-size: 60px;
    color: #00ff80;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 255, 128, 0.4);
}

.success-title {
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
    font-family: inherit;
}

.success-message {
    font-size: 16px;
    color: #b0c4de;
    margin-bottom: 30px;
    line-height: 1.5;
    font-family: inherit;
}

.success-close-btn {
    background: linear-gradient(135deg, #0ef, #00b3cc);
    color: #000;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.success-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.4);
}

/* ------------------------------------- */
/* TESTIMONIALS CAROUSEL */
/* ------------------------------------- */
.testimonials-section {
    padding: 100px 0;
    background: transparent;
    overflow: hidden;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 5%;
}

.testimonials-header h2 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #0ef 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(0, 238, 255, 0.2);
}

.testimonials-header p {
    font-size: 1.2rem;
    color: #0ef;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.testimonials-carousel {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* Overcome section padding for native full bleed */
    overflow: hidden;
    padding: 20px 0;
}

/* GRADIENT FADES ON EDGES */
.testimonials-carousel::before,
.testimonials-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonials-carousel::before {
    left: 0;
    background: linear-gradient(to right, #0a0f14 0%, transparent 100%);
}

.testimonials-carousel::after {
    right: 0;
    background: linear-gradient(to left, #0a0f14 0%, transparent 100%);
}

.testimonials-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollTestimonials 35s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

.testimonial-card {
    background: rgba(25, 30, 40, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 238, 255, 0.1);
    border-radius: 20px;
    padding: 30px clamp(15px, 5vw, 40px);
    width: min(85vw, 450px);
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    /* 3D Tilt Setup */
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) translateY(0);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.1s ease-out;
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(0, 238, 255, 0.2), 
        transparent 40%
    );
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    box-shadow: 0 20px 50px rgba(0, 238, 255, 0.25), 0 0 20px rgba(0, 238, 255, 0.1) inset;
    border-color: rgba(0, 238, 255, 0.6);
    z-index: 10;
}

/* 3D pop for internal elements */
.testimonial-card .stars,
.testimonial-card .review-text,
.testimonial-card .reviewer-profile {
    position: relative;
    z-index: 1;
    transform: translateZ(40px);
    transition: transform 0.3s ease;
}

.stars {
    color: #ffc107;
    font-size: 18px;
    margin-bottom: 20px;
}

.stars i {
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    margin-right: 5px;
}

.review-text {
    font-size: 18px;
    color: #e0e0e0;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.reviewer-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.reviewer-profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0ef;
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.3);
}

.reviewer-info h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.reviewer-info span {
    color: #0ef;
    font-size: 14px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 320px;
        padding: 30px;
    }

    .testimonials-header h2 {
        font-size: 2.5rem;
    }

    .testimonials-carousel::before,
    .testimonials-carousel::after {
        width: 50px;
    }
}

/* ------------------------------------- */
/* ULTRA-PREMIUM SCROLL ANIMATIONS (APPLE STYLE) */
/* ------------------------------------- */

/* 1. Cinematic Text Reveal */
.apple-text-anim {
    opacity: 0;
    transform: scale(1.15) translateY(40px);
    filter: blur(20px);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.apple-text-anim.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
}

/* 2. 3D Hardware Matrix Fold (Consoles) */
.apple-console-anim {
    opacity: 0;
    transform: perspective(2000px) rotateX(15deg) translateY(100px) scale(0.92);
    transform-origin: bottom center;
    box-shadow: 0 40px 100px rgba(0, 238, 255, 0.1);
    transition: all 1.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform, box-shadow;
}

.apple-console-anim.is-visible {
    opacity: 1;
    transform: perspective(2000px) rotateX(0deg) translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(0, 238, 255, 0);
}

/* 3. Spring Bouncy Pop (Chat Bubbles, Orbs) */
.apple-pop-anim {
    opacity: 0;
    transform: scale(0.5) translateY(30px);
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Custom bouncy spring curve */
    will-change: opacity, transform;
}

.apple-pop-anim.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* 4. Skewed Side-Swipe (Carousels) */
.apple-swipe-anim {
    opacity: 0;
    transform: translateX(120px) skewX(2deg);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.apple-swipe-anim.is-visible {
    opacity: 1;
    transform: translateX(0) skewX(0deg);
}

/* 5. Holographic Materialization (Testimonials) */
.apple-card-anim {
    opacity: 0;
    transform: translateY(120px) scale(0.8);
    filter: drop-shadow(0 40px 100px rgba(0, 238, 255, 0.9)) blur(25px) contrast(200%);
    transition: all 1.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform, filter;
}

.apple-card-anim.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 0 transparent) blur(0) contrast(100%);
}

/* 6. Input Field Stagger (Contact Form) */
.apple-field-anim {
    opacity: 0;
    transform: perspective(1000px) translateX(-40px) scale(0.95);
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5)) blur(5px);
    transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: opacity, transform, filter;
}

.apple-field-anim.is-visible {
    opacity: 1;
    transform: perspective(1000px) translateX(0) scale(1);
    filter: drop-shadow(0 0 0 transparent) blur(0);
}
/* ZERO-COMPROMISE RESPONSIVE OVERRIDES */
@media (max-width: 768px) {
    .dx-console { padding: 20px 10px; width: 95%; max-width: 100%; border-radius: 12px; }
    .testimonial-card { width: 90vw; max-width: 320px; min-width: 0; padding: 20px; }
    .testimonials-header h2 { font-size: clamp(2rem, 7vw, 2.5rem); }
}
@media (max-width: 480px) {
    .dx-message.ai .dx-bubble { font-size: 0.9rem; padding: 12px 15px; }
    .dx-input-zone { padding: 10px; }
}

@media (max-width: 480px) { .dx-message.ai .dx-bubble { font-size: 1.5rem; } .dx-input-zone input { font-size: 1.6rem; } .form-group label { font-size: 1.4rem; } .form-group input, .form-group textarea { font-size: 1.5rem; } .reviewer-info h4 { font-size: 2rem; } .reviewer-info span { font-size: 1.4rem; } .review-text { font-size: 1.4rem; } }

@media (max-width: 768px) {
    /* Pull the Demo Experience up over the empty Services Outro gap */
    .demo-experience { margin-top: -25vh; position: relative; z-index: 10; padding-top: 40px; padding-bottom: 20px; }
    
    /* Reduce gap between Testimonials and Contact */
    .testimonials-section { margin-bottom: 20px; padding-bottom: 20px; }
    .contact-experience { margin-top: 0; padding-top: 40px; }
}

@media (max-width: 768px) {
    .testimonials-section { margin-bottom: 6px !important; padding-bottom: 6px !important; }
    .contact-experience { padding-top: 6px !important; margin-top: 6px !important; }
}
@media (max-width: 480px) {
    .testimonials-section { margin-bottom: 6px !important; padding-bottom: 6px !important; }
    .contact-experience { padding-top: 6px !important; margin-top: 6px !important; }
}

@media (max-width: 768px) {
    .demo-experience { padding-bottom: 0 !important; margin-bottom: 0 !important; }
    .testimonials-section { margin-bottom: 30px !important; padding-bottom: 30px !important; min-height: 0 !important; }
    .contact-experience { padding-top: 20px !important; margin-top: 20px !important; min-height: 0 !important; }
}

@media (max-width: 480px) { .testimonials-section { padding-top: 30px !important; margin-top: 30px !important; } }
