:root {
    /* Brand colours inspired by LupAI logo */
    --primary: #008281;           /* main accent teal */
    --primary-dark: #004059;      /* dark teal for contrast */
    --secondary: #00a79d;         /* lighter teal */
    --light-bg: #f5f9fa;         /* pale background for cards */
    --text-dark: #263238;        /* dark text */
    --text-muted: #546e7a;       /* muted text */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Reset unordered lists to avoid stray outlines. Hidden by default
    unless specifically enabled (e.g. for navigation). */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}

/* Navigation bar */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 64, 89, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    color: white;
}

header img.logo {
    height: 40px;
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

header nav ul li a:hover {
    color: var(--secondary);
}

/* Hero section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 120px 1.5rem 80px;
}

.hero-content {
    flex: 1 1 500px;
    padding-right: 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-buttons a {
    display: inline-block;
    margin-right: 15px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: background 0.3s;
}

.hero-buttons .cta-primary {
    background: var(--secondary);
}

.hero-buttons .cta-secondary {
    border: 2px solid white;
    background: transparent;
}

.hero-buttons .cta-primary:hover {
    background: #00baa7;
}

.hero-buttons .cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-image {
    flex: 1 1 400px;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 480px;
    height: auto;
}

/* Section titles */
section {
    padding: 60px 1.5rem;
    /* when navigating via anchor links, offset top content to
        account for the fixed header */
    scroll-margin-top: 80px;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

section p.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Agents section */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.agent-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.agent-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.agent-card .agent-body {
    padding: 20px;
}

.agent-card h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.agent-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Benefits section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.benefit {
    background: var(--light-bg);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--secondary);
}

.benefit i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.benefit h4 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.benefit p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Use cases section */
.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.usecase {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.usecase:hover {
    transform: translateY(-5px);
}

.usecase img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: brightness(0.75);
}

.usecase .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
}

.usecase h4 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.usecase p {
    margin: 0;
    font-size: 0.85rem;
}

/* Contact section */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.contact-card {
    background: var(--light-bg);
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-card h4 {
    margin: 0 0 10px;
    color: var(--primary-dark);
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-card a, .contact-card button {
    margin-top: 10px;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: white;
    background: var(--primary);
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-card a:hover, .contact-card button:hover {
    background: var(--secondary);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 14px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: var(--secondary);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 40px 1.5rem;
    text-align: center;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;   
    right: 20px;
    z-index: 999;
    background: #25D366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Floating chat widget */
.chat-bubble {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 998;
}

.chat-bubble img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s;
}

.chat-bubble img:hover {
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 997;
}

.chat-header {
    background: var(--primary-dark);
    color: white;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 1rem;
}

.chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 0.9rem;
    background: #fafafa;
}

.chat-body .message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 85%;
    clear: both;
}

.message.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.message.bot {
    background: var(--light-bg);
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.chat-input {
    display: flex;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 0.9rem;
    outline: none;
}

.chat-input button {
    border: none;
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-input button:hover {
    background: var(--secondary);
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Mobile adjustments */
.mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        padding-right: 0;
    }
    .hero-image img {
        max-width: 350px;
        margin-top: 30px;
    }
    header nav ul {
        display: none;
    }
    header .menu-toggle {
        display: block;
        cursor: pointer;
        color: white;
        font-size: 1.5rem;
    }
    .mobile-nav {
        position: fixed;
        top: 60px;
        right: 20px;
        background: var(--primary-dark);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        z-index: 1001;
    }
    .mobile-nav ul {
        display: block;
    }
    .mobile-nav ul li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .mobile-nav ul li a {
        color: white;
        display: block;
        padding: 12px 20px;
        text-decoration: none;
    }
}
