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

.container{
    width: 86%;
    margin: auto;
}

/* Chatbot Toggler Button */
#chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 35px;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--shadow-light);
    transition: all 0.2s ease;
    z-index: 1000;
    animation: pulse 2s infinite ease-in-out;
}

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

#chatbot-toggler .material-icons {
    color: var(--text-light);
    font-size: 24px;
}

/* Pulse Animation for Toggler */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(26, 60, 109, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(26, 60, 109, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(26, 60, 109, 0);
    }
}

/* Floating Intro Message */
#floating-intro-message {
    position: fixed;
    bottom: 90px;
    right: 35px;

    color: var(--text-light);
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-medium);
    z-index: 999;
    font-size: 0.85rem;
    line-height: 1.3;
    max-width: 250px;
    opacity: 0;
    /* Initially hidden */
    transform: translateY(20px);
    /* Initially slightly below */
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    /* Slower transition */
    pointer-events: none;
}

/* State when the message should be visible */
#floating-intro-message.show {
    opacity: 1;
    transform: translateY(0);
}

body.show-chatbot #floating-intro-message {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Chatbot Popup Window */
.chatbot-popup {
    position: fixed;
    right: 35px;
    bottom: 90px;
    width: 360px;
    height: 430px;
    background: var(--text-light);
    border-radius: 15px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transform-origin: bottom right;
    box-shadow: 0 0 20px var(--shadow-light);
    transition: all 0.2s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 15px 15px 0 0;
}

.chat-header .header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header .chatbot-logo {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header .chatbot-logo .material-icons {
    color: var(--text-light);
    font-size: 24px;
}

.chat-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.chat-header p {
    font-size: 0.9rem;
    color: #D9E4F1;
}

.chat-header .clear-chat {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.chat-header .clear-chat:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-header .clear-chat .material-icons {
    font-size: 24px;
}

/* Chat Body (messages area) */
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-light);
}

/* Individual Chat Message */
.chat-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

/* Bot Message Styling */
.chat-message.bot {
    align-items: flex-start;
    gap: 10px;
}

.chat-message.bot .message-content {
    background: var(--primary-color);
    border-radius: 10px 10px 10px 0;
    padding: 10px 15px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-light);
}

/* User Message Styling */
.chat-message.user {
    align-items: flex-end;
    align-self: flex-end;
}

.chat-message.user .message-content {
    background: var(--accent-color);
    color: var(--text-light);
    border-radius: 10px 10px 0 10px;
    padding: 10px 15px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Loading Message Styling */
.chat-message.loading {
    align-items: flex-start;
}

.chat-message.loading .message-content {
    background: var(--primary-color);
    border-radius: 10px 10px 10px 0;
    padding: 10px 15px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-light);
    font-style: italic;
}

/* Timestamp Styling */
.chat-message .timestamp {
    font-size: 0.7rem;
    color: #666;
    margin-top: 5px;
    align-self: flex-start;
}

.chat-message.user .timestamp {
    align-self: flex-end;
}

/* Options for initial questions */
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.option-btn {
    background: var(--secondary-color);
    color: var(--text-light);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.option-btn:hover {
    background: #2A4373;
}

.option-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Chat Input Area */
.chat-input {
    display: none;
    padding: 6px;
    background: var(--text-light);
    color: var(--text-dark);
    border-top: 1px solid #E0E4E9;
    border-radius: 0 0 15px 15px;
    align-items: center;
}

.chat-input.show {
    display: flex;
}

.chat-input textarea {
    flex: 1;
    border: none;
    resize: none;
    padding: 7px;
    padding-right: 10px;
    font-size: 0.9rem;
    outline: none;
    background: var(--bg-light);
    border-radius: 10px;
    margin-right: 15px;
    min-height: 40px;
    max-height: 100px;
    overflow-y: auto;
}

.chat-input textarea:focus {
    border: 1px solid var(--primary-color);
}

.chat-input button {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 10px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #15305B;
}

/* Error Message Styling */
.error-message {
    margin-left: 16px;
    margin-bottom: 6px;
    color: red;
    font-size: 0.8rem;
    display: none;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .chatbot-popup {
        width: 90%;
        right: 5%;
        bottom: 70px;
        height: 70vh;
    }

    #chatbot-toggler {
        bottom: 15px;
        right: 15px;
        height: 45px;
        width: 45px;
    }

    #chatbot-toggler .material-icons {
        font-size: 24px;
    }

    #floating-intro-message {
        right: 15px;
        bottom: 65px;
        max-width: 200px;
        font-size: 0.8rem;
    }
}

.container {
    padding: 20px;
}

.body {
    background-color: black;
}

section {
    font-family: 'Inter', sans-serif;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.gradient-text {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gradient-bottom-left {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    /* Equivalent to rounded-2xl */
    background: linear-gradient(to bottom right, #1e3a8a, #4c1d95);
    /* Equivalent to bg-gradient-to-br from-blue-900 to-purple-900 */
    padding: 2rem;
    /* Equivalent to p-8 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-bottom-right {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    /* Equivalent to rounded-2xl */
    background: linear-gradient(to bottom right, #2563eb, #7e22ce);
    /* Equivalent to bg-gradient-to-br from-blue-600 to-purple-600 */
    padding: 2rem;
    /* Equivalent to p-8 */
}

.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.marquee-item img {
    display: inline-block;
    vertical-align: middle;
}

.animate-marquee {
    display: flex;
    width: fit-content;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.marquee-container:hover .animate-marquee {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marquee-item img {
        width: 10vw;
        height: 10vw;
    }

    .animate-marquee {
        animation-duration: 15s;
    }
}
