body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8fafc; /* A fallback for older browsers */
    background-image: linear-gradient(to top, #e0eafc 0%, #cfdef3 100%); /* A cleaner, brighter light theme */
    transition: background-color 0.3s ease;
}

.dark body {
    background-color: #0f172a; /* A fallback for older browsers */
    background-image: linear-gradient(to top, #0f172a 0%, #1e293b 100%); /* A deeper, richer dark theme */
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* New Hero Page Styles */
.hero-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('./assets/images/hero-background.jpg');
    background-size: cover;
    background-position: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 3rem;
    text-align: center;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #3b82f6;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: pulse-new 2s infinite;
}

.hero-button:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}

@keyframes pulse-new {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* Letter-by-letter reveal */
.title span {
    opacity: 0;
    animation: reveal-letter 1s forwards;
}

@keyframes reveal-letter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Combined bloom and reveal for title */
.title.bloom-text span {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5),
                 0 0 10px rgba(255, 255, 255, 0.5),
                 0 0 15px rgba(173, 216, 230, 0.5),
                 0 0 20px rgba(173, 216, 230, 0.5);
    animation: reveal-letter 1s forwards, bloom 3s ease-in-out infinite;
}

/* Keep bloom-text as a marker, but it doesn't need direct styles anymore */
.bloom-text {
}

@keyframes bloom {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5),
                     0 0 10px rgba(255, 255, 255, 0.5),
                     0 0 15px rgba(173, 216, 230, 0.5),
                     0 0 20px rgba(173, 216, 230, 0.5);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.7),
                     0 0 20px rgba(255, 255, 255, 0.7),
                     0 0 30px rgba(173, 216, 230, 0.7),
                     0 0 40px rgba(173, 216, 230, 0.7);
    }
}

@keyframes emergency-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    }
}

.emergency-card-pulse {
    animation: emergency-pulse 1.5s infinite;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.gradient-text {
  background: -webkit-linear-gradient(45deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Style the Google Translate Dropdown */
#google_translate_element {
    margin-right: 1rem;
}
.goog-te-combo {
    background-color: #e0e7ff;
    color: #374151;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    padding: 8px;
    font-weight: 600;
}
.dark .goog-te-combo {
    background-color: #374151;
    color: #e5e7eb;
    border: 1px solid #4b5563;
}
/* In style.css */

/* ... (your existing CSS rules) ... */


/* ▼▼▼ ADD THE CODE BELOW ▼▼▼ */

/* --- Chatbot Styles --- */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-toggle {
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease-in-out, background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    background-color: #2563eb;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.dark .chatbot-window {
    background: #1e293b;
    border-color: #334155;
}

.chatbot-window.hidden {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

.chatbot-header {
    background: #3b82f6;
    color: white;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #1d4ed8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    font-weight: 600;
}

.dark .chatbot-header {
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

.close-chatbot {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.chatbot-messages {
    padding: 1rem;
    height: 250px;
    overflow-y: auto;
    color: #1f2937;
}

.dark .chatbot-messages {
    color: #e5e7eb;
}

.chatbot-message {
    padding: 0.75rem;
    border-radius: 8px;
    background: #f3f4f6;
    line-height: 1.5;
}

.dark .chatbot-message {
    background: #334155;
}

/* ADD THIS TO THE END OF style.css */

.chatbot-input-container {
    padding: 0.75rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.dark .chatbot-input-container {
    border-top-color: #334155;
    background: #1e293b;
}

.chatbot-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    outline: none;
}

.dark .chatbot-input {
    background: #334155;
    border-color: #4b5563;
    color: #e5e7eb;
}

.chatbot-message {
    margin-bottom: 0.5rem;
    max-width: 85%;
    clear: both;
}

.chatbot-message.user {
    background-color: #dbeafe; /* Light blue for user messages */
    margin-left: auto;
    float: right;
    text-align: right;
}

.dark .chatbot-message.user {
     background-color: #1e3a8a;
}

.chatbot-message.bot {
    background-color: #f3f4f6; /* Light gray for bot messages */
    float: left;
}

.dark .chatbot-message.bot {
     background-color: #334155;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 0.75rem;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    margin: 0 2px;
    background-color: #9ca3af;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-of-type(2) { animation-delay: -0.16s; }
.typing-indicator span:nth-of-type(3) { animation-delay: -0.32s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}
/* ▲▲▲ END OF CODE TO ADD ▲▲▲ */
