/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2196f3;         /* Aussie sky blue */
    --primary-dark: #1565c0;
    --secondary-color: #43a047;       /* Eucalyptus green */
    --accent-color: #ffb300;          /* Outback ochre/gold */
    --success-color: #26c6da;         /* Coral blue */
    --warning-color: #ff7043;         /* Coral orange */
    --danger-color: #d84315;          /* Red earth */
    --dark-bg: #fffbe6;               /* Sandy beach */
    --card-bg: #fff8e1;               /* Lighter sand */
    --text-primary: #3e2723;          /* Gumtree brown */
    --text-secondary: #6d4c41;        /* Lighter brown */
    --border-color: #ffe082;          /* Pale gold */
    --gradient-1: linear-gradient(135deg, #ffb300 0%, #2196f3 100%);
    --gradient-2: linear-gradient(135deg, #ff7043 0%, #43a047 100%);
    --gradient-3: linear-gradient(135deg, #26c6da 0%, #ffb300 100%);
}

/* Update body and card backgrounds for a lighter, friendlier feel */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    width: 32px;
    height: 32px;
    background: var(--gradient-1);
    border-radius: 8px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: white
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 1px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.navbar img {
    height: 32px;
    margin-right: 12px;
    vertical-align: middle;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at top, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: rgba(194 217 255 / 80%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(131, 131, 131, 0.1);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.floating-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.card-1 {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.card-2 {
    top: 150px;
    right: 80px;
    animation-delay: 2s;
}

.card-3 {
    bottom: 80px;
    left: 100px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.05) 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: #fffde7;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Demo Section */
.demo {
    padding: 6rem 0;
    background: rgba(6, 182, 212, 0.05);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.demo-item {
    text-align: center;
}

.demo-preview {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-preview {
    width: 100%;
    max-width: 300px;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message i {
    width: 32px;
    height: 32px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.chat-message p {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 200px;
    font-size: 0.875rem;
    text-align: left;
}

.chat-message.user p {
    background: var(--gradient-1);
}

.map-preview {
    background: #e3f2fd; /* Soft blue, like Google Maps water/sky */
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 24px rgba(33, 150, 243, 0.08);
    /* Optional: add a subtle grid pattern for a map vibe */
    background-image: url('https://www.transparenttextures.com/patterns/squared-metal.png');
    background-size: auto;
}

.map-pin {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    animation: pulse 2s infinite;
}

.pin-red {
    background: var(--danger-color);
    top: 30px;
    left: 50px;
}

.pin-green {
    background: var(--success-color);
    top: 80px;
    right: 60px;
}

.pin-blue {
    background: var(--primary-color);
    bottom: 40px;
    left: 80px;
}

.status-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.status-open { color: var(--success-color); }
.status-busy { color: var(--warning-color); }
.status-alert { color: var(--danger-color); }

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

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

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

.service-item {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    background: #fffde7;
}

.service-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: rgba(6, 182, 212, 0.05);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-method i {
    color: var(--secondary-color);
    width: 20px;
}

.contact-form {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: #fffde7;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 8px;
    margin-bottom: 1rem;
}

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

.link-group h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Emergency Banner */
.emergency-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--danger-color), #dc2626);
    color: white;
    padding: 1rem;
    z-index: 2000;
    animation: slideDown 0.5s ease;
}

.emergency-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.emergency-content i {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

#emergency-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Map Page Styles */
.map-page {
    height: 100vh;
    overflow: hidden;
}

.map-controls {
    position: fixed;
    left: 20px;
    top: 100px;
    bottom: 20px;
    width: 300px;
    background: var(--card-bg); /* changed from dark to light */
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    z-index: 1000;
    overflow-y: auto;
    color: var(--text-primary); /* ensure text is readable */
}

.control-panel,
.filter-panel,
.legend-panel {
    margin-bottom: 2rem;
}

.control-panel h3,
.filter-panel h3,
.legend-panel h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.slider {
    position: relative;
    width: 40px;
    height: 20px;
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked + .slider {
    background: var(--primary-color);
}

input[type="checkbox"]:checked + .slider::before {
    transform: translateX(20px);
}

input[type="checkbox"] {
    display: none;
}

.filter-options select {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    background: rgba(37, 99, 235, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.map-container {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.service-panel {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 350px;
    max-height: 60vh;
    background: var(--card-bg); /* changed from dark to light */
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    z-index: 1000;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    color: var(--text-primary); /* ensure text is readable */
}

.service-panel.open {
    transform: translateX(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-content {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(60vh - 80px);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

.close-btn:hover {
    color: var(--text-primary);
}

.quick-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
}

.quick-btn {
    background: grey;
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.quick-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.quick-btn i {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.emergency-alert {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--danger-color), #dc2626);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    z-index: 2000;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
    animation: slideDown 0.5s ease;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-text p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Chat Page Styles */
.chat-page {
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 80px);
    margin-top: 80px;
}

.chat-sidebar {
    background: var(--card-bg);
    color: var(--text-primary);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    overflow-y: auto;
}

.sidebar-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.quick-actions-chat h4,
.ai-features h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.quick-action-btn {
    width: 100%;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.quick-action-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.5);
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.feature-item i {
    color: var(--secondary-color);
    width: 16px;
}

.chat-main {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    background: #fff8e1;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--success-color);
    animation: pulse 2s infinite;
}

.chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
    min-height: 200px;
    max-height: 60vh;
}

.message {
    display: flex;
    gap: 1rem;
    max-width: 80%;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--gradient-3);
    color: white;
}

.user-message .message-avatar {
    background: var(--accent-color);
    color: var(--text-primary);
}

.message-content {
    flex: 1;
}

.message-bubble {
    background: #fffde7;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 70%;
    position: relative;
}

.message-bubble::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
}

.message-bubble.bot {
    background: #f5f5f5;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.message-bubble.user {
    background: var(--gradient-1);
    color: white;
}

/* Example: style for hand shake icon */
.hand-shake-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.15);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Miscellaneous */
.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

.fade-enter-active, .fade-leave-active {
    transition: opacity 0.5s;
}

.fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {
    opacity: 0;
}

.rotate-enter-active, .rotate-leave-active {
    transition: transform 0.5s;
}

.rotate-enter, .rotate-leave-to /* .rotate-leave-active in <2.1.8 */ {
    transform: rotate(0deg);
}

.scale-enter-active, .scale-leave-active {
    transition: transform 0.5s, opacity 0.5s;
}

.scale-enter, .scale-leave-to /* .scale-leave-active in <2.1.8 */ {
    transform: scale(0.9);
    opacity: 0;
}

.bounce-enter-active, .bounce-leave-active {
    transition: transform 0.5s;
}

.bounce-enter, .bounce-leave-to /* .bounce-leave-active in <2.1.8 */ {
    transform: translateY(0);
}

.slide-enter-active, .slide-leave-active {
    transition: transform 0.5s;
}

.slide-enter, .slide-leave-to /* .slide-leave-active in <2.1.8 */ {
    transform: translateX(10px);
    opacity: 0;
}

.flip-enter-active, .flip-leave-active {
    transition: transform 0.5s;
}

.flip-enter, .flip-leave-to /* .flip-leave-active in <2.1.8 */ {
    transform: perspective(600px) rotateY(0deg);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card-content {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.card-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.card-footer a:hover {
    color: var(--secondary-color);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    text-align: center;
    transition: transform 0.3s;
}

.badge-success {
    background: var(--success-color);
}

.badge-warning {
    background: var(--warning-color);
}

.badge-danger {
    background: var(--danger-color);
}

.badge-info {
    background: var(--primary-color);
}

.badge-light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.badge-dark {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transition: background 0.3s, transform 0.3s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.btn-icon i {
    font-size: 1.25rem;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background: rgba(30, 41, 59, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

#cycling-word {
    display: inline-block;
    min-width: 7ch; /* Adjust this value based on your longest word */
    text-align: left;
    transition: opacity 0.5s;
    opacity: 1;
}

.chat-input-container {
    flex-shrink: 0;
    background: #fffde7;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(33,150,243,0.07);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

#chat-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--text-primary);
    padding: 0.5rem 0;
}

.send-btn {
    background: var(--accent-color);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s;
}

.send-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.input-hints {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.hint {
    background: var(--card-bg);
    color: var(--primary-color);
    border-radius: 12px;
    padding: 0.2rem 0.8rem;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: background 0.2s, color 0.2s;
}

.hint:hover {
    background: var(--accent-color);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .map-controls {
        width: 100%;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        border-radius: 16px 16px 0 0;
    }

    .service-panel {
        width: 100%;
        right: 0;
        top: auto;
        bottom: 0;
        border-radius: 0 0 16px 16px;
    }

    .chat-container {
        grid-template-columns: 1fr;
        height: calc(100vh - 160px);
    }

    .chat-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .chat-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-indicator {
        margin-bottom: 0.5rem;
    }

    .message-bubble {
        max-width: 90%;
    }

    .quick-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .quick-btn {
        width: 48%;
        height: 48px;
        font-size: 0.875rem;
    }

    .emergency-banner {
        font-size: 0.875rem;
        padding: 0.75rem;
    }

    .emergency-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .emergency-content i {
        font-size: 1.5rem;
    }

    #emergency-close {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Optional: Add a subtle pattern or image for extra Aussie flair */
body {
    background: var(--dark-bg) url('https://www.transparenttextures.com/patterns/sandpaper.png');
}