@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 20ch; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(88, 101, 242, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(88, 101, 242, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(88, 101, 242, 0.5); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

body {
    text-align: center;
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: 20px;
    background: linear-gradient(-45deg, #5f73a1, #7f949f, #2c2f33, #23272a);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    color: #7289da;
    text-shadow: 2px 2px 4px rgba(88, 101, 242, 0.5);
    overflow: hidden;
    border-right: 2px solid #7289da;
    white-space: nowrap;
    width: 0;
    animation: typing 3s steps(30, end) forwards, blink 0.5s step-end infinite alternate;
    mix-blend-mode: difference;
}

p {
    font-size: 2rem;
    margin-bottom: 20px;
    max-width: 90%;
}

.decorative-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - 400px);
    pointer-events: none;
    z-index: -1;
}

.decorative {
    width: 100%;
    height: 100%;
}

.bot-image {
    width: 250px;
    height: 250px;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.bot-image:hover {
    transform: scale(1.2);
}

.bot-image.clicked {
    transform: scale(0.95);
}

.mouse-click-container {
    pointer-events: none;
    position: absolute;
    transform: translate(10px, -90px);
    width: 80px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.mouse-click-animation {
    width: 100%;
    height: auto;
}

.click-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: -10px;
    opacity: 0;
}


/* Responsive font sizes */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    p {
        font-size: 1.5rem;
    }

    .bot-image {
        width: 225px;
        height: 225px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    p {
        font-size: 1.25rem;
    }

    .bot-image {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.80rem;
    }

    p {
        font-size: 1rem;
    }

    .bot-image {
        width: 175px;
        height: 175px;
    }
}