/* 1. Master Background Gradient */
body {
    background: linear-gradient(-45deg, #f8fafc, #f0fdf4, #ffffff, #e2e8f0);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    margin: 0;
}

@keyframes gradientShift { 
    0% { background-position: 0% 50%; } 
    50% { background-position: 100% 50%; } 
    100% { background-position: 0% 50%; } 
}

/* 2. 3D Tilt Card (Premium Perspective) */
.tilt-card { 
    transition: transform 0.2s ease-out, box-shadow 0.3s ease; 
    perspective: 1000px;
    transform-style: preserve-3d;
}
.tilt-card:hover { 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); 
}

/* 3. AI Animation Classes */
.ai-pulse { animation: pulseGlow 3s infinite ease-in-out; }
@keyframes pulseGlow { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

.float-element { animation: floating 6s infinite ease-in-out; }
@keyframes floating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* 4. Chat Bubbles */
.pop-bubble { 
    position: absolute; 
    background: white; 
    padding: 12px 20px; 
    border-radius: 20px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    font-size: 13px; 
    font-weight: 700; 
    animation: popUp 6s infinite; 
    z-index: 10;
}
@keyframes popUp { 
    0%, 100% { transform: scale(0); opacity: 0; } 
    20%, 80% { transform: scale(1); opacity: 1; } 
}

/* Infinite Marquee Animation */
.marquee-wrapper {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Pause animation on hover */
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}
