:root {
    --primary-color: #000000;
    --secondary-color: #f1f5f9;
    --accent-color: #333333;
    --text-color: #334155;
    --whatsapp-outgoing: #dcf8c6;
    --whatsapp-incoming: #ffffff;
    --whatsapp-bg: #e5ddd5;
    --whatsapp-header: #075e54;
    --whatsapp-send: #128c7e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Title Styles */
.title-container {
    position: relative;
    padding: 0.5rem;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.tagline {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-weight: 400;
    font-style: italic;
}

.tagline-mobile {
    display: none; /* Hide mobile tagline on desktop */
}

/* Remove hover effects from title */
.title-content {
    display: none;
}


/* Navbar Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.nav-item {
    margin: 0 1.5rem;
    position: relative;
}

.nav-link {
    color: var(--text-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--secondary-color);
}

.info-hover {
    position: relative;
}

.hover-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.info-hover:hover .hover-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.hover-content h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hover-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-color);
}

/* Main Content Styles */
.main-content {
    padding-top: 0.25rem;
}

.header {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.5rem;
}

/* Chat Area Styles */
.chat-container {
    max-width: 1000px;
    margin: 0.5rem auto 1rem;
    height: 600px;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.2);
    animation: fadeBorder 2s ease-in-out infinite;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
}

.message {
    max-width: 80%;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    animation: fadeIn 0.3s ease;
    line-height: 1.5;
    white-space: pre-wrap;
}

.message.user {
    background-color: #0B93F6;
    color: white;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message.system {
    background-color: var(--secondary-color);
    margin-right: auto;
    color: var(--text-color);
}

.chat-input-container {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border-radius: 0 0 24px 24px;
}

.chat-form {
    max-width: 100%;
    margin: 0 auto;
}

/* Input and Button Styles */
.input-group .btn {
    border-radius: 0 16px 16px 0;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
    color: #ffffff !important;
}

.input-group .form-control {
    border-radius: 16px 0 0 16px;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--secondary-color);
    transition: border-color 0.2s ease;
}

.input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.input-group .btn i {
    color: #ffffff !important;
    font-size: 1.2rem;
}
.input-group .btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    opacity: 1;
}

/* Feature Buttons */
.feature-buttons {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 2rem auto 0;
    max-width: 800px;
}

/* Why Section */
.why-section {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
    padding: 0 2rem;
}

.why-section h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.why-section p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}


.feature-button {
    width: auto;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 24px;
    background-color: #f3f4f6;
    color: var(--text-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.feature-button:hover {
    background-color: #e5e7eb;
    transform: translateY(-2px);
}

.feature-button .button-label {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 48px;
}

.feature-button i {
    font-size: 1rem;
}

.feature-button .hover-content {
    width: 200px;
}

.feature-button-container {
    position: relative;
}

/* Hide feature content by default */
.feature-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 250px;
    margin-top: 0.5rem;
    z-index: 1000;
}

/* Show feature content on hover */
.feature-button-container:hover .feature-content.hover-only {
    display: block;
}

.whatsapp-button {
    order: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat container border animation */
@keyframes fadeBorder {
    0% { border-color: rgba(0, 0, 0, 0.1); }
    50% { border-color: rgba(0, 0, 0, 0.3); }
    100% { border-color: rgba(0, 0, 0, 0.1); }
}


/* Input Flash Animation */
@keyframes flashBorder {
    0% {
        border-color: var(--secondary-color);
    }
    50% {
        border-color: var(--primary-color);
    }
    100% {
        border-color: var(--secondary-color);
    }
}

.flash-input {
    animation: flashBorder 2s infinite;
}

.flash-input:focus {
    animation: none;
    border-color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
        overflow-x: hidden;
    }

    .header {
        padding: 0.25rem 0;
        margin-bottom: 0.5rem;
    }

    .logo {
        font-size: 2rem;
        margin: 0;
    }

    .tagline {
        display: none; /* Hide original tagline on mobile */
    }
    
    .tagline-mobile {
        display: block;
        font-size: 0.9rem;
        color: var(--text-color);
        opacity: 0.8;
        font-style: italic;
        text-align: center;
        margin: 1.5rem auto 0.5rem;
        font-weight: 400;
    }

    .chat-container {
        height: 70vh;
        margin: 0.5rem auto;
    }

    .feature-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 0 1rem;
        padding-bottom: 4rem;  /* Increased padding-bottom */
    }

    .feature-button-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .feature-button {
        width: 80%;
        max-width: 300px;
    }

    /* Ensure WhatsApp button appears first on mobile */
    .whatsapp-button {
        order: -1;
    }

    .feature-content {
        width: 90%;
        max-width: 300px;
    }

    /* Adjust spacing for model info text */
    .model-info {
        margin: 0.5rem 0;
    }

    /* Adjust static title content spacing */
    .static-title-content {
        margin: 1rem auto;
        padding: 1rem;
    }
    .navbar {
        padding: 0.25rem;
    }
    .title-container {
        padding: 0.5rem;
    }

    .main-content {
        padding-top: 0.25rem;
    }
    .chat-container {
        margin-bottom:0.5rem;
    }
    body {
        overflow-x: hidden;
    }
    .footer {
        margin-top: 4rem; /* Increased margin-top */
    }
}

.hover-content .brand-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hover-content .brand-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* WhatsApp Theme Colors */

/* WhatsApp Chat Styles */
.chat-container.whatsapp-theme {
    background-color: var(--whatsapp-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/svg%3E");
}

.whatsapp-theme .message {
    border-radius: 7.5px;
    padding: 8px 12px;
    position: relative;
    max-width: 65%;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

.whatsapp-theme .message.user {
    background-color: var(--whatsapp-outgoing);
    color: #303030;
    margin-left: auto;
    margin-right: 15px;
}

.whatsapp-theme .message.system {
    background-color: var(--whatsapp-incoming);
    color: #303030;
    margin-left: 15px;
}

.whatsapp-theme .chat-input-container {
    background-color: #f0f0f0;
    padding: 10px;
}

.whatsapp-theme .input-group .form-control {
    border-radius: 20px;
    background-color: white;
    border: none;
    padding-left: 20px;
}

.whatsapp-theme .input-group .btn {
    background-color: var(--whatsapp-send);
    border-color: var(--whatsapp-send);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-theme .input-group .btn i {
    color: #ffffff !important;
    font-size: 1.2rem;
}

/* Triangle tips for messages */
.whatsapp-theme .message.user:after {
    content: "";
    position: absolute;
    right: -8px;
    top: 0;
    border: 10px solid transparent;
    border-left-color: var(--whatsapp-outgoing);
    border-top: 0;
    border-right: 0;
}

.whatsapp-theme .message.system:after {
    content: "";
    position: absolute;
    left: -8px;
    top: 0;
    border: 10px solid transparent;
    border-right-color: var(--whatsapp-incoming);
    border-top: 0;
    border-left: 0;
}

/* Model Info Text */
.model-info {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 2rem 0;
    font-style: italic;
}

/* Feature Buttons Container */
.feature-content {
    background-color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: left;
}

.feature-content h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-color);
}


/* Brand links styling */
.feature-content .brand-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.feature-content .brand-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsive adjustments */

/* Footer Styles */
.footer {
    background-color: var(--secondary-color);
    padding: 1.5rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links a.active {
    color: var(--primary-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .footer {
        margin-top: 4rem; /* Increased margin-top */
    }
}

/* News Page Styles */
.news-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-post {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--secondary-color);
}

.blog-post h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.post-meta {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-coming-soon {
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 12px;
    margin-top: 2rem;
}

/* Update navbar styles for mobile */
.navbar-toggler {
    display: none;
    border: none;
    padding: 0.5rem;
    color: var(--text-color);
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .navbar-nav {
        flex-direction: column;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .footer {
        margin-top: 4rem; /* Increased margin-top */
    }
}

/* Add to existing chat styles */
.chat-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0 1rem;
}

.chat-button {
    background-color: var(--secondary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* WhatsApp theme button styles */
.whatsapp-theme .chat-buttons {
    margin: 0.5rem 0;
}

.whatsapp-theme .chat-button {
    background-color: var(--whatsapp-send);
    color: white;
}

.whatsapp-theme .chat-button:hover {
    background-color: var(--whatsapp-header);
}

/* Contact Information Styling */
.contact-field {
    margin: 8px 0;
    display: flex;
    flex-direction: column;
}

.contact-field strong {
    color: inherit;
    font-size: 0.9em;
    margin-bottom: 2px;
}

.contact-field span {
    font-size: 1.1em;
    margin-left: 4px;
}

/* WhatsApp theme specific contact styling */
.whatsapp-theme .contact-field {
    border-left: 3px solid rgba(0, 0, 0, 0.1);
    padding-left: 8px;
    margin: 6px 0;
}

.whatsapp-theme .contact-field strong {
    font-size: 0.85em;
    opacity: 0.8;
}

.whatsapp-theme .contact-field span {
    font-size: 1em;
}

/* Add to existing chat styles */

/* Apple-style typing indicator */
.typing-indicator {
    display: none;
    background-color: #e6e7ec;
    width: auto;
    border-radius: 33px;
    padding: 10px;
    height: 35px;
    width: 55px;
    position: relative;
    margin: 15px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    float: left;
    margin: 0 1px;
    background-color: #9e9ea1;
    display: block;
    border-radius: 50%;
    opacity: 0.4;
}

.typing-indicator span:nth-child(1) {
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation: typing 1s infinite 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation: typing 1s infinite 0.4s;
}

@keyframes typing {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.4;
        transform: scale(1);
    }
}

/* WhatsApp theme typing indicator */
.whatsapp-theme .typing-indicator {
    background-color: var(--whatsapp-incoming);
    margin-left: 15px;
}

.whatsapp-theme .typing-indicator:after {
    content: "";
    position: absolute;
    left: -8px;
    top: 0;
    border: 10px solid transparent;
    border-right-color: var(--whatsapp-incoming);
    border-top: 0;
    border-left: 0;
}

/* Hide old loading spinner */
.loading-spinner {
    display: none !important;
}

/* Remove the static title content since it's now in the Why button */
.static-title-content {
    display: none;
}

/*Responsive adjustments for wider "Why" button content*/
@media (max-width: 768px) {
    .feature-button-container:nth-child(2) .feature-content {
        width: 90%;
        max-width: 300px;
    }
}