@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: black;
    text-align: center;
    padding: 1rem; 
}

.centered-gif {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 1;
    padding: 1rem;
    max-height: 20vh; 
}

.content {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
    min-height: 10vh;
}

.content h2 {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 8vw; 
    left: 50%;
    top: 50%;
    line-height: 1.2;

    padding: 0 1rem;
}

.content h2:nth-child(1) {
    color: transparent;
    -webkit-text-stroke: 2px #03a9f4;
}

.content h2:nth-child(2) {
    color: #03a9f4;
    animation: animate 4s linear infinite;
}

@keyframes animate {
    0% {
        clip-path: polygon(0% 47%, 15% 45%, 32% 50%, 54% 60%, 70% 63%, 84% 60%, 100% 55%, 100% 100%, 0% 100%);
    }
    25% {
        clip-path: polygon(0% 55%, 16% 60%, 34% 62%, 51% 57%, 67% 48%, 84% 44%, 100% 50%, 100% 100%, 0% 100%);
    }
    50% {
        clip-path: polygon(0% 60%, 15% 65%, 34% 66%, 52% 61%, 70% 50%, 85% 45%, 100% 46%, 100% 100%, 0% 100%);
    }
    75% {
        clip-path: polygon(0% 55%, 15% 50%, 32% 47%, 54% 53%, 70% 58%, 85% 60%, 100% 55%, 100% 100%, 0% 100%);
    }
    100% {
        clip-path: polygon(0% 47%, 15% 45%, 32% 50%, 54% 60%, 70% 63%, 84% 60%, 100% 55%, 100% 100%, 0% 100%);
    }
}

.subtext {
    position: relative;
    text-transform: uppercase;
    top: 2rem;
    color: #03a9f4;
    font-size: 1.5vw;
    letter-spacing: 0.0625rem;
    text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: fadeSlideGlow 2s ease-out infinite alternate;
}

@keyframes fadeSlideGlow {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        text-shadow: 0 0 0 rgba(3, 169, 244, 0);
    }
    60% {
        opacity: 1;
        transform: translateY(0) scale(1.02);
        text-shadow: 0 0 8px rgba(3, 169, 244, 0.6);
    }
    100% {
        transform: translateY(0) scale(1);
        text-shadow: 0 0 4px rgba(3, 169, 244, 0.3);
    }
}

#chatbot-toggler {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    height: 3.5rem;
    width: 3.5rem;
    border: 2px ridge;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    background: #212f78;
    transition: all 0.2s ease;
    z-index: 1000;
}

body.show-chatbot #chatbot-toggler {
    transform: rotate(90deg);
}

#chatbot-toggler span {
    color: #fff;
    position: absolute;
}

body.show-chatbot #chatbot-toggler span:first-child,
#chatbot-toggler span:last-child {
    opacity: 0;
}

body.show-chatbot #chatbot-toggler span:last-child {
    opacity: 1;
}

.chatbot-popup {
    position: fixed;
    right: 1.5625rem;
    bottom: 5.625rem;
    width: 90%;
    max-width: 26.25rem;
    min-width: 18.75rem;
    background: #fff;
    overflow: hidden;
    border-radius: 0.9375rem;
    opacity: 0;
    transform: scale(0.2);
    transform-origin: bottom right;
    pointer-events: none;
    box-shadow: 0 0 8rem rgba(0, 0, 0, 0.1), 0 2rem 4rem -3rem rgba(0, 0, 0, 0.5);
    transition: all 0.1s ease;
}

body.show-chatbot .chatbot-popup {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.chat-header {
    display: flex;
    align-items: center;
    background: #212f78;
    padding: 0.9375rem 1.375rem;
    justify-content: space-between;
}

.chat-header .header-info {
    display: flex;
    gap: 0.625rem;
    align-items: center;
}

.header-info .chatbot-logo {
    height: 2.1875rem;
    width: 2.1875rem;
    padding: 0.375rem;
    fill: #212f78;
    flex-shrink: 0;
    background: #fff;
    border-radius: 50%;
}

.header-info .logo-text {
    color: #fff;
    font-size: 1.31rem;
    font-weight: 600;
}

.chat-header #close-chatbot {
    border: none;
    color: #fff;
    height: 2.5rem;
    width: 2.5rem;
    font-size: 1.9rem;
    margin-right: -0.625rem;
    padding-top: 0.125rem;
    cursor: pointer;
    border-radius: 50%;
    background: none;
    transition: 0.2s ease;
}

.chat-header #close-chatbot:hover {
    background: #25747d;
}

.chat-body {
    padding: 1.5625rem 1.375rem;
    display: flex;
    gap: 1.25rem;
    height: 60vh;
    max-height: 28.75rem;
    margin-bottom: 5.125rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #ccccf5 transparent;
    width: 100%;
    box-sizing: border-box;
}

.chat-body .message {
    display: flex;
    gap: 0.6875rem;
    align-items: flex-end;
    width: 100%;
}

.chat-body .bot-message .bot-avatar {
    height: 2.1875rem;
    width: 2.1875rem;
    padding: 0.375rem;
    fill: #fff;
    flex-shrink: 0;
    margin-bottom: 0.125rem;
    align-self: flex-end;
    background: #212f78;
    border-radius: 50%;
}

.chat-body .user-message {
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}

.chat-body .message .message-text {
    padding: 0.75rem 1rem;
    max-width: 75%;
    font-size: 0.95rem;
    background: #f2f2ff;
}

.chat-body .bot-message.thinking .message-text {
    padding: 0.125rem 1rem;
}

.chat-body .bot-message .message-text {
    background-color: #f2f2ff;
    border-radius: 0.8125rem 0.8125rem 0.8125rem 0.1875rem;
}

.chat-body .user-message .message-text {
    color: #fff;
    background-color: #212f78;
    border-radius: 0.8125rem 0.8125rem 0.1875rem 0.8125rem;
    margin-left: auto;
}

.chat-body .bot-message .thinking-indicator {
    display: flex;
    gap: 0.25rem;
    padding-block: 0.9375rem;
}

.chat-body .bot-message .thinking-indicator .dot {
    height: 0.4375rem;
    width: 0.4375rem;
    opacity: 0.7;
    border-radius: 50%;
    background: #6f6bc2;
    animation: dotPulse 1.8s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 44% {
        transform: translateY(0);
    }
    28% {
        opacity: 0.4;
        transform: translateY(-0.25rem);
    }
    44% {
        opacity: 0.2;
    }
}

.chat-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: white;
    padding: 0.9375rem 1.375rem 1.25rem;
}

.chat-footer .chat-form {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 2rem;
    outline: 1px solid #cccce5;
}

.chat-footer .chat-form:focus-within {
    outline: 2px solid #212f78;
}

.chat-form .message-input {
    border: none;
    outline: none;
    height: 2.9375rem;
    width: 100%;
    resize: none;
    max-height: 11.25rem;
    white-space: pre-line;
    font-size: 1rem;
    padding: 0.8125rem;
    border-radius: inherit;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.chat-form .message-input:hover {
    scrollbar-color: #ccccf5 transparent;
}

.chat-form .chat-controls {
    display: flex;
    height: 2.9375rem;
    gap: 0.1875rem;
    align-items: center;
    align-self: flex-end;
    padding-right: 0.375rem;
}

.chat-form .chat-controls button {
    height: 2.1875rem;
    width: 2.1875rem;
    border: none;
    font-size: 1.15rem;
    cursor: pointer;
    color: #706db0;
    background: none;
    border-radius: 50%;
    transition: 0.2s ease;
}

.chat-form .chat-controls #send-message {
    color: #fff;
    display: none;
    background: #212f78;
}

.chat-form .message-input:valid ~ .chat-controls #send-message {
    display: block;
}

.chat-form .chat-controls #send-message:hover {
    background: #212f78;
}

.chat-form .chat-controls button:hover {
    background: #f1f1f1;
}

.chat-body .user-message .attachment {
    width: 50%;
    margin-top: -0.4375rem;
    border-radius: 0.8125rem 0.1875rem 0.8125rem 0.1875rem;
}

em-emoji-picker {
    position: absolute;
    left: 50%;
    top: -21.0625rem;
    width: 100%;
    max-width: 21.875rem;
    max-height: 20.625rem;
    visibility: hidden;
    transform: translateX(-50%);
}

body.show-emoji-picker em-emoji-picker {
    visibility: visible;
}


@media screen and (max-width: 320px) { 
    .centered-gif {
        max-width: 70%;
        padding: 0.25rem;
        max-height: 35vh;
        position: absolute;
        top: 5rem;
    }
    .content h2 {
        font-size: 12vw;
        padding: 0 0.5rem;
    }
    .subtext {
        font-size: 2.5vw;
        top: 1rem;
    }
    #chatbot-toggler {
        height: 2.5rem;
        width: 2.5rem;
        bottom: 0.5rem;
        right: 0.5rem;
    }
    .chatbot-popup {
        bottom: 0.5rem;
        width: 95%;
    }
    .chat-header .header-info .logo-text {
        font-size: 0.9rem;
    }
    .chat-body .message .message-text {
        font-size: 0.75rem;
    }
    .chat-footer .chat-form .message-input {
        font-size: 0.75rem;
    }
}

@media screen and (min-width: 321px) and (max-width: 480px) { 
    .centered-gif {
        max-width: 80%;
        padding: 0.5rem;
        max-height: 35vh;
        position: absolute;
        top: 5rem;
    }
    .content h2 {
        font-size: 10vw;
        padding: 0 0.75rem;
    }
    .subtext {
        font-size: 3vw;
        top: 5rem;
    }
    #chatbot-toggler {
        height: 3rem;
        width: 3rem;
        bottom: 5rem;
        right: 2rem;
    }
    .chatbot-popup {
        bottom: 1rem;
        width: 80%;
    }
    .chat-header .header-info .logo-text {
        font-size: 1rem;
    }
    .chat-body .message .message-text {
        font-size: 0.875rem;
    }
    .chat-footer .chat-form .message-input {
        font-size: 0.875rem;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) { 
    .centered-gif {
        max-width: 85%;
        padding: 0.75rem;
        max-height: 35vh;
        position: absolute;
        top: 5rem;
    }
    .content h2 {
        font-size: 9vw;
        padding: 1rem;
    }
    .subtext {
        font-size: 2.5vw;
        top: 6rem;
    }
    #chatbot-toggler {
        height: 3.25rem;
        width: 3.25rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    .chatbot-popup {
        width: 85%;
        max-width: 22.5rem;
    }
    .chat-header .header-info .logo-text {
        font-size: 1.1rem;
    }
    .chat-body .message .message-text {
        font-size: 0.9rem;
    }
}

@media screen and (min-width: 769px) and (max-width: 1023px) { 
    .centered-gif {
        max-width: 90%;
        padding: 1rem;
        max-height: 35vh;
        position: absolute;
        top: 5rem;

    }
    .content h2 {
        font-size: 8.5vw;
        padding: 1.25rem;
    }
    .subtext {
        font-size: 2vw;
        top: 7rem;
    }
}

@media screen and (min-width: 1024px) { 
    .centered-gif {
        max-width: 100%;
        padding: 1rem;
        max-height: 100vh;
    }
    .content h2 {
        font-size: 8vw;
        padding: 1.5rem;
    }
    .subtext {
        font-size: 1.5vw;
        top: 6rem;
    }
}
 