/* CVA Component Styles */
.cva {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 6rem 2rem;
    background: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.cva-wrap {
    width: 100%;
    max-width: 1000px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* HERO VISUAL AREA */
.cva-hero {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Orb */
.cva-orb {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #b02dfd 0%, rgba(176, 45, 253, 0) 70%);
    opacity: 0.2;
    filter: blur(40px);
    z-index: 0;
    animation: cva-orb-pulse 4s ease-in-out infinite alternate;
}

@keyframes cva-orb-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.15;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

/* ============================================
   CHAT BUBBLE HERO STYLES
   ============================================ */

.chat-bubble-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: chat-float 6s ease-in-out infinite;
}

@keyframes chat-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Main Chat Bubble */
.chat-bubble-main {
    width: 180px;
    height: 140px;
    background: linear-gradient(145deg, #7c3aed 0%, #5b21b6 50%, #4c1d95 100%);
    border-radius: 30px 30px 30px 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow:
        0 20px 60px rgba(124, 58, 237, 0.4),
        0 0 80px rgba(176, 45, 253, 0.2),
        inset 0 2px 20px rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

/* Glossy highlight on bubble */
.chat-bubble-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%);
    border-radius: 30px 30px 0 0;
    pointer-events: none;
}

/* Animated Typing Dots */
.chat-typing-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.chat-dot {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    animation: chat-dot-bounce 1.4s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chat-dot:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes chat-dot-bounce {

    0%,
    60%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-10px) scale(1.15);
        opacity: 1;
    }
}

/* Animated Chat Lines (simulating text) */
.chat-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 120px;
}

.chat-line {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    animation: chat-line-pulse 3s ease-in-out infinite;
}

.chat-line.line1 {
    width: 100%;
    animation-delay: 0s;
}

.chat-line.line2 {
    width: 75%;
    animation-delay: 0.3s;
}

.chat-line.line3 {
    width: 50%;
    animation-delay: 0.6s;
}

@keyframes chat-line-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleX(0.8);
        transform-origin: left;
    }

    50% {
        opacity: 0.6;
        transform: scaleX(1);
    }
}

/* Small Floating Response Bubbles */
.chat-mini-bubble {
    position: absolute;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(245, 242, 255, 0.9) 100%);
    border-radius: 16px 16px 16px 4px;
    box-shadow:
        0 8px 25px rgba(124, 58, 237, 0.2),
        0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 14px;
}

.chat-mini-bubble.mini1 {
    top: 15%;
    right: 5%;
    animation: mini-bubble-float1 5s ease-in-out infinite;
}

.chat-mini-bubble.mini2 {
    bottom: 25%;
    left: 5%;
    width: 35px;
    height: 25px;
    border-radius: 12px 12px 4px 12px;
    animation: mini-bubble-float2 6s ease-in-out infinite;
    animation-delay: 1s;
}

.mini-dot {
    width: 6px;
    height: 6px;
    background: #7c3aed;
    border-radius: 50%;
    animation: mini-dot-pulse 1.2s ease-in-out infinite;
}

.mini-dot:nth-child(1) {
    animation-delay: 0s;
}

.mini-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.mini-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes mini-dot-pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes mini-bubble-float1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(-5deg);
    }

    50% {
        transform: translate(-8px, -12px) rotate(5deg);
    }
}

@keyframes mini-bubble-float2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(5deg);
    }

    50% {
        transform: translate(10px, -8px) rotate(-3deg);
    }
}

/* Pulse Rings */
.cva-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(176, 45, 253, 0.3);
    border-radius: 50%;
    z-index: -1;
    animation: cva-ring-pulse 3s linear infinite;
}

.cva-ring.r1 {
    width: 300px;
    height: 300px;
    animation-delay: 0s;
}

.cva-ring.r2 {
    width: 300px;
    height: 300px;
    animation-delay: 1.5s;
}

@keyframes cva-ring-pulse {
    0% {
        width: 250px;
        height: 250px;
        opacity: 0.8;
        border-width: 2px;
    }

    100% {
        width: 450px;
        height: 450px;
        opacity: 0;
        border-width: 0px;
    }
}


/* CONTENT TYPOGRAPHY */
.cva-header {
    margin-bottom: 4rem;
}

.cva-title {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e0b24 0%, #4a1d5c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    font-weight: 800;
}

.cva-sub {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* PILLS */
.cva-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.cva-pill {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e0b24;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(176, 45, 253, 0.2);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(176, 45, 253, 0.1);
    transition: all 0.3s ease;
}

.cva-pill:hover {
    background: #fff;
    border-color: rgba(176, 45, 253, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(176, 45, 253, 0.2);
}

/* SERVICES GRID */
.cva-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 3rem;
    text-align: left;
}

/* GLASS CARDS */
.cva-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(176, 45, 253, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 25px rgba(176, 45, 253, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.cva-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(176, 45, 253, 0.2) 0%,
            rgba(124, 58, 237, 0.15) 50%,
            rgba(176, 45, 253, 0.25) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.cva-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px rgba(176, 45, 253, 0.15);
    border-color: rgba(176, 45, 253, 0.3);
}

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

/* Card Top with Icon */
.cva-cardTop {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Mini Icons */
.cva-miniIcon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(176, 45, 253, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-shrink: 0;
}

/* Three dots icon */
.cva-dot {
    width: 5px;
    height: 5px;
    background: #b02dfd;
    border-radius: 50%;
    animation: cva-dot-pulse 1.5s infinite ease-in-out;
}

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

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

@keyframes cva-dot-pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Wave icon */
.cva-miniWave {
    gap: 2px;
}

.cva-miniWave span {
    width: 3px;
    background: #b02dfd;
    border-radius: 2px;
    animation: cva-mini-wave 1s infinite ease-in-out;
}

.cva-miniWave span:nth-child(1) {
    height: 8px;
    animation-delay: 0s;
}

.cva-miniWave span:nth-child(2) {
    height: 14px;
    animation-delay: 0.1s;
}

.cva-miniWave span:nth-child(3) {
    height: 10px;
    animation-delay: 0.2s;
}

.cva-miniWave span:nth-child(4) {
    height: 16px;
    animation-delay: 0.3s;
}

.cva-miniWave span:nth-child(5) {
    height: 8px;
    animation-delay: 0.4s;
}

@keyframes cva-mini-wave {

    0%,
    100% {
        transform: scaleY(0.6);
    }

    50% {
        transform: scaleY(1.2);
    }
}

/* Pulse icon */
.cva-miniPulse {
    position: relative;
}

.cva-miniPulse::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #b02dfd;
    border-radius: 50%;
    animation: cva-pulse-glow 1.5s infinite ease-in-out;
}

@keyframes cva-pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(176, 45, 253, 0.5);
        transform: scale(0.9);
    }

    50% {
        box-shadow: 0 0 12px 4px rgba(176, 45, 253, 0.3);
        transform: scale(1.1);
    }
}

/* Link icon */
.cva-miniLink {
    position: relative;
}

.cva-miniLink::before,
.cva-miniLink::after {
    content: '';
    width: 10px;
    height: 10px;
    border: 2px solid #b02dfd;
    border-radius: 4px;
    position: absolute;
}

.cva-miniLink::before {
    top: 8px;
    left: 8px;
}

.cva-miniLink::after {
    bottom: 8px;
    right: 8px;
}

/* Card FX (shine effect) */
.cva-cardFx {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    transform: skewX(-20deg);
    pointer-events: none;
    transition: none;
}

.cva-card:hover .cva-cardFx {
    animation: cva-shine 0.6s ease-out forwards;
}

@keyframes cva-shine {
    0% {
        left: -100%;
    }

    100% {
        left: 150%;
    }
}

.cva-card h3 {
    font-size: 1rem;
    color: #1e0b24;
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cva-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* CTA */
.cva-btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    background: linear-gradient(145deg, #6d28d9 0%, #5b21b6 40%, #4c1d95 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.9rem;
    box-shadow: 0 4px 25px rgba(109, 40, 217, 0.35),
        0 0 50px rgba(139, 92, 246, 0.15);
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.cva-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.25) 50%,
            transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.cva-btn:hover::before {
    left: 150%;
}

.cva-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 35px rgba(109, 40, 217, 0.45),
        0 0 70px rgba(139, 92, 246, 0.25);
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .cva-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .cva-title {
        font-size: 2.5rem;
    }

    .cva-header {
        margin-bottom: 3rem;
    }
}