/* =========================================
   Design System & Variables
   ========================================= */
:root {
    /* Colors */
    --color-primary: #172554;
    /* Deep Indigo - Professional, Trustworthy */
    --color-primary-light: #1E3A8A;
    --color-accent: #EA580C;
    /* Saffron/Bright Orange - Modern, Actionable */
    --color-accent-hover: #C2410C;

    --color-text-main: #1F2937;
    /* Very Dark Gray */
    --color-text-muted: #4B5563;
    /* Medium Dark Gray */
    --color-text-light: #9CA3AF;

    --color-bg-main: #FFFFFF;
    --color-bg-light: #F8FAFC;
    /* Slate Light */
    --color-bg-dark: #111827;

    --color-border: #E5E7EB;
    --color-success: #10B981;

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for fixed header */
}

body {
    font-family: var(--font-family);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

ul {
    list-style: none;
}

/* =========================================
   Typography
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-muted);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--color-accent);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    margin-bottom: var(--space-lg);
}

.section-desc {
    font-size: 1.125rem;
    max-width: 800px;
    margin-bottom: var(--space-xl);
}

/* =========================================
   Layout
   ========================================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--space-2xl) 0;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    font-size: 1rem;
    text-align: center;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: all var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-border);
}

.header .logo {
    color: white;
    transition: color var(--transition-fast);
}

.header.scrolled .logo {
    color: var(--color-primary);
}

.header .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.header.scrolled .nav-link {
    color: var(--color-text-main);
}

.header .nav-link:hover,
.header.scrolled .nav-link:hover {
    color: var(--color-accent);
}

.header .btn-outline {
    border-color: white;
    color: white;
}

.header.scrolled .btn-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.header.scrolled .btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-accent);
}

.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: white;
    transition: color var(--transition-fast);
}

.header.scrolled .mobile-menu-toggle {
    color: var(--color-primary);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-image: url('../images/hero-bg-india.png');
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    /* Removed background-attachment: fixed due to performance issues on some devices, but can add back if desired */
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay for text contrast */
    background: linear-gradient(90deg, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.6) 50%, rgba(10, 37, 64, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    color: white;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Animations Triggered via JS classes */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Fade In Utilities */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* =========================================
   About Section
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.about-features {
    margin-top: 2.5rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.125rem;
    color: var(--color-primary);
}

.about-features i {
    color: var(--color-accent);
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 500;
    color: var(--color-text-muted);
}

/* =========================================
   Services Section
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
    z-index: 2;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--color-accent);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-fast);
}

.service-card:hover .service-icon {
    background-color: var(--color-accent);
    color: white;
}

/* =========================================
   Why Choose Us Section
   ========================================= */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    background-color: var(--color-accent);
}

.feature-text h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-text p {
    margin: 0;
    font-size: 1rem;
}

.why-us-image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 600px;
    background-image: url('../images/office-bg-india.png');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-xl);
}

.experience-badge {
    position: absolute;
    bottom: -2rem;
    /* Adjusted via media queries for overflow handling */
    left: -2rem;
    background-color: var(--color-accent);
    color: white;
    padding: 2.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.why-us-image-wrapper {
    /* Need padding to allow absolute element to show if wrapper isn't contained */
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.badge-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.badge-text {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0.9;
}

/* =========================================
   Testimonials Section
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background-color: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.quote-icon {
    color: var(--color-accent);
    font-size: 3rem;
    opacity: 0.2;
    line-height: 1;
}

.testimonial-rating {
    color: #F59E0B;
    /* Vibrant Gold */
    font-size: 1.25rem;
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 2.5rem;
    color: var(--color-primary);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.client-avatar {
    width: 56px;
    height: 56px;
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    border: 2px solid var(--color-border);
}

.client-name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.client-role {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* =========================================
   Contact Section
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}

.contact-methods {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.method-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.method-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.method-item:hover .method-icon {
    background-color: var(--color-accent);
    color: white;
    transform: scale(1.05);
}

.method-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.method-item a,
.method-item p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

.form-card {
    background-color: white;
    padding: 3.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
}

.form-card h3 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.form-subtitle {
    margin-bottom: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: var(--color-bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background-color: white;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-status {
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
}

.form-status.success {
    color: var(--color-success);
}

.form-status.error {
    color: #EF4444;
    /* Red */
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding-top: var(--space-2xl);
    padding-bottom: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    color: white;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 320px;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-size: 0.875rem;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .about-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .why-us-image-wrapper {
        margin-left: 0;
        margin-bottom: 0;
        min-height: 400px;
        order: -1;
    }

    .experience-badge {
        left: 2rem;
        bottom: -2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {

    h1,
    .hero-title {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 0;
        overflow: hidden;
        transition: height 0.4s ease-in-out;
        box-shadow: 0 10px 15px -10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        height: 350px;
        padding: 2rem;
    }

    .header .nav-link {
        color: var(--color-primary);
    }

    .header .btn-outline {
        border-color: var(--color-primary);
        color: var(--color-primary);
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Need text to be visible in mobile menu before scrolling */
    .header:not(.scrolled) .mobile-menu-toggle {
        color: white;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .experience-badge {
        left: 1rem;
        bottom: 1rem;
        padding: 1.5rem;
    }

    .badge-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--space-xl) 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .form-card {
        padding: 2rem 1.5rem;
    }
}

/* =========================================
   Chatbot Assistant
   ========================================= */
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: var(--font-family);
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all var(--transition-fast);
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    background-color: var(--color-accent-hover);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background-color: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chatbot-header {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chatbot-header h4 {
    color: white;
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.chatbot-header .status {
    font-size: 0.75rem;
    color: #10B981; /* Green */
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.chatbot-header .status::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
    display: inline-block;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.chatbot-close:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--color-bg-light);
}

.chat-msg {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeInUp 0.3s ease-out;
}

.bot-msg {
    background-color: white;
    color: var(--color-text-main);
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
    border: 1px solid var(--color-border);
}

.user-msg {
    background-color: var(--color-accent);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
}

.chat-msg p {
    margin: 0;
    color: inherit;
}

.chatbot-input {
    padding: 1rem;
    background-color: white;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 0.5rem;
}

.chatbot-input input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 2rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.chatbot-input input:focus {
    border-color: var(--color-accent);
}

.chatbot-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background-color var(--transition-fast);
}

.chatbot-input button:hover {
    background-color: var(--color-accent-hover);
}

/* Typing indicator */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    border-bottom-left-radius: 0.25rem;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-text-muted);
    border-radius: 50%;
    animation: wave 1.3s linear infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: -1.1s;
}

.typing-dot:nth-child(3) {
    animation-delay: -0.9s;
}

@keyframes wave {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 2rem);
        right: -1rem; /* Adjusting for container right 2rem, makes it 1rem from screen edge */
        bottom: 70px;
    }
}