/* Global Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #9ea1a6;
    --accent-gradient: linear-gradient(90deg, #3b82f6, #22c55e);
    --btn-bg: #00ff88;
    --btn-hover: #00cc70;
    --text-color: #111827;
    --white: #fff;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
    --border-radius: 16px;
    --frame-border: 2px solid #e2e8f0;
    --btn-edge: 2px solid #00ff88;
}

[data-theme="dark"] {
    --primary-bg: #111827;
    --accent-gradient: linear-gradient(90deg, #1d4ed8, #16a34a);
    --btn-bg: #00cc70;
    --btn-hover: #00ff88;
    --text-color: #f9fafb;
    --white: #1f2937;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    --frame-border: 2px solid #4b5563;
    --btn-edge: 2px solid #00cc70;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}

body[data-theme] {
    background-color: var(--primary-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Divider */
.section-divider {
    width: 100%;
    max-width: 1200px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 20px auto;
}

/* Header */
header {
    background: var(--accent-gradient);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

header.scrolled {
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

nav a:hover {
    color: #e0e0e0;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--white);
    margin-left: 10px;
}

/* Hero Section */
.hero {
    position: relative;
    background: var(--accent-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
}

.hero-actions {
    margin-top: 20px;
}

.hero-actions .btn {
    margin: 0 10px;
}

.hero-bot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    height: auto;
}

/* Sections */
.services,
.pricing,
.contact,
.chatbot-showcase,
.why-chatbot {
    padding: 80px 0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.services h2,
.pricing h2,
.contact h2,
.chatbot-showcase h2,
.why-chatbot h2 {
    margin-bottom: 40px;
    font-size: 36px;
    font-weight: 700;
}

.services.visible,
.pricing.visible,
.contact.visible,
.chatbot-showcase.visible,
.why-chatbot.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Grids */
.service-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.chatbot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.service-card,
.chatbot-item-description,
.chatbot-role {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.service-card:hover,
.chatbot-item-description:hover,
.chatbot-role:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-card::before,
.chatbot-item-description::before,
.chatbot-role::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

/* Enhanced Service Card Styles */
.service-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #3b82f6;
    transition: var(--transition);
}

[data-theme="dark"] .service-card i {
    color: #1d4ed8;
}

.service-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p,
.service-card ul {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 15px;
}

[data-theme="dark"] .service-card p,
[data-theme="dark"] .service-card ul {
    color: #d1d5db;
}

.service-card p strong {
    font-weight: 600;
    color: var(--text-color);
}

.service-card i.fab {
    font-size: 1.2rem;
    vertical-align: middle;
    margin: 0 4px;
}

.service-card .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #007bff;
    margin: 20px 0;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card ul li {
    margin: 10px 0;
    position: relative;
    padding-left: 20px;
}

.service-card ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-size: 1.2rem;
}

/* Enhanced Why Chatbot Section Styles */
.why-chatbot p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    max-width: 800px;
    margin: 0 auto 40px;
}

[data-theme="dark"] .why-chatbot p {
    color: #d1d5db;
}

.why-chatbot i.fab {
    font-size: 1.2rem;
    vertical-align: middle;
    margin: 0 4px;
}

.need-highlights {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.need-highlights .service-card h3 {
    font-size: 1.25rem;
}

@media (max-width: 1024px) {
    .need-highlights {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .need-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .need-highlights {
        grid-template-columns: 1fr;
    }
}

/* Reverted Contact Section Styles */
.contact form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact input,
.contact textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    width: 100%;
}

.contact input:focus,
.contact textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.contact textarea {
    height: 150px;
    resize: vertical;
}

.contact button {
    align-self: center;
    width: 200px;
}

.contact p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-top: 20px;
}

[data-theme="dark"] .contact p {
    color: #d1d5db;
}

/* Chatbot Showcase */
.chatbot-showcase {
    background-color: #bac1c6;
}

.chatbot-showcase h2,
.chatbot-showcase p {
    color: var(--white);
}

.chatbot-item {
    position: relative;
    border: var(--frame-border);
    border-radius: var(--border-radius);
    padding: 15px;
    transition: var(--transition);
    min-height: 260px;
}

.chatbot-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.chatbot-item img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.chatbot-item:hover img {
    transform: scale(1.05);
}

.chatbot-item p {
    margin-top: 10px;
    text-align: center;
}

.chatbot-item p a.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    text-align: center;
    width: 100%;
    max-width: 150px;
}

.chatbot-role,
.chatbot-item-description {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: var(--text-color);
    padding: 10px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chatbot-item-description {
    max-height: 80px;
    overflow-y: auto;
}

.high-level-link {
    margin-top: 10px;
}

/* Hide chatbot-item-button */
.chatbot-item-button {
    display: none;
}

/* Hide Select a Demo Bot dropdown and its container */
#chatbot-tab select,
#chatbot-tab [role="listbox"],
#chatbot-tab [data-testid*="select"],
#chatbot-tab [data-testid*="dropdown"],
#chatbot-tab [class*="select"],
#chatbot-tab [class*="dropdown"],
#chatbot-tab span:contains("Select a Demo Bot"),
#chatbot-tab div:not(#chat-messages):not(.chat-input-container):not(:has(.close-btn)) {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: var(--btn-edge);
}

.btn:hover {
    filter: brightness(1.1);
}

.btn.name-btn {
    padding: 8px 16px;
    font-size: 14px;
    text-align: center;
    width: 100%;
    max-width: 150px;
}

.btn.secondary {
    background: #007bff;
}

.btn.secondary:hover {
    background: #0056b3;
}

.chatbot-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--btn-bg);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.chatbot-button:hover {
    background: var(--btn-hover);
}

.email-button,
.facebook-button,
.whatsapp-button {
    position: fixed;
    right: 20px;
    background: var(--btn-bg);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1000;
    text-decoration: none;
}

.email-button {
    bottom: 90px;
}

.facebook-button {
    bottom: 160px;
}

.whatsapp-button {
    bottom: 230px;
}

.email-button:hover,
.facebook-button:hover,
.whatsapp-button:hover {
    background: var(--btn-hover);
}

/* Chatbot Tab */
.chatbot-tab {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background: var(--white);
    border-right: 1px solid #ddd;
    padding: 20px;
    z-index: 1001;
    display: none;
}

.chatbot-tab.active {
    display: block;
}

.chatbot-tab #chat-messages {
    height: 70%;
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 5px;
}

.chatbot-tab .chat-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-tab #chat-input {
    width: 70%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.chatbot-tab .chat-input-container button {
    padding: 8px 16px;
    background: var(--btn-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.chatbot-tab .chat-input-container button:hover {
    background: var(--btn-hover);
}

.chatbot-tab .close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 14px;
    padding: 2px 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.chatbot-tab .close-btn:hover {
    color: var(--btn-hover);
}

/* Media Queries */
@media (max-width: 1024px) {
    .chatbot-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 10px 0;
    }

    .nav-list.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions .btn {
        display: block;
        margin: 10px auto;
    }

    .service-grid,
    .pricing-grid,
    .chatbot-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        width: 80%;
        margin-bottom: 20px;
    }

    .hero-bot {
        width: 150px;
        top: 10px;
        right: 10px;
    }

    .chatbot-button {
        bottom: 10px;
        left: 10px;
    }

    .email-button,
    .facebook-button,
    .whatsapp-button {
        bottom: 10px;
        right: 10px;
        margin: 70px 0 0 0;
    }

    .chatbot-tab {
        width: 250px;
        left: 10px;
    }

    .chatbot-tab #chat-input {
        width: 60%;
    }

    .contact form {
        max-width: 90%;
    }

    .contact input,
    .contact textarea {
        padding: 10px;
    }

    .contact button {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .btn,
    .btn.name-btn {
        padding: 10px 20px;
        font-size: 12px;
        max-width: 120px;
    }

    .chatbot-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        width: 90%;
    }

    .chatbot-tab {
        width: 200px;
    }

    .chatbot-tab #chat-messages {
        height: 150px;
    }

    .contact form {
        max-width: 95%;
    }

    .contact input,
    .contact textarea {
        padding: 8px;
        font-size: 0.9rem;
    }

    .contact button {
        width: 120px;
    }
}

/* Footer */
footer {
    background: var(--accent-gradient);
    padding: 20px 0;
    text-align: center;
    color: var(--white);
}