﻿.thought-bubble {
    position: relative;
    display: inline-block;
    background: #fff;
    border: 2px solid #2C3E50;
    border-radius: 25px;
    padding: 0px 0px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: floatShadow 6s ease-in-out infinite;
}

    /* Bubble tail */
    .thought-bubble::before,
    .thought-bubble::after {
        content: "";
        position: absolute;
        background: #fff;
        border: 2px solid #2C3E50;
        border-top: none;
        border-right: none;
        border-radius: 50%;
    }

    .thought-bubble::before {
        width: 18px;
        height: 18px;
        bottom: -12px;
        left: 70px;
    }

    .thought-bubble::after {
        width: 10px;
        height: 10px;
        bottom: -20px;
        left: 55px;
    }

/* Message inside */
.message {
    color: #2C3E50;
    font-weight: 600;
    line-height: 1.5;
}

    .message .title {
        font-size: 29px;
        color: #2c52d2;
        font-weight: 800;
        display: block;
        margin-bottom: 6px;
    }

    .message .subtitle {
        font-size: 18px;
        font-style: italic;
        color: #666;
    }

/* 🌤️ Smooth Floating Animation with Shadow Fade */
@keyframes floatShadow {
    0% {
        transform: translateY(0);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    }

    25% {
        transform: translateY(-6px);
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.20);
    }

    50% {
        transform: translateY(-14px);
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.10); /* lighter shadow when higher */
    }

    75% {
        transform: translateY(-6px);
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.20);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    }
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
    .thought-bubble {
        padding: 15px 20px;
        border-radius: 20px;
    }

    .message .title {
        font-size: 16px;
    }

    .message .subtitle {
        font-size: 12px;
    }

    .thought-bubble::before {
        width: 15px;
        height: 15px;
        bottom: -10px;
        left: 60px;
    }

    .thought-bubble::after {
        width: 8px;
        height: 8px;
        bottom: -16px;
        left: 48px;
    }
}

@media (max-width: 480px) {
    .thought-bubble {
        padding: 12px 15px;
        max-width: 230px;
    }

    .message .title {
        font-size: 14px;
    }

    .message .subtitle {
        font-size: 11px;
    }
}
