﻿/* From Uiverse.io by Cobp - Modified color palette */
.container-ai-input {
    --perspective: 1000px;
    --translateY: 45px;
    position: absolute;
    left: 0;
    right: 0;
    top: -2.5rem;
    bottom: -2.5rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    transform-style: preserve-3d;
}

.container-wrap {
    display: flex;
    align-items: center;
    justify-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%) scale(0.2);
    z-index: 9;
    transform-style: preserve-3d;
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
}

    .container-wrap:hover {
        padding: 0;
    }

    .container-wrap:after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateX(-50%) translateY(-55%);
        width: 12rem;
        height: 11rem;
        background-color: #CFE7DC;
        border-radius: 3.2rem;
        transition: all 0.3s ease;
    }

    .container-wrap:hover:after {
        transform: translateX(-50%) translateY(-50%);
        height: 12rem;
    }

    .container-wrap input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

.card {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
    transition: all 0.6s ease;
    border-radius: 3rem;
    display: flex;
    align-items: center;
    transform: translateZ(50px);
    justify-content: center;
}

    .card:hover {
        box-shadow: 0 10px 40px rgba(27, 77, 62, 0.25), inset 0 0 10px rgba(207, 231, 220, 0.5);
    }

.background-blur-balls {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 100%;
    height: 100%;
    z-index: -10;
    border-radius: 3rem;
    transition: all 0.3s ease;
    background-color: rgba(207, 231, 220, 0.8);
    overflow: hidden;
}

.balls {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    animation: rotate-background-balls 10s linear infinite;
}

.container-wrap:hover .balls {
    animation-play-state: paused;
}

.background-blur-balls .ball {
    width: 6rem;
    height: 6rem;
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
}

    .background-blur-balls .ball.violet {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        background-color: #97d092;
    }

    .background-blur-balls .ball.green {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        background-color: #39877b;
    }

    .background-blur-balls .ball.rosa {
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        background-color: #4d9e6a;
    }

    .background-blur-balls .ball.cyan {
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        background-color: #9dd7c5;
    }

.content-card {
    width: 12rem;
    height: 12rem;
    display: flex;
    border-radius: 3rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.background-blur-card {
    width: 100%;
    height: 100%;
    backdrop-filter: blur(50px);
}

.eyes {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    gap: 2rem;
    transition: all 0.3s ease;
}

    .eyes .eye {
        width: 26px;
        height: 52px;
        background-color: #ffffff;
        border-radius: 16px;
        animation: animate-eyes 10s infinite linear;
        transition: all 0.3s ease;
    }

    .eyes.happy {
        display: none;
        color: #ffffff;
        gap: 0;
    }

        .eyes.happy svg {
            width: 60px;
        }

.container-wrap:hover .eyes .eye {
    display: none;
}

.container-wrap:hover .eyes.happy {
    display: flex;
}

.container-ai-chat {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 6px;
    opacity: 0;
    pointer-events: none;
}

.area:nth-child(15):hover ~ .container-wrap .card,
.area:nth-child(15):hover ~ .container-wrap .eyes .eye {
    transform: perspective(var(--perspective)) rotateX(-15deg) rotateY(15deg) translateZ(var(--translateY)) scale3d(1, 1, 1);
}

@keyframes rotate-background-balls {
    from {
        transform: translateX(-50%) translateY(-50%) rotate(360deg);
    }

    to {
        transform: translateX(-50%) translateY(-50%) rotate(0);
    }
}

@keyframes animate-eyes {
    46% {
        height: 52px;
    }

    48% {
        height: 20px;
    }

    50% {
        height: 52px;
    }

    96% {
        height: 52px;
    }

    98% {
        height: 20px;
    }

    100% {
        height: 52px;
    }
}
