/* Import Google Fonts for a modern, mature look */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Montserrat:wght@700&display=swap');

/* --- General Body Styles --- */
body {
    font-family: 'Open Sans', sans-serif; /* Primary font for body text */
    margin: 0;
    padding: 0;
    background-color: #F8F9FA; /* Very light grey/off-white background */
    color: #343A40; /* Dark charcoal for main text */
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif; /* Header font for impact */
    color: #212529; /* Even darker charcoal for headings */
    line-height: 1.2;
    margin-top: 0;
}

a {
    text-decoration: none;
    color: #007BFF; /* Primary blue for links */
    transition: color 0.3s ease;
}

a:hover {
    color: #0056B3; /* Darker blue on hover */
}

/* --- Utility Classes --- */
.section-padding {
    padding: 60px 20px; /* Generous padding for sections */
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFC107; /* Accent color under titles */
    border-radius: 2px;
}

.bg-light {
    background-color: #E9ECEF; /* Light grey background for alternating sections */
}

/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px; /* Slightly rounded for maturity */
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.button.primary {
    background-color: #007BFF; /* Vibrant blue */
    color: #FFFFFF;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.button.primary:hover {
    background-color: #0056B3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

.button.secondary {
    background-color: #6C757D; /* Muted grey */
    color: #FFFFFF;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2);
}

.button.secondary:hover {
    background-color: #5A6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3);
}

/* --- Header --- */
header {
    background-color: #FFFFFF; /* White header for a clean look */
    color: #343A40;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure header stays on top */
}

header .logo-container {
    display: flex;
    align-items: center;
}

header .company-logo {
    height: 45px; /* Slightly smaller logo */
    margin-right: 15px;
    filter: none; /* Ensure logo color is natural */
}

header h1 {
    margin: 0;
    font-size: 1.6em;
    font-weight: 700;
    color: #212529;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 30px;
}

header nav ul li a {
    color: #495057; /* Darker grey for nav links */
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #007BFF; /* Blue accent underline */
    transition: width 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
}

header nav ul li a:hover {
    color: #007BFF;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1600x600/505050/FFFFFF?text=Modern+Technology+Background') no-repeat center center / cover;
    color: #FFFFFF;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-section h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    color: #FFFFFF;
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 400;
    opacity: 0.9;
}

/* --- Solutions Grid --- */
.solutions-grid .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solution-card {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.solution-card .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #F0F4FF; /* Light blue accent */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.1);
}

.solution-card .icon-circle img {
    width: 50px; /* Size for placeholder images */
    height: 50px;
}

.solution-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #212529;
}

.solution-card p {
    font-size: 1em;
    color: #6C757D;
    margin-bottom: 25px;
    flex-grow: 1;
}

.solution-card.coming-soon .status-tag {
    background-color: #FFC107; /* Warning yellow */
    color: #343A40;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.feature-item img {
    margin-bottom: 20px;
    height: 60px; /* Icon size */
}

.feature-item h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #212529;
}

.feature-item p {
    color: #6C757D;
}

/* --- Contact Section --- */
.contact-info {
    text-align: center;
    background-color: #F8F9FA; /* Matches body background */
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #495057;
}

.contact-info a {
    color: #007BFF;
    font-weight: 600;
}

.contact-details {
    margin-top: 30px;
    margin-bottom: 40px;
}

/* --- Footer --- */
footer {
    background-color: #343A40; /* Dark charcoal footer */
    color: #DEE2E6; /* Light grey text */
    text-align: center;
    padding: 30px 20px;
    margin-top: auto; /* Pushes footer to the bottom */
    font-size: 0.9em;
}

footer .footer-links {
    margin-bottom: 15px;
}

footer .footer-links a {
    color: #DEE2E6;
    margin: 0 20px;
    font-weight: 400;
}

footer .footer-links a:hover {
    color: #ADB5BD;
}

/* --- Chat Widget Styles (Modernized for this theme) --- */
#chat-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 340px;
    max-height: 480px;
    background-color: #FFFFFF;
    border: 1px solid #CED4DA; /* Light grey border */
    border-radius: 12px; /* More rounded for maturity */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    font-size: 0.95em;
    transition: height 0.3s ease, box-shadow 0.3s ease;
}

#chat-header {
    background-color: #007BFF; /* Vibrant blue header for chat */
    color: #FFFFFF;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    font-family: 'Montserrat', sans-serif;
}

#chat-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #FFFFFF;
}

#chat-toggle-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px; /* Pill-shaped button */
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

#chat-toggle-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

#chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #F8F9FA; /* Lightest grey for message background */
    display: flex;
    flex-direction: column;
}

.user-message, .bot-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px; /* More rounded chat bubbles */
    margin-bottom: 12px;
    word-wrap: break-word;
    font-size: 0.95em;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.bot-message {
    background-color: #E2E3E5; /* Light grey for bot */
    color: #343A40;
    align-self: flex-start;
    border-bottom-left-radius: 4px; /* Slight "tail" effect */
}

.user-message {
    background-color: #007BFF; /* Blue for user */
    color: #FFFFFF;
    align-self: flex-end;
    border-bottom-right-radius: 4px; /* Slight "tail" effect */
}

#chat-input-container {
    display: flex;
    padding: 10px 15px;
    border-top: 1px solid #E9ECEF;
    background-color: #FFFFFF;
}

#chat-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #CED4DA;
    border-radius: 20px; /* Rounded input field */
    margin-right: 10px;
    font-size: 1em;
    outline: none; /* Remove default outline */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#chat-input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#send-button {
    background-color: #28A745; /* Green send button */
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#send-button:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

#typing-indicator, #error-message {
    padding: 8px 15px;
    font-style: italic;
    font-size: 0.85em;
    background-color: #E9ECEF;
    display: none;
    color: #6C757D;
}

#error-message {
    color: #DC3545; /* Red for errors */
    background-color: #F8D7DA;
    border: 1px solid #F5C6CB;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2em;
    }
    .hero-section h2 {
        font-size: 2.8em;
    }
    .hero-section p {
        font-size: 1.1em;
    }
    header nav ul li {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
    }
    header nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    header nav ul li {
        margin: 5px 10px;
    }
    .section-padding {
        padding: 40px 15px;
    }
    .section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .hero-section {
        padding: 80px 20px;
        min-height: 350px;
    }
    .hero-section h2 {
        font-size: 2.2em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .solutions-grid .grid-container,
    .features-grid {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }
    .solution-card, .feature-item {
        margin-bottom: 20px;
    }
    #chat-widget-container {
        width: 90%;
        right: 5%;
        bottom: 20px;
        max-height: 70vh; /* Use viewport height for better mobile fit */
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }
    header .company-logo {
        height: 35px;
    }
    header h1 {
        font-size: 1.3em;
    }
    .hero-section h2 {
        font-size: 1.8em;
    }
    .hero-section p {
        font-size: 0.9em;
    }
    .button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .solution-card h3 {
        font-size: 1.6em;
    }
    .feature-item h4 {
        font-size: 1.3em;
    }
    #chat-widget-container {
        bottom: 10px;
        right: 5%;
        width: 90%;
    }
}

/* --- ... (Your existing colorful_style.css content) ... --- */

/* Styling for the new floating chat icon */
#floating-chat-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px; /* Size of the icon */
    height: 60px;
    border-radius: 50%; /* Makes it circular */
    background-color: #007BFF; /* Primary blue, matches your theme */
    color: #FFFFFF;
    font-size: 30px; /* Size of the emoji */
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4); /* Nice shadow */
    cursor: pointer;
    z-index: 1001; /* Ensure it's above other elements */
    transition: transform 0.2s ease, opacity 0.3s ease;

    /* Initially hidden by default, will be shown by JS when chat is minimized */
    opacity: 0;
    pointer-events: none; /* Prevents interaction when hidden */
}

#floating-chat-icon:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Class added by JS to show the floating icon */
#floating-chat-icon.visible {
    opacity: 1;
    pointer-events: auto; /* Allow interaction */
}


/* Adjust chat widget container to be hidden when minimized (by JS adding 'hidden' class) */
#chat-widget-container.hidden {
    opacity: 0;
    pointer-events: none; /* Prevents clicks/interactions */
    transform: translateY(20px) scale(0.95); /* A slight animation effect */
    display: none; /* Completely hide the container when minimized to icon */
}


/* Media queries for responsive adjustments on the floating icon */
@media (max-width: 768px) {
    #floating-chat-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}