/* General Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header { background-color: #0A2540; color: #fff; padding: 1rem 0; position: sticky; top: 0; z-index: 999; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: #fff; text-decoration: none; }
nav ul { list-style: none; display: flex; gap: 20px; margin: 0; }
nav a { color: #fff; text-decoration: none; font-weight: 600; }
.cta-button { background-color: #FF6B6B; padding: 10px 20px; border-radius: 5px; transition: background-color 0.3s; }
.cta-button:hover { background-color: #e05252; }

/* Hero Section */
#hero { background-color: #0A2540; color: #fff; text-align: center; padding: 100px 0; }
#hero h1 { font-size: 3rem; margin-bottom: 1rem; }
#hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem; }
.cta-button-large { background-color: #FF6B6B; color: #fff; padding: 15px 30px; border-radius: 5px; text-decoration: none; font-weight: 600; font-size: 1.1rem; transition: background-color 0.3s; }
.cta-button-large:hover { background-color: #e05252; }

/* Features Section */
#features { padding: 80px 0; text-align: center; }
#features h2 { font-size: 2.5rem; margin-bottom: 40px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { background-color: #f9f9f9; padding: 30px; border-radius: 8px; text-align: left; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; }

/* About Us Section */
#about { background-color: #f0f4f8; padding: 80px 0; }
#about .container { max-width: 800px; text-align: center; }
#about h2 { font-size: 2.5rem; margin-bottom: 20px; }

/* Footer */
footer { background-color: #0A2540; color: #fff; text-align: center; padding: 20px 0; }


/* --- CHAT WIDGET STYLES --- */
.chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; }
.chat-icon-btn { width: 60px; height: 60px; border-radius: 50%; background-color: #0A2540; color: white; border: none; cursor: pointer; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 8px rgba(0,0,0,0.2); transition: transform 0.2s ease-in-out; }
.chat-icon-btn:hover { transform: scale(1.1); }
.chat-window { width: 350px; max-height: 500px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); overflow: hidden; display: flex; flex-direction: column; background-color: #ffffff; margin-bottom: 15px; transform: translateY(20px) scale(0.95); opacity: 0; visibility: hidden; transition: all 0.3s ease-in-out; }
.chat-window.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.chat-header { background-color: #0A2540; color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; }
.chat-header h2 { margin: 0; font-size: 1.2em; }
.close-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
.chat-body { flex: 1; padding: 15px; overflow-y: auto; background-color: #f9f9f9; display: flex; flex-direction: column; }
.message { max-width: 80%; margin-bottom: 10px; line-height: 1.4; }
.message p { padding: 10px 15px; border-radius: 18px; margin: 0; }
.message.received { align-self: flex-start; }
.message.received p { background-color: #e9e9eb; color: #333; }
.message.sent { align-self: flex-end; }
.message.sent p { background-color: #007bff; color: white; }
.chat-footer { display: flex; padding: 10px; border-top: 1px solid #ddd; background-color: #fff; }
#chat-input { flex: 1; border: 1px solid #ccc; border-radius: 20px; padding: 10px 15px; font-size: 1em; margin-right: 10px; }
#send-message-btn { background-color: #FF6B6B; color: white; border: none; border-radius: 20px; padding: 10px 20px; cursor: pointer; font-weight: bold; transition: background-color 0.2s; }
#send-message-btn:hover { background-color: #e05252; }

/* Responsive */
@media (max-width: 768px) {
    nav ul { display: none; }
    #hero h1 { font-size: 2.5rem; }
    .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .chat-window { width: 100vw; height: 100%; max-height: 100%; position: fixed; top: 0; right: 0; bottom: 0; left: 0; margin: 0; border-radius: 0; }
    .chat-icon-btn { z-index: 1001; }
}