:root {
    /* Colors - Teal/Green Theme */
    --primary: #2dd4bf;
    /* Teal 400 */
    --primary-dark: #0f766e;
    /* Teal 700 */
    --secondary: #4ade80;
    /* Green 400 */
    --accent: #a78bfa;
    /* Purple 400 (for subtle contrast) */

    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-card: rgba(30, 41, 59, 0.7);
    /* Slate 800 + Opacity */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-text: linear-gradient(to right, var(--primary), var(--secondary));

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-lg: 1rem;
    --radius-md: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.background-glow {
    position: fixed;
    top: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* Typography & Utils */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(45, 212, 191, 0.1);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(45, 212, 191, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--bg-dark);
    border: none;
    box-shadow: 0 4px 15px rgba(45, 212, 191, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 212, 191, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Chat Interface Styles - Mobile App Look */
.chat-interface {
    width: 100%;
    height: 600px;
    max-width: 380px;
    /* Mobile width */
    background: #0b141a;
    /* WhatsApp Dark equivalent or similar dark theme */
    border-radius: 30px;
    /* Phone rounded corners */
    border: 8px solid #333;
    /* Phone Frame bezel */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.chat-header {
    background: #202c33;
    /* Dark header */
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #e9edef;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.header-info h4 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.status-dot {
    font-size: 0.75rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: #0b141a;
    background-image: radial-gradient(#1f2c34 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message {
    max-width: 80%;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.message.bot {
    background: #202c33;
    color: #e9edef;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.message.user {
    background: #005c4b;
    /* WhatsApp Dark Green */
    color: #e9edef;
    align-self: flex-end;
    border-top-right-radius: 0;
}

/* Fix for Contrast Issue: Ensure text is readable */
.message.error {
    background: #3f1a1a;
    color: #fca5a5;
    align-self: center;
    font-size: 0.85rem;
    border: 1px solid #7f1d1d;
}

.typing-indicator-chat {
    background: #202c33;
    border-radius: 1rem;
    border-top-left-radius: 0;
    padding: 0.8rem 1rem;
    align-self: flex-start;
    display: flex;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.typing-indicator-chat span {
    width: 6px;
    height: 6px;
    background: #8696a0;
    border-radius: 50%;
    animation: typing 1s infinite;
}

.chat-input-area {
    padding: 0.8rem;
    background: #202c33;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-input-area input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: #2a3942;
    border: none;
    border-radius: 1.5rem;
    outline: none;
    color: #e9edef;
    /* Critical Fix: Text color */
    font-size: 0.95rem;
}

.chat-input-area input::placeholder {
    color: #8696a0;
}

.chat-input-area button {
    width: 45px;
    height: 45px;
    background: var(--primary);
    /* Teal Accent */
    border: none;
    border-radius: 50%;
    color: #0b141a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.chat-input-area button:hover {
    transform: scale(1.05);
    background: var(--secondary);
}

.chat-input-area button:disabled {
    background: #37404a;
    color: #5d6d7e;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .chat-interface {
        height: 500px;
        max-width: 100%;
        border-width: 0;
        /* Remove bezel on small screens */
        border-radius: var(--radius-lg);
    }
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Glass Card Visual */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.card-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.chat-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    max-width: 85%;
}

.message.bot {
    background: rgba(45, 212, 191, 0.1);
    color: var(--primary);
    border-bottom-left-radius: 0.2rem;
    align-self: flex-start;
}

.message.user {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-end;
    border-bottom-right-radius: 0.2rem;
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 3px;
    animation: typing 1s infinite;
}

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

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

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

/* Services */
.services {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(45, 212, 191, 0.1);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(45, 212, 191, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Demo Section */
.demo-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.demo-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-list {
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.features-list i {
    color: var(--secondary);
    width: 20px;
}

.demo-embed {
    width: 100%;
    min-height: 500px;
    background: transparent;
    /* Changed from #fff to transparent */
    border-radius: var(--radius-lg);
    /* overflow: hidden; Removed to allow shadow to show cleanly if needed, or keep it */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chatbot-placeholder {
    color: #333;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.chatbot-placeholder .note {
    font-size: 0.8rem;
    color: #666;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--bg-dark);
    /* Or transparent if you want bg glow to show through */
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-group input {
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.2);
}

/* Fix for Browser Autofill White Background */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1e293b inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.contact-form button[type="submit"] {
    margin-top: 1rem;
    justify-content: center;
    width: 100%;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #0b1120;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-links a {
    margin: 0 1rem;
    color: var(--text-muted);
}

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

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-left: 1rem;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .navbar .nav-links {
        display: none;
        /* Todo: Add JS Toggle */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero .container,
    .demo-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}